content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def main(): n=int(input()) a=list(map(int, input().split())) mp=(None,None) d=0 for i in range(0, n-1, 2): if a[i+1] - a[i] > d: mp=(i,i+1) a[mp[0]], a[mp[1]] = a[mp[1]], a[mp[0]] print(sum(a[::2])) if __name__ == '__main__': t=int(input()) for _ in range(t): main()
def main(): n = int(input()) a = list(map(int, input().split())) mp = (None, None) d = 0 for i in range(0, n - 1, 2): if a[i + 1] - a[i] > d: mp = (i, i + 1) (a[mp[0]], a[mp[1]]) = (a[mp[1]], a[mp[0]]) print(sum(a[::2])) if __name__ == '__main__': t = int(input()) for _ in range(t): main()
x = int(input('Enter an integer:')) y = int(input('Enter an integer:')) if x ^ y!=0: print(x,' and ', y, ' are different') else: print(x,' and ', y, ' are same')
x = int(input('Enter an integer:')) y = int(input('Enter an integer:')) if x ^ y != 0: print(x, ' and ', y, ' are different') else: print(x, ' and ', y, ' are same')
#!/usr/bin/env python ####################################### # Installation module for AttackSurfaceMapper ####################################### DESCRIPTION="This module will install/update Attack Surface Mapper (ASM) by Andreas Georgiou - A tool that aim to automate the recon process" AUTHOR="Andrew Schwartz" INSTALL_TYPE="GIT" REPOSITORY_LOCATION="https://github.com/superhedgy/AttackSurfaceMapper.git" INSTALL_LOCATION="ASM" DEBIAN="python3,pip" AFTER_COMMANDS="cd {INSTALL_LOCATION},python3 -m pip install --no-cache-dir -r requirements.txt"
description = 'This module will install/update Attack Surface Mapper (ASM) by Andreas Georgiou - A tool that aim to automate the recon process' author = 'Andrew Schwartz' install_type = 'GIT' repository_location = 'https://github.com/superhedgy/AttackSurfaceMapper.git' install_location = 'ASM' debian = 'python3,pip' after_commands = 'cd {INSTALL_LOCATION},python3 -m pip install --no-cache-dir -r requirements.txt'
def k_to_c(k): c = (k - 273.15) return c k = 268.0 c = k_to_c(k) print("kelvin of" + str(k) + "is" + str(c) + "in kelvin" )
def k_to_c(k): c = k - 273.15 return c k = 268.0 c = k_to_c(k) print('kelvin of' + str(k) + 'is' + str(c) + 'in kelvin')
# Autogenerated file for Reflected light # Add missing from ... import const _JD_SERVICE_CLASS_REFLECTED_LIGHT = const(0x126c4cb2) _JD_REFLECTED_LIGHT_VARIANT_INFRARED_DIGITAL = const(0x1) _JD_REFLECTED_LIGHT_VARIANT_INFRARED_ANALOG = const(0x2) _JD_REFLECTED_LIGHT_REG_BRIGHTNESS = const(JD_REG_READING) _JD_REFLECTED_LIGHT_REG_VARIANT = const(JD_REG_VARIANT) _JD_REFLECTED_LIGHT_EV_DARK = const(JD_EV_INACTIVE) _JD_REFLECTED_LIGHT_EV_LIGHT = const(JD_EV_ACTIVE)
_jd_service_class_reflected_light = const(309087410) _jd_reflected_light_variant_infrared_digital = const(1) _jd_reflected_light_variant_infrared_analog = const(2) _jd_reflected_light_reg_brightness = const(JD_REG_READING) _jd_reflected_light_reg_variant = const(JD_REG_VARIANT) _jd_reflected_light_ev_dark = const(JD_EV_INACTIVE) _jd_reflected_light_ev_light = const(JD_EV_ACTIVE)
#!/bin/python3 # Designer Door Mat # https://www.hackerrank.com/challenges/designer-door-mat/problem n, m = map(int, input().split()) init = ".|." for i in range(n // 2): print(init.center(m, "-")) init = ".|." + init + ".|." print("WELCOME".center(m, "-")) for i in range(n // 2): linit = list(init) init = "".join(linit[3:len(linit) - 3]) print(init.center(m, "-"))
(n, m) = map(int, input().split()) init = '.|.' for i in range(n // 2): print(init.center(m, '-')) init = '.|.' + init + '.|.' print('WELCOME'.center(m, '-')) for i in range(n // 2): linit = list(init) init = ''.join(linit[3:len(linit) - 3]) print(init.center(m, '-'))
# albus.exceptions class AlbusError(Exception): def __init__(self, message, inner=None, detail=None): self.message = message self.inner = inner self.detail = detail
class Albuserror(Exception): def __init__(self, message, inner=None, detail=None): self.message = message self.inner = inner self.detail = detail
# Created by MechAviv # Nyen Damage Skin | (2438086) if sm.addDamageSkin(2438086): sm.chat("'Nyen Damage Skin' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
if sm.addDamageSkin(2438086): sm.chat("'Nyen Damage Skin' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
# -*- coding: utf-8 -*- # # Copyright 2016 Civic Knowledge. All Rights Reserved # This software may be modified and distributed under the terms of the BSD license. # See the LICENSE file for details. def get_root(): return ['do some magic?','or don\'t'] def get_measure_root(id): return "got id {} ({}) ".format(id, type(id))
def get_root(): return ['do some magic?', "or don't"] def get_measure_root(id): return 'got id {} ({}) '.format(id, type(id))
# # PySNMP MIB module CHANNEL-CHANGE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHANNEL-CHANGE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:31:02 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") ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") InterfaceIndex, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "InterfaceIndexOrZero") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Counter64, ModuleIdentity, Gauge32, ObjectIdentity, MibIdentifier, Integer32, Counter32, Unsigned32, iso, enterprises, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, NotificationType, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "ModuleIdentity", "Gauge32", "ObjectIdentity", "MibIdentifier", "Integer32", "Counter32", "Unsigned32", "iso", "enterprises", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "NotificationType", "TimeTicks") DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention") channelChangeMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 1, 1, 1)) if mibBuilder.loadTexts: channelChangeMib.setLastUpdated('200205121638Z') if mibBuilder.loadTexts: channelChangeMib.setOrganization('FS VDSL Architecture Experts Group') fsan = MibIdentifier((1, 3, 6, 1, 4, 1, 1)) fsVdsl = MibIdentifier((1, 3, 6, 1, 4, 1, 1, 1)) channelChangeMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 1)) channelChangeMibNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 2)) channelTable = MibTable((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1), ) if mibBuilder.loadTexts: channelTable.setStatus('current') channelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1), ).setIndexNames((0, "CHANNEL-CHANGE-MIB", "channelId")) if mibBuilder.loadTexts: channelEntry.setStatus('current') channelId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1), IpAddress()) if mibBuilder.loadTexts: channelId.setStatus('current') entitlementIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readcreate") if mibBuilder.loadTexts: entitlementIndex.setStatus('current') networkPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 3), InterfaceIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: networkPortId.setStatus('current') vpi = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vpi.setStatus('current') vci = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(32, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vci.setStatus('current') channelAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("locked", 1), ("unlocked", 2), ("shuttingDown", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: channelAdminStatus.setStatus('current') channelRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 8), RowStatus().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: channelRowStatus.setStatus('current') customerTable = MibTable((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2), ) if mibBuilder.loadTexts: customerTable.setStatus('current') customerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1), ).setIndexNames((0, "CHANNEL-CHANGE-MIB", "onuId"), (0, "CHANNEL-CHANGE-MIB", "customerPortId")) if mibBuilder.loadTexts: customerEntry.setStatus('current') onuId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 1), InterfaceIndexOrZero()) if mibBuilder.loadTexts: onuId.setStatus('current') customerPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: customerPortId.setStatus('current') maxMulticastTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 3), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: maxMulticastTraffic.setStatus('current') maxMulticastStreams = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 4), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: maxMulticastStreams.setStatus('current') untimedEntitlements1 = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate") if mibBuilder.loadTexts: untimedEntitlements1.setStatus('current') untimedEntitlements2 = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate") if mibBuilder.loadTexts: untimedEntitlements2.setStatus('current') grantEntitlement = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 7), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: grantEntitlement.setStatus('current') revokeEntitlement = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 8), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: revokeEntitlement.setStatus('current') customerAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("locked", 1), ("unlocked", 2), ("shuttingDown", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: customerAdminStatus.setStatus('current') customerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 10), RowStatus().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: customerRowStatus.setStatus('current') timedEntitlementTable = MibTable((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3), ) if mibBuilder.loadTexts: timedEntitlementTable.setStatus('current') timedEntitlementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1), ).setIndexNames((0, "CHANNEL-CHANGE-MIB", "timedEntitlementId")) if mibBuilder.loadTexts: timedEntitlementEntry.setStatus('current') timedEntitlementId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: timedEntitlementId.setStatus('current') timedEntitlementChannelId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: timedEntitlementChannelId.setStatus('current') startTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: startTime.setStatus('current') stopTime = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: stopTime.setStatus('current') entitlementRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 5), RowStatus().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: entitlementRowStatus.setStatus('current') customerTimedEntitlementTable = MibTable((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4), ) if mibBuilder.loadTexts: customerTimedEntitlementTable.setStatus('current') customerTimedEntitlementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1), ).setIndexNames((0, "CHANNEL-CHANGE-MIB", "custOnuId"), (0, "CHANNEL-CHANGE-MIB", "custPortId"), (0, "CHANNEL-CHANGE-MIB", "custTimedEntitlementId")) if mibBuilder.loadTexts: customerTimedEntitlementEntry.setStatus('current') custOnuId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 1), InterfaceIndexOrZero()) if mibBuilder.loadTexts: custOnuId.setStatus('current') custPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: custPortId.setStatus('current') custTimedEntitlementId = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: custTimedEntitlementId.setStatus('current') custTimedEntitlementRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 4), RowStatus().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: custTimedEntitlementRowStatus.setStatus('current') channelChangeMibNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 2, 0)) channelChangeCAFailed = NotificationType((1, 3, 6, 1, 4, 1, 1, 1, 1, 2, 0, 1)).setObjects(("CHANNEL-CHANGE-MIB", "rejectedOnuId"), ("CHANNEL-CHANGE-MIB", "rejectedCustomerPortId")) if mibBuilder.loadTexts: channelChangeCAFailed.setStatus('current') rejectedOnuId = MibScalar((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 5), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rejectedOnuId.setStatus('current') rejectedCustomerPortId = MibScalar((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 6), InterfaceIndex()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rejectedCustomerPortId.setStatus('current') caFailedNotificationStatus = MibScalar((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: caFailedNotificationStatus.setStatus('current') channelChangeMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 3)) channelChangeMibCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 1)) channelChangeMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2)) channelChangeMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 1, 1)).setObjects(("CHANNEL-CHANGE-MIB", "channelChangeBasicGroup"), ("CHANNEL-CHANGE-MIB", "channelChangeCACGroup"), ("CHANNEL-CHANGE-MIB", "channelChangeBasicCAGroup"), ("CHANNEL-CHANGE-MIB", "channelChangeCA4095ChannelsGroup"), ("CHANNEL-CHANGE-MIB", "channelChangeCATimedEntitlementsGroup"), ("CHANNEL-CHANGE-MIB", "channelChangeCANotificationsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channelChangeMibCompliance = channelChangeMibCompliance.setStatus('current') channelChangeBasicGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 1)).setObjects(("CHANNEL-CHANGE-MIB", "channelId"), ("CHANNEL-CHANGE-MIB", "networkPortId"), ("CHANNEL-CHANGE-MIB", "vpi"), ("CHANNEL-CHANGE-MIB", "vci"), ("CHANNEL-CHANGE-MIB", "channelAdminStatus"), ("CHANNEL-CHANGE-MIB", "channelRowStatus"), ("CHANNEL-CHANGE-MIB", "onuId"), ("CHANNEL-CHANGE-MIB", "customerPortId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channelChangeBasicGroup = channelChangeBasicGroup.setStatus('current') channelChangeCACGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 2)).setObjects(("CHANNEL-CHANGE-MIB", "maxMulticastTraffic")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channelChangeCACGroup = channelChangeCACGroup.setStatus('current') channelChangeBasicCAGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 3)).setObjects(("CHANNEL-CHANGE-MIB", "maxMulticastStreams"), ("CHANNEL-CHANGE-MIB", "entitlementIndex"), ("CHANNEL-CHANGE-MIB", "untimedEntitlements1"), ("CHANNEL-CHANGE-MIB", "grantEntitlement"), ("CHANNEL-CHANGE-MIB", "revokeEntitlement"), ("CHANNEL-CHANGE-MIB", "rejectedOnuId"), ("CHANNEL-CHANGE-MIB", "rejectedCustomerPortId"), ("CHANNEL-CHANGE-MIB", "caFailedNotificationStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channelChangeBasicCAGroup = channelChangeBasicCAGroup.setStatus('current') channelChangeCA4095ChannelsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 4)).setObjects(("CHANNEL-CHANGE-MIB", "untimedEntitlements2")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channelChangeCA4095ChannelsGroup = channelChangeCA4095ChannelsGroup.setStatus('current') channelChangeCATimedEntitlementsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 5)).setObjects(("CHANNEL-CHANGE-MIB", "timedEntitlementId"), ("CHANNEL-CHANGE-MIB", "timedEntitlementChannelId"), ("CHANNEL-CHANGE-MIB", "startTime"), ("CHANNEL-CHANGE-MIB", "stopTime"), ("CHANNEL-CHANGE-MIB", "entitlementRowStatus"), ("CHANNEL-CHANGE-MIB", "custTimedEntitlementId"), ("CHANNEL-CHANGE-MIB", "custTimedEntitlementRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channelChangeCATimedEntitlementsGroup = channelChangeCATimedEntitlementsGroup.setStatus('current') channelChangeCANotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 6)).setObjects(("CHANNEL-CHANGE-MIB", "channelChangeCAFailed")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channelChangeCANotificationsGroup = channelChangeCANotificationsGroup.setStatus('current') mibBuilder.exportSymbols("CHANNEL-CHANGE-MIB", networkPortId=networkPortId, timedEntitlementId=timedEntitlementId, customerTable=customerTable, channelChangeBasicCAGroup=channelChangeBasicCAGroup, channelAdminStatus=channelAdminStatus, channelChangeMibCompliance=channelChangeMibCompliance, customerRowStatus=customerRowStatus, customerTimedEntitlementEntry=customerTimedEntitlementEntry, customerPortId=customerPortId, timedEntitlementTable=timedEntitlementTable, channelRowStatus=channelRowStatus, channelEntry=channelEntry, channelChangeMibGroups=channelChangeMibGroups, entitlementIndex=entitlementIndex, customerAdminStatus=customerAdminStatus, untimedEntitlements2=untimedEntitlements2, grantEntitlement=grantEntitlement, channelChangeMibNotificationPrefix=channelChangeMibNotificationPrefix, fsVdsl=fsVdsl, customerTimedEntitlementTable=customerTimedEntitlementTable, channelId=channelId, timedEntitlementEntry=timedEntitlementEntry, channelTable=channelTable, channelChangeMibConformance=channelChangeMibConformance, maxMulticastTraffic=maxMulticastTraffic, channelChangeMibCompliances=channelChangeMibCompliances, channelChangeCA4095ChannelsGroup=channelChangeCA4095ChannelsGroup, stopTime=stopTime, channelChangeBasicGroup=channelChangeBasicGroup, channelChangeCAFailed=channelChangeCAFailed, channelChangeCACGroup=channelChangeCACGroup, custTimedEntitlementId=custTimedEntitlementId, maxMulticastStreams=maxMulticastStreams, channelChangeMib=channelChangeMib, vci=vci, untimedEntitlements1=untimedEntitlements1, channelChangeMibObjects=channelChangeMibObjects, timedEntitlementChannelId=timedEntitlementChannelId, rejectedCustomerPortId=rejectedCustomerPortId, caFailedNotificationStatus=caFailedNotificationStatus, onuId=onuId, custTimedEntitlementRowStatus=custTimedEntitlementRowStatus, startTime=startTime, vpi=vpi, channelChangeCATimedEntitlementsGroup=channelChangeCATimedEntitlementsGroup, PYSNMP_MODULE_ID=channelChangeMib, channelChangeMibNotifications=channelChangeMibNotifications, entitlementRowStatus=entitlementRowStatus, rejectedOnuId=rejectedOnuId, fsan=fsan, custOnuId=custOnuId, customerEntry=customerEntry, channelChangeCANotificationsGroup=channelChangeCANotificationsGroup, custPortId=custPortId, revokeEntitlement=revokeEntitlement)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, single_value_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (interface_index, interface_index_or_zero) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'InterfaceIndexOrZero') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (counter64, module_identity, gauge32, object_identity, mib_identifier, integer32, counter32, unsigned32, iso, enterprises, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, notification_type, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'ModuleIdentity', 'Gauge32', 'ObjectIdentity', 'MibIdentifier', 'Integer32', 'Counter32', 'Unsigned32', 'iso', 'enterprises', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'NotificationType', 'TimeTicks') (display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention') channel_change_mib = module_identity((1, 3, 6, 1, 4, 1, 1, 1, 1)) if mibBuilder.loadTexts: channelChangeMib.setLastUpdated('200205121638Z') if mibBuilder.loadTexts: channelChangeMib.setOrganization('FS VDSL Architecture Experts Group') fsan = mib_identifier((1, 3, 6, 1, 4, 1, 1)) fs_vdsl = mib_identifier((1, 3, 6, 1, 4, 1, 1, 1)) channel_change_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 1)) channel_change_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 2)) channel_table = mib_table((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1)) if mibBuilder.loadTexts: channelTable.setStatus('current') channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1)).setIndexNames((0, 'CHANNEL-CHANGE-MIB', 'channelId')) if mibBuilder.loadTexts: channelEntry.setStatus('current') channel_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1), ip_address()) if mibBuilder.loadTexts: channelId.setStatus('current') entitlement_index = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readcreate') if mibBuilder.loadTexts: entitlementIndex.setStatus('current') network_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 3), interface_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: networkPortId.setStatus('current') vpi = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vpi.setStatus('current') vci = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(32, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vci.setStatus('current') channel_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('locked', 1), ('unlocked', 2), ('shuttingDown', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: channelAdminStatus.setStatus('current') channel_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 1, 1, 8), row_status().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: channelRowStatus.setStatus('current') customer_table = mib_table((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2)) if mibBuilder.loadTexts: customerTable.setStatus('current') customer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1)).setIndexNames((0, 'CHANNEL-CHANGE-MIB', 'onuId'), (0, 'CHANNEL-CHANGE-MIB', 'customerPortId')) if mibBuilder.loadTexts: customerEntry.setStatus('current') onu_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 1), interface_index_or_zero()) if mibBuilder.loadTexts: onuId.setStatus('current') customer_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 2), interface_index()) if mibBuilder.loadTexts: customerPortId.setStatus('current') max_multicast_traffic = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 3), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: maxMulticastTraffic.setStatus('current') max_multicast_streams = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 4), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: maxMulticastStreams.setStatus('current') untimed_entitlements1 = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readcreate') if mibBuilder.loadTexts: untimedEntitlements1.setStatus('current') untimed_entitlements2 = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readcreate') if mibBuilder.loadTexts: untimedEntitlements2.setStatus('current') grant_entitlement = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 7), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: grantEntitlement.setStatus('current') revoke_entitlement = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 8), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: revokeEntitlement.setStatus('current') customer_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('locked', 1), ('unlocked', 2), ('shuttingDown', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: customerAdminStatus.setStatus('current') customer_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 2, 1, 10), row_status().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: customerRowStatus.setStatus('current') timed_entitlement_table = mib_table((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3)) if mibBuilder.loadTexts: timedEntitlementTable.setStatus('current') timed_entitlement_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1)).setIndexNames((0, 'CHANNEL-CHANGE-MIB', 'timedEntitlementId')) if mibBuilder.loadTexts: timedEntitlementEntry.setStatus('current') timed_entitlement_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: timedEntitlementId.setStatus('current') timed_entitlement_channel_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: timedEntitlementChannelId.setStatus('current') start_time = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: startTime.setStatus('current') stop_time = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: stopTime.setStatus('current') entitlement_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 3, 1, 5), row_status().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: entitlementRowStatus.setStatus('current') customer_timed_entitlement_table = mib_table((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4)) if mibBuilder.loadTexts: customerTimedEntitlementTable.setStatus('current') customer_timed_entitlement_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1)).setIndexNames((0, 'CHANNEL-CHANGE-MIB', 'custOnuId'), (0, 'CHANNEL-CHANGE-MIB', 'custPortId'), (0, 'CHANNEL-CHANGE-MIB', 'custTimedEntitlementId')) if mibBuilder.loadTexts: customerTimedEntitlementEntry.setStatus('current') cust_onu_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 1), interface_index_or_zero()) if mibBuilder.loadTexts: custOnuId.setStatus('current') cust_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 2), interface_index()) if mibBuilder.loadTexts: custPortId.setStatus('current') cust_timed_entitlement_id = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: custTimedEntitlementId.setStatus('current') cust_timed_entitlement_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 4, 1, 4), row_status().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: custTimedEntitlementRowStatus.setStatus('current') channel_change_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 2, 0)) channel_change_ca_failed = notification_type((1, 3, 6, 1, 4, 1, 1, 1, 1, 2, 0, 1)).setObjects(('CHANNEL-CHANGE-MIB', 'rejectedOnuId'), ('CHANNEL-CHANGE-MIB', 'rejectedCustomerPortId')) if mibBuilder.loadTexts: channelChangeCAFailed.setStatus('current') rejected_onu_id = mib_scalar((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 5), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rejectedOnuId.setStatus('current') rejected_customer_port_id = mib_scalar((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 6), interface_index()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rejectedCustomerPortId.setStatus('current') ca_failed_notification_status = mib_scalar((1, 3, 6, 1, 4, 1, 1, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: caFailedNotificationStatus.setStatus('current') channel_change_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 3)) channel_change_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 1)) channel_change_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2)) channel_change_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 1, 1)).setObjects(('CHANNEL-CHANGE-MIB', 'channelChangeBasicGroup'), ('CHANNEL-CHANGE-MIB', 'channelChangeCACGroup'), ('CHANNEL-CHANGE-MIB', 'channelChangeBasicCAGroup'), ('CHANNEL-CHANGE-MIB', 'channelChangeCA4095ChannelsGroup'), ('CHANNEL-CHANGE-MIB', 'channelChangeCATimedEntitlementsGroup'), ('CHANNEL-CHANGE-MIB', 'channelChangeCANotificationsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channel_change_mib_compliance = channelChangeMibCompliance.setStatus('current') channel_change_basic_group = object_group((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 1)).setObjects(('CHANNEL-CHANGE-MIB', 'channelId'), ('CHANNEL-CHANGE-MIB', 'networkPortId'), ('CHANNEL-CHANGE-MIB', 'vpi'), ('CHANNEL-CHANGE-MIB', 'vci'), ('CHANNEL-CHANGE-MIB', 'channelAdminStatus'), ('CHANNEL-CHANGE-MIB', 'channelRowStatus'), ('CHANNEL-CHANGE-MIB', 'onuId'), ('CHANNEL-CHANGE-MIB', 'customerPortId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channel_change_basic_group = channelChangeBasicGroup.setStatus('current') channel_change_cac_group = object_group((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 2)).setObjects(('CHANNEL-CHANGE-MIB', 'maxMulticastTraffic')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channel_change_cac_group = channelChangeCACGroup.setStatus('current') channel_change_basic_ca_group = object_group((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 3)).setObjects(('CHANNEL-CHANGE-MIB', 'maxMulticastStreams'), ('CHANNEL-CHANGE-MIB', 'entitlementIndex'), ('CHANNEL-CHANGE-MIB', 'untimedEntitlements1'), ('CHANNEL-CHANGE-MIB', 'grantEntitlement'), ('CHANNEL-CHANGE-MIB', 'revokeEntitlement'), ('CHANNEL-CHANGE-MIB', 'rejectedOnuId'), ('CHANNEL-CHANGE-MIB', 'rejectedCustomerPortId'), ('CHANNEL-CHANGE-MIB', 'caFailedNotificationStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channel_change_basic_ca_group = channelChangeBasicCAGroup.setStatus('current') channel_change_ca4095_channels_group = object_group((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 4)).setObjects(('CHANNEL-CHANGE-MIB', 'untimedEntitlements2')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channel_change_ca4095_channels_group = channelChangeCA4095ChannelsGroup.setStatus('current') channel_change_ca_timed_entitlements_group = object_group((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 5)).setObjects(('CHANNEL-CHANGE-MIB', 'timedEntitlementId'), ('CHANNEL-CHANGE-MIB', 'timedEntitlementChannelId'), ('CHANNEL-CHANGE-MIB', 'startTime'), ('CHANNEL-CHANGE-MIB', 'stopTime'), ('CHANNEL-CHANGE-MIB', 'entitlementRowStatus'), ('CHANNEL-CHANGE-MIB', 'custTimedEntitlementId'), ('CHANNEL-CHANGE-MIB', 'custTimedEntitlementRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channel_change_ca_timed_entitlements_group = channelChangeCATimedEntitlementsGroup.setStatus('current') channel_change_ca_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 1, 1, 1, 3, 2, 6)).setObjects(('CHANNEL-CHANGE-MIB', 'channelChangeCAFailed')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): channel_change_ca_notifications_group = channelChangeCANotificationsGroup.setStatus('current') mibBuilder.exportSymbols('CHANNEL-CHANGE-MIB', networkPortId=networkPortId, timedEntitlementId=timedEntitlementId, customerTable=customerTable, channelChangeBasicCAGroup=channelChangeBasicCAGroup, channelAdminStatus=channelAdminStatus, channelChangeMibCompliance=channelChangeMibCompliance, customerRowStatus=customerRowStatus, customerTimedEntitlementEntry=customerTimedEntitlementEntry, customerPortId=customerPortId, timedEntitlementTable=timedEntitlementTable, channelRowStatus=channelRowStatus, channelEntry=channelEntry, channelChangeMibGroups=channelChangeMibGroups, entitlementIndex=entitlementIndex, customerAdminStatus=customerAdminStatus, untimedEntitlements2=untimedEntitlements2, grantEntitlement=grantEntitlement, channelChangeMibNotificationPrefix=channelChangeMibNotificationPrefix, fsVdsl=fsVdsl, customerTimedEntitlementTable=customerTimedEntitlementTable, channelId=channelId, timedEntitlementEntry=timedEntitlementEntry, channelTable=channelTable, channelChangeMibConformance=channelChangeMibConformance, maxMulticastTraffic=maxMulticastTraffic, channelChangeMibCompliances=channelChangeMibCompliances, channelChangeCA4095ChannelsGroup=channelChangeCA4095ChannelsGroup, stopTime=stopTime, channelChangeBasicGroup=channelChangeBasicGroup, channelChangeCAFailed=channelChangeCAFailed, channelChangeCACGroup=channelChangeCACGroup, custTimedEntitlementId=custTimedEntitlementId, maxMulticastStreams=maxMulticastStreams, channelChangeMib=channelChangeMib, vci=vci, untimedEntitlements1=untimedEntitlements1, channelChangeMibObjects=channelChangeMibObjects, timedEntitlementChannelId=timedEntitlementChannelId, rejectedCustomerPortId=rejectedCustomerPortId, caFailedNotificationStatus=caFailedNotificationStatus, onuId=onuId, custTimedEntitlementRowStatus=custTimedEntitlementRowStatus, startTime=startTime, vpi=vpi, channelChangeCATimedEntitlementsGroup=channelChangeCATimedEntitlementsGroup, PYSNMP_MODULE_ID=channelChangeMib, channelChangeMibNotifications=channelChangeMibNotifications, entitlementRowStatus=entitlementRowStatus, rejectedOnuId=rejectedOnuId, fsan=fsan, custOnuId=custOnuId, customerEntry=customerEntry, channelChangeCANotificationsGroup=channelChangeCANotificationsGroup, custPortId=custPortId, revokeEntitlement=revokeEntitlement)
x1 = 2 y1 = 2 x2 = 6 y2 = 10 m2 = (y2 - y1) / (x2 - x1) print(f'Slope = {m2:.2f}') # 9
x1 = 2 y1 = 2 x2 = 6 y2 = 10 m2 = (y2 - y1) / (x2 - x1) print(f'Slope = {m2:.2f}')
def read_delimited_lines(file_handle, delimiter='|', omit_delimiter=False, read_size=4): delimited_line = "" data = file_handle.read(read_size) while data: delimiter_index = data.find(delimiter) if delimiter_index < 0: delimited_line += data else: delimited_line += data[:delimiter_index if omit_delimiter else delimiter_index + 1] yield delimited_line.strip() delimited_line = data[delimiter_index + 1:] data = file_handle.read(read_size) if len(delimited_line) > 0: yield delimited_line with open("lorem.txt") as colors_file: for line in read_delimited_lines(colors_file, "."): print(line)
def read_delimited_lines(file_handle, delimiter='|', omit_delimiter=False, read_size=4): delimited_line = '' data = file_handle.read(read_size) while data: delimiter_index = data.find(delimiter) if delimiter_index < 0: delimited_line += data else: delimited_line += data[:delimiter_index if omit_delimiter else delimiter_index + 1] yield delimited_line.strip() delimited_line = data[delimiter_index + 1:] data = file_handle.read(read_size) if len(delimited_line) > 0: yield delimited_line with open('lorem.txt') as colors_file: for line in read_delimited_lines(colors_file, '.'): print(line)
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations ######################################################################### ## Customize your APP title, subtitle and menus here ######################################################################### response.logo = A(B(SPAN('M'),'eta',SPAN('B'),'ase'),XML('&trade;&nbsp;'), _class="navbar-brand",_href=URL('default', 'index'), _id="web2py-logo") response.title = request.application.replace('_',' ').title() response.subtitle = '' ## read more at http://dev.w3.org/html5/markup/meta.name.html response.meta.author = 'Ryan Marquardt <[email protected]>' response.meta.description = 'a cool new app' response.meta.keywords = 'web2py, python, framework' response.meta.generator = 'Web2py Web Framework' ## your http://google.com/analytics id response.google_analytics_id = None ######################################################################### ## this is the main application menu add/remove items as required ######################################################################### response.menu = [ (T('Home'), False, URL('default', 'index'), []), (T('Setup'), False, URL('setup', 'index'), []), ] DEVELOPMENT_MENU = (auth.user and (auth.user.id == 1)) ######################################################################### ## provide shortcuts for development. remove in production ######################################################################### def PAedit(path): return ('https://www.pythonanywhere.com/user/integralws/files' '/home/integralws/glean/applications/metabase/%s?edit') % path def _(): # shortcuts app = request.application ctr = request.controller # useful links to internal and external resources response.menu += [ (T('This App'), False, '#', [ (T('Design'), False, URL('admin', 'default', 'design/%s' % app)), LI(_class="divider"), (T('Controller'), False, URL( 'admin', 'default', 'edit/%s/controllers/%s.py' % (app, ctr))), (T('View'), False, URL( 'admin', 'default', 'edit/%s/views/%s' % (app, response.view))), (T('DB Model'), False, URL( 'admin', 'default', 'edit/%s/models/db.py' % app)), (T('Menu Model'), False, URL( 'admin', 'default', 'edit/%s/models/menu.py' % app)), (T('Config.ini'), False, URL( 'admin', 'default', 'edit/%s/private/appconfig.ini' % app)), (T('Layout'), False, URL( 'admin', 'default', 'edit/%s/views/layout.html' % app)), (T('Stylesheet'), False, URL( 'admin', 'default', 'edit/%s/static/css/web2py-bootstrap3.css' % app)), (T('Database'), False, URL(app, 'appadmin', 'index')), (T('Errors'), False, URL( 'admin', 'default', 'errors/' + app)), (T('About'), False, URL( 'admin', 'default', 'about/' + app)), ]), ] if DEVELOPMENT_MENU: _() if "auth" in locals(): auth.wikimenu()
response.logo = a(b(span('M'), 'eta', span('B'), 'ase'), xml('&trade;&nbsp;'), _class='navbar-brand', _href=url('default', 'index'), _id='web2py-logo') response.title = request.application.replace('_', ' ').title() response.subtitle = '' response.meta.author = 'Ryan Marquardt <[email protected]>' response.meta.description = 'a cool new app' response.meta.keywords = 'web2py, python, framework' response.meta.generator = 'Web2py Web Framework' response.google_analytics_id = None response.menu = [(t('Home'), False, url('default', 'index'), []), (t('Setup'), False, url('setup', 'index'), [])] development_menu = auth.user and auth.user.id == 1 def p_aedit(path): return 'https://www.pythonanywhere.com/user/integralws/files/home/integralws/glean/applications/metabase/%s?edit' % path def _(): app = request.application ctr = request.controller response.menu += [(t('This App'), False, '#', [(t('Design'), False, url('admin', 'default', 'design/%s' % app)), li(_class='divider'), (t('Controller'), False, url('admin', 'default', 'edit/%s/controllers/%s.py' % (app, ctr))), (t('View'), False, url('admin', 'default', 'edit/%s/views/%s' % (app, response.view))), (t('DB Model'), False, url('admin', 'default', 'edit/%s/models/db.py' % app)), (t('Menu Model'), False, url('admin', 'default', 'edit/%s/models/menu.py' % app)), (t('Config.ini'), False, url('admin', 'default', 'edit/%s/private/appconfig.ini' % app)), (t('Layout'), False, url('admin', 'default', 'edit/%s/views/layout.html' % app)), (t('Stylesheet'), False, url('admin', 'default', 'edit/%s/static/css/web2py-bootstrap3.css' % app)), (t('Database'), False, url(app, 'appadmin', 'index')), (t('Errors'), False, url('admin', 'default', 'errors/' + app)), (t('About'), False, url('admin', 'default', 'about/' + app))])] if DEVELOPMENT_MENU: _() if 'auth' in locals(): auth.wikimenu()
def cluster_it(common_pos,no_sup,low_sup): topla=[] for x in common_pos: if x in no_sup+low_sup: continue else: topla.append(x) topla.sort() cluster={} r_cluster={} c_num=1 cluster['c_'+str(c_num)]=[] for i in range (0,len(topla)-1): pos1=topla[i] pos2=topla[i+1] Cd=abs(pos2 - pos1) if Cd <= 9: cluster['c_'+str(c_num)].append((pos1,pos2)) if Cd > 9: c_num = c_num+1 cluster['c_'+str(c_num)]=[] c_num=0 for keys in cluster: if len(cluster[keys]) >= 6: #this 6 actually means 7 cause counting in touples. remember to add +1 c_num=c_num+1 #print(c_num) r_cluster['c_'+str(c_num)]=cluster[keys] #r_cluster['c_'+str(c_num)].append(cluster[keys]) else: continue return cluster,r_cluster def CnandCs(r_cluster,kmer): print('The number of clusters found: {}\nCmsp; is the number of positions that make up a cluster while Cs is the cluster size'.format(len(r_cluster))) for r in r_cluster: Cs=r_cluster[r][-1][-1] - r_cluster[r][0][0] + kmer print ('Cmsp of cluster {} is {} and Cs is'.format(r,len(r_cluster[r])+1),Cs) def hotspots(r_cluster): a=list(r_cluster.keys()) hots={} c_num=1 hots['hotspot_'+str(c_num)]=[] for i in range(0,len(a)-1): pos1=r_cluster[a[i]][-1][-1] pos2=r_cluster[a[i+1]][0][0] Hd=pos2 - pos1 if Hd < 20: hots['hotspot_'+str(c_num)].append((a[i],a[i+1])) if Hd > 20: c_num=c_num+1 hots['hotspot_'+str(c_num)]=[] c_num=0 r_hots={} for keys in hots: if len(hots[keys]) > 0: c_num=c_num+1 #print(c_num) r_hots['hotspot_'+str(c_num)]=hots[keys] #r_cluster['c_'+str(c_num)].append(cluster[keys]) else: continue return hots,r_hots
def cluster_it(common_pos, no_sup, low_sup): topla = [] for x in common_pos: if x in no_sup + low_sup: continue else: topla.append(x) topla.sort() cluster = {} r_cluster = {} c_num = 1 cluster['c_' + str(c_num)] = [] for i in range(0, len(topla) - 1): pos1 = topla[i] pos2 = topla[i + 1] cd = abs(pos2 - pos1) if Cd <= 9: cluster['c_' + str(c_num)].append((pos1, pos2)) if Cd > 9: c_num = c_num + 1 cluster['c_' + str(c_num)] = [] c_num = 0 for keys in cluster: if len(cluster[keys]) >= 6: c_num = c_num + 1 r_cluster['c_' + str(c_num)] = cluster[keys] else: continue return (cluster, r_cluster) def cnand_cs(r_cluster, kmer): print('The number of clusters found: {}\nCmsp; is the number of positions that make up a cluster while Cs is the cluster size'.format(len(r_cluster))) for r in r_cluster: cs = r_cluster[r][-1][-1] - r_cluster[r][0][0] + kmer print('Cmsp of cluster {} is {} and Cs is'.format(r, len(r_cluster[r]) + 1), Cs) def hotspots(r_cluster): a = list(r_cluster.keys()) hots = {} c_num = 1 hots['hotspot_' + str(c_num)] = [] for i in range(0, len(a) - 1): pos1 = r_cluster[a[i]][-1][-1] pos2 = r_cluster[a[i + 1]][0][0] hd = pos2 - pos1 if Hd < 20: hots['hotspot_' + str(c_num)].append((a[i], a[i + 1])) if Hd > 20: c_num = c_num + 1 hots['hotspot_' + str(c_num)] = [] c_num = 0 r_hots = {} for keys in hots: if len(hots[keys]) > 0: c_num = c_num + 1 r_hots['hotspot_' + str(c_num)] = hots[keys] else: continue return (hots, r_hots)
# # PySNMP MIB module HIST-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HIST-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:31:14 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, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") iso, TimeTicks, Gauge32, enterprises, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Unsigned32, Integer32, Counter32, ObjectIdentity, NotificationType, MibIdentifier, experimental, IpAddress, Counter64, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "TimeTicks", "Gauge32", "enterprises", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Unsigned32", "Integer32", "Counter32", "ObjectIdentity", "NotificationType", "MibIdentifier", "experimental", "IpAddress", "Counter64", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") usr = MibIdentifier((1, 3, 6, 1, 4, 1, 429)) nas = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1)) mdmHist = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 30)) mdmNacHistCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 30, 1), ) if mibBuilder.loadTexts: mdmNacHistCurrentTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentTable.setDescription('') mdmNacHistCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1), ).setIndexNames((0, "HIST-MIB", "mdmNacHistCurrentIndex")) if mibBuilder.loadTexts: mdmNacHistCurrentEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentEntry.setDescription('Objects that define the history stats for NAC current interval.') mdmNacHistCurrentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistCurrentIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentIndex.setDescription('Index in to the Current NAC History table. This index contains a unique value for each card in the chassis.') mdmNacHistCurrentStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistCurrentStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentStartTime.setDescription('Specifies current interval start time in GMT.') mdmNacHistCurrentMgmtBusFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistCurrentMgmtBusFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentMgmtBusFailures.setDescription('Specifies number of Management Bus Failures occurred in the NAC during current interval so for.') mdmNacHistCurrentWatchdogTimouts = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistCurrentWatchdogTimouts.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentWatchdogTimouts.setDescription('Specifies number of Watchdog Timeouts occurred in the NAC during current interval so for.') mdmNacHistIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 30, 2), ) if mibBuilder.loadTexts: mdmNacHistIntervalTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalTable.setDescription('') mdmNacHistIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1), ).setIndexNames((0, "HIST-MIB", "mdmNacHistIntervalIndex"), (0, "HIST-MIB", "mdmNacHistIntervalNumber")) if mibBuilder.loadTexts: mdmNacHistIntervalEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalEntry.setDescription('Objects that define history stats for NAC intervals.') mdmNacHistIntervalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistIntervalIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalIndex.setDescription('Index in to NAC Interval History table. This index contains a unique value for each card in the chassis.') mdmNacHistIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 104))).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistIntervalNumber.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalNumber.setDescription('This object is the index for one of 104 possibel history intervals for this NAC.') mdmNacHistIntervalStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistIntervalStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalStartTime.setDescription('Specifies interval start time in GMT.') mdmNacHistIntervalMgmtBusFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistIntervalMgmtBusFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalMgmtBusFailures.setDescription('Specifies number of Management Bus Failures occurred in the NAC during the interval.') mdmNacHistIntervalWatchdogTimouts = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmNacHistIntervalWatchdogTimouts.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalWatchdogTimouts.setDescription('Specifies number of Watchdog Timeouts occurred in the NAC during the interval.') mdmHistCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 30, 3), ) if mibBuilder.loadTexts: mdmHistCurrentTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentTable.setDescription('') mdmHistCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1), ).setIndexNames((0, "HIST-MIB", "mdmHistCurrentIndex")) if mibBuilder.loadTexts: mdmHistCurrentEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentEntry.setDescription('Objects that define the history stats for modem current interval.') mdmHistCurrentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentIndex.setDescription('Index in to the Current modem history table. This index contains the unique value associated with the modem as defined in the chassis MIB entity table.') mdmHistCurrentStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentStartTime.setDescription('Specifies current interval start time in GMT.') mdmHistCurrentInConnectEstabs = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentInConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectEstabs.setDescription('Specifies number of incoming calls established during current interval so for.') mdmHistCurrentInConnectFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentInConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectFailures.setDescription('Specifies number of incoming call failures during current interval so for.') mdmHistCurrentInConnectTerms = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentInConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectTerms.setDescription('Specifies number of incoming calls terminated during current interval so for.') mdmHistCurrentInConnectTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentInConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectTime.setDescription('Specifies length of all incoming calls during current interval so for.') mdmHistCurrentInTotalBytesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesRx.setDescription('Specifies number of bytes received through incoming calls during current interval so for.') mdmHistCurrentInTotalBytesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesTx.setDescription('Specifies number of bytes sent out through incoming calls during current interval so for.') mdmHistCurrentOutConnectEstabs = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentOutConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectEstabs.setDescription('Specifies number of outgoing calls established during current interval so for.') mdmHistCurrentOutConnectFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentOutConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectFailures.setDescription('Specifies number of outgoing call failures during current interval so for.') mdmHistCurrentOutConnectTerms = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentOutConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectTerms.setDescription('Specifies number of outgoing calls terminated during current interval so for.') mdmHistCurrentOutConnectTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 12), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentOutConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectTime.setDescription('Specifies length of all outgoing calls during current interval so for.') mdmHistCurrentOutTotalBytesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesRx.setDescription('Specifies number of bytes received through outgoing calls during current interval so for.') mdmHistCurrentOutTotalBytesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 14), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesTx.setDescription('Specifies number of bytes sent out through outgoing calls during current interval so for.') mdmHistCurrentBlers = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 15), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentBlers.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentBlers.setDescription('Specifies number of block errors received during current interval so for.') mdmHistCurrentFallBacks = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 16), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistCurrentFallBacks.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentFallBacks.setDescription('Specifies number of link speed fallbacks occured during current interval so for.') mdmHistIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 30, 4), ) if mibBuilder.loadTexts: mdmHistIntervalTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalTable.setDescription('') mdmHistIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1), ).setIndexNames((0, "HIST-MIB", "mdmHistIntervalIndex"), (0, "HIST-MIB", "mdmHistIntervalNumber")) if mibBuilder.loadTexts: mdmHistIntervalEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalEntry.setDescription('Objects that define history stats for modem intervals.') mdmHistIntervalIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalIndex.setDescription('Index in to the interval History table. This index contains the unique value associated with the modem as defined in the chassis MIB entity table.') mdmHistIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 104))).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalNumber.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalNumber.setDescription('This object is the index for one of 104 possibel history intervals for this modem.') mdmHistIntervalStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalStartTime.setDescription('Specifies interval start time in GMT.') mdmHistIntervalInConnectEstabs = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalInConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectEstabs.setDescription('Specifies number of incoming calls established during the interval.') mdmHistIntervalInConnectFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalInConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectFailures.setDescription('Specifies number of incoming call failures during the interval.') mdmHistIntervalInConnectTerms = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalInConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectTerms.setDescription('Specifies number of incoming calls terminated during the interval.') mdmHistIntervalInConnectTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalInConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectTime.setDescription('Specifies length of all incoming calls during the intervals.') mdmHistIntervalInTotalBytesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesRx.setDescription('Specifies number of bytes received through incoming calls during the interval.') mdmHistIntervalInTotalBytesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesTx.setDescription('Specifies number of bytes sent out through incoming calls during the interval.') mdmHistIntervalOutConnectEstabs = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalOutConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectEstabs.setDescription('Specifies number of outgoing calls established during the interval.') mdmHistIntervalOutConnectFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalOutConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectFailures.setDescription('Specifies number of outgoing call failures during the interval.') mdmHistIntervalOutConnectTerms = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 12), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalOutConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectTerms.setDescription('Specifies number of outgoing calls terminated during the interval.') mdmHistIntervalOutConnectTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalOutConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectTime.setDescription('Specifies length of all outgoing calls during the interval.') mdmHistIntervalOutTotalBytesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 14), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesRx.setDescription('Specifies number of bytes received through outgoing calls during the interval.') mdmHistIntervalOutTotalBytesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 15), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesTx.setDescription('Specifies number of bytes sent out through outgoing calls during the interval.') mdmHistIntervalBlers = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 16), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalBlers.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalBlers.setDescription('Specifies number of block errors received during the interval.') mdmHistIntervalFallBacks = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 17), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mdmHistIntervalFallBacks.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalFallBacks.setDescription('Specifies number of link speed fallbacks occured during the interval.') mibBuilder.exportSymbols("HIST-MIB", mdmHistCurrentOutTotalBytesTx=mdmHistCurrentOutTotalBytesTx, mdmHistCurrentOutConnectEstabs=mdmHistCurrentOutConnectEstabs, mdmHistIntervalInConnectFailures=mdmHistIntervalInConnectFailures, mdmHistIntervalOutTotalBytesRx=mdmHistIntervalOutTotalBytesRx, mdmHistCurrentOutTotalBytesRx=mdmHistCurrentOutTotalBytesRx, mdmNacHistCurrentWatchdogTimouts=mdmNacHistCurrentWatchdogTimouts, mdmHistCurrentBlers=mdmHistCurrentBlers, mdmHistIntervalStartTime=mdmHistIntervalStartTime, mdmHistIntervalTable=mdmHistIntervalTable, mdmHistCurrentInConnectTime=mdmHistCurrentInConnectTime, mdmHistCurrentOutConnectTime=mdmHistCurrentOutConnectTime, mdmHistIntervalInTotalBytesTx=mdmHistIntervalInTotalBytesTx, mdmHistIntervalBlers=mdmHistIntervalBlers, mdmHistCurrentInConnectEstabs=mdmHistCurrentInConnectEstabs, mdmHistIntervalOutTotalBytesTx=mdmHistIntervalOutTotalBytesTx, mdmHistIntervalInConnectTerms=mdmHistIntervalInConnectTerms, mdmHistCurrentTable=mdmHistCurrentTable, mdmHistCurrentEntry=mdmHistCurrentEntry, mdmNacHistIntervalMgmtBusFailures=mdmNacHistIntervalMgmtBusFailures, mdmHistCurrentOutConnectFailures=mdmHistCurrentOutConnectFailures, nas=nas, mdmHistCurrentInTotalBytesRx=mdmHistCurrentInTotalBytesRx, mdmNacHistIntervalWatchdogTimouts=mdmNacHistIntervalWatchdogTimouts, mdmHistCurrentInConnectFailures=mdmHistCurrentInConnectFailures, mdmNacHistCurrentIndex=mdmNacHistCurrentIndex, mdmHistIntervalNumber=mdmHistIntervalNumber, mdmHistCurrentStartTime=mdmHistCurrentStartTime, mdmHistIntervalOutConnectEstabs=mdmHistIntervalOutConnectEstabs, mdmNacHistCurrentEntry=mdmNacHistCurrentEntry, mdmNacHistIntervalTable=mdmNacHistIntervalTable, mdmHistIntervalOutConnectTime=mdmHistIntervalOutConnectTime, mdmNacHistCurrentStartTime=mdmNacHistCurrentStartTime, mdmHistCurrentFallBacks=mdmHistCurrentFallBacks, mdmHistIntervalFallBacks=mdmHistIntervalFallBacks, mdmNacHistCurrentTable=mdmNacHistCurrentTable, mdmHistCurrentOutConnectTerms=mdmHistCurrentOutConnectTerms, mdmHistCurrentIndex=mdmHistCurrentIndex, mdmHistCurrentInConnectTerms=mdmHistCurrentInConnectTerms, mdmHistCurrentInTotalBytesTx=mdmHistCurrentInTotalBytesTx, mdmHistIntervalInConnectTime=mdmHistIntervalInConnectTime, mdmHistIntervalIndex=mdmHistIntervalIndex, mdmNacHistCurrentMgmtBusFailures=mdmNacHistCurrentMgmtBusFailures, usr=usr, mdmNacHistIntervalNumber=mdmNacHistIntervalNumber, mdmNacHistIntervalStartTime=mdmNacHistIntervalStartTime, mdmHistIntervalInConnectEstabs=mdmHistIntervalInConnectEstabs, mdmHistIntervalInTotalBytesRx=mdmHistIntervalInTotalBytesRx, mdmHistIntervalOutConnectFailures=mdmHistIntervalOutConnectFailures, mdmHist=mdmHist, mdmHistIntervalOutConnectTerms=mdmHistIntervalOutConnectTerms, mdmHistIntervalEntry=mdmHistIntervalEntry, mdmNacHistIntervalEntry=mdmNacHistIntervalEntry, mdmNacHistIntervalIndex=mdmNacHistIntervalIndex)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_intersection, constraints_union, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (iso, time_ticks, gauge32, enterprises, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, unsigned32, integer32, counter32, object_identity, notification_type, mib_identifier, experimental, ip_address, counter64, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'TimeTicks', 'Gauge32', 'enterprises', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Unsigned32', 'Integer32', 'Counter32', 'ObjectIdentity', 'NotificationType', 'MibIdentifier', 'experimental', 'IpAddress', 'Counter64', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') usr = mib_identifier((1, 3, 6, 1, 4, 1, 429)) nas = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1)) mdm_hist = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1, 30)) mdm_nac_hist_current_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 30, 1)) if mibBuilder.loadTexts: mdmNacHistCurrentTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentTable.setDescription('') mdm_nac_hist_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1)).setIndexNames((0, 'HIST-MIB', 'mdmNacHistCurrentIndex')) if mibBuilder.loadTexts: mdmNacHistCurrentEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentEntry.setDescription('Objects that define the history stats for NAC current interval.') mdm_nac_hist_current_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistCurrentIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentIndex.setDescription('Index in to the Current NAC History table. This index contains a unique value for each card in the chassis.') mdm_nac_hist_current_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistCurrentStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentStartTime.setDescription('Specifies current interval start time in GMT.') mdm_nac_hist_current_mgmt_bus_failures = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistCurrentMgmtBusFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentMgmtBusFailures.setDescription('Specifies number of Management Bus Failures occurred in the NAC during current interval so for.') mdm_nac_hist_current_watchdog_timouts = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 1, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistCurrentWatchdogTimouts.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistCurrentWatchdogTimouts.setDescription('Specifies number of Watchdog Timeouts occurred in the NAC during current interval so for.') mdm_nac_hist_interval_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 30, 2)) if mibBuilder.loadTexts: mdmNacHistIntervalTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalTable.setDescription('') mdm_nac_hist_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1)).setIndexNames((0, 'HIST-MIB', 'mdmNacHistIntervalIndex'), (0, 'HIST-MIB', 'mdmNacHistIntervalNumber')) if mibBuilder.loadTexts: mdmNacHistIntervalEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalEntry.setDescription('Objects that define history stats for NAC intervals.') mdm_nac_hist_interval_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistIntervalIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalIndex.setDescription('Index in to NAC Interval History table. This index contains a unique value for each card in the chassis.') mdm_nac_hist_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 104))).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistIntervalNumber.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalNumber.setDescription('This object is the index for one of 104 possibel history intervals for this NAC.') mdm_nac_hist_interval_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistIntervalStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalStartTime.setDescription('Specifies interval start time in GMT.') mdm_nac_hist_interval_mgmt_bus_failures = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistIntervalMgmtBusFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalMgmtBusFailures.setDescription('Specifies number of Management Bus Failures occurred in the NAC during the interval.') mdm_nac_hist_interval_watchdog_timouts = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 2, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmNacHistIntervalWatchdogTimouts.setStatus('mandatory') if mibBuilder.loadTexts: mdmNacHistIntervalWatchdogTimouts.setDescription('Specifies number of Watchdog Timeouts occurred in the NAC during the interval.') mdm_hist_current_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 30, 3)) if mibBuilder.loadTexts: mdmHistCurrentTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentTable.setDescription('') mdm_hist_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1)).setIndexNames((0, 'HIST-MIB', 'mdmHistCurrentIndex')) if mibBuilder.loadTexts: mdmHistCurrentEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentEntry.setDescription('Objects that define the history stats for modem current interval.') mdm_hist_current_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentIndex.setDescription('Index in to the Current modem history table. This index contains the unique value associated with the modem as defined in the chassis MIB entity table.') mdm_hist_current_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentStartTime.setDescription('Specifies current interval start time in GMT.') mdm_hist_current_in_connect_estabs = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentInConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectEstabs.setDescription('Specifies number of incoming calls established during current interval so for.') mdm_hist_current_in_connect_failures = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentInConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectFailures.setDescription('Specifies number of incoming call failures during current interval so for.') mdm_hist_current_in_connect_terms = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentInConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectTerms.setDescription('Specifies number of incoming calls terminated during current interval so for.') mdm_hist_current_in_connect_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentInConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInConnectTime.setDescription('Specifies length of all incoming calls during current interval so for.') mdm_hist_current_in_total_bytes_rx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesRx.setDescription('Specifies number of bytes received through incoming calls during current interval so for.') mdm_hist_current_in_total_bytes_tx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentInTotalBytesTx.setDescription('Specifies number of bytes sent out through incoming calls during current interval so for.') mdm_hist_current_out_connect_estabs = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentOutConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectEstabs.setDescription('Specifies number of outgoing calls established during current interval so for.') mdm_hist_current_out_connect_failures = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 10), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentOutConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectFailures.setDescription('Specifies number of outgoing call failures during current interval so for.') mdm_hist_current_out_connect_terms = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 11), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentOutConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectTerms.setDescription('Specifies number of outgoing calls terminated during current interval so for.') mdm_hist_current_out_connect_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 12), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentOutConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutConnectTime.setDescription('Specifies length of all outgoing calls during current interval so for.') mdm_hist_current_out_total_bytes_rx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 13), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesRx.setDescription('Specifies number of bytes received through outgoing calls during current interval so for.') mdm_hist_current_out_total_bytes_tx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 14), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentOutTotalBytesTx.setDescription('Specifies number of bytes sent out through outgoing calls during current interval so for.') mdm_hist_current_blers = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 15), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentBlers.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentBlers.setDescription('Specifies number of block errors received during current interval so for.') mdm_hist_current_fall_backs = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 3, 1, 16), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistCurrentFallBacks.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistCurrentFallBacks.setDescription('Specifies number of link speed fallbacks occured during current interval so for.') mdm_hist_interval_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 30, 4)) if mibBuilder.loadTexts: mdmHistIntervalTable.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalTable.setDescription('') mdm_hist_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1)).setIndexNames((0, 'HIST-MIB', 'mdmHistIntervalIndex'), (0, 'HIST-MIB', 'mdmHistIntervalNumber')) if mibBuilder.loadTexts: mdmHistIntervalEntry.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalEntry.setDescription('Objects that define history stats for modem intervals.') mdm_hist_interval_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalIndex.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalIndex.setDescription('Index in to the interval History table. This index contains the unique value associated with the modem as defined in the chassis MIB entity table.') mdm_hist_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 104))).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalNumber.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalNumber.setDescription('This object is the index for one of 104 possibel history intervals for this modem.') mdm_hist_interval_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalStartTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalStartTime.setDescription('Specifies interval start time in GMT.') mdm_hist_interval_in_connect_estabs = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalInConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectEstabs.setDescription('Specifies number of incoming calls established during the interval.') mdm_hist_interval_in_connect_failures = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalInConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectFailures.setDescription('Specifies number of incoming call failures during the interval.') mdm_hist_interval_in_connect_terms = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalInConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectTerms.setDescription('Specifies number of incoming calls terminated during the interval.') mdm_hist_interval_in_connect_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalInConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInConnectTime.setDescription('Specifies length of all incoming calls during the intervals.') mdm_hist_interval_in_total_bytes_rx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesRx.setDescription('Specifies number of bytes received through incoming calls during the interval.') mdm_hist_interval_in_total_bytes_tx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalInTotalBytesTx.setDescription('Specifies number of bytes sent out through incoming calls during the interval.') mdm_hist_interval_out_connect_estabs = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 10), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalOutConnectEstabs.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectEstabs.setDescription('Specifies number of outgoing calls established during the interval.') mdm_hist_interval_out_connect_failures = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 11), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalOutConnectFailures.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectFailures.setDescription('Specifies number of outgoing call failures during the interval.') mdm_hist_interval_out_connect_terms = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 12), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalOutConnectTerms.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectTerms.setDescription('Specifies number of outgoing calls terminated during the interval.') mdm_hist_interval_out_connect_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 13), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalOutConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutConnectTime.setDescription('Specifies length of all outgoing calls during the interval.') mdm_hist_interval_out_total_bytes_rx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 14), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesRx.setDescription('Specifies number of bytes received through outgoing calls during the interval.') mdm_hist_interval_out_total_bytes_tx = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 15), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesTx.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalOutTotalBytesTx.setDescription('Specifies number of bytes sent out through outgoing calls during the interval.') mdm_hist_interval_blers = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 16), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalBlers.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalBlers.setDescription('Specifies number of block errors received during the interval.') mdm_hist_interval_fall_backs = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 30, 4, 1, 17), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mdmHistIntervalFallBacks.setStatus('mandatory') if mibBuilder.loadTexts: mdmHistIntervalFallBacks.setDescription('Specifies number of link speed fallbacks occured during the interval.') mibBuilder.exportSymbols('HIST-MIB', mdmHistCurrentOutTotalBytesTx=mdmHistCurrentOutTotalBytesTx, mdmHistCurrentOutConnectEstabs=mdmHistCurrentOutConnectEstabs, mdmHistIntervalInConnectFailures=mdmHistIntervalInConnectFailures, mdmHistIntervalOutTotalBytesRx=mdmHistIntervalOutTotalBytesRx, mdmHistCurrentOutTotalBytesRx=mdmHistCurrentOutTotalBytesRx, mdmNacHistCurrentWatchdogTimouts=mdmNacHistCurrentWatchdogTimouts, mdmHistCurrentBlers=mdmHistCurrentBlers, mdmHistIntervalStartTime=mdmHistIntervalStartTime, mdmHistIntervalTable=mdmHistIntervalTable, mdmHistCurrentInConnectTime=mdmHistCurrentInConnectTime, mdmHistCurrentOutConnectTime=mdmHistCurrentOutConnectTime, mdmHistIntervalInTotalBytesTx=mdmHistIntervalInTotalBytesTx, mdmHistIntervalBlers=mdmHistIntervalBlers, mdmHistCurrentInConnectEstabs=mdmHistCurrentInConnectEstabs, mdmHistIntervalOutTotalBytesTx=mdmHistIntervalOutTotalBytesTx, mdmHistIntervalInConnectTerms=mdmHistIntervalInConnectTerms, mdmHistCurrentTable=mdmHistCurrentTable, mdmHistCurrentEntry=mdmHistCurrentEntry, mdmNacHistIntervalMgmtBusFailures=mdmNacHistIntervalMgmtBusFailures, mdmHistCurrentOutConnectFailures=mdmHistCurrentOutConnectFailures, nas=nas, mdmHistCurrentInTotalBytesRx=mdmHistCurrentInTotalBytesRx, mdmNacHistIntervalWatchdogTimouts=mdmNacHistIntervalWatchdogTimouts, mdmHistCurrentInConnectFailures=mdmHistCurrentInConnectFailures, mdmNacHistCurrentIndex=mdmNacHistCurrentIndex, mdmHistIntervalNumber=mdmHistIntervalNumber, mdmHistCurrentStartTime=mdmHistCurrentStartTime, mdmHistIntervalOutConnectEstabs=mdmHistIntervalOutConnectEstabs, mdmNacHistCurrentEntry=mdmNacHistCurrentEntry, mdmNacHistIntervalTable=mdmNacHistIntervalTable, mdmHistIntervalOutConnectTime=mdmHistIntervalOutConnectTime, mdmNacHistCurrentStartTime=mdmNacHistCurrentStartTime, mdmHistCurrentFallBacks=mdmHistCurrentFallBacks, mdmHistIntervalFallBacks=mdmHistIntervalFallBacks, mdmNacHistCurrentTable=mdmNacHistCurrentTable, mdmHistCurrentOutConnectTerms=mdmHistCurrentOutConnectTerms, mdmHistCurrentIndex=mdmHistCurrentIndex, mdmHistCurrentInConnectTerms=mdmHistCurrentInConnectTerms, mdmHistCurrentInTotalBytesTx=mdmHistCurrentInTotalBytesTx, mdmHistIntervalInConnectTime=mdmHistIntervalInConnectTime, mdmHistIntervalIndex=mdmHistIntervalIndex, mdmNacHistCurrentMgmtBusFailures=mdmNacHistCurrentMgmtBusFailures, usr=usr, mdmNacHistIntervalNumber=mdmNacHistIntervalNumber, mdmNacHistIntervalStartTime=mdmNacHistIntervalStartTime, mdmHistIntervalInConnectEstabs=mdmHistIntervalInConnectEstabs, mdmHistIntervalInTotalBytesRx=mdmHistIntervalInTotalBytesRx, mdmHistIntervalOutConnectFailures=mdmHistIntervalOutConnectFailures, mdmHist=mdmHist, mdmHistIntervalOutConnectTerms=mdmHistIntervalOutConnectTerms, mdmHistIntervalEntry=mdmHistIntervalEntry, mdmNacHistIntervalEntry=mdmNacHistIntervalEntry, mdmNacHistIntervalIndex=mdmNacHistIntervalIndex)
# ** CONTROL FLOW ** # IF, ELIF AND ELSE age = 21 if age >= 21: print("You can drive alone") elif age < 16: print("You are not allow to drive") else: print("You can drive with supervision") # FOR LOOPS # Iterate a List print("\nIterate a List:") my_list = [1, 2, 3, 4, 5] for item in my_list: print(item) # Iterate a Dictionary print("\nIterate a Dictionary:") my_dict = {"One": 1, "Two": 2, "Three": 3} for key in my_dict: print(key) # Print keys of the dictionary print(my_dict[key]) # Print the values # Iterate using Methods print("\nIterate using Methods:") for values in my_dict.values(): # Replace my_dict.keys to iterate keys print(values) # Iterate a Tuple - Tuple unpacking print("\nIterate Tuples:") my_pairs = [(1, 2), (3, 4), (5, 6)] # Tuples inside a list for item1, item2 in my_pairs: print(item1) print(item2) print("---") # WHILE LOOPS print("\nWhile Loops:") i = 1 while i < 5: print("i is: {}".format(i)) i += 1 # FOR AND RANGE print("\nFor and Range:") list_range = list(range(0, 20, 2)) # range(start, stop, step) print(list_range) for i in range(0, 20, 2): print(i) # Note: Range is a generator which save ton of memory # LIST COMPREHENSION print("\nList Comprehension:") x = [1, 2, 3, 4, 5] # Use List Comprehension to return items from x squares x_square = [item**2 for item in x] print(x_square)
age = 21 if age >= 21: print('You can drive alone') elif age < 16: print('You are not allow to drive') else: print('You can drive with supervision') print('\nIterate a List:') my_list = [1, 2, 3, 4, 5] for item in my_list: print(item) print('\nIterate a Dictionary:') my_dict = {'One': 1, 'Two': 2, 'Three': 3} for key in my_dict: print(key) print(my_dict[key]) print('\nIterate using Methods:') for values in my_dict.values(): print(values) print('\nIterate Tuples:') my_pairs = [(1, 2), (3, 4), (5, 6)] for (item1, item2) in my_pairs: print(item1) print(item2) print('---') print('\nWhile Loops:') i = 1 while i < 5: print('i is: {}'.format(i)) i += 1 print('\nFor and Range:') list_range = list(range(0, 20, 2)) print(list_range) for i in range(0, 20, 2): print(i) print('\nList Comprehension:') x = [1, 2, 3, 4, 5] x_square = [item ** 2 for item in x] print(x_square)
################################### # SOLUTION ################################### def no_boring_zeros(n): j = n if j <= 0: j = -j x = list(range(0,100)) z = [] for k in x: if j/(10**k) != int(j/(10**k)): z.append((j/(10**k))*10) if n < 0: return -max(z) if n == 0: return 0 else: return max(z)
def no_boring_zeros(n): j = n if j <= 0: j = -j x = list(range(0, 100)) z = [] for k in x: if j / 10 ** k != int(j / 10 ** k): z.append(j / 10 ** k * 10) if n < 0: return -max(z) if n == 0: return 0 else: return max(z)
x = [ 100, 100, 100, 100, 100 ] y = 100 s = 50 speed = [ 1, 2, 3, 4, 5 ] def setup(): size(640, 360, P2D) def draw(): global x, y, s, speed background(127) for i in range(0, len(x)): ellipse(x[i], y + (i * s), s, s) x[i] += speed[i] if x[i] > width or x[i] < 0: speed[i] *= -1
x = [100, 100, 100, 100, 100] y = 100 s = 50 speed = [1, 2, 3, 4, 5] def setup(): size(640, 360, P2D) def draw(): global x, y, s, speed background(127) for i in range(0, len(x)): ellipse(x[i], y + i * s, s, s) x[i] += speed[i] if x[i] > width or x[i] < 0: speed[i] *= -1
def mph2fps(mph): return mph*5280/3600 def myhello(): print("Konchi_wa")
def mph2fps(mph): return mph * 5280 / 3600 def myhello(): print('Konchi_wa')
aux=0 aux2=0 while True: string=list(map(str,input().split())) if string[0]=="ABEND":break elif string[0]=='SALIDA': aux+=int(string[1]) aux2+=1 else: aux-=int(string[1]) aux2-=1 print(aux) print(aux2)
aux = 0 aux2 = 0 while True: string = list(map(str, input().split())) if string[0] == 'ABEND': break elif string[0] == 'SALIDA': aux += int(string[1]) aux2 += 1 else: aux -= int(string[1]) aux2 -= 1 print(aux) print(aux2)
class Solution: def canMakeArithmeticProgression(self, arr: List[int]) -> bool: arr.sort() l1 = arr[0:(len(arr)-1)] l2 = arr[1:] diffs = [abs(i-j) for i,j in zip(l1, l2)] if len(set(diffs)) == 1: return True return False
class Solution: def can_make_arithmetic_progression(self, arr: List[int]) -> bool: arr.sort() l1 = arr[0:len(arr) - 1] l2 = arr[1:] diffs = [abs(i - j) for (i, j) in zip(l1, l2)] if len(set(diffs)) == 1: return True return False
class LanguageUtility: LANGUAGES = { "C": ("h",), "Clojure": ("clj",), "C++": ("cpp", "hpp", "h++",), "Crystal": ("cr",), "C#": ("cs", "csharp",), "CSS": (), "D": (), "Go": ("golang",), "HTML": ("htm",), "Java": (), "JavaScript": ("ecma", "ecmascript", "es", "js"), "Julia": (), "Less": (), "Lua": (), "Nim": (), "PHP": (), "Python": ("py",), "R": (), "Ruby": ("rb",), "Rust": ("rs",), "Sass": ("scss",), "Scala": ("sc",), "SQL": (), "Swift": (), "TypeScript": ("ts",), } @staticmethod async def resolve(language_string): for language, aliases in LanguageUtility.LANGUAGES.items(): if language_string.lower() in map(lambda x: x.lower(), (language, *aliases)): return language
class Languageutility: languages = {'C': ('h',), 'Clojure': ('clj',), 'C++': ('cpp', 'hpp', 'h++'), 'Crystal': ('cr',), 'C#': ('cs', 'csharp'), 'CSS': (), 'D': (), 'Go': ('golang',), 'HTML': ('htm',), 'Java': (), 'JavaScript': ('ecma', 'ecmascript', 'es', 'js'), 'Julia': (), 'Less': (), 'Lua': (), 'Nim': (), 'PHP': (), 'Python': ('py',), 'R': (), 'Ruby': ('rb',), 'Rust': ('rs',), 'Sass': ('scss',), 'Scala': ('sc',), 'SQL': (), 'Swift': (), 'TypeScript': ('ts',)} @staticmethod async def resolve(language_string): for (language, aliases) in LanguageUtility.LANGUAGES.items(): if language_string.lower() in map(lambda x: x.lower(), (language, *aliases)): return language
# Recursion # Base Case: n < 2, return lst # Otherwise: # Divide list into 2, Sort each of them, Merge! def merge(left, right): # Compare first element # Take the smaller of the 2 # Repeat until no more elements results = [] while left and right: if left[0] < right[0]: results.append(left.pop(0)) else: results.append(right.pop(0)) results.extend(right) results.extend(left) return results def merge_sort(lst): if (len(lst) < 2): return lst mid = len(lst) // 2 left = merge_sort(lst[:mid]) # sort left right = merge_sort(lst[mid:]) # sort right return merge(left, right) print(merge_sort([2, 1, 99]))
def merge(left, right): results = [] while left and right: if left[0] < right[0]: results.append(left.pop(0)) else: results.append(right.pop(0)) results.extend(right) results.extend(left) return results def merge_sort(lst): if len(lst) < 2: return lst mid = len(lst) // 2 left = merge_sort(lst[:mid]) right = merge_sort(lst[mid:]) return merge(left, right) print(merge_sort([2, 1, 99]))
__about__ = "Maximum no in a binary tree." class Node: def __init__(self, data): self.data = data self.left = None self.right= None class Tree: @staticmethod def insert(root = None,data = None): if root is None and data is not None: root = Node(data)
__about__ = 'Maximum no in a binary tree.' class Node: def __init__(self, data): self.data = data self.left = None self.right = None class Tree: @staticmethod def insert(root=None, data=None): if root is None and data is not None: root = node(data)
E, F, C = map(int, input().split()) bottles = E + F drank = 0 while bottles >= C: # while he still has enough empty bottles to purchase more bottles -= C - 1 # used F empty bottles to buy 1 drank += 1 print(drank)
(e, f, c) = map(int, input().split()) bottles = E + F drank = 0 while bottles >= C: bottles -= C - 1 drank += 1 print(drank)
NOTES = { 'C3': 130.8, 'CS3': 138.6, 'DF3': 138.6, 'D3': 146.8, 'DS3': 155.6, 'EF3': 155.6, 'E3': 164.8, 'F3': 174.6, 'FS3': 185.0, 'GF3': 185.0, 'G3': 196.0, 'GS3': 207.7, 'AF3': 207.7, 'A3': 220.0, 'AS3': 233.1, 'BF3': 233.1, 'B3': 246.9, 'C4': 261.6, 'CS4': 277.2, 'DF4': 277.2, 'D4': 293.7, 'DS4': 311.1, 'EF4': 311.1, 'E4': 329.6, 'F4': 349.2, 'FS4': 370.0, 'GF4': 370.0, 'G4': 392.0, 'GS4': 415.3, 'AF4': 415.3, 'A4': 440.0, 'AS4': 466.2, 'BF4': 466.2, 'B4': 493.9, 'C5': 523.3, 'CS5': 554.4, 'DF5': 554.4, 'D5': 587.3, 'DS5': 622.3, 'EF5': 622.3, 'E5': 659.3, 'F5': 698.5, 'FS5': 740.0, 'GF5': 740.0, 'G5': 784.0, 'GS5': 830.6, 'AF5': 830.6, 'A5': 880.0, 'AS5': 932.3, 'BF5': 932.3, 'B5': 987.8, }
notes = {'C3': 130.8, 'CS3': 138.6, 'DF3': 138.6, 'D3': 146.8, 'DS3': 155.6, 'EF3': 155.6, 'E3': 164.8, 'F3': 174.6, 'FS3': 185.0, 'GF3': 185.0, 'G3': 196.0, 'GS3': 207.7, 'AF3': 207.7, 'A3': 220.0, 'AS3': 233.1, 'BF3': 233.1, 'B3': 246.9, 'C4': 261.6, 'CS4': 277.2, 'DF4': 277.2, 'D4': 293.7, 'DS4': 311.1, 'EF4': 311.1, 'E4': 329.6, 'F4': 349.2, 'FS4': 370.0, 'GF4': 370.0, 'G4': 392.0, 'GS4': 415.3, 'AF4': 415.3, 'A4': 440.0, 'AS4': 466.2, 'BF4': 466.2, 'B4': 493.9, 'C5': 523.3, 'CS5': 554.4, 'DF5': 554.4, 'D5': 587.3, 'DS5': 622.3, 'EF5': 622.3, 'E5': 659.3, 'F5': 698.5, 'FS5': 740.0, 'GF5': 740.0, 'G5': 784.0, 'GS5': 830.6, 'AF5': 830.6, 'A5': 880.0, 'AS5': 932.3, 'BF5': 932.3, 'B5': 987.8}
# -*- coding: utf-8 -*- class HelloWorldController: __defaultName = None def __init__(self): self.__defaultName = "Pip User" def configure(self, config): self.__defaultName = config.get_as_string_with_default("default_name", self.__defaultName) def greeting(self, name): return f"Hello, {name if name else self.__defaultName} !"
class Helloworldcontroller: __default_name = None def __init__(self): self.__defaultName = 'Pip User' def configure(self, config): self.__defaultName = config.get_as_string_with_default('default_name', self.__defaultName) def greeting(self, name): return f'Hello, {(name if name else self.__defaultName)} !'
edge_array = [0,100,-1,-30,130,-150,-1,-1,-1,10,10,-120,-10,160,-180,0,10,-180,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,120,-120,-100,30,-200,30,30,-200,20,30,-200,30,220,-230,40,20,-220,0,50,-30,-200,30,-30,30,30,-200,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60,-160,-10,130,-190,0,40,-200,-1,0,-200,-50,30,-250,5,-50,-250,-1,80,-30,-50,30,-100,0,30,-200,-1,100,-130,-1,30,-50,-30,50,0,-1,30,-200,10,250,-250,0,-50,-250,-1,30,-30,-200,-250,-130,0,-30,250,-1,70,-150,-1,100,-130,-70,30,-200,-1,-30,-200,-1,30,30,0,30,-70,-1,30,-200,-250,0,-120,0,-30,-250,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,200,0,-1,230,-30,-1,220,-30,-1,150,-20,-1,250,-80,-1,100,-100,-1,220,30,-1,220,50,-1,200,-80,-1,-1,-30,-1,30,-30,-1,50,-50,-1,30,-50,-1,180,0,-1,30,0,-1,100,0,-1,30,0,-1,0,-30,-1,-1,0,-1,180,0,-1,180,0,-1,-1,0,-1,100,10,-1,0,0,-1,180,0,-1,120,10,-1,120,-100,-1,-1,30,-1,200,0,-1,180,0,-1,-1,0,-1,120,0,-1,100,0,-1,-1,50,-1,120,0,-1,120,-30,-1,-1,0,-1,-1,50,-1,120,30,-1,-1,100,-1,300,150,-1,200,80,-1,-1,50,-1,200,50,-1,140,0,-1,-1,80,-1,-1,0,-1,120,0,-1,-1,0,-1,-1,50,-1,140,0,-1,-1,0,-1,120,0,-1,100,-60,-1,-1,30,-1,-1,0,-1,220,10,-1,-1,0,-1,-1,0,-1,0,0,-1,-1,30,-1,-1,0,-1,50,30,-1,-1,-30,-1,-1,0,-1,-1,-10,-1,-1,-30,-1,-1,50,-1,120,0,-1,-1,0,-1,-1,0,-1,100,-60,-1,-1,50,-1,-1,0,-1,-1,0,-1,-1,-10,-1,-1,0,-1,-1,-50,-1,-1,10,-1,-1,-50,-1,0,-100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-300] par =[0,0,0,0,0,0] i = 0 par2 =[0,0,0,0,0,0] for par[0] in range(0,3): for par[1] in range(0,3): for par[2] in range(0,3): for par[3] in range(0,3): for par[4] in range(0,3): for par[5] in range(0,3): index = par[0]+par[1]*3+par[2]*9+par[3]*27+par[4]*81+par[5]*243 if (index > i and index < 728): try: edge_array[index] = edge_array[i] except ValueError: pass j = 0 for par_each in par: if (par_each == 1): par2[j] = 2 elif (par_each == 2): par2[j] = 1 else: par2[j] = 0 j += 1 index2 = par2[0]*243+par2[1]*81+par2[2]*27+par2[3]*9+par2[4]*3+par2[5] if (index2 > i and index2 < 728): try: edge_array[index2] = -1 * edge_array[i] except ValueError: pass i += 1 print(edge_array) print(len(edge_array))
edge_array = [0, 100, -1, -30, 130, -150, -1, -1, -1, 10, 10, -120, -10, 160, -180, 0, 10, -180, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 120, -120, -100, 30, -200, 30, 30, -200, 20, 30, -200, 30, 220, -230, 40, 20, -220, 0, 50, -30, -200, 30, -30, 30, 30, -200, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -160, -10, 130, -190, 0, 40, -200, -1, 0, -200, -50, 30, -250, 5, -50, -250, -1, 80, -30, -50, 30, -100, 0, 30, -200, -1, 100, -130, -1, 30, -50, -30, 50, 0, -1, 30, -200, 10, 250, -250, 0, -50, -250, -1, 30, -30, -200, -250, -130, 0, -30, 250, -1, 70, -150, -1, 100, -130, -70, 30, -200, -1, -30, -200, -1, 30, 30, 0, 30, -70, -1, 30, -200, -250, 0, -120, 0, -30, -250, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 200, 0, -1, 230, -30, -1, 220, -30, -1, 150, -20, -1, 250, -80, -1, 100, -100, -1, 220, 30, -1, 220, 50, -1, 200, -80, -1, -1, -30, -1, 30, -30, -1, 50, -50, -1, 30, -50, -1, 180, 0, -1, 30, 0, -1, 100, 0, -1, 30, 0, -1, 0, -30, -1, -1, 0, -1, 180, 0, -1, 180, 0, -1, -1, 0, -1, 100, 10, -1, 0, 0, -1, 180, 0, -1, 120, 10, -1, 120, -100, -1, -1, 30, -1, 200, 0, -1, 180, 0, -1, -1, 0, -1, 120, 0, -1, 100, 0, -1, -1, 50, -1, 120, 0, -1, 120, -30, -1, -1, 0, -1, -1, 50, -1, 120, 30, -1, -1, 100, -1, 300, 150, -1, 200, 80, -1, -1, 50, -1, 200, 50, -1, 140, 0, -1, -1, 80, -1, -1, 0, -1, 120, 0, -1, -1, 0, -1, -1, 50, -1, 140, 0, -1, -1, 0, -1, 120, 0, -1, 100, -60, -1, -1, 30, -1, -1, 0, -1, 220, 10, -1, -1, 0, -1, -1, 0, -1, 0, 0, -1, -1, 30, -1, -1, 0, -1, 50, 30, -1, -1, -30, -1, -1, 0, -1, -1, -10, -1, -1, -30, -1, -1, 50, -1, 120, 0, -1, -1, 0, -1, -1, 0, -1, 100, -60, -1, -1, 50, -1, -1, 0, -1, -1, 0, -1, -1, -10, -1, -1, 0, -1, -1, -50, -1, -1, 10, -1, -1, -50, -1, 0, -100, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -300] par = [0, 0, 0, 0, 0, 0] i = 0 par2 = [0, 0, 0, 0, 0, 0] for par[0] in range(0, 3): for par[1] in range(0, 3): for par[2] in range(0, 3): for par[3] in range(0, 3): for par[4] in range(0, 3): for par[5] in range(0, 3): index = par[0] + par[1] * 3 + par[2] * 9 + par[3] * 27 + par[4] * 81 + par[5] * 243 if index > i and index < 728: try: edge_array[index] = edge_array[i] except ValueError: pass j = 0 for par_each in par: if par_each == 1: par2[j] = 2 elif par_each == 2: par2[j] = 1 else: par2[j] = 0 j += 1 index2 = par2[0] * 243 + par2[1] * 81 + par2[2] * 27 + par2[3] * 9 + par2[4] * 3 + par2[5] if index2 > i and index2 < 728: try: edge_array[index2] = -1 * edge_array[i] except ValueError: pass i += 1 print(edge_array) print(len(edge_array))
class LoginResponse: def __init__( self, access_token: str, fresh_token: str, token_type: str = "bearer" ): self.access_token = access_token self.fresh_token = fresh_token self.token_type = token_type def json(self): return dict( access_token=self.access_token, fresh_token=self.fresh_token, token_type=self.token_type )
class Loginresponse: def __init__(self, access_token: str, fresh_token: str, token_type: str='bearer'): self.access_token = access_token self.fresh_token = fresh_token self.token_type = token_type def json(self): return dict(access_token=self.access_token, fresh_token=self.fresh_token, token_type=self.token_type)
# Iterating Through Dictionaries contacts = {"Daisy Johnson": "2468 Park Ave", "Leo Fitz": "1258 Monkey Dr"} # iterate through each key for name in contacts: print(name) # or, use keys() method for name in contacts.keys(): print(name) # using each key to print each value for name in contacts: # prints each address associated with each name print(contacts[name]) # iterate through each value using values() for address in contacts.values(): print(address) # iterate through keys and values using items() for name, address in contacts.items(): print(name + ", " + address)
contacts = {'Daisy Johnson': '2468 Park Ave', 'Leo Fitz': '1258 Monkey Dr'} for name in contacts: print(name) for name in contacts.keys(): print(name) for name in contacts: print(contacts[name]) for address in contacts.values(): print(address) for (name, address) in contacts.items(): print(name + ', ' + address)
to_do_list = ["0"] * 10 while True: command = input().split("-", maxsplit=1) if "End" in command: break to_do_list.insert(int(command[0]), command[1]) while "0" in to_do_list: to_do_list.remove("0") print(to_do_list)
to_do_list = ['0'] * 10 while True: command = input().split('-', maxsplit=1) if 'End' in command: break to_do_list.insert(int(command[0]), command[1]) while '0' in to_do_list: to_do_list.remove('0') print(to_do_list)
N = int(input()) data = open("{}.txt".format(N), 'r') data = data.readline() data = [int(i) for i in data.split()] def parr(array): for i in array: print('{:4d}'.format(i), end=" ") def insertionsort(x): for i in range(1, len(x)): j = i - 1; key = x[i] while(x[j] > key and j>= 0): x[j+1] = x[j] j = j-1 x[j+1] = key parr(x); print() parr(data); print() insertionsort(data) parr(data); print()
n = int(input()) data = open('{}.txt'.format(N), 'r') data = data.readline() data = [int(i) for i in data.split()] def parr(array): for i in array: print('{:4d}'.format(i), end=' ') def insertionsort(x): for i in range(1, len(x)): j = i - 1 key = x[i] while x[j] > key and j >= 0: x[j + 1] = x[j] j = j - 1 x[j + 1] = key parr(x) print() parr(data) print() insertionsort(data) parr(data) print()
def resolve(): n = int(input()) for i in range(1, n + 1): if i % 3 == 0 or "3" in str(i): print(" {}".format(i), end="") print()
def resolve(): n = int(input()) for i in range(1, n + 1): if i % 3 == 0 or '3' in str(i): print(' {}'.format(i), end='') print()
''' Make a 3x3 matrix and fill with numbers at the end show the matrix in a right format ''' cr = [[],[],[]] for c in range(0,3): cr[0].append(int(input(f'First line [1, {c+1}]: '))) for c in range(0,3): cr[1].append(int(input(f'Second line [2, {c+1}]: '))) for c in range(0,3): cr[2].append(int(input(f'Third line [3, {c+1}]: '))) print(f'''The matrix is:\n{cr[0]}\n{cr[1]}\n{cr[2]}''')
""" Make a 3x3 matrix and fill with numbers at the end show the matrix in a right format """ cr = [[], [], []] for c in range(0, 3): cr[0].append(int(input(f'First line [1, {c + 1}]: '))) for c in range(0, 3): cr[1].append(int(input(f'Second line [2, {c + 1}]: '))) for c in range(0, 3): cr[2].append(int(input(f'Third line [3, {c + 1}]: '))) print(f'The matrix is:\n{cr[0]}\n{cr[1]}\n{cr[2]}')
n = int(input()) for i in range(n): x = int(input()) print(len(bin(x)) - 2)
n = int(input()) for i in range(n): x = int(input()) print(len(bin(x)) - 2)
''' The class derived from more than 1 base called as a Multiple Inheritence. Programmer_name : BALAVIGNESH.M Implemented_Date : 11-11-2018 ''' class OS: SecurityOS = "Linux" DeveloperlikeOS = "Mac OS" Most_Personal_usage_OS = "Windows" class KernerlType: SecurityOS_Kernel = "MonoLithic Kernel" DeveloperlikeOS_Kernel = "XNU Kernel" Most_Personal_usage_OS_Kernel = "Hybrid Kernel" class OSINFO(OS,KernerlType): def __init__(self): self.SecurityOS_Owner = "Linus Tarvolds & maintained By Linux Foundation" self.DeveloperlikeOS_Owner = "Steve Jobs & Apple Inc." self.Most_Personal_usage_OS_Owner = "Bill Gates & Microsoft" def GetOSInfo(self): print("Most powerful Security OS is: {x}.\n Using Kernel Type: {y} .\n Developer & Owned Company is: {z}".format( x= self.SecurityOS , y = self.SecurityOS_Kernel , z = self.SecurityOS_Owner )) print() print("Most Developer and Trending OS is: {x}. \n Using Kernel Type: {y}.\n Developer & Owned Company is: {z}".format( x = self.DeveloperlikeOS , y = self.DeveloperlikeOS_Kernel , z = self.DeveloperlikeOS_Owner )) print() print("Favourite & number 1 Most user personal usage OS: {x}.\n Using Kernel Type: {y}.\n Developer & Owned Company is:{z} ".format( x = self.Most_Personal_usage_OS , y = self.Most_Personal_usage_OS_Kernel , z = self.Most_Personal_usage_OS_Owner )) osinfo = OSINFO() osinfo.GetOSInfo()
""" The class derived from more than 1 base called as a Multiple Inheritence. Programmer_name : BALAVIGNESH.M Implemented_Date : 11-11-2018 """ class Os: security_os = 'Linux' developerlike_os = 'Mac OS' most__personal_usage_os = 'Windows' class Kernerltype: security_os__kernel = 'MonoLithic Kernel' developerlike_os__kernel = 'XNU Kernel' most__personal_usage_os__kernel = 'Hybrid Kernel' class Osinfo(OS, KernerlType): def __init__(self): self.SecurityOS_Owner = 'Linus Tarvolds & maintained By Linux Foundation' self.DeveloperlikeOS_Owner = 'Steve Jobs & Apple Inc.' self.Most_Personal_usage_OS_Owner = 'Bill Gates & Microsoft' def get_os_info(self): print('Most powerful Security OS is: {x}.\n Using Kernel Type: {y} .\n Developer & Owned Company is: {z}'.format(x=self.SecurityOS, y=self.SecurityOS_Kernel, z=self.SecurityOS_Owner)) print() print('Most Developer and Trending OS is: {x}. \n Using Kernel Type: {y}.\n Developer & Owned Company is: {z}'.format(x=self.DeveloperlikeOS, y=self.DeveloperlikeOS_Kernel, z=self.DeveloperlikeOS_Owner)) print() print('Favourite & number 1 Most user personal usage OS: {x}.\n Using Kernel Type: {y}.\n Developer & Owned Company is:{z} '.format(x=self.Most_Personal_usage_OS, y=self.Most_Personal_usage_OS_Kernel, z=self.Most_Personal_usage_OS_Owner)) osinfo = osinfo() osinfo.GetOSInfo()
class RecentCounter: def __init__(self): self.queue = [] def ping(self, t: int) -> int: self.queue.append(t) if len(self.queue) > 3001: self.queue.pop(0) start = 0 for idx, item in enumerate(self.queue): if item >= t-3000: start = idx break return len(self.queue[start:]) # Your RecentCounter object will be instantiated and called as such: # obj = RecentCounter() # param_1 = obj.ping(t)
class Recentcounter: def __init__(self): self.queue = [] def ping(self, t: int) -> int: self.queue.append(t) if len(self.queue) > 3001: self.queue.pop(0) start = 0 for (idx, item) in enumerate(self.queue): if item >= t - 3000: start = idx break return len(self.queue[start:])
#!/bin/python3 n,k = input().strip().split(' ') n,k = [int(n),int(k)] height = list(map(int, input().strip().split(' '))) max_height = max(height) if max_height - k >= 1: print (max_height-k) else: print (0)
(n, k) = input().strip().split(' ') (n, k) = [int(n), int(k)] height = list(map(int, input().strip().split(' '))) max_height = max(height) if max_height - k >= 1: print(max_height - k) else: print(0)
#!/usr/local/bin/python3 s1 = "floor" s2 = "brake" print(s1) for i in range(len(s1)): if s1[i] != s2[i]: print(s2[:i+1] + s1[i+1:])
s1 = 'floor' s2 = 'brake' print(s1) for i in range(len(s1)): if s1[i] != s2[i]: print(s2[:i + 1] + s1[i + 1:])
def solve() -> None: # person whose strength is i can only carry parcels whose weight is less than or equal to i. # check in descending order of degree of freedom of remained parcels. a = [0] + list(map(int, input().split())) b = [0] + list(map(int, input().split())) # for i in range(1, 6): # strength # 5 -> 4 -> 3 -> 2 -> 1 if a[5] > b[5]: print("No") return b[5] -= a[5] a[5] = 0 if a[4] <= b[4]: b[4] -= a[4] a[4] = 0 else: a[4] -= b[4] b[4] = 0 if a[4] > b[5]: print("No") return b[5] -= a[4] b[1] += a[4] a[4] = 0 b[3] += b[5] b[2] += b[5] b[5] = 0 if a[3] <= b[3]: b[3] -= a[3] a[3] = 0 else: a[3] -= b[3] b[3] = 0 if a[3] > b[4]: print("No") return b[4] -= a[3] b[1] += a[3] a[3] = 0 b[2] += b[4] * 2 b[4] = 0 if a[2] <= b[2]: b[2] -= a[2] a[2] = 0 else: a[2] -= b[2] b[2] = 0 if a[2] > b[3]: print("No") return b[3] -= a[2] b[1] += a[2] a[2] = 0 b[1] += b[3] * 3 b[3] = 0 b[1] += b[2] * 2 b[2] = 0 if a[1] <= b[1]: print("Yes") else: print("No") def main() -> None: t = int(input()) for _ in range(t): solve() if __name__ == "__main__": main()
def solve() -> None: a = [0] + list(map(int, input().split())) b = [0] + list(map(int, input().split())) if a[5] > b[5]: print('No') return b[5] -= a[5] a[5] = 0 if a[4] <= b[4]: b[4] -= a[4] a[4] = 0 else: a[4] -= b[4] b[4] = 0 if a[4] > b[5]: print('No') return b[5] -= a[4] b[1] += a[4] a[4] = 0 b[3] += b[5] b[2] += b[5] b[5] = 0 if a[3] <= b[3]: b[3] -= a[3] a[3] = 0 else: a[3] -= b[3] b[3] = 0 if a[3] > b[4]: print('No') return b[4] -= a[3] b[1] += a[3] a[3] = 0 b[2] += b[4] * 2 b[4] = 0 if a[2] <= b[2]: b[2] -= a[2] a[2] = 0 else: a[2] -= b[2] b[2] = 0 if a[2] > b[3]: print('No') return b[3] -= a[2] b[1] += a[2] a[2] = 0 b[1] += b[3] * 3 b[3] = 0 b[1] += b[2] * 2 b[2] = 0 if a[1] <= b[1]: print('Yes') else: print('No') def main() -> None: t = int(input()) for _ in range(t): solve() if __name__ == '__main__': main()
class WayPoint: code = None state = None location = None coordinate = None def __init__(self, code=None, state=None, location=None, coordinate=None): self.code = code self.state = state self.location = location self.coordinate = coordinate if self.code is None and self.coordinate is None: raise ValueError("Either code or coordinate must be set.") def __str__(self): return "Code: %s,\tState: %s, \tCoordinate: %s\tLocation: %s" % \ (self.code, self.state, self.coordinate, self.location) def get_waypoint(self): if self.code: return self.code return str(self.coordinate)
class Waypoint: code = None state = None location = None coordinate = None def __init__(self, code=None, state=None, location=None, coordinate=None): self.code = code self.state = state self.location = location self.coordinate = coordinate if self.code is None and self.coordinate is None: raise value_error('Either code or coordinate must be set.') def __str__(self): return 'Code: %s,\tState: %s, \tCoordinate: %s\tLocation: %s' % (self.code, self.state, self.coordinate, self.location) def get_waypoint(self): if self.code: return self.code return str(self.coordinate)
class Solution: def constructFromPrePost(self, pre: List[int], post: List[int]) -> TreeNode: if not pre: return None if len(pre) == 1: return TreeNode(pre[0]) lroot = post.index(pre[1]) l = self.constructFromPrePost(pre[1:lroot+2], post[:lroot+1]) r = self.constructFromPrePost(pre[lroot+2:], post[lroot+1:-1]) return TreeNode(pre[0], l, r)
class Solution: def construct_from_pre_post(self, pre: List[int], post: List[int]) -> TreeNode: if not pre: return None if len(pre) == 1: return tree_node(pre[0]) lroot = post.index(pre[1]) l = self.constructFromPrePost(pre[1:lroot + 2], post[:lroot + 1]) r = self.constructFromPrePost(pre[lroot + 2:], post[lroot + 1:-1]) return tree_node(pre[0], l, r)
BIGINT = "BIGINT" NUMERIC = "NUMERIC" NUMBER = "NUMBER" BIT = "BIT" SMALLINT = "SMALLINT" DECIMAL = "DECIMAL" SMALLMONEY = "SMALLMONEY" INT = "INT" TINYINT = "TINYINT" MONEY = "MONEY" FLOAT = "FLOAT" REAL = "REAL" DATE = "DATE" DATETIMEOFFSET = "DATETIMEOFFSET" DATETIME2 = "DATETIME2" SMALLDATETIME = "SMALLDATETIME" DATETIME = "DATETIME" TIME = "TIME" CHAR = "CHAR" VARCHAR = "VARCHAR" TEXT = "TEXT" NCHAR = "NCHAR" NVARCHAR = "NVARCHAR" NTEXT = "NTEXT" BINARY = "BINARY" VARBINARY = "VARBINARY" IMAGE = "IMAGE" CURSOR = "CURSOR" TIMESTAMP = "TIMESTAMP" HIERARCHYID = "HIERARCHYID" UNIQUEIDENTIFIER = "UNIQUEIDENTIFIER" SQL_VARIANT = "SQL_VARIANT" XML = "XML" TABLE = "TABLE" SPATIAL_TYPES = "SPATIAL TYPES" CHARACTER = "CHARACTER" BOOLEAN = "BOOLEAN" INTEGER = "INTEGER" DOUBLE_PRECISION = "DOUBLE PRECISION" INTERVAL = "INTERVAL" ARRAY = "ARRAY" MULTISET = "MULTISET" CLOB = "CLOB" BLOB = "BLOB" SERIAL = "SERIAL" IDENTITY = "IDENTITY" DOUBLE = "DOUBLE" OTHER = "OTHER" UUID = "UUID" GEOMETRY = "GEOMETRY" STRING = "STRING" UNKNOWN = "UNKNOWN"
bigint = 'BIGINT' numeric = 'NUMERIC' number = 'NUMBER' bit = 'BIT' smallint = 'SMALLINT' decimal = 'DECIMAL' smallmoney = 'SMALLMONEY' int = 'INT' tinyint = 'TINYINT' money = 'MONEY' float = 'FLOAT' real = 'REAL' date = 'DATE' datetimeoffset = 'DATETIMEOFFSET' datetime2 = 'DATETIME2' smalldatetime = 'SMALLDATETIME' datetime = 'DATETIME' time = 'TIME' char = 'CHAR' varchar = 'VARCHAR' text = 'TEXT' nchar = 'NCHAR' nvarchar = 'NVARCHAR' ntext = 'NTEXT' binary = 'BINARY' varbinary = 'VARBINARY' image = 'IMAGE' cursor = 'CURSOR' timestamp = 'TIMESTAMP' hierarchyid = 'HIERARCHYID' uniqueidentifier = 'UNIQUEIDENTIFIER' sql_variant = 'SQL_VARIANT' xml = 'XML' table = 'TABLE' spatial_types = 'SPATIAL TYPES' character = 'CHARACTER' boolean = 'BOOLEAN' integer = 'INTEGER' double_precision = 'DOUBLE PRECISION' interval = 'INTERVAL' array = 'ARRAY' multiset = 'MULTISET' clob = 'CLOB' blob = 'BLOB' serial = 'SERIAL' identity = 'IDENTITY' double = 'DOUBLE' other = 'OTHER' uuid = 'UUID' geometry = 'GEOMETRY' string = 'STRING' unknown = 'UNKNOWN'
xCoordinate = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30] def setup(): size(500,500) smooth() noStroke() myInit() def myInit(): println ("New coordinates : ") for i in range(len(xCoordinate)): xCoordinate [i] = 250 + random ( -100 ,100) println ( xCoordinate [i]) def draw(): background(30) for i in range(len(xCoordinate)): fill(20) ellipse(xCoordinate[i], 250, 5, 5) fill(250,40) ellipse(xCoordinate[i], 250, 10*i,10*i) if (mouseX>250): myInit() def keyPressed(): if (key == 's'): saveFrame("Photo")
x_coordinate = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30] def setup(): size(500, 500) smooth() no_stroke() my_init() def my_init(): println('New coordinates : ') for i in range(len(xCoordinate)): xCoordinate[i] = 250 + random(-100, 100) println(xCoordinate[i]) def draw(): background(30) for i in range(len(xCoordinate)): fill(20) ellipse(xCoordinate[i], 250, 5, 5) fill(250, 40) ellipse(xCoordinate[i], 250, 10 * i, 10 * i) if mouseX > 250: my_init() def key_pressed(): if key == 's': save_frame('Photo')
# # PySNMP MIB module HUAWEI-MGMD-STD-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MGMD-STD-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:46:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") InterfaceIndexOrZero, InterfaceIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero", "InterfaceIndex") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") TimeTicks, NotificationType, Bits, Integer32, MibIdentifier, Gauge32, ModuleIdentity, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Counter64, ObjectIdentity, iso, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "NotificationType", "Bits", "Integer32", "MibIdentifier", "Gauge32", "ModuleIdentity", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Counter64", "ObjectIdentity", "iso", "Unsigned32") RowStatus, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention") hwMcast = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149)) hwMgmdStdMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3)) hwMgmdStdMib.setRevisions(('2014-07-09 00:00', '2014-07-01 00:00', '2014-06-20 00:00', '2013-08-28 00:00', '2007-04-16 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hwMgmdStdMib.setRevisionsDescriptions(('1.Add hwMgmdHostStarGThresholdExceed trap. 2.Add hwMgmdHostStarGThresholdExceedClear trap. 3.Add hwMgmdHostStarGExceed trap. 4.Add hwMgmdHostStarGExceedClear trap. 5.Add hwMgmdHostSGThreshodExceed trap. 6.Add hwMgmdHostSGThreshodExceedClear trap. 7.Add hwMgmdHostSGExceed trap. 8.Add hwMgmdHostSGExceedClear trap. ', '1.Correct trap name hwMgmdTotalLimitThreshodExceed to hwMgmdTotalLimitThresholdExceed and modify the description. 2.Correct trap name hwMgmdTotalLimitThreshodExceedClear to hwMgmdTotalLimitThresholdExceedClear and modify the description. ', '1.Add hwMgmdTotalLimitThreshodExceed trap. 2.Add hwMgmdTotalLimitThreshodExceedClear trap. ', 'Modify import mibs', 'The initial revision of this MIB module.',)) if mibBuilder.loadTexts: hwMgmdStdMib.setLastUpdated('201407090000Z') if mibBuilder.loadTexts: hwMgmdStdMib.setOrganization('Huawei Technologies Co.,Ltd.') if mibBuilder.loadTexts: hwMgmdStdMib.setContactInfo("Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: [email protected] ") if mibBuilder.loadTexts: hwMgmdStdMib.setDescription('The MIB module for MGMD Management. Huawei Technologies Co.,Ltd . Supplementary information may be available at: http://www.huawei.com') class HWMgmdCtlMsgState(TextualConvention, Integer32): description = 'The PIM control message state. valid(1) The valid IGMP/MLD control message has been received. invalid(2) The invalid IGMP/MLD control message has been received. ignore(3) The IGMP/MLD control message has been ignored.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("valid", 1), ("invalid", 2), ("ignore", 3)) hwMgmdMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1)) hwMgmdMibGeneralObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2)) hwMgmdMibNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3)) hwMgmdRouterInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4), ) if mibBuilder.loadTexts: hwMgmdRouterInterfaceTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceTable.setDescription('The (conceptual) table listing the interfaces on which IGMP or MLD is enabled.') hwMgmdRouterInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1), ).setIndexNames((0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceIfIndex"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceQuerierType")) if mibBuilder.loadTexts: hwMgmdRouterInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceEntry.setDescription('An entry (conceptual row) representing an interface on which IGMP or MLD is enabled.') hwMgmdRouterInterfaceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: hwMgmdRouterInterfaceIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceIfIndex.setDescription('The ifIndex value of the interface for which IGMP or MLD is enabled. The table is indexed by the ifIndex value and the InetAddressType to allow for interfaces that may be configured in both IPv4 and IPv6 modes.') hwMgmdRouterInterfaceQuerierType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 2), InetAddressType()) if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierType.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierType.setDescription('The address type of this interface. This entry along with the ifIndex value acts as the index to the hwMgmdRouterInterface table. A physical interface may be configured in multiple modes concurrently, e.g., in IPv4 and IPv6 modes connected to the same interface; however, the traffic is considered to be logically separate.') hwMgmdRouterInterfaceQuerier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 3), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerier.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerier.setDescription('The address of the IGMP or MLD Querier on the IP subnet to which this interface is attached. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdRouterInterfaceQuerierType variable in the hwMgmdRouterInterface table.') hwMgmdRouterInterfaceQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 31744)).clone(125)).setUnits('seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryInterval.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryInterval.setDescription('The frequency at which IGMP or MLD Host-Query packets are transmitted on this interface.') hwMgmdRouterInterfaceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMgmdRouterInterfaceStatus.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStatus.setDescription('The activation of a row enables the router side of IGMP or MLD on the interface. The destruction of a row disables the router side of IGMP or MLD on the interface.') hwMgmdRouterInterfaceVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 3)).clone(3)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMgmdRouterInterfaceVersion.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceVersion.setDescription('The version of MGMD that is running on this interface. Value 1 applies to IGMPv1 routers only. Value 2 applies to IGMPv2 and MLDv1 routers, and value 3 applies to IGMPv3 and MLDv2 routers. This object can be used to configure a router capable of running either version. For IGMP and MLD to function correctly, all routers on a LAN must be configured to run the same version on that LAN.') hwMgmdRouterInterfaceQueryMaxResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31744)).clone(100)).setUnits('tenths of seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryMaxResponseTime.setReference('RFC 3810, Section 9.3') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryMaxResponseTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryMaxResponseTime.setDescription('The maximum query response interval advertised in MGMDv2 or IGMPv3 queries on this interface.') hwMgmdRouterInterfaceQuerierUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 8), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierUpTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierUpTime.setDescription('The time since hwMgmdRouterInterfaceQuerier was last changed.') hwMgmdRouterInterfaceQuerierExpiryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 9), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierExpiryTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierExpiryTime.setDescription('The amount of time remaining before the Other Querier Present Timer expires. If the local system is the querier, the value of this object is zero.') hwMgmdRouterInterfaceWrongVersionQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceWrongVersionQueries.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceWrongVersionQueries.setDescription('The number of general queries received whose IGMP or MLD version does not match the equivalent hwMgmdRouterInterfaceVersion, over the lifetime of the row entry. Both IGMP and MLD require that all routers on a LAN be configured to run the same version. Thus, if any general queries are received with the wrong version, this indicates a configuration error.') hwMgmdRouterInterfaceJoins = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceJoins.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceJoins.setDescription('The number of times a group membership has been added on this interface, that is, the number of times an entry for this interface has been added to the Cache Table. This object can give an indication of the amount of activity between samples over time.') hwMgmdRouterInterfaceProxyIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 12), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMgmdRouterInterfaceProxyIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceProxyIfIndex.setDescription('Some devices implement a form of IGMP or MLD proxying whereby memberships learned on the interface represented by this row cause Host Membership Reports to be sent on the interface whose ifIndex value is given by this object. Such a device would implement the hwMgmdV2RouterBaseMIBGroup only on its router interfaces (those interfaces with non-zero hwMgmdRouterInterfaceProxyIfIndex). Typically, the value of this object is 0, indicating that no proxying is being done.') hwMgmdRouterInterfaceGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceGroups.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceGroups.setDescription('The current number of entries for this interface in the RouterCache Table.') hwMgmdRouterInterfaceRobustness = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 14), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMgmdRouterInterfaceRobustness.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceRobustness.setDescription('The Robustness Variable allows tuning for the expected packet loss on a subnet. If a subnet is expected to be lossy, the Robustness Variable may be increased. IGMP and MLD are robust to (Robustness Variable-1) packet losses.') hwMgmdRouterInterfaceLastMembQueryIntvl = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31744)).clone(10)).setUnits('tenths of seconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryIntvl.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryIntvl.setDescription('The Last Member Query Interval is the Max Query Response Interval inserted into group-specific queries sent in response to leave group messages, and is also the amount of time between group-specific query messages. This value may be tuned to modify the leave latency of the network. A reduced value results in reduced time to detect the loss of the last member of a group. The value of this object is irrelevant if hwMgmdRouterInterfaceVersion is 1.') hwMgmdRouterInterfaceLastMembQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryCount.setDescription('Represents the number of group-specific and group-and- source-specific queries sent by the router before it assumes there are no local members.') hwMgmdRouterInterfaceStartupQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryCount.setDescription('Represents the number of Queries sent out on startup, separated by the Startup Query Interval.') hwMgmdRouterInterfaceStartupQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31744))).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryInterval.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryInterval.setDescription('This variable represents the interval between General Queries sent by a Querier on startup.') hwMgmdRouterCacheTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6), ) if mibBuilder.loadTexts: hwMgmdRouterCacheTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheTable.setDescription('The (conceptual) table listing the IP multicast groups for which there are members on a particular router interface.') hwMgmdRouterCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1), ).setIndexNames((0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheAddressType"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheAddress"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheIfIndex")) if mibBuilder.loadTexts: hwMgmdRouterCacheEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheEntry.setDescription('An entry (conceptual row) in the hwMgmdRouterCacheTable.') hwMgmdRouterCacheAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 1), InetAddressType()) if mibBuilder.loadTexts: hwMgmdRouterCacheAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheAddressType.setDescription('The address type of the hwMgmdRouterCacheTable entry. This value applies to both the hwMgmdRouterCacheAddress and the hwMgmdRouterCacheLastReporter entries.') hwMgmdRouterCacheAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 2), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), ))) if mibBuilder.loadTexts: hwMgmdRouterCacheAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheAddress.setDescription('The IP multicast group address for which this entry contains information. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdRouterCacheAddressType variable in the hwMgmdRouterCache table.') hwMgmdRouterCacheIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 3), InterfaceIndex()) if mibBuilder.loadTexts: hwMgmdRouterCacheIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheIfIndex.setDescription('The interface for which this entry contains information for an IP multicast group address.') hwMgmdRouterCacheLastReporter = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 4), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterCacheLastReporter.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheLastReporter.setDescription('The IP address of the source of the last membership report received for this IP multicast group address on this interface. If no membership report has been received, this object has the value 0. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdRouterCacheAddressType variable in the hwMgmdRouterCache table.') hwMgmdRouterCacheUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterCacheUpTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheUpTime.setDescription('The time elapsed since this entry was created.') hwMgmdRouterCacheExpiryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 6), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterCacheExpiryTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheExpiryTime.setDescription('This value represents the time remaining before the Group Membership Interval state expires. The value must always be greater than or equal to 1.') hwMgmdRouterCacheExcludeModeExpiryTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 7), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterCacheExcludeModeExpiryTimer.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheExcludeModeExpiryTimer.setDescription('This value is applicable only to MGMDv3-compatible nodes and represents the time remaining before the interface EXCLUDE state expires and the interface state transitions to INCLUDE mode. This value can never be greater than hwMgmdRouterCacheExpiryTime.') hwMgmdRouterCacheVersion1HostTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 8), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterCacheVersion1HostTimer.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheVersion1HostTimer.setDescription('The time remaining until the local router will assume that there are no longer any MGMD version 1 members on the IP subnet attached to this interface. This entry only applies to IGMPv1 hosts, and is not implemented for MLD. Upon hearing any MGMDv1 Membership Report (IGMPv1 only), this value is reset to the group membership timer. While this time remaining is non-zero, the local router ignores any MGMDv2 Leave messages (IGMPv2 only) for this group that it receives on this interface.') hwMgmdRouterCacheVersion2HostTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 9), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterCacheVersion2HostTimer.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheVersion2HostTimer.setDescription('The time remaining until the local router will assume that there are no longer any MGMD version 2 members on the IP subnet attached to this interface. This entry applies to both IGMP and MLD hosts. Upon hearing any MGMDv2 Membership Report, this value is reset to the group membership timer. Assuming no MGMDv1 hosts have been detected, the local router does not ignore any MGMDv2 Leave messages for this group that it receives on this interface.') hwMgmdRouterCacheSourceFilterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("include", 1), ("exclude", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterCacheSourceFilterMode.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheSourceFilterMode.setDescription('The current cache state, applicable to MGMDv3 compatible nodes. The value indicates whether the state is INCLUDE or EXCLUDE.') hwMgmdInverseRouterCacheTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8), ) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheTable.setDescription('The (conceptual) table listing the interfaces that are members of a particular group. This is an inverse lookup table for entries in the hwMgmdRouterCacheTable.') hwMgmdInverseRouterCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1), ).setIndexNames((0, "HUAWEI-MGMD-STD-MIB", "hwMgmdInverseRouterCacheIfIndex"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdInverseRouterCacheAddressType"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdInverseRouterCacheAddress")) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheEntry.setDescription('An entry (conceptual row) in the hwMgmdInverseRouterCacheTable.') hwMgmdInverseRouterCacheIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheIfIndex.setDescription('The interface for which this entry contains information.') hwMgmdInverseRouterCacheAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1, 2), InetAddressType()) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddressType.setDescription('The address type of the hwMgmdInverseRouterCacheTable entry.') hwMgmdInverseRouterCacheAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1, 3), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddress.setDescription('The IP multicast group address for which this entry contains information. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdInverseRouterCacheAddressType variable in the hwMgmdInverseRouterCache table.') hwMgmdRouterSrcListTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10), ) if mibBuilder.loadTexts: hwMgmdRouterSrcListTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListTable.setDescription('The (conceptual) table listing the Source List entries corresponding to each interface and multicast group pair on a Router.') hwMgmdRouterSrcListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1), ).setIndexNames((0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterSrcListAddressType"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterSrcListAddress"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterSrcListIfIndex"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdRouterSrcListHostAddress")) if mibBuilder.loadTexts: hwMgmdRouterSrcListEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListEntry.setDescription('An entry (conceptual row) in the hwMgmdRouterSrcListTable.') hwMgmdRouterSrcListAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 1), InetAddressType()) if mibBuilder.loadTexts: hwMgmdRouterSrcListAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListAddressType.setDescription('The address type of the InetAddress variables in this table. This value applies to the hwMgmdRouterSrcListHostAddress and hwMgmdRouterSrcListAddress entries.') hwMgmdRouterSrcListAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 2), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), ))) if mibBuilder.loadTexts: hwMgmdRouterSrcListAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListAddress.setDescription('The IP multicast group address for which this entry contains information.') hwMgmdRouterSrcListIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 3), InterfaceIndex()) if mibBuilder.loadTexts: hwMgmdRouterSrcListIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListIfIndex.setDescription('The interface for which this entry contains information for an IP multicast group address.') hwMgmdRouterSrcListHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 4), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(16, 16), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterSrcListHostAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListHostAddress.setDescription('The host address to which this entry corresponds. The hwMgmdRouterCacheSourceFilterMode value for this group address and interface indicates whether this host address is included or excluded.') hwMgmdRouterSrcListExpire = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdRouterSrcListExpire.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListExpire.setDescription('This value indicates the relevance of the SrcList entry, whereby a non-zero value indicates this is an INCLUDE state value, and a zero value indicates this to be an EXCLUDE state value.') hwMgmdCtlMsgCountTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11), ) if mibBuilder.loadTexts: hwMgmdCtlMsgCountTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTable.setDescription('The (conceptual) table used to list the control message counter on all the interfaces on which IGMP or MLD is enabled.') hwMgmdCtlMsgCountEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1), ).setIndexNames((0, "HUAWEI-MGMD-STD-MIB", "hwMgmdCtlMsgCountIfIndex"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdCtlMsgCountQuerierType"), (0, "HUAWEI-MGMD-STD-MIB", "hwMgmdCtlMsgCountState")) if mibBuilder.loadTexts: hwMgmdCtlMsgCountEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountEntry.setDescription('An entry (conceptual row) representing an interface on which IGMP or MLD is enabled. Dynamically created row state is non-volatile, and upon agent reboot should be reinstantiated as a conceptual row. Any change in read-create objects should therefore be backed up by stable storage.') hwMgmdCtlMsgCountIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: hwMgmdCtlMsgCountIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountIfIndex.setDescription('The ifIndex value of the interface for which IGMP or MLD is enabled. The table is indexed by the ifIndex value and the InetAddressType to allow for interfaces which may be configured in both IPv4 and IPv6 modes.') hwMgmdCtlMsgCountQuerierType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 2), InetAddressType()) if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuerierType.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuerierType.setDescription('The address type of this interface. This entry along with the ifIndex value acts as the index to the hwMgmdRouterInterface table. A physical interface may be configured in multiple modes concurrently, e.g. in IPv4 and IPv6 modes connected to the same interface, however the traffic is considered to be logically separate.') hwMgmdCtlMsgCountState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 3), HWMgmdCtlMsgState()) if mibBuilder.loadTexts: hwMgmdCtlMsgCountState.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountState.setDescription('The IGMP/MLD control message state.') hwMgmdCtlMsgCountQuery = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuery.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuery.setDescription('The number of IGMP/MLD Query on this interface.') hwMgmdCtlMsgCountReportASM = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportASM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportASM.setDescription('The number of IGMP/MLD report with ASM group on this interface.') hwMgmdCtlMsgCountReportSSM = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportSSM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportSSM.setDescription('The number of IGMP/MLD report with SSM group on this interface.') hwMgmdCtlMsgCountLeaveASM = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveASM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveASM.setDescription('The number of IGMP/MLD leave with ASM group on this interface.') hwMgmdCtlMsgCountLeaveSSM = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveSSM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveSSM.setDescription('The number of IGMP/MLD leave with ASM group on this interface.') hwMgmdCtlMsgCountISIN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountISIN.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountISIN.setDescription('The number of IGMP/MLD is_in on this interface.') hwMgmdCtlMsgCountISEX = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountISEX.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountISEX.setDescription('The number of IGMP/MLD is_ex on this interface.') hwMgmdCtlMsgCountTOIN = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOIN.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOIN.setDescription('The number of IGMP/MLD to_in on this interface.') hwMgmdCtlMsgCountTOEX = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOEX.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOEX.setDescription('The number of IGMP/MLD to_ex on this interface.') hwMgmdCtlMsgCountALLOW = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 13), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountALLOW.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountALLOW.setDescription('The number of IGMP/MLD allow on this interface.') hwMgmdCtlMsgCountBLOCK = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountBLOCK.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountBLOCK.setDescription('The number of IGMP/MLD block on this interface.') hwMgmdCtlMsgCountSrcRecTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 15), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountSrcRecTotal.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountSrcRecTotal.setDescription('The number of total IGMP/MLD source record on this interface.') hwMgmdCtlMsgCountOthers = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdCtlMsgCountOthers.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountOthers.setDescription('The number of total IGMP/MLD others packet on this interface.') hwMgmdGroup = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdGroup.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdGroup.setDescription('Group address of the entry.') hwMgmdSource = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdSource.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdSource.setDescription('Source address of the entry.') hwMgmdLimitInterfaceIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdLimitInterfaceIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdLimitInterfaceIfIndex.setDescription('The interface from which an IGMP or a MLD limit trap is most recently sent. If this router has not sent a limit trap, this object is set to 0.') hwMgmdGlobalEntries = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdGlobalEntries.setStatus('current') if mibBuilder.loadTexts: hwMgmdGlobalEntries.setDescription('The total number of IGMP or MLD entries of this instance.') hwMgmdInterfaceEntries = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdInterfaceEntries.setStatus('current') if mibBuilder.loadTexts: hwMgmdInterfaceEntries.setDescription('The total number of IGMP or MLD entries on the interface.') hwMgmdTotalEntries = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdTotalEntries.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalEntries.setDescription('The total number of IGMP or MLD entries of all instances.') hwMgmdGmpJoinGrpAddr = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpJoinGrpAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinGrpAddr.setDescription('The IGMP or MLD group address to join.') hwMgmdGmpJoinSrcAddr = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpJoinSrcAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinSrcAddr.setDescription('The IGMP or MLD source address to join.') hwMgmdGmpJoinSenderIp = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpJoinSenderIp.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinSenderIp.setDescription('The host IP address for sending membership report.') hwMgmdGmpJoinVersion = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpJoinVersion.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinVersion.setDescription('The version of MGMD which is running on this interface. Value 1 applies to IGMPv1 and MLDv1 version. Value 2 applies to IGMPv2 and MLDv2 version, and value 3 applies to IGMPv3 version. This object can be used to configure a router capable of running either version. For IGMP and MLD to function correctly, all routers on a LAN must be configured to run the same version on that LAN. This object MAY be modified under any rowstatus condition. ???? DEFVAL { 2 }') hwMgmdGmpInterfaceIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 11), InterfaceIndex()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpInterfaceIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpInterfaceIfIndex.setDescription('The ifIndex value of the interface for which IGMP or MLD is enabled. The table is indexed by the ifIndex value and the InetAddressType to allow for interfaces which may be configured in both IPv4 and IPv6 modes.') hwMgmdGmpInterfaceName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpInterfaceName.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpInterfaceName.setDescription('The interface name of the interface for which IGMP or MLD is enabled.') hwMgmdGmpLimitGroupAddressType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 13), InetAddressType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpLimitGroupAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLimitGroupAddressType.setDescription('The address type of the multicast group address in the most recently sent IGMP or MLD limit trap. If this router has not sent a limit trap, this object is set to 0.') hwMgmdGmpLimitGroup = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 14), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ValueSizeConstraint(16, 16), ValueSizeConstraint(20, 20), ))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpLimitGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLimitGroup.setDescription('The multicast group address in the most recently sent IGMP or MLD limit trap. The InetAddressType is defined by the hwMgmdGmpLimitGroupAddressType object.') hwMgmdGmpLimitSource = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 15), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ValueSizeConstraint(16, 16), ValueSizeConstraint(20, 20), ))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdGmpLimitSource.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLimitSource.setDescription('The source address in the most recently sent IGMP or MLD limit trap. The InetAddressType is defined by the hwMgmdGmpLimitGroupAddressType object.') hwMgmdInstanceName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 16), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdInstanceName.setStatus('current') if mibBuilder.loadTexts: hwMgmdInstanceName.setDescription('The instance name of the trap.') hwMgmdNotificationAddressType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 17), InetAddressType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdNotificationAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdNotificationAddressType.setDescription('The address type of the multicast group address in the most recently sent IGMP or MLD limit trap.') hwMgmdTotalLimitCurrentCount = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMgmdTotalLimitCurrentCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitCurrentCount.setDescription('The current number of IGMP or MLD entries of all instances.') hwMgmdTotalLimitThreshold = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 19), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdTotalLimitThreshold.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitThreshold.setDescription('The threshold value of IGMP or MLD entries uppper limit(%) of all instances.') hwMgmdHostStarGCurrentCount = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 20), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostStarGCurrentCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGCurrentCount.setDescription('The current number of IGMP or MLD proxy (*, G) entries of all instances.') hwMgmdHostStarGThreshold = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 21), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostStarGThreshold.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGThreshold.setDescription('The threshold value of IGMP or MLD proxy (*, G) entries uppper limit(%) of all instances.') hwMgmdHostStarGTotalCount = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 22), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostStarGTotalCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGTotalCount.setDescription('The total number of IGMP or MLD proxy (*, G) entries of all instances.') hwMgmdHostNotificationSrcAddr = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 23), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ValueSizeConstraint(16, 16), ValueSizeConstraint(20, 20), ))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostNotificationSrcAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostNotificationSrcAddr.setDescription('The source address in the most recently sent IGMP or MLD proxy limit trap.') hwMgmdHostNotificationGrpAddr = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 24), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ValueSizeConstraint(16, 16), ValueSizeConstraint(20, 20), ))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostNotificationGrpAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostNotificationGrpAddr.setDescription('The multicast group address in the most recently sent IGMP or MLD proxy limit trap.') hwMgmdHostSGCurrentCount = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 25), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostSGCurrentCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGCurrentCount.setDescription('The current number of IGMP or MLD proxy (S, G) entries of all instances.') hwMgmdHostSGThreshold = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 26), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostSGThreshold.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGThreshold.setDescription('The threshold value of IGMP or MLD proxy (S, G)entries uppper limit(%) of all instances.') hwMgmdHostSGTotalCount = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 27), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hwMgmdHostSGTotalCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGTotalCount.setDescription('The total number of IGMP or MLD proxy (S, G) entries of all instances.') hwMgmdGlobalLimit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 1)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGlobalEntries")) if mibBuilder.loadTexts: hwMgmdGlobalLimit.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdGlobalLimit.setDescription('A hwMgmdGlobalLimit notification signifies that an IGMP report has been limited for up to maximum entries of IGMP global routing-table. This notification is generated whenever an IGMP report failed to create membership as IGMP global routing-table limit.') hwMgmdInterfaceLimit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 2)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdLimitInterfaceIfIndex"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInterfaceEntries")) if mibBuilder.loadTexts: hwMgmdInterfaceLimit.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdInterfaceLimit.setDescription('A hwMgmdInterfaceLimit notification signifies that an IGMP report has been limited for up to maximum entries of IGMP interface routing-table. This notification is generated whenever an IGMP report failed to create membership as IGMP interface routing-table limit.') hwMgmdTotalLimit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 3)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalEntries")) if mibBuilder.loadTexts: hwMgmdTotalLimit.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdTotalLimit.setDescription('A hwMgmdTotalLimit notification signifies that an IGMP report has been limited for up to maximum entries of IGMP total routing-table. This notification is generated whenever an IGMP report failed to create membership as IGMP total routing-table limit.') hwMgmdGmpJoin = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 4)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceName"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceIfIndex"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinVersion"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinSrcAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinGrpAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinSenderIp"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdGmpJoin.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoin.setDescription('A hwMgmdGmpJoin notification signifies the IGMP or MLD join message was received.') hwMgmdGmpLeave = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 5)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceName"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceIfIndex"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinSrcAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinGrpAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdGmpLeave.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLeave.setDescription('A hwMgmdGmpLeave notification signifies the IGMP or MLD group leaved.') hwMgmdGMPGlobalLimit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 6)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroupAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGlobalEntries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdGMPGlobalLimit.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPGlobalLimit.setDescription('This object indicates that the number of global IGMP or MLD entries of the instance reaches the upper limit. This trap message is generated when IGMP or MLD fails to create membership because the number of global IGMP or MLD entries of the instance reaches the upper limit.') hwMgmdGMPInterfaceLimit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 7)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroupAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdLimitInterfaceIfIndex"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInterfaceEntries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceName"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimit.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimit.setDescription('This object indicates that the number of IGMP or MLD entries on the interface reaches the upper limit. This trap message is generated when IGMP or MLD fails to create membership because the number of IGMP or MLD entries on the interface reaches the upper limit.') hwMgmdGMPTotalLimit = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 8)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroupAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalEntries")) if mibBuilder.loadTexts: hwMgmdGMPTotalLimit.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPTotalLimit.setDescription('This object indicates that the number of IGMP or MLD entries of all instances reaches the upper limit. This trap message is generated when IGMP or MLD fails to create membership because the number of IGMP or MLD entries of all instances reaches the upper limit.') hwMgmdGMPInterfaceLimitClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 9)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroupAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdLimitInterfaceIfIndex"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInterfaceEntries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceName"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimitClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimitClear.setDescription('This object indicates that the number of IGMP or MLD entries on the interface falls below the upper limit. This trap message is generated when IGMP or MLD delete an entry resulting in the number of IGMP or MLD entries on the interface falls below the upper limit.') hwMgmdGMPGlobalLimitClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 10)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroupAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGlobalEntries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdGMPGlobalLimitClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPGlobalLimitClear.setDescription('This object indicates that the number of global IGMP or MLD entries of the instance falls blow the upper limit. This trap message is generated when IGMP or MLD delete an entry resulting in the number of global IGMP or MLD entries of the instance falls below the upper limit.') hwMgmdGMPTotalLimitClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 11)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroupAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalEntries")) if mibBuilder.loadTexts: hwMgmdGMPTotalLimitClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPTotalLimitClear.setDescription('This object indicates that the number of IGMP or MLD entries of all instances falls below the upper limit. This trap message is generated when IGMP or MLD delete an entry resulting in the number of IGMP or MLD entries of all instances falls below the upper limit.') hwMgmdTotalLimitThresholdExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 12)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalEntries")) if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceed.setDescription('A hwMgmdTotalLimitThresholdExceed notification signifies that IGMP or MLD entries count of all instances reached the upper threshold.') hwMgmdTotalLimitThresholdExceedClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 13)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalEntries")) if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceedClear.setDescription('A hwMgmdTotalLimitThresholdExceedClear notification signifies that IGMP or MLD entries count of all instances fell below the lower threshold.') hwMgmdHostStarGThresholdExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 14)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGTotalCount")) if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceed.setDescription('A hwMgmdHostStarGThresholdExceed notification signifies that IGMP or MLD proxy (*, G) entries count of all instances reached the upper threshold.') hwMgmdHostStarGThresholdExceedClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 15)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGTotalCount")) if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceedClear.setDescription('A hwMgmdHostStarGThresholdExceedClear notification signifies that IGMP or MLD proxy (*, G) entries count of all instances fell below the lower threshold.') hwMgmdHostStarGExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 16)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostNotificationSrcAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostNotificationGrpAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGTotalCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdHostStarGExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGExceed.setDescription('A hwMgmdHostStarGExceed notification signifies that IGMP or MLD proxy (*, G) entries can not be created because the limit is reached.') hwMgmdHostStarGExceedClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 17)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGTotalCount")) if mibBuilder.loadTexts: hwMgmdHostStarGExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGExceedClear.setDescription('A hwMgmdHostStarGExceedClear notification signifies that IGMP or MLD proxy (*, G) entries can be created because can be created because the number of IGMP or MLD (*, G) entries fell below the limit.') hwMgmdHostSGThresholdExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 18)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGTotalCount")) if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceed.setDescription('A hwMgmdHostSGThresholdExceed notification signifies that IGMP or MLD proxy (S, G) entries count of all instances reached the upper threshold.') hwMgmdHostSGThresholdExceedClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 19)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGTotalCount")) if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceedClear.setDescription('A hwMgmdHostSGThresholdExceedClear notification signifies that IGMP or MLD proxy (S, G) entries count of all instances fell below the lower threshold.') hwMgmdHostSGExceed = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 20)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostNotificationSrcAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostNotificationGrpAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGTotalCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName")) if mibBuilder.loadTexts: hwMgmdHostSGExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGExceed.setDescription('A hwMgmdHostSGExceed notification signifies that IGMP or MLD proxy (S, G) entries can not be created because the limit of all instances is reached.') hwMgmdHostSGExceedClear = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 21)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGTotalCount")) if mibBuilder.loadTexts: hwMgmdHostSGExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGExceedClear.setDescription('A hwMgmdHostSGExceedClear notification signifies that IGMP or MLD proxy (S, G) entries can be created because can be created because the number of IGMP or MLD (S, G) entries of all instances fell below the limit.') hwMgmdMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4)) hwMgmdMibCompliance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3)) hwMgmdMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4)) hwMgmdIgmpV1RouterMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 2)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterBaseMibGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdIgmpV1RouterMibCompliance = hwMgmdIgmpV1RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdIgmpV1RouterMibCompliance.setDescription('The version statement for routers running IGMPv1, RFC 1112 [4], and implementing the MGMD Mib. MGMDv1 applies to hosts and routers running IGMPv1 only. IGMPv1 routers must support the IPv4 address type ') hwMgmdIgmpV2RouterMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 4)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2RouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2IgmpRouterMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2RouterOptMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2ProxyMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdMibNotificationObjects"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdMibNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdIgmpV2RouterMibCompliance = hwMgmdIgmpV2RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdIgmpV2RouterMibCompliance.setDescription('The version statement for routers running IGMPv2, RFC 2236 [5], and implementing the MGMD Mib. MGMDv2 applies to hosts and routers running IGMPv2 or MLDv1. IGMPv2 routers must support the IPv4 address type ') hwMgmdMldV1RouterMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 6)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2RouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2RouterOptMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2ProxyMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdMibNotificationObjects"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdMibNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdMldV1RouterMibCompliance = hwMgmdMldV1RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdMldV1RouterMibCompliance.setDescription('The version statement for routers running MLDv1, RFC 2710 [7], and implementing the MGMD Mib. MGMDv2 applies to hosts and routers running IGMPv2 or MLDv1. MLDv1 routers must support the IPv6 address type.') hwMgmdIgmpV3RouterMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 8)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2RouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2IgmpRouterMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV3RouterMibGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdIgmpV3RouterMibCompliance = hwMgmdIgmpV3RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdIgmpV3RouterMibCompliance.setDescription('The version statement for routers running IGMPv3, RFC 3376 [6], and implementing the MGMD Mib. MGMDv3 applies to hosts and routers running IGMPv3 or MLDv2. IGMPv3 routers must support the IPv4 address type.') hwMgmdMldV2RouterMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 10)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV2RouterBaseMibGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdV3RouterMibGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdMldV2RouterMibCompliance = hwMgmdMldV2RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdMldV2RouterMibCompliance.setDescription('The version statement for routers running MLDv2 [8] and implementing the MGMD Mib. MGMDv3 applies to hosts and routers running IGMPv3 or MLDv2. MLDv2 routers must support the IPv6 address type.') hwMgmdRouterBaseMibGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 2)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceStatus"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheUpTime"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheExpiryTime"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceJoins"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceGroups"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheLastReporter"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceQuerierUpTime"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceQuerierExpiryTime"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceQueryInterval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdRouterBaseMibGroup = hwMgmdRouterBaseMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterBaseMibGroup.setDescription('The basic collection of objects providing management of MGMD version 1, 2 or 3 for Routers.') hwMgmdV2RouterBaseMibGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 6)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceVersion"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceQuerier"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceQueryMaxResponseTime"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceRobustness"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceWrongVersionQueries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceLastMembQueryIntvl"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceLastMembQueryCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceStartupQueryCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceStartupQueryInterval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdV2RouterBaseMibGroup = hwMgmdV2RouterBaseMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2RouterBaseMibGroup.setDescription('A collection of additional objects for management of MGMD version 2 in routers.') hwMgmdV2IgmpRouterMibGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 7)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheVersion1HostTimer")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdV2IgmpRouterMibGroup = hwMgmdV2IgmpRouterMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2IgmpRouterMibGroup.setDescription('A collection of further objects required by IGMPv2 routers for MGMD version 2 compliance. ') hwMgmdV2ProxyMibGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 8)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterInterfaceProxyIfIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdV2ProxyMibGroup = hwMgmdV2ProxyMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2ProxyMibGroup.setDescription('A collection of additional objects for management of MGMD proxy devices.') hwMgmdV2RouterOptMibGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 9)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdInverseRouterCacheAddress")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdV2RouterOptMibGroup = hwMgmdV2RouterOptMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2RouterOptMibGroup.setDescription('An additional optional object for management of MGMD version 2 in routers.') hwMgmdV3RouterMibGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 11)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheSourceFilterMode"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheVersion2HostTimer"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterCacheExcludeModeExpiryTimer"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterSrcListHostAddress"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdRouterSrcListExpire")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdV3RouterMibGroup = hwMgmdV3RouterMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV3RouterMibGroup.setDescription('A collection of additional objects for management of MGMD version 3 in routers.') hwMgmdMibNotificationObjects = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 12)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdLimitInterfaceIfIndex"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGlobalEntries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInterfaceEntries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalEntries"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinGrpAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinSrcAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinSenderIp"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoinVersion"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceIfIndex"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpInterfaceName"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroupAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitGroup"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLimitSource"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInstanceName"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdNotificationAddressType"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGTotalCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostNotificationSrcAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostNotificationGrpAddr"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGCurrentCount"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGThreshold"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGTotalCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdMibNotificationObjects = hwMgmdMibNotificationObjects.setStatus('current') if mibBuilder.loadTexts: hwMgmdMibNotificationObjects.setDescription('A collection of objects to support notification of MGMD notification network management events.') hwMgmdMibNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 13)).setObjects(("HUAWEI-MGMD-STD-MIB", "hwMgmdGlobalLimit"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdInterfaceLimit"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimit"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpJoin"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGmpLeave"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGMPGlobalLimit"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGMPInterfaceLimit"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGMPTotalLimit"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGMPInterfaceLimitClear"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGMPGlobalLimitClear"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdGMPTotalLimitClear"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitThresholdExceed"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdTotalLimitThresholdExceedClear"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGThresholdExceed"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGThresholdExceedClear"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGExceed"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostStarGExceedClear"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGThresholdExceed"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGThresholdExceedClear"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGExceed"), ("HUAWEI-MGMD-STD-MIB", "hwMgmdHostSGExceedClear")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwMgmdMibNotificationGroup = hwMgmdMibNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdMibNotificationGroup.setDescription('A collection of notifications for signaling MGMD notification management events.') mibBuilder.exportSymbols("HUAWEI-MGMD-STD-MIB", hwMgmdRouterInterfaceQueryInterval=hwMgmdRouterInterfaceQueryInterval, hwMgmdRouterCacheVersion1HostTimer=hwMgmdRouterCacheVersion1HostTimer, hwMgmdRouterCacheExpiryTime=hwMgmdRouterCacheExpiryTime, hwMgmdHostStarGTotalCount=hwMgmdHostStarGTotalCount, hwMgmdRouterCacheExcludeModeExpiryTimer=hwMgmdRouterCacheExcludeModeExpiryTimer, hwMgmdMldV1RouterMibCompliance=hwMgmdMldV1RouterMibCompliance, hwMgmdMibNotificationObjects=hwMgmdMibNotificationObjects, hwMgmdHostSGExceed=hwMgmdHostSGExceed, hwMgmdRouterInterfaceQueryMaxResponseTime=hwMgmdRouterInterfaceQueryMaxResponseTime, hwMgmdRouterInterfaceRobustness=hwMgmdRouterInterfaceRobustness, hwMgmdRouterSrcListAddress=hwMgmdRouterSrcListAddress, hwMgmdHostSGExceedClear=hwMgmdHostSGExceedClear, hwMgmdGlobalLimit=hwMgmdGlobalLimit, hwMgmdGmpJoinVersion=hwMgmdGmpJoinVersion, hwMgmdNotificationAddressType=hwMgmdNotificationAddressType, hwMgmdTotalLimit=hwMgmdTotalLimit, hwMgmdRouterInterfaceLastMembQueryIntvl=hwMgmdRouterInterfaceLastMembQueryIntvl, hwMgmdInverseRouterCacheTable=hwMgmdInverseRouterCacheTable, hwMgmdRouterCacheAddress=hwMgmdRouterCacheAddress, hwMgmdCtlMsgCountQuerierType=hwMgmdCtlMsgCountQuerierType, hwMgmdGmpJoinSenderIp=hwMgmdGmpJoinSenderIp, hwMgmdGmpLimitGroup=hwMgmdGmpLimitGroup, hwMgmdGMPTotalLimitClear=hwMgmdGMPTotalLimitClear, hwMgmdIgmpV2RouterMibCompliance=hwMgmdIgmpV2RouterMibCompliance, hwMgmdRouterSrcListIfIndex=hwMgmdRouterSrcListIfIndex, hwMgmdV2RouterOptMibGroup=hwMgmdV2RouterOptMibGroup, hwMgmdHostSGThreshold=hwMgmdHostSGThreshold, hwMgmdLimitInterfaceIfIndex=hwMgmdLimitInterfaceIfIndex, hwMgmdGmpJoinGrpAddr=hwMgmdGmpJoinGrpAddr, hwMgmdRouterCacheTable=hwMgmdRouterCacheTable, hwMgmdCtlMsgCountSrcRecTotal=hwMgmdCtlMsgCountSrcRecTotal, hwMgmdRouterInterfaceProxyIfIndex=hwMgmdRouterInterfaceProxyIfIndex, hwMgmdGmpJoin=hwMgmdGmpJoin, hwMgmdHostStarGExceed=hwMgmdHostStarGExceed, hwMgmdRouterCacheIfIndex=hwMgmdRouterCacheIfIndex, hwMgmdCtlMsgCountLeaveSSM=hwMgmdCtlMsgCountLeaveSSM, hwMgmdIgmpV3RouterMibCompliance=hwMgmdIgmpV3RouterMibCompliance, hwMgmdRouterInterfaceQuerier=hwMgmdRouterInterfaceQuerier, hwMgmdMldV2RouterMibCompliance=hwMgmdMldV2RouterMibCompliance, hwMgmdRouterInterfaceQuerierExpiryTime=hwMgmdRouterInterfaceQuerierExpiryTime, hwMgmdRouterSrcListEntry=hwMgmdRouterSrcListEntry, hwMgmdCtlMsgCountTable=hwMgmdCtlMsgCountTable, hwMgmdInverseRouterCacheAddressType=hwMgmdInverseRouterCacheAddressType, hwMgmdRouterInterfaceTable=hwMgmdRouterInterfaceTable, hwMgmdCtlMsgCountTOIN=hwMgmdCtlMsgCountTOIN, hwMgmdTotalLimitCurrentCount=hwMgmdTotalLimitCurrentCount, hwMgmdRouterSrcListHostAddress=hwMgmdRouterSrcListHostAddress, hwMgmdGMPInterfaceLimit=hwMgmdGMPInterfaceLimit, hwMgmdRouterInterfaceQuerierType=hwMgmdRouterInterfaceQuerierType, hwMgmdGMPInterfaceLimitClear=hwMgmdGMPInterfaceLimitClear, hwMgmdRouterInterfaceJoins=hwMgmdRouterInterfaceJoins, hwMgmdRouterInterfaceEntry=hwMgmdRouterInterfaceEntry, PYSNMP_MODULE_ID=hwMgmdStdMib, hwMgmdCtlMsgCountISIN=hwMgmdCtlMsgCountISIN, hwMgmdInverseRouterCacheIfIndex=hwMgmdInverseRouterCacheIfIndex, hwMgmdRouterInterfaceWrongVersionQueries=hwMgmdRouterInterfaceWrongVersionQueries, hwMgmdMibObjects=hwMgmdMibObjects, hwMgmdTotalLimitThreshold=hwMgmdTotalLimitThreshold, hwMgmdV2ProxyMibGroup=hwMgmdV2ProxyMibGroup, hwMgmdInverseRouterCacheAddress=hwMgmdInverseRouterCacheAddress, hwMgmdHostNotificationGrpAddr=hwMgmdHostNotificationGrpAddr, hwMgmdRouterSrcListTable=hwMgmdRouterSrcListTable, hwMgmdGlobalEntries=hwMgmdGlobalEntries, hwMgmdRouterCacheEntry=hwMgmdRouterCacheEntry, hwMgmdCtlMsgCountBLOCK=hwMgmdCtlMsgCountBLOCK, hwMgmdRouterInterfaceVersion=hwMgmdRouterInterfaceVersion, hwMgmdRouterCacheLastReporter=hwMgmdRouterCacheLastReporter, hwMgmdGMPGlobalLimit=hwMgmdGMPGlobalLimit, hwMgmdCtlMsgCountLeaveASM=hwMgmdCtlMsgCountLeaveASM, hwMgmdHostSGThresholdExceedClear=hwMgmdHostSGThresholdExceedClear, hwMgmdSource=hwMgmdSource, hwMgmdHostSGTotalCount=hwMgmdHostSGTotalCount, hwMgmdMibGeneralObjects=hwMgmdMibGeneralObjects, hwMgmdCtlMsgCountQuery=hwMgmdCtlMsgCountQuery, hwMgmdTotalEntries=hwMgmdTotalEntries, hwMgmdCtlMsgCountOthers=hwMgmdCtlMsgCountOthers, hwMgmdV2RouterBaseMibGroup=hwMgmdV2RouterBaseMibGroup, hwMgmdRouterInterfaceGroups=hwMgmdRouterInterfaceGroups, hwMgmdMibNotificationGroup=hwMgmdMibNotificationGroup, hwMgmdTotalLimitThresholdExceedClear=hwMgmdTotalLimitThresholdExceedClear, hwMgmdCtlMsgCountReportSSM=hwMgmdCtlMsgCountReportSSM, hwMgmdRouterSrcListExpire=hwMgmdRouterSrcListExpire, hwMgmdInstanceName=hwMgmdInstanceName, hwMgmdMibNotifications=hwMgmdMibNotifications, hwMgmdCtlMsgCountIfIndex=hwMgmdCtlMsgCountIfIndex, hwMgmdGroup=hwMgmdGroup, hwMgmdCtlMsgCountEntry=hwMgmdCtlMsgCountEntry, hwMgmdRouterSrcListAddressType=hwMgmdRouterSrcListAddressType, hwMgmdRouterCacheVersion2HostTimer=hwMgmdRouterCacheVersion2HostTimer, hwMgmdRouterCacheUpTime=hwMgmdRouterCacheUpTime, hwMgmdCtlMsgCountISEX=hwMgmdCtlMsgCountISEX, hwMgmdCtlMsgCountReportASM=hwMgmdCtlMsgCountReportASM, hwMgmdGMPTotalLimit=hwMgmdGMPTotalLimit, hwMgmdGmpLimitGroupAddressType=hwMgmdGmpLimitGroupAddressType, HWMgmdCtlMsgState=HWMgmdCtlMsgState, hwMgmdMibGroups=hwMgmdMibGroups, hwMgmdRouterInterfaceStartupQueryInterval=hwMgmdRouterInterfaceStartupQueryInterval, hwMgmdHostStarGCurrentCount=hwMgmdHostStarGCurrentCount, hwMgmdHostStarGThreshold=hwMgmdHostStarGThreshold, hwMgmdRouterInterfaceQuerierUpTime=hwMgmdRouterInterfaceQuerierUpTime, hwMgmdRouterInterfaceStartupQueryCount=hwMgmdRouterInterfaceStartupQueryCount, hwMgmdCtlMsgCountTOEX=hwMgmdCtlMsgCountTOEX, hwMgmdRouterInterfaceStatus=hwMgmdRouterInterfaceStatus, hwMgmdRouterCacheSourceFilterMode=hwMgmdRouterCacheSourceFilterMode, hwMgmdV3RouterMibGroup=hwMgmdV3RouterMibGroup, hwMgmdIgmpV1RouterMibCompliance=hwMgmdIgmpV1RouterMibCompliance, hwMgmdInterfaceEntries=hwMgmdInterfaceEntries, hwMgmdGMPGlobalLimitClear=hwMgmdGMPGlobalLimitClear, hwMgmdGmpLimitSource=hwMgmdGmpLimitSource, hwMgmdRouterInterfaceLastMembQueryCount=hwMgmdRouterInterfaceLastMembQueryCount, hwMgmdInterfaceLimit=hwMgmdInterfaceLimit, hwMgmdCtlMsgCountALLOW=hwMgmdCtlMsgCountALLOW, hwMgmdTotalLimitThresholdExceed=hwMgmdTotalLimitThresholdExceed, hwMgmdInverseRouterCacheEntry=hwMgmdInverseRouterCacheEntry, hwMgmdGmpLeave=hwMgmdGmpLeave, hwMcast=hwMcast, hwMgmdGmpInterfaceIfIndex=hwMgmdGmpInterfaceIfIndex, hwMgmdRouterCacheAddressType=hwMgmdRouterCacheAddressType, hwMgmdGmpJoinSrcAddr=hwMgmdGmpJoinSrcAddr, hwMgmdStdMib=hwMgmdStdMib, hwMgmdHostStarGThresholdExceedClear=hwMgmdHostStarGThresholdExceedClear, hwMgmdMibCompliance=hwMgmdMibCompliance, hwMgmdRouterInterfaceIfIndex=hwMgmdRouterInterfaceIfIndex, hwMgmdHostStarGExceedClear=hwMgmdHostStarGExceedClear, hwMgmdHostStarGThresholdExceed=hwMgmdHostStarGThresholdExceed, hwMgmdCtlMsgCountState=hwMgmdCtlMsgCountState, hwMgmdRouterBaseMibGroup=hwMgmdRouterBaseMibGroup, hwMgmdHostSGThresholdExceed=hwMgmdHostSGThresholdExceed, hwMgmdMibConformance=hwMgmdMibConformance, hwMgmdHostNotificationSrcAddr=hwMgmdHostNotificationSrcAddr, hwMgmdGmpInterfaceName=hwMgmdGmpInterfaceName, hwMgmdV2IgmpRouterMibGroup=hwMgmdV2IgmpRouterMibGroup, hwMgmdHostSGCurrentCount=hwMgmdHostSGCurrentCount)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_intersection, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (interface_index_or_zero, interface_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero', 'InterfaceIndex') (inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (time_ticks, notification_type, bits, integer32, mib_identifier, gauge32, module_identity, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, counter64, object_identity, iso, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'NotificationType', 'Bits', 'Integer32', 'MibIdentifier', 'Gauge32', 'ModuleIdentity', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Counter64', 'ObjectIdentity', 'iso', 'Unsigned32') (row_status, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention') hw_mcast = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149)) hw_mgmd_std_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3)) hwMgmdStdMib.setRevisions(('2014-07-09 00:00', '2014-07-01 00:00', '2014-06-20 00:00', '2013-08-28 00:00', '2007-04-16 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hwMgmdStdMib.setRevisionsDescriptions(('1.Add hwMgmdHostStarGThresholdExceed trap. 2.Add hwMgmdHostStarGThresholdExceedClear trap. 3.Add hwMgmdHostStarGExceed trap. 4.Add hwMgmdHostStarGExceedClear trap. 5.Add hwMgmdHostSGThreshodExceed trap. 6.Add hwMgmdHostSGThreshodExceedClear trap. 7.Add hwMgmdHostSGExceed trap. 8.Add hwMgmdHostSGExceedClear trap. ', '1.Correct trap name hwMgmdTotalLimitThreshodExceed to hwMgmdTotalLimitThresholdExceed and modify the description. 2.Correct trap name hwMgmdTotalLimitThreshodExceedClear to hwMgmdTotalLimitThresholdExceedClear and modify the description. ', '1.Add hwMgmdTotalLimitThreshodExceed trap. 2.Add hwMgmdTotalLimitThreshodExceedClear trap. ', 'Modify import mibs', 'The initial revision of this MIB module.')) if mibBuilder.loadTexts: hwMgmdStdMib.setLastUpdated('201407090000Z') if mibBuilder.loadTexts: hwMgmdStdMib.setOrganization('Huawei Technologies Co.,Ltd.') if mibBuilder.loadTexts: hwMgmdStdMib.setContactInfo("Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: [email protected] ") if mibBuilder.loadTexts: hwMgmdStdMib.setDescription('The MIB module for MGMD Management. Huawei Technologies Co.,Ltd . Supplementary information may be available at: http://www.huawei.com') class Hwmgmdctlmsgstate(TextualConvention, Integer32): description = 'The PIM control message state. valid(1) The valid IGMP/MLD control message has been received. invalid(2) The invalid IGMP/MLD control message has been received. ignore(3) The IGMP/MLD control message has been ignored.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('valid', 1), ('invalid', 2), ('ignore', 3)) hw_mgmd_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1)) hw_mgmd_mib_general_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2)) hw_mgmd_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3)) hw_mgmd_router_interface_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4)) if mibBuilder.loadTexts: hwMgmdRouterInterfaceTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceTable.setDescription('The (conceptual) table listing the interfaces on which IGMP or MLD is enabled.') hw_mgmd_router_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1)).setIndexNames((0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceIfIndex'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceQuerierType')) if mibBuilder.loadTexts: hwMgmdRouterInterfaceEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceEntry.setDescription('An entry (conceptual row) representing an interface on which IGMP or MLD is enabled.') hw_mgmd_router_interface_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 1), interface_index()) if mibBuilder.loadTexts: hwMgmdRouterInterfaceIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceIfIndex.setDescription('The ifIndex value of the interface for which IGMP or MLD is enabled. The table is indexed by the ifIndex value and the InetAddressType to allow for interfaces that may be configured in both IPv4 and IPv6 modes.') hw_mgmd_router_interface_querier_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 2), inet_address_type()) if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierType.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierType.setDescription('The address type of this interface. This entry along with the ifIndex value acts as the index to the hwMgmdRouterInterface table. A physical interface may be configured in multiple modes concurrently, e.g., in IPv4 and IPv6 modes connected to the same interface; however, the traffic is considered to be logically separate.') hw_mgmd_router_interface_querier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 3), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(16, 16)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerier.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerier.setDescription('The address of the IGMP or MLD Querier on the IP subnet to which this interface is attached. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdRouterInterfaceQuerierType variable in the hwMgmdRouterInterface table.') hw_mgmd_router_interface_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 31744)).clone(125)).setUnits('seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryInterval.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryInterval.setDescription('The frequency at which IGMP or MLD Host-Query packets are transmitted on this interface.') hw_mgmd_router_interface_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStatus.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStatus.setDescription('The activation of a row enables the router side of IGMP or MLD on the interface. The destruction of a row disables the router side of IGMP or MLD on the interface.') hw_mgmd_router_interface_version = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 3)).clone(3)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMgmdRouterInterfaceVersion.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceVersion.setDescription('The version of MGMD that is running on this interface. Value 1 applies to IGMPv1 routers only. Value 2 applies to IGMPv2 and MLDv1 routers, and value 3 applies to IGMPv3 and MLDv2 routers. This object can be used to configure a router capable of running either version. For IGMP and MLD to function correctly, all routers on a LAN must be configured to run the same version on that LAN.') hw_mgmd_router_interface_query_max_response_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31744)).clone(100)).setUnits('tenths of seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryMaxResponseTime.setReference('RFC 3810, Section 9.3') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryMaxResponseTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQueryMaxResponseTime.setDescription('The maximum query response interval advertised in MGMDv2 or IGMPv3 queries on this interface.') hw_mgmd_router_interface_querier_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 8), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierUpTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierUpTime.setDescription('The time since hwMgmdRouterInterfaceQuerier was last changed.') hw_mgmd_router_interface_querier_expiry_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 9), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierExpiryTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceQuerierExpiryTime.setDescription('The amount of time remaining before the Other Querier Present Timer expires. If the local system is the querier, the value of this object is zero.') hw_mgmd_router_interface_wrong_version_queries = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceWrongVersionQueries.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceWrongVersionQueries.setDescription('The number of general queries received whose IGMP or MLD version does not match the equivalent hwMgmdRouterInterfaceVersion, over the lifetime of the row entry. Both IGMP and MLD require that all routers on a LAN be configured to run the same version. Thus, if any general queries are received with the wrong version, this indicates a configuration error.') hw_mgmd_router_interface_joins = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceJoins.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceJoins.setDescription('The number of times a group membership has been added on this interface, that is, the number of times an entry for this interface has been added to the Cache Table. This object can give an indication of the amount of activity between samples over time.') hw_mgmd_router_interface_proxy_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 12), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMgmdRouterInterfaceProxyIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceProxyIfIndex.setDescription('Some devices implement a form of IGMP or MLD proxying whereby memberships learned on the interface represented by this row cause Host Membership Reports to be sent on the interface whose ifIndex value is given by this object. Such a device would implement the hwMgmdV2RouterBaseMIBGroup only on its router interfaces (those interfaces with non-zero hwMgmdRouterInterfaceProxyIfIndex). Typically, the value of this object is 0, indicating that no proxying is being done.') hw_mgmd_router_interface_groups = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 13), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceGroups.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceGroups.setDescription('The current number of entries for this interface in the RouterCache Table.') hw_mgmd_router_interface_robustness = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 14), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(2)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMgmdRouterInterfaceRobustness.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceRobustness.setDescription('The Robustness Variable allows tuning for the expected packet loss on a subnet. If a subnet is expected to be lossy, the Robustness Variable may be increased. IGMP and MLD are robust to (Robustness Variable-1) packet losses.') hw_mgmd_router_interface_last_memb_query_intvl = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31744)).clone(10)).setUnits('tenths of seconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryIntvl.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryIntvl.setDescription('The Last Member Query Interval is the Max Query Response Interval inserted into group-specific queries sent in response to leave group messages, and is also the amount of time between group-specific query messages. This value may be tuned to modify the leave latency of the network. A reduced value results in reduced time to detect the loss of the last member of a group. The value of this object is irrelevant if hwMgmdRouterInterfaceVersion is 1.') hw_mgmd_router_interface_last_memb_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 16), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceLastMembQueryCount.setDescription('Represents the number of group-specific and group-and- source-specific queries sent by the router before it assumes there are no local members.') hw_mgmd_router_interface_startup_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryCount.setDescription('Represents the number of Queries sent out on startup, separated by the Startup Query Interval.') hw_mgmd_router_interface_startup_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 4, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31744))).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryInterval.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterInterfaceStartupQueryInterval.setDescription('This variable represents the interval between General Queries sent by a Querier on startup.') hw_mgmd_router_cache_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6)) if mibBuilder.loadTexts: hwMgmdRouterCacheTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheTable.setDescription('The (conceptual) table listing the IP multicast groups for which there are members on a particular router interface.') hw_mgmd_router_cache_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1)).setIndexNames((0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheAddressType'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheAddress'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheIfIndex')) if mibBuilder.loadTexts: hwMgmdRouterCacheEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheEntry.setDescription('An entry (conceptual row) in the hwMgmdRouterCacheTable.') hw_mgmd_router_cache_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 1), inet_address_type()) if mibBuilder.loadTexts: hwMgmdRouterCacheAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheAddressType.setDescription('The address type of the hwMgmdRouterCacheTable entry. This value applies to both the hwMgmdRouterCacheAddress and the hwMgmdRouterCacheLastReporter entries.') hw_mgmd_router_cache_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 2), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(16, 16)))) if mibBuilder.loadTexts: hwMgmdRouterCacheAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheAddress.setDescription('The IP multicast group address for which this entry contains information. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdRouterCacheAddressType variable in the hwMgmdRouterCache table.') hw_mgmd_router_cache_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 3), interface_index()) if mibBuilder.loadTexts: hwMgmdRouterCacheIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheIfIndex.setDescription('The interface for which this entry contains information for an IP multicast group address.') hw_mgmd_router_cache_last_reporter = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 4), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterCacheLastReporter.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheLastReporter.setDescription('The IP address of the source of the last membership report received for this IP multicast group address on this interface. If no membership report has been received, this object has the value 0. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdRouterCacheAddressType variable in the hwMgmdRouterCache table.') hw_mgmd_router_cache_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterCacheUpTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheUpTime.setDescription('The time elapsed since this entry was created.') hw_mgmd_router_cache_expiry_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 6), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterCacheExpiryTime.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheExpiryTime.setDescription('This value represents the time remaining before the Group Membership Interval state expires. The value must always be greater than or equal to 1.') hw_mgmd_router_cache_exclude_mode_expiry_timer = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 7), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterCacheExcludeModeExpiryTimer.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheExcludeModeExpiryTimer.setDescription('This value is applicable only to MGMDv3-compatible nodes and represents the time remaining before the interface EXCLUDE state expires and the interface state transitions to INCLUDE mode. This value can never be greater than hwMgmdRouterCacheExpiryTime.') hw_mgmd_router_cache_version1_host_timer = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 8), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterCacheVersion1HostTimer.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheVersion1HostTimer.setDescription('The time remaining until the local router will assume that there are no longer any MGMD version 1 members on the IP subnet attached to this interface. This entry only applies to IGMPv1 hosts, and is not implemented for MLD. Upon hearing any MGMDv1 Membership Report (IGMPv1 only), this value is reset to the group membership timer. While this time remaining is non-zero, the local router ignores any MGMDv2 Leave messages (IGMPv2 only) for this group that it receives on this interface.') hw_mgmd_router_cache_version2_host_timer = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 9), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterCacheVersion2HostTimer.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheVersion2HostTimer.setDescription('The time remaining until the local router will assume that there are no longer any MGMD version 2 members on the IP subnet attached to this interface. This entry applies to both IGMP and MLD hosts. Upon hearing any MGMDv2 Membership Report, this value is reset to the group membership timer. Assuming no MGMDv1 hosts have been detected, the local router does not ignore any MGMDv2 Leave messages for this group that it receives on this interface.') hw_mgmd_router_cache_source_filter_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 6, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('include', 1), ('exclude', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterCacheSourceFilterMode.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterCacheSourceFilterMode.setDescription('The current cache state, applicable to MGMDv3 compatible nodes. The value indicates whether the state is INCLUDE or EXCLUDE.') hw_mgmd_inverse_router_cache_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8)) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheTable.setDescription('The (conceptual) table listing the interfaces that are members of a particular group. This is an inverse lookup table for entries in the hwMgmdRouterCacheTable.') hw_mgmd_inverse_router_cache_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1)).setIndexNames((0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdInverseRouterCacheIfIndex'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdInverseRouterCacheAddressType'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdInverseRouterCacheAddress')) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheEntry.setDescription('An entry (conceptual row) in the hwMgmdInverseRouterCacheTable.') hw_mgmd_inverse_router_cache_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1, 1), interface_index()) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheIfIndex.setDescription('The interface for which this entry contains information.') hw_mgmd_inverse_router_cache_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1, 2), inet_address_type()) if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddressType.setDescription('The address type of the hwMgmdInverseRouterCacheTable entry.') hw_mgmd_inverse_router_cache_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 8, 1, 3), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(16, 16)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdInverseRouterCacheAddress.setDescription('The IP multicast group address for which this entry contains information. The InetAddressType, e.g., IPv4 or IPv6, is identified by the hwMgmdInverseRouterCacheAddressType variable in the hwMgmdInverseRouterCache table.') hw_mgmd_router_src_list_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10)) if mibBuilder.loadTexts: hwMgmdRouterSrcListTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListTable.setDescription('The (conceptual) table listing the Source List entries corresponding to each interface and multicast group pair on a Router.') hw_mgmd_router_src_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1)).setIndexNames((0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterSrcListAddressType'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterSrcListAddress'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterSrcListIfIndex'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterSrcListHostAddress')) if mibBuilder.loadTexts: hwMgmdRouterSrcListEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListEntry.setDescription('An entry (conceptual row) in the hwMgmdRouterSrcListTable.') hw_mgmd_router_src_list_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 1), inet_address_type()) if mibBuilder.loadTexts: hwMgmdRouterSrcListAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListAddressType.setDescription('The address type of the InetAddress variables in this table. This value applies to the hwMgmdRouterSrcListHostAddress and hwMgmdRouterSrcListAddress entries.') hw_mgmd_router_src_list_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 2), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(16, 16)))) if mibBuilder.loadTexts: hwMgmdRouterSrcListAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListAddress.setDescription('The IP multicast group address for which this entry contains information.') hw_mgmd_router_src_list_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 3), interface_index()) if mibBuilder.loadTexts: hwMgmdRouterSrcListIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListIfIndex.setDescription('The interface for which this entry contains information for an IP multicast group address.') hw_mgmd_router_src_list_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 4), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(16, 16)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterSrcListHostAddress.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListHostAddress.setDescription('The host address to which this entry corresponds. The hwMgmdRouterCacheSourceFilterMode value for this group address and interface indicates whether this host address is included or excluded.') hw_mgmd_router_src_list_expire = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 10, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdRouterSrcListExpire.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterSrcListExpire.setDescription('This value indicates the relevance of the SrcList entry, whereby a non-zero value indicates this is an INCLUDE state value, and a zero value indicates this to be an EXCLUDE state value.') hw_mgmd_ctl_msg_count_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11)) if mibBuilder.loadTexts: hwMgmdCtlMsgCountTable.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTable.setDescription('The (conceptual) table used to list the control message counter on all the interfaces on which IGMP or MLD is enabled.') hw_mgmd_ctl_msg_count_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1)).setIndexNames((0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdCtlMsgCountIfIndex'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdCtlMsgCountQuerierType'), (0, 'HUAWEI-MGMD-STD-MIB', 'hwMgmdCtlMsgCountState')) if mibBuilder.loadTexts: hwMgmdCtlMsgCountEntry.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountEntry.setDescription('An entry (conceptual row) representing an interface on which IGMP or MLD is enabled. Dynamically created row state is non-volatile, and upon agent reboot should be reinstantiated as a conceptual row. Any change in read-create objects should therefore be backed up by stable storage.') hw_mgmd_ctl_msg_count_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 1), interface_index()) if mibBuilder.loadTexts: hwMgmdCtlMsgCountIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountIfIndex.setDescription('The ifIndex value of the interface for which IGMP or MLD is enabled. The table is indexed by the ifIndex value and the InetAddressType to allow for interfaces which may be configured in both IPv4 and IPv6 modes.') hw_mgmd_ctl_msg_count_querier_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 2), inet_address_type()) if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuerierType.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuerierType.setDescription('The address type of this interface. This entry along with the ifIndex value acts as the index to the hwMgmdRouterInterface table. A physical interface may be configured in multiple modes concurrently, e.g. in IPv4 and IPv6 modes connected to the same interface, however the traffic is considered to be logically separate.') hw_mgmd_ctl_msg_count_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 3), hw_mgmd_ctl_msg_state()) if mibBuilder.loadTexts: hwMgmdCtlMsgCountState.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountState.setDescription('The IGMP/MLD control message state.') hw_mgmd_ctl_msg_count_query = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuery.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountQuery.setDescription('The number of IGMP/MLD Query on this interface.') hw_mgmd_ctl_msg_count_report_asm = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportASM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportASM.setDescription('The number of IGMP/MLD report with ASM group on this interface.') hw_mgmd_ctl_msg_count_report_ssm = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportSSM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountReportSSM.setDescription('The number of IGMP/MLD report with SSM group on this interface.') hw_mgmd_ctl_msg_count_leave_asm = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveASM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveASM.setDescription('The number of IGMP/MLD leave with ASM group on this interface.') hw_mgmd_ctl_msg_count_leave_ssm = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveSSM.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountLeaveSSM.setDescription('The number of IGMP/MLD leave with ASM group on this interface.') hw_mgmd_ctl_msg_count_isin = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountISIN.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountISIN.setDescription('The number of IGMP/MLD is_in on this interface.') hw_mgmd_ctl_msg_count_isex = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountISEX.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountISEX.setDescription('The number of IGMP/MLD is_ex on this interface.') hw_mgmd_ctl_msg_count_toin = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 11), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOIN.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOIN.setDescription('The number of IGMP/MLD to_in on this interface.') hw_mgmd_ctl_msg_count_toex = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 12), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOEX.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountTOEX.setDescription('The number of IGMP/MLD to_ex on this interface.') hw_mgmd_ctl_msg_count_allow = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 13), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountALLOW.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountALLOW.setDescription('The number of IGMP/MLD allow on this interface.') hw_mgmd_ctl_msg_count_block = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 14), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountBLOCK.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountBLOCK.setDescription('The number of IGMP/MLD block on this interface.') hw_mgmd_ctl_msg_count_src_rec_total = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 15), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountSrcRecTotal.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountSrcRecTotal.setDescription('The number of total IGMP/MLD source record on this interface.') hw_mgmd_ctl_msg_count_others = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 1, 11, 1, 16), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdCtlMsgCountOthers.setStatus('current') if mibBuilder.loadTexts: hwMgmdCtlMsgCountOthers.setDescription('The number of total IGMP/MLD others packet on this interface.') hw_mgmd_group = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdGroup.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdGroup.setDescription('Group address of the entry.') hw_mgmd_source = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdSource.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdSource.setDescription('Source address of the entry.') hw_mgmd_limit_interface_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 3), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdLimitInterfaceIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdLimitInterfaceIfIndex.setDescription('The interface from which an IGMP or a MLD limit trap is most recently sent. If this router has not sent a limit trap, this object is set to 0.') hw_mgmd_global_entries = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdGlobalEntries.setStatus('current') if mibBuilder.loadTexts: hwMgmdGlobalEntries.setDescription('The total number of IGMP or MLD entries of this instance.') hw_mgmd_interface_entries = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdInterfaceEntries.setStatus('current') if mibBuilder.loadTexts: hwMgmdInterfaceEntries.setDescription('The total number of IGMP or MLD entries on the interface.') hw_mgmd_total_entries = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdTotalEntries.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalEntries.setDescription('The total number of IGMP or MLD entries of all instances.') hw_mgmd_gmp_join_grp_addr = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 7), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpJoinGrpAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinGrpAddr.setDescription('The IGMP or MLD group address to join.') hw_mgmd_gmp_join_src_addr = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 8), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpJoinSrcAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinSrcAddr.setDescription('The IGMP or MLD source address to join.') hw_mgmd_gmp_join_sender_ip = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 9), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpJoinSenderIp.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinSenderIp.setDescription('The host IP address for sending membership report.') hw_mgmd_gmp_join_version = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 3))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpJoinVersion.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoinVersion.setDescription('The version of MGMD which is running on this interface. Value 1 applies to IGMPv1 and MLDv1 version. Value 2 applies to IGMPv2 and MLDv2 version, and value 3 applies to IGMPv3 version. This object can be used to configure a router capable of running either version. For IGMP and MLD to function correctly, all routers on a LAN must be configured to run the same version on that LAN. This object MAY be modified under any rowstatus condition. ???? DEFVAL { 2 }') hw_mgmd_gmp_interface_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 11), interface_index()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpInterfaceIfIndex.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpInterfaceIfIndex.setDescription('The ifIndex value of the interface for which IGMP or MLD is enabled. The table is indexed by the ifIndex value and the InetAddressType to allow for interfaces which may be configured in both IPv4 and IPv6 modes.') hw_mgmd_gmp_interface_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 12), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpInterfaceName.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpInterfaceName.setDescription('The interface name of the interface for which IGMP or MLD is enabled.') hw_mgmd_gmp_limit_group_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 13), inet_address_type()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpLimitGroupAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLimitGroupAddressType.setDescription('The address type of the multicast group address in the most recently sent IGMP or MLD limit trap. If this router has not sent a limit trap, this object is set to 0.') hw_mgmd_gmp_limit_group = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 14), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4), value_size_constraint(8, 8), value_size_constraint(16, 16), value_size_constraint(20, 20)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpLimitGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLimitGroup.setDescription('The multicast group address in the most recently sent IGMP or MLD limit trap. The InetAddressType is defined by the hwMgmdGmpLimitGroupAddressType object.') hw_mgmd_gmp_limit_source = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 15), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4), value_size_constraint(8, 8), value_size_constraint(16, 16), value_size_constraint(20, 20)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdGmpLimitSource.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLimitSource.setDescription('The source address in the most recently sent IGMP or MLD limit trap. The InetAddressType is defined by the hwMgmdGmpLimitGroupAddressType object.') hw_mgmd_instance_name = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 16), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdInstanceName.setStatus('current') if mibBuilder.loadTexts: hwMgmdInstanceName.setDescription('The instance name of the trap.') hw_mgmd_notification_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 17), inet_address_type()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdNotificationAddressType.setStatus('current') if mibBuilder.loadTexts: hwMgmdNotificationAddressType.setDescription('The address type of the multicast group address in the most recently sent IGMP or MLD limit trap.') hw_mgmd_total_limit_current_count = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMgmdTotalLimitCurrentCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitCurrentCount.setDescription('The current number of IGMP or MLD entries of all instances.') hw_mgmd_total_limit_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 19), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdTotalLimitThreshold.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitThreshold.setDescription('The threshold value of IGMP or MLD entries uppper limit(%) of all instances.') hw_mgmd_host_star_g_current_count = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 20), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostStarGCurrentCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGCurrentCount.setDescription('The current number of IGMP or MLD proxy (*, G) entries of all instances.') hw_mgmd_host_star_g_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 21), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostStarGThreshold.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGThreshold.setDescription('The threshold value of IGMP or MLD proxy (*, G) entries uppper limit(%) of all instances.') hw_mgmd_host_star_g_total_count = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 22), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostStarGTotalCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGTotalCount.setDescription('The total number of IGMP or MLD proxy (*, G) entries of all instances.') hw_mgmd_host_notification_src_addr = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 23), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4), value_size_constraint(8, 8), value_size_constraint(16, 16), value_size_constraint(20, 20)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostNotificationSrcAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostNotificationSrcAddr.setDescription('The source address in the most recently sent IGMP or MLD proxy limit trap.') hw_mgmd_host_notification_grp_addr = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 24), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4), value_size_constraint(8, 8), value_size_constraint(16, 16), value_size_constraint(20, 20)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostNotificationGrpAddr.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostNotificationGrpAddr.setDescription('The multicast group address in the most recently sent IGMP or MLD proxy limit trap.') hw_mgmd_host_sg_current_count = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 25), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostSGCurrentCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGCurrentCount.setDescription('The current number of IGMP or MLD proxy (S, G) entries of all instances.') hw_mgmd_host_sg_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 26), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostSGThreshold.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGThreshold.setDescription('The threshold value of IGMP or MLD proxy (S, G)entries uppper limit(%) of all instances.') hw_mgmd_host_sg_total_count = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 2, 27), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hwMgmdHostSGTotalCount.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGTotalCount.setDescription('The total number of IGMP or MLD proxy (S, G) entries of all instances.') hw_mgmd_global_limit = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 1)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGlobalEntries')) if mibBuilder.loadTexts: hwMgmdGlobalLimit.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdGlobalLimit.setDescription('A hwMgmdGlobalLimit notification signifies that an IGMP report has been limited for up to maximum entries of IGMP global routing-table. This notification is generated whenever an IGMP report failed to create membership as IGMP global routing-table limit.') hw_mgmd_interface_limit = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 2)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdLimitInterfaceIfIndex'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInterfaceEntries')) if mibBuilder.loadTexts: hwMgmdInterfaceLimit.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdInterfaceLimit.setDescription('A hwMgmdInterfaceLimit notification signifies that an IGMP report has been limited for up to maximum entries of IGMP interface routing-table. This notification is generated whenever an IGMP report failed to create membership as IGMP interface routing-table limit.') hw_mgmd_total_limit = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 3)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalEntries')) if mibBuilder.loadTexts: hwMgmdTotalLimit.setStatus('obsolete') if mibBuilder.loadTexts: hwMgmdTotalLimit.setDescription('A hwMgmdTotalLimit notification signifies that an IGMP report has been limited for up to maximum entries of IGMP total routing-table. This notification is generated whenever an IGMP report failed to create membership as IGMP total routing-table limit.') hw_mgmd_gmp_join = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 4)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceName'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceIfIndex'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinVersion'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinSrcAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinGrpAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinSenderIp'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdGmpJoin.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpJoin.setDescription('A hwMgmdGmpJoin notification signifies the IGMP or MLD join message was received.') hw_mgmd_gmp_leave = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 5)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceName'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceIfIndex'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinSrcAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinGrpAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdGmpLeave.setStatus('current') if mibBuilder.loadTexts: hwMgmdGmpLeave.setDescription('A hwMgmdGmpLeave notification signifies the IGMP or MLD group leaved.') hw_mgmd_gmp_global_limit = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 6)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroupAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGlobalEntries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdGMPGlobalLimit.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPGlobalLimit.setDescription('This object indicates that the number of global IGMP or MLD entries of the instance reaches the upper limit. This trap message is generated when IGMP or MLD fails to create membership because the number of global IGMP or MLD entries of the instance reaches the upper limit.') hw_mgmd_gmp_interface_limit = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 7)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroupAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdLimitInterfaceIfIndex'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInterfaceEntries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceName'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimit.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimit.setDescription('This object indicates that the number of IGMP or MLD entries on the interface reaches the upper limit. This trap message is generated when IGMP or MLD fails to create membership because the number of IGMP or MLD entries on the interface reaches the upper limit.') hw_mgmd_gmp_total_limit = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 8)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroupAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalEntries')) if mibBuilder.loadTexts: hwMgmdGMPTotalLimit.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPTotalLimit.setDescription('This object indicates that the number of IGMP or MLD entries of all instances reaches the upper limit. This trap message is generated when IGMP or MLD fails to create membership because the number of IGMP or MLD entries of all instances reaches the upper limit.') hw_mgmd_gmp_interface_limit_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 9)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroupAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdLimitInterfaceIfIndex'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInterfaceEntries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceName'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimitClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPInterfaceLimitClear.setDescription('This object indicates that the number of IGMP or MLD entries on the interface falls below the upper limit. This trap message is generated when IGMP or MLD delete an entry resulting in the number of IGMP or MLD entries on the interface falls below the upper limit.') hw_mgmd_gmp_global_limit_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 10)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroupAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGlobalEntries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdGMPGlobalLimitClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPGlobalLimitClear.setDescription('This object indicates that the number of global IGMP or MLD entries of the instance falls blow the upper limit. This trap message is generated when IGMP or MLD delete an entry resulting in the number of global IGMP or MLD entries of the instance falls below the upper limit.') hw_mgmd_gmp_total_limit_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 11)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroupAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalEntries')) if mibBuilder.loadTexts: hwMgmdGMPTotalLimitClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdGMPTotalLimitClear.setDescription('This object indicates that the number of IGMP or MLD entries of all instances falls below the upper limit. This trap message is generated when IGMP or MLD delete an entry resulting in the number of IGMP or MLD entries of all instances falls below the upper limit.') hw_mgmd_total_limit_threshold_exceed = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 12)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalEntries')) if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceed.setDescription('A hwMgmdTotalLimitThresholdExceed notification signifies that IGMP or MLD entries count of all instances reached the upper threshold.') hw_mgmd_total_limit_threshold_exceed_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 13)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalEntries')) if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdTotalLimitThresholdExceedClear.setDescription('A hwMgmdTotalLimitThresholdExceedClear notification signifies that IGMP or MLD entries count of all instances fell below the lower threshold.') hw_mgmd_host_star_g_threshold_exceed = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 14)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGTotalCount')) if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceed.setDescription('A hwMgmdHostStarGThresholdExceed notification signifies that IGMP or MLD proxy (*, G) entries count of all instances reached the upper threshold.') hw_mgmd_host_star_g_threshold_exceed_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 15)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGTotalCount')) if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGThresholdExceedClear.setDescription('A hwMgmdHostStarGThresholdExceedClear notification signifies that IGMP or MLD proxy (*, G) entries count of all instances fell below the lower threshold.') hw_mgmd_host_star_g_exceed = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 16)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostNotificationSrcAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostNotificationGrpAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGTotalCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdHostStarGExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGExceed.setDescription('A hwMgmdHostStarGExceed notification signifies that IGMP or MLD proxy (*, G) entries can not be created because the limit is reached.') hw_mgmd_host_star_g_exceed_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 17)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGTotalCount')) if mibBuilder.loadTexts: hwMgmdHostStarGExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostStarGExceedClear.setDescription('A hwMgmdHostStarGExceedClear notification signifies that IGMP or MLD proxy (*, G) entries can be created because can be created because the number of IGMP or MLD (*, G) entries fell below the limit.') hw_mgmd_host_sg_threshold_exceed = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 18)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGTotalCount')) if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceed.setDescription('A hwMgmdHostSGThresholdExceed notification signifies that IGMP or MLD proxy (S, G) entries count of all instances reached the upper threshold.') hw_mgmd_host_sg_threshold_exceed_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 19)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGTotalCount')) if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGThresholdExceedClear.setDescription('A hwMgmdHostSGThresholdExceedClear notification signifies that IGMP or MLD proxy (S, G) entries count of all instances fell below the lower threshold.') hw_mgmd_host_sg_exceed = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 20)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostNotificationSrcAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostNotificationGrpAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGTotalCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName')) if mibBuilder.loadTexts: hwMgmdHostSGExceed.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGExceed.setDescription('A hwMgmdHostSGExceed notification signifies that IGMP or MLD proxy (S, G) entries can not be created because the limit of all instances is reached.') hw_mgmd_host_sg_exceed_clear = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 3, 21)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGTotalCount')) if mibBuilder.loadTexts: hwMgmdHostSGExceedClear.setStatus('current') if mibBuilder.loadTexts: hwMgmdHostSGExceedClear.setDescription('A hwMgmdHostSGExceedClear notification signifies that IGMP or MLD proxy (S, G) entries can be created because can be created because the number of IGMP or MLD (S, G) entries of all instances fell below the limit.') hw_mgmd_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4)) hw_mgmd_mib_compliance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3)) hw_mgmd_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4)) hw_mgmd_igmp_v1_router_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 2)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterBaseMibGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_igmp_v1_router_mib_compliance = hwMgmdIgmpV1RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdIgmpV1RouterMibCompliance.setDescription('The version statement for routers running IGMPv1, RFC 1112 [4], and implementing the MGMD Mib. MGMDv1 applies to hosts and routers running IGMPv1 only. IGMPv1 routers must support the IPv4 address type ') hw_mgmd_igmp_v2_router_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 4)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2RouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2IgmpRouterMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2RouterOptMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2ProxyMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdMibNotificationObjects'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdMibNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_igmp_v2_router_mib_compliance = hwMgmdIgmpV2RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdIgmpV2RouterMibCompliance.setDescription('The version statement for routers running IGMPv2, RFC 2236 [5], and implementing the MGMD Mib. MGMDv2 applies to hosts and routers running IGMPv2 or MLDv1. IGMPv2 routers must support the IPv4 address type ') hw_mgmd_mld_v1_router_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 6)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2RouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2RouterOptMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2ProxyMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdMibNotificationObjects'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdMibNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_mld_v1_router_mib_compliance = hwMgmdMldV1RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdMldV1RouterMibCompliance.setDescription('The version statement for routers running MLDv1, RFC 2710 [7], and implementing the MGMD Mib. MGMDv2 applies to hosts and routers running IGMPv2 or MLDv1. MLDv1 routers must support the IPv6 address type.') hw_mgmd_igmp_v3_router_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 8)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2RouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2IgmpRouterMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV3RouterMibGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_igmp_v3_router_mib_compliance = hwMgmdIgmpV3RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdIgmpV3RouterMibCompliance.setDescription('The version statement for routers running IGMPv3, RFC 3376 [6], and implementing the MGMD Mib. MGMDv3 applies to hosts and routers running IGMPv3 or MLDv2. IGMPv3 routers must support the IPv4 address type.') hw_mgmd_mld_v2_router_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 3, 10)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV2RouterBaseMibGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdV3RouterMibGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_mld_v2_router_mib_compliance = hwMgmdMldV2RouterMibCompliance.setStatus('current') if mibBuilder.loadTexts: hwMgmdMldV2RouterMibCompliance.setDescription('The version statement for routers running MLDv2 [8] and implementing the MGMD Mib. MGMDv3 applies to hosts and routers running IGMPv3 or MLDv2. MLDv2 routers must support the IPv6 address type.') hw_mgmd_router_base_mib_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 2)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceStatus'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheUpTime'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheExpiryTime'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceJoins'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceGroups'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheLastReporter'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceQuerierUpTime'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceQuerierExpiryTime'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceQueryInterval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_router_base_mib_group = hwMgmdRouterBaseMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdRouterBaseMibGroup.setDescription('The basic collection of objects providing management of MGMD version 1, 2 or 3 for Routers.') hw_mgmd_v2_router_base_mib_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 6)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceVersion'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceQuerier'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceQueryMaxResponseTime'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceRobustness'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceWrongVersionQueries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceLastMembQueryIntvl'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceLastMembQueryCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceStartupQueryCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceStartupQueryInterval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_v2_router_base_mib_group = hwMgmdV2RouterBaseMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2RouterBaseMibGroup.setDescription('A collection of additional objects for management of MGMD version 2 in routers.') hw_mgmd_v2_igmp_router_mib_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 7)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheVersion1HostTimer')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_v2_igmp_router_mib_group = hwMgmdV2IgmpRouterMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2IgmpRouterMibGroup.setDescription('A collection of further objects required by IGMPv2 routers for MGMD version 2 compliance. ') hw_mgmd_v2_proxy_mib_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 8)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterInterfaceProxyIfIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_v2_proxy_mib_group = hwMgmdV2ProxyMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2ProxyMibGroup.setDescription('A collection of additional objects for management of MGMD proxy devices.') hw_mgmd_v2_router_opt_mib_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 9)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdInverseRouterCacheAddress')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_v2_router_opt_mib_group = hwMgmdV2RouterOptMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV2RouterOptMibGroup.setDescription('An additional optional object for management of MGMD version 2 in routers.') hw_mgmd_v3_router_mib_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 11)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheSourceFilterMode'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheVersion2HostTimer'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterCacheExcludeModeExpiryTimer'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterSrcListHostAddress'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdRouterSrcListExpire')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_v3_router_mib_group = hwMgmdV3RouterMibGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdV3RouterMibGroup.setDescription('A collection of additional objects for management of MGMD version 3 in routers.') hw_mgmd_mib_notification_objects = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 12)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdLimitInterfaceIfIndex'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGlobalEntries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInterfaceEntries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalEntries'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinGrpAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinSrcAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinSenderIp'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoinVersion'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceIfIndex'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpInterfaceName'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroupAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitGroup'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLimitSource'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInstanceName'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdNotificationAddressType'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGTotalCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostNotificationSrcAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostNotificationGrpAddr'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGCurrentCount'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGThreshold'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGTotalCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_mib_notification_objects = hwMgmdMibNotificationObjects.setStatus('current') if mibBuilder.loadTexts: hwMgmdMibNotificationObjects.setDescription('A collection of objects to support notification of MGMD notification network management events.') hw_mgmd_mib_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 149, 3, 4, 4, 13)).setObjects(('HUAWEI-MGMD-STD-MIB', 'hwMgmdGlobalLimit'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdInterfaceLimit'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimit'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpJoin'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGmpLeave'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGMPGlobalLimit'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGMPInterfaceLimit'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGMPTotalLimit'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGMPInterfaceLimitClear'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGMPGlobalLimitClear'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdGMPTotalLimitClear'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitThresholdExceed'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdTotalLimitThresholdExceedClear'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGThresholdExceed'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGThresholdExceedClear'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGExceed'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostStarGExceedClear'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGThresholdExceed'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGThresholdExceedClear'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGExceed'), ('HUAWEI-MGMD-STD-MIB', 'hwMgmdHostSGExceedClear')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_mgmd_mib_notification_group = hwMgmdMibNotificationGroup.setStatus('current') if mibBuilder.loadTexts: hwMgmdMibNotificationGroup.setDescription('A collection of notifications for signaling MGMD notification management events.') mibBuilder.exportSymbols('HUAWEI-MGMD-STD-MIB', hwMgmdRouterInterfaceQueryInterval=hwMgmdRouterInterfaceQueryInterval, hwMgmdRouterCacheVersion1HostTimer=hwMgmdRouterCacheVersion1HostTimer, hwMgmdRouterCacheExpiryTime=hwMgmdRouterCacheExpiryTime, hwMgmdHostStarGTotalCount=hwMgmdHostStarGTotalCount, hwMgmdRouterCacheExcludeModeExpiryTimer=hwMgmdRouterCacheExcludeModeExpiryTimer, hwMgmdMldV1RouterMibCompliance=hwMgmdMldV1RouterMibCompliance, hwMgmdMibNotificationObjects=hwMgmdMibNotificationObjects, hwMgmdHostSGExceed=hwMgmdHostSGExceed, hwMgmdRouterInterfaceQueryMaxResponseTime=hwMgmdRouterInterfaceQueryMaxResponseTime, hwMgmdRouterInterfaceRobustness=hwMgmdRouterInterfaceRobustness, hwMgmdRouterSrcListAddress=hwMgmdRouterSrcListAddress, hwMgmdHostSGExceedClear=hwMgmdHostSGExceedClear, hwMgmdGlobalLimit=hwMgmdGlobalLimit, hwMgmdGmpJoinVersion=hwMgmdGmpJoinVersion, hwMgmdNotificationAddressType=hwMgmdNotificationAddressType, hwMgmdTotalLimit=hwMgmdTotalLimit, hwMgmdRouterInterfaceLastMembQueryIntvl=hwMgmdRouterInterfaceLastMembQueryIntvl, hwMgmdInverseRouterCacheTable=hwMgmdInverseRouterCacheTable, hwMgmdRouterCacheAddress=hwMgmdRouterCacheAddress, hwMgmdCtlMsgCountQuerierType=hwMgmdCtlMsgCountQuerierType, hwMgmdGmpJoinSenderIp=hwMgmdGmpJoinSenderIp, hwMgmdGmpLimitGroup=hwMgmdGmpLimitGroup, hwMgmdGMPTotalLimitClear=hwMgmdGMPTotalLimitClear, hwMgmdIgmpV2RouterMibCompliance=hwMgmdIgmpV2RouterMibCompliance, hwMgmdRouterSrcListIfIndex=hwMgmdRouterSrcListIfIndex, hwMgmdV2RouterOptMibGroup=hwMgmdV2RouterOptMibGroup, hwMgmdHostSGThreshold=hwMgmdHostSGThreshold, hwMgmdLimitInterfaceIfIndex=hwMgmdLimitInterfaceIfIndex, hwMgmdGmpJoinGrpAddr=hwMgmdGmpJoinGrpAddr, hwMgmdRouterCacheTable=hwMgmdRouterCacheTable, hwMgmdCtlMsgCountSrcRecTotal=hwMgmdCtlMsgCountSrcRecTotal, hwMgmdRouterInterfaceProxyIfIndex=hwMgmdRouterInterfaceProxyIfIndex, hwMgmdGmpJoin=hwMgmdGmpJoin, hwMgmdHostStarGExceed=hwMgmdHostStarGExceed, hwMgmdRouterCacheIfIndex=hwMgmdRouterCacheIfIndex, hwMgmdCtlMsgCountLeaveSSM=hwMgmdCtlMsgCountLeaveSSM, hwMgmdIgmpV3RouterMibCompliance=hwMgmdIgmpV3RouterMibCompliance, hwMgmdRouterInterfaceQuerier=hwMgmdRouterInterfaceQuerier, hwMgmdMldV2RouterMibCompliance=hwMgmdMldV2RouterMibCompliance, hwMgmdRouterInterfaceQuerierExpiryTime=hwMgmdRouterInterfaceQuerierExpiryTime, hwMgmdRouterSrcListEntry=hwMgmdRouterSrcListEntry, hwMgmdCtlMsgCountTable=hwMgmdCtlMsgCountTable, hwMgmdInverseRouterCacheAddressType=hwMgmdInverseRouterCacheAddressType, hwMgmdRouterInterfaceTable=hwMgmdRouterInterfaceTable, hwMgmdCtlMsgCountTOIN=hwMgmdCtlMsgCountTOIN, hwMgmdTotalLimitCurrentCount=hwMgmdTotalLimitCurrentCount, hwMgmdRouterSrcListHostAddress=hwMgmdRouterSrcListHostAddress, hwMgmdGMPInterfaceLimit=hwMgmdGMPInterfaceLimit, hwMgmdRouterInterfaceQuerierType=hwMgmdRouterInterfaceQuerierType, hwMgmdGMPInterfaceLimitClear=hwMgmdGMPInterfaceLimitClear, hwMgmdRouterInterfaceJoins=hwMgmdRouterInterfaceJoins, hwMgmdRouterInterfaceEntry=hwMgmdRouterInterfaceEntry, PYSNMP_MODULE_ID=hwMgmdStdMib, hwMgmdCtlMsgCountISIN=hwMgmdCtlMsgCountISIN, hwMgmdInverseRouterCacheIfIndex=hwMgmdInverseRouterCacheIfIndex, hwMgmdRouterInterfaceWrongVersionQueries=hwMgmdRouterInterfaceWrongVersionQueries, hwMgmdMibObjects=hwMgmdMibObjects, hwMgmdTotalLimitThreshold=hwMgmdTotalLimitThreshold, hwMgmdV2ProxyMibGroup=hwMgmdV2ProxyMibGroup, hwMgmdInverseRouterCacheAddress=hwMgmdInverseRouterCacheAddress, hwMgmdHostNotificationGrpAddr=hwMgmdHostNotificationGrpAddr, hwMgmdRouterSrcListTable=hwMgmdRouterSrcListTable, hwMgmdGlobalEntries=hwMgmdGlobalEntries, hwMgmdRouterCacheEntry=hwMgmdRouterCacheEntry, hwMgmdCtlMsgCountBLOCK=hwMgmdCtlMsgCountBLOCK, hwMgmdRouterInterfaceVersion=hwMgmdRouterInterfaceVersion, hwMgmdRouterCacheLastReporter=hwMgmdRouterCacheLastReporter, hwMgmdGMPGlobalLimit=hwMgmdGMPGlobalLimit, hwMgmdCtlMsgCountLeaveASM=hwMgmdCtlMsgCountLeaveASM, hwMgmdHostSGThresholdExceedClear=hwMgmdHostSGThresholdExceedClear, hwMgmdSource=hwMgmdSource, hwMgmdHostSGTotalCount=hwMgmdHostSGTotalCount, hwMgmdMibGeneralObjects=hwMgmdMibGeneralObjects, hwMgmdCtlMsgCountQuery=hwMgmdCtlMsgCountQuery, hwMgmdTotalEntries=hwMgmdTotalEntries, hwMgmdCtlMsgCountOthers=hwMgmdCtlMsgCountOthers, hwMgmdV2RouterBaseMibGroup=hwMgmdV2RouterBaseMibGroup, hwMgmdRouterInterfaceGroups=hwMgmdRouterInterfaceGroups, hwMgmdMibNotificationGroup=hwMgmdMibNotificationGroup, hwMgmdTotalLimitThresholdExceedClear=hwMgmdTotalLimitThresholdExceedClear, hwMgmdCtlMsgCountReportSSM=hwMgmdCtlMsgCountReportSSM, hwMgmdRouterSrcListExpire=hwMgmdRouterSrcListExpire, hwMgmdInstanceName=hwMgmdInstanceName, hwMgmdMibNotifications=hwMgmdMibNotifications, hwMgmdCtlMsgCountIfIndex=hwMgmdCtlMsgCountIfIndex, hwMgmdGroup=hwMgmdGroup, hwMgmdCtlMsgCountEntry=hwMgmdCtlMsgCountEntry, hwMgmdRouterSrcListAddressType=hwMgmdRouterSrcListAddressType, hwMgmdRouterCacheVersion2HostTimer=hwMgmdRouterCacheVersion2HostTimer, hwMgmdRouterCacheUpTime=hwMgmdRouterCacheUpTime, hwMgmdCtlMsgCountISEX=hwMgmdCtlMsgCountISEX, hwMgmdCtlMsgCountReportASM=hwMgmdCtlMsgCountReportASM, hwMgmdGMPTotalLimit=hwMgmdGMPTotalLimit, hwMgmdGmpLimitGroupAddressType=hwMgmdGmpLimitGroupAddressType, HWMgmdCtlMsgState=HWMgmdCtlMsgState, hwMgmdMibGroups=hwMgmdMibGroups, hwMgmdRouterInterfaceStartupQueryInterval=hwMgmdRouterInterfaceStartupQueryInterval, hwMgmdHostStarGCurrentCount=hwMgmdHostStarGCurrentCount, hwMgmdHostStarGThreshold=hwMgmdHostStarGThreshold, hwMgmdRouterInterfaceQuerierUpTime=hwMgmdRouterInterfaceQuerierUpTime, hwMgmdRouterInterfaceStartupQueryCount=hwMgmdRouterInterfaceStartupQueryCount, hwMgmdCtlMsgCountTOEX=hwMgmdCtlMsgCountTOEX, hwMgmdRouterInterfaceStatus=hwMgmdRouterInterfaceStatus, hwMgmdRouterCacheSourceFilterMode=hwMgmdRouterCacheSourceFilterMode, hwMgmdV3RouterMibGroup=hwMgmdV3RouterMibGroup, hwMgmdIgmpV1RouterMibCompliance=hwMgmdIgmpV1RouterMibCompliance, hwMgmdInterfaceEntries=hwMgmdInterfaceEntries, hwMgmdGMPGlobalLimitClear=hwMgmdGMPGlobalLimitClear, hwMgmdGmpLimitSource=hwMgmdGmpLimitSource, hwMgmdRouterInterfaceLastMembQueryCount=hwMgmdRouterInterfaceLastMembQueryCount, hwMgmdInterfaceLimit=hwMgmdInterfaceLimit, hwMgmdCtlMsgCountALLOW=hwMgmdCtlMsgCountALLOW, hwMgmdTotalLimitThresholdExceed=hwMgmdTotalLimitThresholdExceed, hwMgmdInverseRouterCacheEntry=hwMgmdInverseRouterCacheEntry, hwMgmdGmpLeave=hwMgmdGmpLeave, hwMcast=hwMcast, hwMgmdGmpInterfaceIfIndex=hwMgmdGmpInterfaceIfIndex, hwMgmdRouterCacheAddressType=hwMgmdRouterCacheAddressType, hwMgmdGmpJoinSrcAddr=hwMgmdGmpJoinSrcAddr, hwMgmdStdMib=hwMgmdStdMib, hwMgmdHostStarGThresholdExceedClear=hwMgmdHostStarGThresholdExceedClear, hwMgmdMibCompliance=hwMgmdMibCompliance, hwMgmdRouterInterfaceIfIndex=hwMgmdRouterInterfaceIfIndex, hwMgmdHostStarGExceedClear=hwMgmdHostStarGExceedClear, hwMgmdHostStarGThresholdExceed=hwMgmdHostStarGThresholdExceed, hwMgmdCtlMsgCountState=hwMgmdCtlMsgCountState, hwMgmdRouterBaseMibGroup=hwMgmdRouterBaseMibGroup, hwMgmdHostSGThresholdExceed=hwMgmdHostSGThresholdExceed, hwMgmdMibConformance=hwMgmdMibConformance, hwMgmdHostNotificationSrcAddr=hwMgmdHostNotificationSrcAddr, hwMgmdGmpInterfaceName=hwMgmdGmpInterfaceName, hwMgmdV2IgmpRouterMibGroup=hwMgmdV2IgmpRouterMibGroup, hwMgmdHostSGCurrentCount=hwMgmdHostSGCurrentCount)
def test_get_cpu_times(device): result = device.cpu_times() assert result is not None def test_get_cpu_percent(device): percent = device.cpu_percent(interval=1) assert percent is not None assert percent != 0 def test_get_cpu_count(device): assert device.cpu_count() == 2
def test_get_cpu_times(device): result = device.cpu_times() assert result is not None def test_get_cpu_percent(device): percent = device.cpu_percent(interval=1) assert percent is not None assert percent != 0 def test_get_cpu_count(device): assert device.cpu_count() == 2
# Normal way def userEntity(item) -> dict: return { "fname":item["fname"], "lname":item["lname"], "email":item["email"], } def usersEntity(entity) -> list: return [userEntity(item) for item in entity]
def user_entity(item) -> dict: return {'fname': item['fname'], 'lname': item['lname'], 'email': item['email']} def users_entity(entity) -> list: return [user_entity(item) for item in entity]
# Copyright (c) 2013-2018 LG Electronics, Inc. # # 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. # # SPDX-License-Identifier: Apache-2.0 { 'variables' : { 'sysroot%': '' }, "targets": [ { 'target_name': "webos-sysbus", 'include_dirs': [ '<!@(pkg-config --cflags-only-I glib-2.0 | sed s/-I//g)' ], 'sources': [ 'src/node_ls2.cpp', 'src/node_ls2_base.cpp', 'src/node_ls2_call.cpp', 'src/node_ls2_error_wrapper.cpp', 'src/node_ls2_handle.cpp', 'src/node_ls2_message.cpp', 'src/node_ls2_utils.cpp' ], 'link_settings': { 'libraries': [ '<!@(pkg-config --libs glib-2.0)', '-lluna-service2', '-lpthread' ] }, 'cflags!': [ '-fno-exceptions' ], 'cflags': [ '-g' ], 'cflags_cc': [ '-g', '--std=c++11' ], 'cflags_cc!': [ '-fno-exceptions' ], 'ldflags': [ '-pthread' ], 'actions': [ { 'variables': { 'trusted_scripts': [ "$(webos_servicesdir)/jsservicelauncher/bootstrap-node.js", "$(webos_prefix)/nodejs/unified_service_server.js" ] }, 'action_name':'gen_trusted', 'inputs': [ 'tools/gen_list.sh', 'binding.gyp' ], 'outputs': [ 'src/trusted_scripts.inc' ], 'action': [ '/bin/sh', 'tools/gen_list.sh', '<@(_outputs)', '<@(trusted_scripts)' ], 'message':'Generating trusted scripts list' } ] } ] }
{'variables': {'sysroot%': ''}, 'targets': [{'target_name': 'webos-sysbus', 'include_dirs': ['<!@(pkg-config --cflags-only-I glib-2.0 | sed s/-I//g)'], 'sources': ['src/node_ls2.cpp', 'src/node_ls2_base.cpp', 'src/node_ls2_call.cpp', 'src/node_ls2_error_wrapper.cpp', 'src/node_ls2_handle.cpp', 'src/node_ls2_message.cpp', 'src/node_ls2_utils.cpp'], 'link_settings': {'libraries': ['<!@(pkg-config --libs glib-2.0)', '-lluna-service2', '-lpthread']}, 'cflags!': ['-fno-exceptions'], 'cflags': ['-g'], 'cflags_cc': ['-g', '--std=c++11'], 'cflags_cc!': ['-fno-exceptions'], 'ldflags': ['-pthread'], 'actions': [{'variables': {'trusted_scripts': ['$(webos_servicesdir)/jsservicelauncher/bootstrap-node.js', '$(webos_prefix)/nodejs/unified_service_server.js']}, 'action_name': 'gen_trusted', 'inputs': ['tools/gen_list.sh', 'binding.gyp'], 'outputs': ['src/trusted_scripts.inc'], 'action': ['/bin/sh', 'tools/gen_list.sh', '<@(_outputs)', '<@(trusted_scripts)'], 'message': 'Generating trusted scripts list'}]}]}
def bool_func(i, w, a): if i == 0: if w == 0: return True else: return False # in case not choosing a[i-1] if bool_func(i-1, w, a): return True # in case choosing a[i-1] if bool_func(i-1, w-a[i-1], a): return True # return False if both cases are False return False def main(): N, W = map(int, input().split()) a = list(map(int, input().split())) if bool_func(N, W, a): print("Yes") else: print("No") ######### memo verson ########## def bool_func_memo(i, w, a, memo): if i == 0: if w == 0: return True else: return False # in case not choosing a[i-1] if memo[i-1][w] == float('inf'): memo[i-1][w] = bool_func(i-1, w, a, memo) if memo[i-1][w]: return True # in case choosing a[i-1] if memo[i-1][w-a[i-1]] == float('inf'): memo[i-1][w-a[i-1]] = bool_func(i-1, w-a[i-1], memo) if memo[i-1][w-a[i-1]]: return True # return False if both cases are False return False def main_memo(): N, W = map(int, input().split()) a = list(map(int, input().split())) memo = [float('inf')]*N*W if bool_func(N, W, a): print("Yes") else: print("No") if __name__=='__main__': #main() main_memo()
def bool_func(i, w, a): if i == 0: if w == 0: return True else: return False if bool_func(i - 1, w, a): return True if bool_func(i - 1, w - a[i - 1], a): return True return False def main(): (n, w) = map(int, input().split()) a = list(map(int, input().split())) if bool_func(N, W, a): print('Yes') else: print('No') def bool_func_memo(i, w, a, memo): if i == 0: if w == 0: return True else: return False if memo[i - 1][w] == float('inf'): memo[i - 1][w] = bool_func(i - 1, w, a, memo) if memo[i - 1][w]: return True if memo[i - 1][w - a[i - 1]] == float('inf'): memo[i - 1][w - a[i - 1]] = bool_func(i - 1, w - a[i - 1], memo) if memo[i - 1][w - a[i - 1]]: return True return False def main_memo(): (n, w) = map(int, input().split()) a = list(map(int, input().split())) memo = [float('inf')] * N * W if bool_func(N, W, a): print('Yes') else: print('No') if __name__ == '__main__': main_memo()
def mid(word: str | list | tuple) -> str: return "" if len(word) % 2 == 0 else word[round(len(word) // 2)] def tests() -> None: print(mid("hello")) # "l" print(mid("12345")) # "3" print(mid("hello2")) # "" print(mid("abc")) # "b" # It also works with lists! print(mid(["a", "b", "c", "d", "e"])) # "c" print(mid(("1", "2", "3", "4", "5"))) # "3" if __name__ == "__main__": tests()
def mid(word: str | list | tuple) -> str: return '' if len(word) % 2 == 0 else word[round(len(word) // 2)] def tests() -> None: print(mid('hello')) print(mid('12345')) print(mid('hello2')) print(mid('abc')) print(mid(['a', 'b', 'c', 'd', 'e'])) print(mid(('1', '2', '3', '4', '5'))) if __name__ == '__main__': tests()
def A(): q = int(input()) for i in range(q): n , a , b = map(int , input().split()) if(2*a<b): print(n*a) continue else: print(n//2*b+(n%2)*a) A()
def a(): q = int(input()) for i in range(q): (n, a, b) = map(int, input().split()) if 2 * a < b: print(n * a) continue else: print(n // 2 * b + n % 2 * a) a()
class AdministrationWarning(Warning): pass class TemporaryDirectoryDeletionWarning(Warning): pass
class Administrationwarning(Warning): pass class Temporarydirectorydeletionwarning(Warning): pass
#input # 13 # 19443 576 # 6001842 911503 # 4067 1248 # 6121885 186 # -410349 4955307 # 5375848 874 # 2770998 256 # 18765 1284 # 5813 1630 # 8212240 77 # 293304 -4580549 # 7956897 3420372 # 6775023 846 n = int(input()) for k in range(0, n): num = None for i in input().split(): if not(num): num = float(i) continue num /= float(i) print(round(num)," ", end="")
n = int(input()) for k in range(0, n): num = None for i in input().split(): if not num: num = float(i) continue num /= float(i) print(round(num), ' ', end='')
with open("instructions.txt") as f: content = f.readlines() instrL = [] for line in content: if ";" in line: instr = line.split(";")[0] instr = instr.replace(" ", "") instr = instr.replace("()", "") instr = instr.replace("void", "") nr = line.split("/")[2] nr = nr.rstrip("\n") #print("opcodes[%s] = std::bind(&Cpu::%s, this);" % (nr, instr)) #print("%s = %s, " % (instr, nr)) print("{\"%s\", %s}," % (instr, nr)) instrL.append(nr) # missingInstrL = [] # for x in range(0, len(instrL)): # if str(x) not in instrL[x]: # missingInstrL.append(instrL[x]) # print("missing instructions: " + str(len(missingInstrL))) # print(missingInstrL)
with open('instructions.txt') as f: content = f.readlines() instr_l = [] for line in content: if ';' in line: instr = line.split(';')[0] instr = instr.replace(' ', '') instr = instr.replace('()', '') instr = instr.replace('void', '') nr = line.split('/')[2] nr = nr.rstrip('\n') print('{"%s", %s},' % (instr, nr)) instrL.append(nr)
# this is an example trial file # each line in this file is one command # there are two type of commands, phase commands and robot commands #all comamands share the same format: # name_of_command(time_to_run_command, <some number of arguments>) # time_to_run_command is the numver of seconds afte rth trial starts # the command shoudl be sent to the robot # <some number of arguments> are other values taht the command shoudl take, # these vary depending on command. all arguments are seperated by commas # phase commands set the phase of the trial at the time specifed # lines that start with "#" do not send commands and can be used a comments on what you are doing phase(0, '1') # this sets the phase to one skee(3, 9) # executes the command skee 3 seconds after the program starts with input 9 phase(60, '2') phase(60, '3')
phase(0, '1') skee(3, 9) phase(60, '2') phase(60, '3')
def mittelwert(liste): return sum(liste)/len(liste) def mittelwert2(*liste): return sum(liste)/len(liste) print(mittelwert([3, 4, 5])) print(mittelwert2(3, 4, 5)) def ausgabe(Liste, ende="\n"): for element in Liste: print(element, end=ende) def ausgabe2(Liste, **kwargs): ende = "\n" if "ende" not in kwargs else kwargs["ende"] erstezeile = " " if "erstezeile" not in kwargs else kwargs["erstezeile"] print(erstezeile) for element in Liste: print(element, end=ende) einkaufsliste = ["Milch", "Eier", "Bier"] ausgabe(einkaufsliste) ausgabe(einkaufsliste, " ") print() ausgabe2(einkaufsliste) print() ausgabe2(einkaufsliste, erstezeile = "asdf" )
def mittelwert(liste): return sum(liste) / len(liste) def mittelwert2(*liste): return sum(liste) / len(liste) print(mittelwert([3, 4, 5])) print(mittelwert2(3, 4, 5)) def ausgabe(Liste, ende='\n'): for element in Liste: print(element, end=ende) def ausgabe2(Liste, **kwargs): ende = '\n' if 'ende' not in kwargs else kwargs['ende'] erstezeile = ' ' if 'erstezeile' not in kwargs else kwargs['erstezeile'] print(erstezeile) for element in Liste: print(element, end=ende) einkaufsliste = ['Milch', 'Eier', 'Bier'] ausgabe(einkaufsliste) ausgabe(einkaufsliste, ' ') print() ausgabe2(einkaufsliste) print() ausgabe2(einkaufsliste, erstezeile='asdf')
# Copyright 2021 The BladeDISC Authors. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. class UnionSet: def __init__(self, num_elems: int): self._num_elems = num_elems self._num_sets = num_elems self._group_id = dict([(g, g) for g in range(0, num_elems)]) def same_group(self, x: int, y: int): pid_x = self.find(x) pid_y = self.find(x) if (pid_x == pid_y): return True return False def find(self, x: int): assert(x < self._num_elems) assert(x in self._group_id) pid = self._group_id[x] if (pid != self._group_id[pid]): pid = self.find(pid) # path compression self._group_id[x] = pid return pid def num_sets(self): return self._num_sets def union(self, x: int, y: int): pid_x = self.find(x) pid_y = self.find(y) if (pid_x == pid_y): return self._num_sets -= 1 self._group_id[pid_y] = pid_x def get_groups(self): groups_dict = dict() for k in range(0, self._num_elems): pid = self.find(k) if pid not in groups_dict: groups_dict[pid] = list() groups_dict[pid].append(k) keys = sorted(groups_dict.keys()) groups = list() for k in keys: assert(len(groups_dict[k]) > 0) groups.append(groups_dict[k]) assert(self._num_sets == len(groups)) return groups
class Unionset: def __init__(self, num_elems: int): self._num_elems = num_elems self._num_sets = num_elems self._group_id = dict([(g, g) for g in range(0, num_elems)]) def same_group(self, x: int, y: int): pid_x = self.find(x) pid_y = self.find(x) if pid_x == pid_y: return True return False def find(self, x: int): assert x < self._num_elems assert x in self._group_id pid = self._group_id[x] if pid != self._group_id[pid]: pid = self.find(pid) self._group_id[x] = pid return pid def num_sets(self): return self._num_sets def union(self, x: int, y: int): pid_x = self.find(x) pid_y = self.find(y) if pid_x == pid_y: return self._num_sets -= 1 self._group_id[pid_y] = pid_x def get_groups(self): groups_dict = dict() for k in range(0, self._num_elems): pid = self.find(k) if pid not in groups_dict: groups_dict[pid] = list() groups_dict[pid].append(k) keys = sorted(groups_dict.keys()) groups = list() for k in keys: assert len(groups_dict[k]) > 0 groups.append(groups_dict[k]) assert self._num_sets == len(groups) return groups
''' Runtime: 56 ms, faster than 75.06% of Python3 online submissions for Longest Substring Without Repeating Characters. Memory Usage: 12.8 MB, less than 100.00% of Python3 online submissions for Longest Substring Without Repeating Characters. ''' ''' Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: "pwwkew" Output: 3 Explanation: The answer is "wke", with the length of 3. Note that the answer must be a substring, "pwke" is a subsequence and not a substring. ''' class Solution: def lengthOfLongestSubstring(self, s): #s for the input string #detect new substrings with a sliding window map = {} #stores all the characters found in the substring #{character:position_in_the_input_string} maxlen = 0 #the answer start = 0 #the starting point of the sliding window for i,value in enumerate(s): #'abc' -> 0 a; 1 b; 2 c if value in map: #Repeating character found. #Change the starting position of the sliding window #to the next character of the repeated one. new_start = map[value] + 1 if new_start > start: start = new_start #no repeating character found, #or have renewed the start of the sliding window num = i - start + 1 maxlen=max(maxlen,num) map[value] = i return maxlen
""" Runtime: 56 ms, faster than 75.06% of Python3 online submissions for Longest Substring Without Repeating Characters. Memory Usage: 12.8 MB, less than 100.00% of Python3 online submissions for Longest Substring Without Repeating Characters. """ '\nGiven a string, find the length of the longest substring without repeating characters.\n\nExample 1:\n\nInput: "abcabcbb"\nOutput: 3 \nExplanation: The answer is "abc", with the length of 3. \nExample 2:\n\nInput: "bbbbb"\nOutput: 1\nExplanation: The answer is "b", with the length of 1.\nExample 3:\n\nInput: "pwwkew"\nOutput: 3\nExplanation: The answer is "wke", with the length of 3. \n Note that the answer must be a substring, "pwke" is a subsequence and not a substring.\n' class Solution: def length_of_longest_substring(self, s): map = {} maxlen = 0 start = 0 for (i, value) in enumerate(s): if value in map: new_start = map[value] + 1 if new_start > start: start = new_start num = i - start + 1 maxlen = max(maxlen, num) map[value] = i return maxlen
n, m, k = map(int, input().split()) if k < n: print(k + 1, 1) else: k -= n r = n - k // (m - 1) if r & 1: print(r, m - k % (m - 1)) else: print(r, k % (m - 1) + 2)
(n, m, k) = map(int, input().split()) if k < n: print(k + 1, 1) else: k -= n r = n - k // (m - 1) if r & 1: print(r, m - k % (m - 1)) else: print(r, k % (m - 1) + 2)
TASK_NAME = 'ReviewTask' JS_ASSETS = [''] JS_ASSETS_OUTPUT = 'scripts/vulyk-declarations-review.js' JS_ASSETS_FILTERS = 'yui_js' CSS_ASSETS = [''] CSS_ASSETS_OUTPUT = 'styles/vulyk-declarations-review.css' CSS_ASSETS_FILTERS = 'yui_css'
task_name = 'ReviewTask' js_assets = [''] js_assets_output = 'scripts/vulyk-declarations-review.js' js_assets_filters = 'yui_js' css_assets = [''] css_assets_output = 'styles/vulyk-declarations-review.css' css_assets_filters = 'yui_css'
#!/usr/bin/python3 # -*-coding:utf-8-*- __author__ = "Bannings" class Solution: def decodeString(self, s: str) -> str: ans, stack, num = "", [], 0 for char in s: if char.isdigit(): num = num * 10 + int(char) elif char == "[": stack.append((num, ans)) num, ans = 0, "" elif char == "]": last_num, last_chars = stack.pop() ans = last_chars + last_num * ans else: ans += char return ans # def decodeString(self, s: str) -> str: # ans, stack = "", [] # i = 0 # while i < len(s) and s[i].islower(): # ans += s[i] # i += 1 # while i < len(s): # j = i # while s[i].isdigit(): i += 1 # num = int(s[j:i]) # i += 1 # [ # j = i # while i < len(s) and s[i].islower(): i += 1 # stack.append((num, s[j:i])) # while i < len(s) and s[i] == "]": # i += 1 # num, chars = stack.pop() # temp = chars * num # while i < len(s) and s[i].islower(): # temp += s[i] # i += 1 # if stack: # stack[-1] = stack[-1][0], stack[-1][1] + temp # else: # ans += temp # return ans if __name__ == '__main__': # assert Solution().decodeString("3[a]2[bc]") == "aaabcbc" assert Solution().decodeString("3[a2[c]]") == "accaccacc" assert Solution().decodeString("2[abc]3[cd]ef") == "abcabccdcdcdef" assert Solution().decodeString("abc3[cd]xyz") == "abccdcdcdxyz"
__author__ = 'Bannings' class Solution: def decode_string(self, s: str) -> str: (ans, stack, num) = ('', [], 0) for char in s: if char.isdigit(): num = num * 10 + int(char) elif char == '[': stack.append((num, ans)) (num, ans) = (0, '') elif char == ']': (last_num, last_chars) = stack.pop() ans = last_chars + last_num * ans else: ans += char return ans if __name__ == '__main__': assert solution().decodeString('3[a2[c]]') == 'accaccacc' assert solution().decodeString('2[abc]3[cd]ef') == 'abcabccdcdcdef' assert solution().decodeString('abc3[cd]xyz') == 'abccdcdcdxyz'
''' Given a target A on an infinite number line, i.e. -infinity to +infinity. You are currently at position 0 and you need to reach the target by moving according to the below rule: In ith move you can take i steps forward or backward. Find the minimum number of moves required to reach the target. ''' class Solution: # @param A : integer # @return an integer def solve(self, A): if A == 0: return 0 A = abs(A) i = 1 no = 0 while 1: no += i if no == A: return i if no > A: break i += 1 cur = no-A if(cur % 2 == 0): return i if((cur+i+1) % 2 == 0): return i+1 return i+2
""" Given a target A on an infinite number line, i.e. -infinity to +infinity. You are currently at position 0 and you need to reach the target by moving according to the below rule: In ith move you can take i steps forward or backward. Find the minimum number of moves required to reach the target. """ class Solution: def solve(self, A): if A == 0: return 0 a = abs(A) i = 1 no = 0 while 1: no += i if no == A: return i if no > A: break i += 1 cur = no - A if cur % 2 == 0: return i if (cur + i + 1) % 2 == 0: return i + 1 return i + 2
def format_name(first_name,last_name): if first_name == "" and last_name == "": return "You didn't provide valid inputs" first_name = first_name.title() last_name = last_name.title() return first_name + " " + last_name name = format_name(input("Enter your first name : "),input("Enter your last name : ")) print(name)
def format_name(first_name, last_name): if first_name == '' and last_name == '': return "You didn't provide valid inputs" first_name = first_name.title() last_name = last_name.title() return first_name + ' ' + last_name name = format_name(input('Enter your first name : '), input('Enter your last name : ')) print(name)
class AnalistaContable(): def sueldo(self, horas, precio, comisiones): print("el sueldo del analista contable es:", (horas*precio)- comisiones) def Datos(self, nombre, apellido, edad): print("el nombre del analista contable es: ", nombre ," ", apellido, "\n su edad es: ", edad) def labores(self, especialilzacion, crear, tipoContrato): print("el analista contable hace", crear, "y esta especializado en: ", especialilzacion, "\n el tipo de contrato que tiene es: ", tipoContrato)
class Analistacontable: def sueldo(self, horas, precio, comisiones): print('el sueldo del analista contable es:', horas * precio - comisiones) def datos(self, nombre, apellido, edad): print('el nombre del analista contable es: ', nombre, ' ', apellido, '\n su edad es: ', edad) def labores(self, especialilzacion, crear, tipoContrato): print('el analista contable hace', crear, 'y esta especializado en: ', especialilzacion, '\n el tipo de contrato que tiene es: ', tipoContrato)
class Person: def __init__(self, first_name: str, last_name: str, age: int) -> None: self.first_name = first_name self.last_name = last_name self.age = age def __repr__(self) -> str: return f"{self.first_name} {self.last_name}, {self.age} y.o."
class Person: def __init__(self, first_name: str, last_name: str, age: int) -> None: self.first_name = first_name self.last_name = last_name self.age = age def __repr__(self) -> str: return f'{self.first_name} {self.last_name}, {self.age} y.o.'
asdasdasd asdasdasdsa asdasd
asdasdasd asdasdasdsa asdasd
class CastLibraryTable: #------------------------------ def __init__(self, castlibs): self.by_nr = {} self.by_assoc_id = {} for cl in castlibs: self.by_nr[cl.nr] = cl if cl.assoc_id>0: self.by_assoc_id[cl.assoc_id] = cl def iter_by_nr(self): return self.by_nr.itervalues() def get_cast_library(self, lib_nr): return self.by_nr[lib_nr] def get_cast_member(self, lib_nr, member_nr): cast_lib = self.by_nr[lib_nr] return cast_lib.get_cast_member(member_nr) if cast_lib != None else None #-------------------------------------------------- class CastLibrary: #------------------------------ def __init__(self, nr, name, path, assoc_id, idx_range, self_idx): self.nr = nr self.name = name self.path = path self.assoc_id = assoc_id self.idx_range = idx_range self.self_idx = self_idx self.castmember_table = None def __repr__(self): return "<CastLibrary #%d name=\"%s\" size=%d>" % (self.nr, self.name, len(self.castmember_table) if self.castmember_table != None else -1) def get_path(self): return self.path def castmember_table_is_set(self): return self.castmember_table != None def get_castmember_table(self): return self.castmember_table def set_castmember_table(self,table): self.castmember_table = table def get_cast_member(self, member_nr): if self.castmember_table == None: return None # TODO: Ensure loaded return self.castmember_table[member_nr-1] #--------------------------------------------------
class Castlibrarytable: def __init__(self, castlibs): self.by_nr = {} self.by_assoc_id = {} for cl in castlibs: self.by_nr[cl.nr] = cl if cl.assoc_id > 0: self.by_assoc_id[cl.assoc_id] = cl def iter_by_nr(self): return self.by_nr.itervalues() def get_cast_library(self, lib_nr): return self.by_nr[lib_nr] def get_cast_member(self, lib_nr, member_nr): cast_lib = self.by_nr[lib_nr] return cast_lib.get_cast_member(member_nr) if cast_lib != None else None class Castlibrary: def __init__(self, nr, name, path, assoc_id, idx_range, self_idx): self.nr = nr self.name = name self.path = path self.assoc_id = assoc_id self.idx_range = idx_range self.self_idx = self_idx self.castmember_table = None def __repr__(self): return '<CastLibrary #%d name="%s" size=%d>' % (self.nr, self.name, len(self.castmember_table) if self.castmember_table != None else -1) def get_path(self): return self.path def castmember_table_is_set(self): return self.castmember_table != None def get_castmember_table(self): return self.castmember_table def set_castmember_table(self, table): self.castmember_table = table def get_cast_member(self, member_nr): if self.castmember_table == None: return None return self.castmember_table[member_nr - 1]
class TimeRecord: def __init__(self,ID,startHour,endHour,projectID,recordTypeID,description,statusID,minutes,oneNoteLink,km): self.ID = ID self.StartHour = startHour self.EndHour = endHour self.ProjectID = projectID self.RecordTypeID = recordTypeID self.Description = description self.StatusID = statusID self.Minutes = minutes self.OneNoteLink = oneNoteLink self.Km = km def __str__(self): return self.Description
class Timerecord: def __init__(self, ID, startHour, endHour, projectID, recordTypeID, description, statusID, minutes, oneNoteLink, km): self.ID = ID self.StartHour = startHour self.EndHour = endHour self.ProjectID = projectID self.RecordTypeID = recordTypeID self.Description = description self.StatusID = statusID self.Minutes = minutes self.OneNoteLink = oneNoteLink self.Km = km def __str__(self): return self.Description
class Multi(object): ITEMS = (1, 3), (5, 8) def __getitem__(self, i): return self.ITEMS[i[0]][i[1]] def __setitem__(self, i, x): self.ITEMS[i[0]][i[1]] = x def __len__(self): return 2, 2
class Multi(object): items = ((1, 3), (5, 8)) def __getitem__(self, i): return self.ITEMS[i[0]][i[1]] def __setitem__(self, i, x): self.ITEMS[i[0]][i[1]] = x def __len__(self): return (2, 2)
#!/usr/bin/env python3 def read_val(): return int(input()) def count_three_addend_decompositions(n): # https://www.wolframalpha.com/input/?i=sum_k%3D0%5En+(n+-+k+%2B+1) return (n + 1) * (n + 2) // 2 for _ in range(read_val()): print(count_three_addend_decompositions(read_val()))
def read_val(): return int(input()) def count_three_addend_decompositions(n): return (n + 1) * (n + 2) // 2 for _ in range(read_val()): print(count_three_addend_decompositions(read_val()))
ALLOWLIST_ACTIONS = [ "ip_allow_list.enable", "ip_allow_list.disable", "ip_allow_list.enable_for_installed_apps", "ip_allow_list.disable_for_installed_apps", "ip_allow_list_entry.create", "ip_allow_list_entry.update", "ip_allow_list_entry.destroy", ] def rule(event): return ( event.get("action").startswith("ip_allow_list") and event.get("action") in ALLOWLIST_ACTIONS ) def title(event): return f"GitHub Org IP Allow list modified by {event.get('actor')}."
allowlist_actions = ['ip_allow_list.enable', 'ip_allow_list.disable', 'ip_allow_list.enable_for_installed_apps', 'ip_allow_list.disable_for_installed_apps', 'ip_allow_list_entry.create', 'ip_allow_list_entry.update', 'ip_allow_list_entry.destroy'] def rule(event): return event.get('action').startswith('ip_allow_list') and event.get('action') in ALLOWLIST_ACTIONS def title(event): return f"GitHub Org IP Allow list modified by {event.get('actor')}."
# https://leetcode-cn.com/problems/lru-cache/ class LRUCache: def __init__(self, capacity: int): self.c = capacity self.l = [] self.d = {} def get(self, key: int) -> int: if key in self.d: self.l.pop(self.l.index(key)) self.l.append(key) return self.d[key] else: return -1 def put(self, key: int, value: int) -> None: if key in self.d: self.l.pop(self.l.index(key)) self.l.append(key) self.d[key] = value else: self.d[key] = value self.l.append(key) if len(self.l) > self.c: del (self.d[self.l.pop(0)])
class Lrucache: def __init__(self, capacity: int): self.c = capacity self.l = [] self.d = {} def get(self, key: int) -> int: if key in self.d: self.l.pop(self.l.index(key)) self.l.append(key) return self.d[key] else: return -1 def put(self, key: int, value: int) -> None: if key in self.d: self.l.pop(self.l.index(key)) self.l.append(key) self.d[key] = value else: self.d[key] = value self.l.append(key) if len(self.l) > self.c: del self.d[self.l.pop(0)]
cost = 14.99 taxperc = 23 tax = taxperc / 100.00 salepr = cost * (1.0 + tax) print("sale price:", salepr)
cost = 14.99 taxperc = 23 tax = taxperc / 100.0 salepr = cost * (1.0 + tax) print('sale price:', salepr)
{ "targets": [ { "target_name": "fortuna", "sources": [ "src/main.cpp", "src/libfortuna.cpp", "src/libfortuna/blf.c", "src/libfortuna/fortuna.c", "src/libfortuna/internal.c", "src/libfortuna/md5.c", "src/libfortuna/px.c", "src/libfortuna/random.c", "src/libfortuna/rijndael.c", "src/libfortuna/sha1.c", "src/libfortuna/sha2.c" ], "include_dirs" : [ "<!(node -e \"require('nan')\")" ] } ], }
{'targets': [{'target_name': 'fortuna', 'sources': ['src/main.cpp', 'src/libfortuna.cpp', 'src/libfortuna/blf.c', 'src/libfortuna/fortuna.c', 'src/libfortuna/internal.c', 'src/libfortuna/md5.c', 'src/libfortuna/px.c', 'src/libfortuna/random.c', 'src/libfortuna/rijndael.c', 'src/libfortuna/sha1.c', 'src/libfortuna/sha2.c'], 'include_dirs': ['<!(node -e "require(\'nan\')")']}]}
a=list() with open('db.txt', 'r') as file: for i in file: a.append(i.strip()) b=input() interval=len(a) shift=0 while interval>=1: t=interval%2 interval//=2 i=interval+t print('1 - ', a[i+shift-1], ' | 2 - ', b) r=input() while r!='1' and r!='2': r=input() if r=='1': shift+=i else: if not t: interval-=1 a.append(b) for i in range(shift+1,len(a))[::-1]: a[i], a[i-1]=a[i-1], a[i] with open('db.txt', 'w') as file: for i in range(len(a)-1): print(a[i], file=file) print(a[len(a)-1], end='', file=file)
a = list() with open('db.txt', 'r') as file: for i in file: a.append(i.strip()) b = input() interval = len(a) shift = 0 while interval >= 1: t = interval % 2 interval //= 2 i = interval + t print('1 - ', a[i + shift - 1], ' | 2 - ', b) r = input() while r != '1' and r != '2': r = input() if r == '1': shift += i elif not t: interval -= 1 a.append(b) for i in range(shift + 1, len(a))[::-1]: (a[i], a[i - 1]) = (a[i - 1], a[i]) with open('db.txt', 'w') as file: for i in range(len(a) - 1): print(a[i], file=file) print(a[len(a) - 1], end='', file=file)
# Training and prediction prediction_window = 7 # How many days in single prediction # Window optimization n_optimizer_predictions = 100 # Num of predictions to make during window optimization smallest_possible_training_window = 25 # Smallest training window test in optimization largest_possible_training_window = 2025 # Largest training window test in optimization training_window_test_increase = 25 # The number to increase by between window tests # Network n_reservoir = 200 # Size of Echo State Network (ESN) hidden state spectral_radius = 1.50 # Spectral radius to use for weights in ESNs sparsity = 0.2 # Sparsity to use for weights in ESN noise = 0.03 # Noise to use for training of ESN input_scaling = 1.0 # Scale ESN input to hidden weights using this value # Neuroevolution n_generations = 10 # Number of generations to run genetic algorithm for n_population = 100 mutation_rate = 0.50 # Mutation rate by which to mutate Echo State Networks crossover_rate = 0.25 # *100 = fittest % of population which will crossover n_fitness_predictions = 100 # How many predictions when calculating fitness # HTML plotting (NOTE: keep training/testing false as can severely impact performance) training_html_auto_show = False # If true display training plotly htmls upon creation testing_html_auto_show = False # If true display testing plotly htmls upon creation ohlc_html_auto_show = True # If true display OHLC html upon creation window_html_auto_show = True # If true display window optimization html upon creation results_html_auto_show = True # If true display results html upon creation x_range_factor = 8 # Plot x-range will be n_predicted_days * this value max_test_line_width = 1.5 # The maximum line width which test_line_width_factor = 5000 # Test plot individual prediction line widths will be: # max_line_width - abs(relevant_mse * line_width_factor) # (Higher = more fadeout for bad MSE. # Lower = less fadeout for bad MSE.) # Number of test predictions for each network n_test_predictions = 10 # More will give better representation of effectiveness # Number of iterations to run n_iterations = 100 # How many tests to run
prediction_window = 7 n_optimizer_predictions = 100 smallest_possible_training_window = 25 largest_possible_training_window = 2025 training_window_test_increase = 25 n_reservoir = 200 spectral_radius = 1.5 sparsity = 0.2 noise = 0.03 input_scaling = 1.0 n_generations = 10 n_population = 100 mutation_rate = 0.5 crossover_rate = 0.25 n_fitness_predictions = 100 training_html_auto_show = False testing_html_auto_show = False ohlc_html_auto_show = True window_html_auto_show = True results_html_auto_show = True x_range_factor = 8 max_test_line_width = 1.5 test_line_width_factor = 5000 n_test_predictions = 10 n_iterations = 100
# Given an array a that contains only numbers in the range from 1 to a.length, find the first duplicate number for which the second occurrence has the minimal index. In other words, if there are more than 1 duplicated numbers, return the number for which the second occurrence has a smaller index than the second occurrence of the other number does. If there are no such elements, return -1. # Example # For a = [2, 1, 3, 5, 3, 2], the output should be firstDuplicate(a) = 3. # There are 2 duplicates: numbers 2 and 3. The second occurrence of 3 has a smaller index than the second occurrence of 2 does, so the answer is 3. # For a = [2, 2], the output should be firstDuplicate(a) = 2; # For a = [2, 4, 3, 5, 1], the output should be firstDuplicate(a) = -1. def firstDuplicate(a): new = set() for i in range(len(a)): if a[i] in new: return a[i] else: new.add(a[i]) return -1 a = [2, 1, 3, 5, 3, 2] print(firstDuplicate(a))
def first_duplicate(a): new = set() for i in range(len(a)): if a[i] in new: return a[i] else: new.add(a[i]) return -1 a = [2, 1, 3, 5, 3, 2] print(first_duplicate(a))
testcase = int(input()) for i in range(testcase+1): if i == 0: continue strlist = input() strlen = len(strlist) j = 0 decodestr = "Case {}: ".format(i) while j < strlen: ch = strlist[j] if ch == '\n': break else: cnt = 0 k = j + 1 while(k < strlen and strlist[k].isdigit()): cnt *= 10 cnt += int(strlist[k]) k += 1 decodestr += ch * cnt j = k print(decodestr)
testcase = int(input()) for i in range(testcase + 1): if i == 0: continue strlist = input() strlen = len(strlist) j = 0 decodestr = 'Case {}: '.format(i) while j < strlen: ch = strlist[j] if ch == '\n': break else: cnt = 0 k = j + 1 while k < strlen and strlist[k].isdigit(): cnt *= 10 cnt += int(strlist[k]) k += 1 decodestr += ch * cnt j = k print(decodestr)
# -*- coding: utf-8 -*- #: Following the versioning system at http://semver.org/ #: See also docs/contributing.rst, section ``Versioning`` #: MAJOR: incremented for incompatible API changes MAJOR = 1 #: MINOR: incremented for adding functionality in a backwards-compatible manner MINOR = 0 #: PATCH: incremented for backward-compatible bug fixes and minor capability improvements PATCH = 0 #: Latest release version of MOE __version__ = "{0:d}.{1:d}.{2:d}".format(MAJOR, MINOR, PATCH)
major = 1 minor = 0 patch = 0 __version__ = '{0:d}.{1:d}.{2:d}'.format(MAJOR, MINOR, PATCH)
def logical_calc(array,op): while len(array) > 1: inp1 = array.pop(0) inp2 = array.pop(0) if op == "AND": array.insert(0,a(inp1,inp2)) elif op == "OR": array.insert(0,o(inp1,inp2)) elif op == "XOR": array.insert(0,x(inp1,inp2)) return array[0] def a(a,b): return a == True and b == True def o(a,b): return a == True or b == True def x(a,b): if a == True and b == False: return True elif a == False and b == True: return True else: return False
def logical_calc(array, op): while len(array) > 1: inp1 = array.pop(0) inp2 = array.pop(0) if op == 'AND': array.insert(0, a(inp1, inp2)) elif op == 'OR': array.insert(0, o(inp1, inp2)) elif op == 'XOR': array.insert(0, x(inp1, inp2)) return array[0] def a(a, b): return a == True and b == True def o(a, b): return a == True or b == True def x(a, b): if a == True and b == False: return True elif a == False and b == True: return True else: return False
def add_native_methods(clazz): def getTotalSwapSpaceSize____(a0): raise NotImplementedError() def getFreeSwapSpaceSize____(a0): raise NotImplementedError() def getProcessCpuTime____(a0): raise NotImplementedError() def getFreePhysicalMemorySize____(a0): raise NotImplementedError() def getTotalPhysicalMemorySize____(a0): raise NotImplementedError() def getSystemCpuLoad____(a0): raise NotImplementedError() def getProcessCpuLoad____(a0): raise NotImplementedError() clazz.getTotalSwapSpaceSize____ = getTotalSwapSpaceSize____ clazz.getFreeSwapSpaceSize____ = getFreeSwapSpaceSize____ clazz.getProcessCpuTime____ = getProcessCpuTime____ clazz.getFreePhysicalMemorySize____ = getFreePhysicalMemorySize____ clazz.getTotalPhysicalMemorySize____ = getTotalPhysicalMemorySize____ clazz.getSystemCpuLoad____ = getSystemCpuLoad____ clazz.getProcessCpuLoad____ = getProcessCpuLoad____
def add_native_methods(clazz): def get_total_swap_space_size____(a0): raise not_implemented_error() def get_free_swap_space_size____(a0): raise not_implemented_error() def get_process_cpu_time____(a0): raise not_implemented_error() def get_free_physical_memory_size____(a0): raise not_implemented_error() def get_total_physical_memory_size____(a0): raise not_implemented_error() def get_system_cpu_load____(a0): raise not_implemented_error() def get_process_cpu_load____(a0): raise not_implemented_error() clazz.getTotalSwapSpaceSize____ = getTotalSwapSpaceSize____ clazz.getFreeSwapSpaceSize____ = getFreeSwapSpaceSize____ clazz.getProcessCpuTime____ = getProcessCpuTime____ clazz.getFreePhysicalMemorySize____ = getFreePhysicalMemorySize____ clazz.getTotalPhysicalMemorySize____ = getTotalPhysicalMemorySize____ clazz.getSystemCpuLoad____ = getSystemCpuLoad____ clazz.getProcessCpuLoad____ = getProcessCpuLoad____
#You Source Code Very Good print("Good") for i in range(1,20+1): print("It works Great!")
print('Good') for i in range(1, 20 + 1): print('It works Great!')
#!/usr/bin/env python class FLVError(Exception): pass class F4VError(Exception): pass class AMFError(Exception): pass __all__ = ["FLVError", "F4VError", "AMFError"]
class Flverror(Exception): pass class F4Verror(Exception): pass class Amferror(Exception): pass __all__ = ['FLVError', 'F4VError', 'AMFError']
def check_cnpj(value): if value == '99999999999999': is_valid = False else: # Checks if is in pattern NNNNNNNNNNNNNN is_valid_len = len(value) == 14 is_valid_num = all(char.isnumeric() for char in value) is_valid = is_valid_len and is_valid_num return not is_valid def check_cpf(value): if value == '00000000000': is_valid = False else: # Checks if is in pattern ***NNNNNN** or NNNNNNNNNNN is_valid_len = len(value) == 11 is_valid_num = all((char == '*' or char.isnumeric()) for char in value[:3]) and all(char.isnumeric() for char in value[3:-2]) and all((char == '*' or char.isnumeric()) for char in value[-2:]) is_valid = is_valid_len and is_valid_num return not is_valid def check_identificador_de_socio(value): values = [1, 2, 3] is_valid = value in values return not is_valid def check_nome_socio(nome, identificador_socio): # If it is a juridic person, checks if it is a person name if identificador_socio == 2: return check_name(nome) return False def check_cnpj_cpf_do_socio(value): if len(value) == 11: return check_cpf(value) if len(value) == 14: return check_cnpj(value) return True def check_codigo_qualificacao(value): is_valid = value >= 1 and value <= 79 return not is_valid def check_data(date): day = int(date[:2]) month = int(date[2:4]) year = int(date[4:]) is_day_valid = day >= 1 and day <= 31 is_month_valid = month >= 1 and month <= 12 is_year_valid = year > 0 is_valid = is_day_valid and is_month_valid and is_year_valid return not is_valid def check_ano(year, date): # Checks if year of 'data_entrada_sociedade' is equal 'ano_entrada_sociedade' year_date = int(date[4:]) is_valid = year == year_date return not is_valid def check_name(value): # Checks if name has only alphabetic caracters or spaces is_valid = all(char.isalpha() or char.isspace() for char in value) return not is_valid def check_identificador_matriz_filial(value): values = [1, 2] is_valid = value in values return not is_valid def check_situacao_cadastral(value): values = [1, 2, 3, 4, 8] is_valid = value in values return not is_valid def check_motivo_situacao_cadastral(value): values = [60, 61, 62, 63, 64, 66, 67, 70, 71, 72, 73, 74, 80] is_valid = (value >= 1 and value <= 55) or (value in values) return not is_valid def check_cep(value): is_valid = len(value) == 8 return not is_valid def check_capital_social(value): is_valid = value >= 0 return not is_valid def check_porte(value): values = [0, 1, 3, 5] is_valid = value in values return not is_valid def check_true_or_false(value): values = [0, 1] is_valid = value in values return not is_valid def check_sigla_uf(value): values = [ 'AC', 'AL', 'AP', 'AM', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MT', 'MS', 'MG', 'PA', 'PB', 'PR', 'PE', 'PI', 'RJ', 'RN', 'RS', 'RO', 'RR', 'SC', 'SP', 'SE', 'TO', 'EX' ] is_valid = value in values return not is_valid
def check_cnpj(value): if value == '99999999999999': is_valid = False else: is_valid_len = len(value) == 14 is_valid_num = all((char.isnumeric() for char in value)) is_valid = is_valid_len and is_valid_num return not is_valid def check_cpf(value): if value == '00000000000': is_valid = False else: is_valid_len = len(value) == 11 is_valid_num = all((char == '*' or char.isnumeric() for char in value[:3])) and all((char.isnumeric() for char in value[3:-2])) and all((char == '*' or char.isnumeric() for char in value[-2:])) is_valid = is_valid_len and is_valid_num return not is_valid def check_identificador_de_socio(value): values = [1, 2, 3] is_valid = value in values return not is_valid def check_nome_socio(nome, identificador_socio): if identificador_socio == 2: return check_name(nome) return False def check_cnpj_cpf_do_socio(value): if len(value) == 11: return check_cpf(value) if len(value) == 14: return check_cnpj(value) return True def check_codigo_qualificacao(value): is_valid = value >= 1 and value <= 79 return not is_valid def check_data(date): day = int(date[:2]) month = int(date[2:4]) year = int(date[4:]) is_day_valid = day >= 1 and day <= 31 is_month_valid = month >= 1 and month <= 12 is_year_valid = year > 0 is_valid = is_day_valid and is_month_valid and is_year_valid return not is_valid def check_ano(year, date): year_date = int(date[4:]) is_valid = year == year_date return not is_valid def check_name(value): is_valid = all((char.isalpha() or char.isspace() for char in value)) return not is_valid def check_identificador_matriz_filial(value): values = [1, 2] is_valid = value in values return not is_valid def check_situacao_cadastral(value): values = [1, 2, 3, 4, 8] is_valid = value in values return not is_valid def check_motivo_situacao_cadastral(value): values = [60, 61, 62, 63, 64, 66, 67, 70, 71, 72, 73, 74, 80] is_valid = value >= 1 and value <= 55 or value in values return not is_valid def check_cep(value): is_valid = len(value) == 8 return not is_valid def check_capital_social(value): is_valid = value >= 0 return not is_valid def check_porte(value): values = [0, 1, 3, 5] is_valid = value in values return not is_valid def check_true_or_false(value): values = [0, 1] is_valid = value in values return not is_valid def check_sigla_uf(value): values = ['AC', 'AL', 'AP', 'AM', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MT', 'MS', 'MG', 'PA', 'PB', 'PR', 'PE', 'PI', 'RJ', 'RN', 'RS', 'RO', 'RR', 'SC', 'SP', 'SE', 'TO', 'EX'] is_valid = value in values return not is_valid
# 1st solution class Solution: def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: if endWord not in wordList: return [] wordSet = set(wordList) # faster checks against dictionary layer = {} layer[beginWord] = [[beginWord]] # stores current word and all possible sequences how we got to it while layer: newlayer = collections.defaultdict(list) # returns [] on missing keys, just to simplify code for word in layer: if word == endWord: return layer[word] # return all found sequences for i in range(len(word)): # change every possible letter and check if it's in dictionary for c in 'abcdefghijklmnopqrstuvwxyz': newWord = word[:i] + c + word[i+1:] if newWord in wordSet: newlayer[newWord] += [j + [newWord] for j in layer[word]] # add new word to all sequences and form new layer element wordSet -= set(newlayer.keys()) # remove from dictionary to prevent loops layer = newlayer # move down to new layer return [] # 2nd solution # O(n*26^l) time | O(n + k * p) space # where n is the length of wordList, l is the longest length of words # k is number of paths, p is path length. class Solution: def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: if endWord not in wordList: return [] wordSet = set(wordList) layer = {} layer[beginWord] = [[beginWord]] alpha = string.ascii_lowercase while layer: newlayer = collections.defaultdict(list) for word in layer: if word == endWord: return layer[word] for i in range(len(word)): for c in alpha: newWord = word[:i] + c + word[i+1:] if newWord in wordSet: newlayer[newWord] += [lst + [newWord] for lst in layer[word]] wordSet -= set(newlayer.keys()) layer = newlayer return []
class Solution: def find_ladders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: if endWord not in wordList: return [] word_set = set(wordList) layer = {} layer[beginWord] = [[beginWord]] while layer: newlayer = collections.defaultdict(list) for word in layer: if word == endWord: return layer[word] for i in range(len(word)): for c in 'abcdefghijklmnopqrstuvwxyz': new_word = word[:i] + c + word[i + 1:] if newWord in wordSet: newlayer[newWord] += [j + [newWord] for j in layer[word]] word_set -= set(newlayer.keys()) layer = newlayer return [] class Solution: def find_ladders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: if endWord not in wordList: return [] word_set = set(wordList) layer = {} layer[beginWord] = [[beginWord]] alpha = string.ascii_lowercase while layer: newlayer = collections.defaultdict(list) for word in layer: if word == endWord: return layer[word] for i in range(len(word)): for c in alpha: new_word = word[:i] + c + word[i + 1:] if newWord in wordSet: newlayer[newWord] += [lst + [newWord] for lst in layer[word]] word_set -= set(newlayer.keys()) layer = newlayer return []
#!/usr/bin/env python3 # https://abc099.contest.atcoder.jp/tasks/abc099_b a, b = map(int, input().split()) d = b - a k = d * (d - 1) // 2 print(k - a)
(a, b) = map(int, input().split()) d = b - a k = d * (d - 1) // 2 print(k - a)
class StringUtilities(str): def longest_word(self): word_list = self.split() longest_word_length = 0 for word in word_list: word = StringUtilities.remove_symbols(word) if len(word) > longest_word_length: longest_word_length = len(word) return longest_word_length @staticmethod def remove_symbols(input_str): for char in input_str: if (ord(char) >= 32 and ord(char) <= 64 and not char.isdigit()) or (ord(char) >= 91 and ord(char) <= 96): input_str = input_str.replace(char, "") return input_str
class Stringutilities(str): def longest_word(self): word_list = self.split() longest_word_length = 0 for word in word_list: word = StringUtilities.remove_symbols(word) if len(word) > longest_word_length: longest_word_length = len(word) return longest_word_length @staticmethod def remove_symbols(input_str): for char in input_str: if ord(char) >= 32 and ord(char) <= 64 and (not char.isdigit()) or (ord(char) >= 91 and ord(char) <= 96): input_str = input_str.replace(char, '') return input_str
def result(G_ab,kmeans,kmeans_cluster_centers_mag,of_idx,of_min_x,of_min_y,n_clusters,knn,dataset): dist = np.ones(n_clusters)*100 valid = np.ones(n_clusters) for i in range(0,n_clusters): # get pixel coordinates of VP point plane cantidate y_idx,x_idx = np.unravel_index(np.argmax(G_ab[:,:,i], axis=None), G_ab[:,:,i].shape) if (y_idx or x_idx): # if vanishing point is not out of image x = int((x_idx+1.5)*side) y = int((y_idx+1.5)*side) dist[i] = math.hypot((int(of_min_y)-y), (int(of_min_x)-x)) else: valid[i] = 100 # select nearest VP to OF cluster center nearest_VP = np.argmin(np.array(np.multiply(dist,valid))) # get pixel coordinates nearest VP to OF cluster center y_idx,x_idx = np.unravel_index(np.argmax(G_ab[:,:,nearest_VP], axis=None), G_ab[:,:,nearest_VP].shape) x = int((x_idx+1.5)*side) y = int((y_idx+1.5)*side) for i in range(0,n_clusters): # get distance of nearest VP to all cluster centers dist[i] = math.hypot((int(kmeans.cluster_centers_[i,1])-y), (int(kmeans.cluster_centers_[i,0])-x)) # get magnitude for VP nearest_VP_mag_idx = knn.kneighbors(np.array(((x+of_min_x)/2, (y+of_min_y)/2)).reshape(-1,2), return_distance=False) nearest_VP_mag = np.mean(dataset[nearest_VP_mag_idx.reshape(-1),3]) if abs(kmeans_cluster_centers_mag[of_idx]-nearest_VP_mag) < 0.05*kmeans_cluster_centers_mag[of_idx]: print("VP valid") else: print("VP not valid")
def result(G_ab, kmeans, kmeans_cluster_centers_mag, of_idx, of_min_x, of_min_y, n_clusters, knn, dataset): dist = np.ones(n_clusters) * 100 valid = np.ones(n_clusters) for i in range(0, n_clusters): (y_idx, x_idx) = np.unravel_index(np.argmax(G_ab[:, :, i], axis=None), G_ab[:, :, i].shape) if y_idx or x_idx: x = int((x_idx + 1.5) * side) y = int((y_idx + 1.5) * side) dist[i] = math.hypot(int(of_min_y) - y, int(of_min_x) - x) else: valid[i] = 100 nearest_vp = np.argmin(np.array(np.multiply(dist, valid))) (y_idx, x_idx) = np.unravel_index(np.argmax(G_ab[:, :, nearest_VP], axis=None), G_ab[:, :, nearest_VP].shape) x = int((x_idx + 1.5) * side) y = int((y_idx + 1.5) * side) for i in range(0, n_clusters): dist[i] = math.hypot(int(kmeans.cluster_centers_[i, 1]) - y, int(kmeans.cluster_centers_[i, 0]) - x) nearest_vp_mag_idx = knn.kneighbors(np.array(((x + of_min_x) / 2, (y + of_min_y) / 2)).reshape(-1, 2), return_distance=False) nearest_vp_mag = np.mean(dataset[nearest_VP_mag_idx.reshape(-1), 3]) if abs(kmeans_cluster_centers_mag[of_idx] - nearest_VP_mag) < 0.05 * kmeans_cluster_centers_mag[of_idx]: print('VP valid') else: print('VP not valid')
#!/usr/bin/env python # coding=utf-8 def ClassSchedule(DB, pam): json_data = { "code": 0, "msg": "" } if pam == "": json_data["code"] = "0" json_data["msg"] = "false" return json_data classid = pam["Pam"] # &Schedule.WID, &Schedule.Chapter, &Schedule.CourseName, &Schedule.WSDate, &Schedule.WEDate, &Schedule.CourseID, &Schedule.LessonID, &Schedule.UID, &Schedule.PID, &susername, &Schedule.ID, &Schedule.SSDate, &Schedule.SEDate sql_str = "select * from (SELECT T3.*,T4.ID as tid,T4.`start` as tstart,t4.`end` as tend from(select t1.*,t2.UserName from (select id,chapter,courses,`start`,`end`,courseId,MlessonID,UID,PID FROM `events` WHERE scheduleId = (select scheduleId from tb_class where CID = " + str(classid) + ") and istask = 0 and mlessonId != 0 ORDER BY `end`) as t1 LEFT join tb_userdata as t2 on t1.UID = T2.UID) as T3 inner join `events` AS T4 ON t3.CourseID = t4.CourseID and t3.MLessonID = t4.MLessonID and t3.UID = t4.UID and t3.id = t4.parent_id AND T3.PID = t4.PID AND T4.istask = 1 and T4.mlessonId != 0 and T4.scheduleId = (select scheduleId from tb_class where CID = " + str(classid) + ")) t5 order by `end`" data = DB.fetchall(sql_str,None) _cback = "" if data: list_data = list(data) for minfo in list_data: if _cback != "": _cback = _cback + "*" + str(minfo[0]) + "," + str(minfo[1]) + "," + str(minfo[2]) + "," + str(minfo[3]) + "," + str(minfo[4]) + "," + str(minfo[5]) + "," + str(minfo[6]) + "," + str(minfo[7]) + "," + str(minfo[8]) + "," + str(minfo[9]) + "," + str(minfo[10]) + "," + str(minfo[11]) + "," + str(minfo[12]) else: _cback = str(minfo[0]) + "," + str(minfo[1]) + "," + str(minfo[2]) + "," + str(minfo[3]) + "," + str(minfo[4]) + "," + str(minfo[5]) + "," + str(minfo[6]) + "," + str(minfo[7]) + "," + str(minfo[8]) + "," + str(minfo[9]) + "," + str(minfo[10]) + "," + str(minfo[11]) + "," + str(minfo[12]) _cback = GetClassTeacher(DB,str(classid)) + "`" + _cback + "`" + pam["type"] + "`" + pam["Pam"] json_data["code"] = "1" json_data["msg"] = _cback return json_data def GetClassTeacher(DB, classid): sql_str = "select UID,UserName from tb_userdata where UID = (SELECT TID from tb_class where CID = " + str(classid) + ")" data = DB.fetchall(sql_str,None) _cback = "" if data != None and len(data) > 0: _cback = str(data[0][0]) + "," + str(data[0][1]) return _cback def StudentWork(DB, uid, pam): json_data = { "code": 0, "msg": "" } if pam == "": json_data["code"] = "0" json_data["msg"] = "" return json_data classid = pam["Pam"] sql_str = "select TID,WDATE,PID,SCORE from tb_tasbase_" + str(classid) + " where uid = " + str(uid) # &Schedule.TID, &Schedule.WDATE, &Schedule.PID, &Schedule.SCORE data = DB.fetchall(sql_str,None) _cback = "" if data: list_data = list(data) for minfo in list_data: if _cback != "": _cback = _cback + "*" + str(minfo[0]) + "," + str(minfo[1]) + "," + str(minfo[2]) + "," + str(minfo[3]) else: _cback = str(minfo[0]) + "," + str(minfo[1]) + "," + str(minfo[2]) + "," + str(minfo[3]) _cback = GetClassTeacher(DB,str(classid)) + "`" + _cback + "`" + pam["type"] json_data["code"] = "1" json_data["msg"] = _cback return json_data def ClassStudentData(DB, uid, pam): json_data = { "code": 0, "msg": "" } if pam == "": json_data["code"] = "0" json_data["msg"] = "" return json_data classid = pam["Pam"].split(',')[0] TID = pam["Pam"].split(',')[1] # &Schedule.UID, &Schedule.WDATE, &Schedule.PID, &Schedule.SCORE, &Schedule.UserName sql_str = "select t1.UID,t1.WDATE,t1.PID,t1.SCORE,t2.UserName from tb_tasbase_" + str(classid) + " as t1 inner join tb_userdata as t2 on t1.UID = t2.UID AND t1.TID = '" + str(TID) + "'" data = DB.fetchall(sql_str,None) _cback = "" if data: list_data = list(data) for minfo in list_data: if _cback != "": _cback = _cback + "*" + str(minfo[0]) + "," + str(minfo[1]) + "," + str(minfo[2]) + "," + str(minfo[3]) + "," + str(minfo[4]) else: _cback = str(minfo[0]) + "," + str(minfo[1]) + "," + str(minfo[2]) + "," + str(minfo[3]) + "," + str(minfo[4]) json_data["code"] = "1" json_data["msg"] = _cback return json_data def ClassStudentList(DB, uid, pam): json_data = { "code": 0, "msg": "" } if pam == "": json_data["code"] = "0" json_data["msg"] = "" return json_data classid = pam["Pam"] # &Schedule.UID, &Schedule.UserName sql_str = "select UID,UserName from tb_userdata where find_in_set('" + str(classid) + "',CLASSID)" data = DB.fetchall(sql_str,None) _cback = "" if data: list_data = list(data) for minfo in list_data: if _cback != "": _cback = _cback + "*" + str(minfo[0]) + "," + str(minfo[1]) else: _cback = str(minfo[0]) + "," + str(minfo[1]) json_data["code"] = "1" json_data["msg"] = _cback return json_data
def class_schedule(DB, pam): json_data = {'code': 0, 'msg': ''} if pam == '': json_data['code'] = '0' json_data['msg'] = 'false' return json_data classid = pam['Pam'] sql_str = 'select * from (SELECT T3.*,T4.ID as tid,T4.`start` as tstart,t4.`end` as tend from(select t1.*,t2.UserName from (select id,chapter,courses,`start`,`end`,courseId,MlessonID,UID,PID FROM `events` WHERE scheduleId = (select scheduleId from tb_class where CID = ' + str(classid) + ') and istask = 0 and mlessonId != 0 ORDER BY `end`) as t1 LEFT join tb_userdata as t2 on t1.UID = T2.UID) as T3 inner join `events` AS T4 ON t3.CourseID = t4.CourseID and t3.MLessonID = t4.MLessonID and t3.UID = t4.UID and t3.id = t4.parent_id AND T3.PID = t4.PID AND T4.istask = 1 and T4.mlessonId != 0 and T4.scheduleId = (select scheduleId from tb_class where CID = ' + str(classid) + ')) t5 order by `end`' data = DB.fetchall(sql_str, None) _cback = '' if data: list_data = list(data) for minfo in list_data: if _cback != '': _cback = _cback + '*' + str(minfo[0]) + ',' + str(minfo[1]) + ',' + str(minfo[2]) + ',' + str(minfo[3]) + ',' + str(minfo[4]) + ',' + str(minfo[5]) + ',' + str(minfo[6]) + ',' + str(minfo[7]) + ',' + str(minfo[8]) + ',' + str(minfo[9]) + ',' + str(minfo[10]) + ',' + str(minfo[11]) + ',' + str(minfo[12]) else: _cback = str(minfo[0]) + ',' + str(minfo[1]) + ',' + str(minfo[2]) + ',' + str(minfo[3]) + ',' + str(minfo[4]) + ',' + str(minfo[5]) + ',' + str(minfo[6]) + ',' + str(minfo[7]) + ',' + str(minfo[8]) + ',' + str(minfo[9]) + ',' + str(minfo[10]) + ',' + str(minfo[11]) + ',' + str(minfo[12]) _cback = get_class_teacher(DB, str(classid)) + '`' + _cback + '`' + pam['type'] + '`' + pam['Pam'] json_data['code'] = '1' json_data['msg'] = _cback return json_data def get_class_teacher(DB, classid): sql_str = 'select UID,UserName from tb_userdata where UID = (SELECT TID from tb_class where CID = ' + str(classid) + ')' data = DB.fetchall(sql_str, None) _cback = '' if data != None and len(data) > 0: _cback = str(data[0][0]) + ',' + str(data[0][1]) return _cback def student_work(DB, uid, pam): json_data = {'code': 0, 'msg': ''} if pam == '': json_data['code'] = '0' json_data['msg'] = '' return json_data classid = pam['Pam'] sql_str = 'select TID,WDATE,PID,SCORE from tb_tasbase_' + str(classid) + ' where uid = ' + str(uid) data = DB.fetchall(sql_str, None) _cback = '' if data: list_data = list(data) for minfo in list_data: if _cback != '': _cback = _cback + '*' + str(minfo[0]) + ',' + str(minfo[1]) + ',' + str(minfo[2]) + ',' + str(minfo[3]) else: _cback = str(minfo[0]) + ',' + str(minfo[1]) + ',' + str(minfo[2]) + ',' + str(minfo[3]) _cback = get_class_teacher(DB, str(classid)) + '`' + _cback + '`' + pam['type'] json_data['code'] = '1' json_data['msg'] = _cback return json_data def class_student_data(DB, uid, pam): json_data = {'code': 0, 'msg': ''} if pam == '': json_data['code'] = '0' json_data['msg'] = '' return json_data classid = pam['Pam'].split(',')[0] tid = pam['Pam'].split(',')[1] sql_str = 'select t1.UID,t1.WDATE,t1.PID,t1.SCORE,t2.UserName from tb_tasbase_' + str(classid) + " as t1 inner join tb_userdata as t2 on t1.UID = t2.UID AND t1.TID = '" + str(TID) + "'" data = DB.fetchall(sql_str, None) _cback = '' if data: list_data = list(data) for minfo in list_data: if _cback != '': _cback = _cback + '*' + str(minfo[0]) + ',' + str(minfo[1]) + ',' + str(minfo[2]) + ',' + str(minfo[3]) + ',' + str(minfo[4]) else: _cback = str(minfo[0]) + ',' + str(minfo[1]) + ',' + str(minfo[2]) + ',' + str(minfo[3]) + ',' + str(minfo[4]) json_data['code'] = '1' json_data['msg'] = _cback return json_data def class_student_list(DB, uid, pam): json_data = {'code': 0, 'msg': ''} if pam == '': json_data['code'] = '0' json_data['msg'] = '' return json_data classid = pam['Pam'] sql_str = "select UID,UserName from tb_userdata where find_in_set('" + str(classid) + "',CLASSID)" data = DB.fetchall(sql_str, None) _cback = '' if data: list_data = list(data) for minfo in list_data: if _cback != '': _cback = _cback + '*' + str(minfo[0]) + ',' + str(minfo[1]) else: _cback = str(minfo[0]) + ',' + str(minfo[1]) json_data['code'] = '1' json_data['msg'] = _cback return json_data
def decor(func): def wrap(): print("============") func() print("============") return wrap def print_text(): print("Hello world!") decorated = decor(print_text) decorated()
def decor(func): def wrap(): print('============') func() print('============') return wrap def print_text(): print('Hello world!') decorated = decor(print_text) decorated()
for i in range(100, 1000): base9 = '' base10 = i # Convert to base 9 for j in range(0,3): r = base10 % 9 base10 = (base10 - r) / 9 base9 = str(int(r)) + base9 # compare base 10 to reversed base9 if str(i) == str(base9)[::-1]: print('Found: ' + str(i) + '^10 == ' + str(base9) + '^9') break
for i in range(100, 1000): base9 = '' base10 = i for j in range(0, 3): r = base10 % 9 base10 = (base10 - r) / 9 base9 = str(int(r)) + base9 if str(i) == str(base9)[::-1]: print('Found: ' + str(i) + '^10 == ' + str(base9) + '^9') break
# # PySNMP MIB module EQLCONTROLLER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EQLCONTROLLER-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:05:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection") eqlGroupId, = mibBuilder.importSymbols("EQLGROUP-MIB", "eqlGroupId") eqlMemberIndex, = mibBuilder.importSymbols("EQLMEMBER-MIB", "eqlMemberIndex") equalLogic, = mibBuilder.importSymbols("EQUALLOGIC-SMI", "equalLogic") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") IpAddress, enterprises, Gauge32, iso, Unsigned32, TimeTicks, Bits, NotificationType, Integer32, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Counter64, Counter32, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "enterprises", "Gauge32", "iso", "Unsigned32", "TimeTicks", "Bits", "NotificationType", "Integer32", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Counter64", "Counter32", "ModuleIdentity") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") eqlcontrollerModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 12740, 4)) eqlcontrollerModule.setRevisions(('2002-09-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: eqlcontrollerModule.setRevisionsDescriptions(('Initial revision',)) if mibBuilder.loadTexts: eqlcontrollerModule.setLastUpdated('201403121459Z') if mibBuilder.loadTexts: eqlcontrollerModule.setOrganization('EqualLogic Inc.') if mibBuilder.loadTexts: eqlcontrollerModule.setContactInfo('Contact: Customer Support Postal: Dell Inc 300 Innovative Way, Suite 301, Nashua, NH 03062 Tel: +1 603-579-9762 E-mail: [email protected] WEB: www.equallogic.com') if mibBuilder.loadTexts: eqlcontrollerModule.setDescription(' Copyright (c) 2004-2009 by Dell, Inc. All rights reserved. This software may not be copied, disclosed, transferred, or used except in accordance with a license granted by Dell, Inc. This software embodies proprietary information and trade secrets of Dell, Inc. ') eqlcontrollerObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 1)) eqlcontrollerNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 2)) eqlcontrollerConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 3)) eqlbackplaneObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 4)) eqlbackplaneNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 5)) eqlbackplaneConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 6)) eqlemmObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 7)) eqlemmNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 8)) eqlemmConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 9)) eqldaughtercardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 10)) eqldaughtercardNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 11)) eqldaughtercardConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 12)) eqlchannelcardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 13)) eqlsfpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12740, 4, 14)) eqlControllerTable = MibTable((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1), ) if mibBuilder.loadTexts: eqlControllerTable.setStatus('current') if mibBuilder.loadTexts: eqlControllerTable.setDescription('EqualLogic-Dynamic Member Controller Table. This table contains controller status information. One table entry per controller. It is indexed by controller slot number. The number of entries is equal to the number of controllers that are present in the system') eqlControllerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1), ).setIndexNames((0, "EQLGROUP-MIB", "eqlGroupId"), (0, "EQLMEMBER-MIB", "eqlMemberIndex"), (0, "EQLCONTROLLER-MIB", "eqlControllerIndex")) if mibBuilder.loadTexts: eqlControllerEntry.setStatus('current') if mibBuilder.loadTexts: eqlControllerEntry.setDescription('An entry (row) containing controller status information.') eqlControllerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2)).clone(1)) if mibBuilder.loadTexts: eqlControllerIndex.setStatus('current') if mibBuilder.loadTexts: eqlControllerIndex.setDescription('The index value that uniquely identifies the controller. It is equal to the controller slot number. The minimum slot number is 1') eqlControllerModel = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone('unknown model')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerModel.setStatus('current') if mibBuilder.loadTexts: eqlControllerModel.setDescription('This variable specifies controller model. Is value of Part=') eqlControllerCMRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 9)).clone('unknown rev')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerCMRevision.setStatus('current') if mibBuilder.loadTexts: eqlControllerCMRevision.setDescription('CM version number; Is value of Rev=') eqlControllerSwRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 96)).clone('unknown sw rev')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerSwRevision.setStatus('current') if mibBuilder.loadTexts: eqlControllerSwRevision.setDescription('This variable specifies the customer visible controller software revision.') eqlControllerBatteryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("failed", 2), ("good-battery-is-charging", 3), ("low-voltage-status", 4), ("low-voltage-is-charging", 5), ("missing-battery", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerBatteryStatus.setStatus('current') if mibBuilder.loadTexts: eqlControllerBatteryStatus.setDescription('This variable specifies controller battery status.') eqlControllerUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 6), Counter32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerUpTime.setStatus('current') if mibBuilder.loadTexts: eqlControllerUpTime.setDescription('This variable specifies time interval since the controller was last booted in seconds. ') eqlControllerProcessorTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerProcessorTemp.setStatus('current') if mibBuilder.loadTexts: eqlControllerProcessorTemp.setDescription('This variable specifies the temperature in Celsius.') eqlControllerChipsetTemp = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerChipsetTemp.setStatus('current') if mibBuilder.loadTexts: eqlControllerChipsetTemp.setDescription('This variable specifies the temperature in Celsius.') eqlControllerPrimaryOrSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerPrimaryOrSecondary.setStatus('current') if mibBuilder.loadTexts: eqlControllerPrimaryOrSecondary.setDescription('This variable specifies if the controller is a primary or secondary controller.') eqlControllerPrimaryFlashImageRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerPrimaryFlashImageRev.setStatus('current') if mibBuilder.loadTexts: eqlControllerPrimaryFlashImageRev.setDescription('The revision of the primary flash image.') eqlControllerSecondaryFlashImageRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerSecondaryFlashImageRev.setStatus('current') if mibBuilder.loadTexts: eqlControllerSecondaryFlashImageRev.setDescription('The revision of the secondary flash image.') eqlControllerSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerSerialNumber.setStatus('current') if mibBuilder.loadTexts: eqlControllerSerialNumber.setDescription('This variable specifies controller serial number. Is value of SN=') eqlControllerDate = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerDate.setStatus('current') if mibBuilder.loadTexts: eqlControllerDate.setDescription('This variable specifies date of mfg of the CM. Is value of Date=') eqlControllerECO = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerECO.setStatus('current') if mibBuilder.loadTexts: eqlControllerECO.setDescription('This variable specifies eco level of the CM. Is value of ECO=') eqlControllerEEprom = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 15), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerEEprom.setStatus('current') if mibBuilder.loadTexts: eqlControllerEEprom.setDescription('The contents of the eeprom.') eqlControllerPLDrev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerPLDrev.setStatus('current') if mibBuilder.loadTexts: eqlControllerPLDrev.setDescription('This variable specifies pld version number.') eqlControllerPlatformType = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 17), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerPlatformType.setStatus('current') if mibBuilder.loadTexts: eqlControllerPlatformType.setDescription('This variable specifies the platform type. If the number is negative its a simulator. If zero its an eval platform. If >= 1 is the version of the pss board -- does this mean cm rev?') eqlControllerPlatformVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 18), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerPlatformVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerPlatformVersion.setDescription('This variable specifies the version of the pss board (ie CM?)') eqlControllerCPUPass = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerCPUPass.setStatus('current') if mibBuilder.loadTexts: eqlControllerCPUPass.setDescription('This variable specifies silicon rev.') eqlControllerCPUrev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerCPUrev.setStatus('current') if mibBuilder.loadTexts: eqlControllerCPUrev.setDescription('This variable specifies the revision of the cpu.') eqlControllerCPUfreq = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 21), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerCPUfreq.setStatus('current') if mibBuilder.loadTexts: eqlControllerCPUfreq.setDescription('This variable specifies the cpu freq in MHz.') eqlControllerPhysRam = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 22), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerPhysRam.setStatus('current') if mibBuilder.loadTexts: eqlControllerPhysRam.setDescription('This variable specifies the amount of physical memory in MB.') eqlControllerBootRomVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 23), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerBootRomVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerBootRomVersion.setDescription('This variable specifies the bootrom version number.') eqlControllerBootRomBuildDate = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(128, 128)).setFixedLength(128).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerBootRomBuildDate.setStatus('current') if mibBuilder.loadTexts: eqlControllerBootRomBuildDate.setDescription('This variable specifies the date and time bootrom image was built.') eqlControllerInfoMsg = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 25), DisplayString().clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerInfoMsg.setStatus('current') if mibBuilder.loadTexts: eqlControllerInfoMsg.setDescription('This variable is basic info on the cpu at bootup.') eqlControllerAthenaSataVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 26), DisplayString().clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerAthenaSataVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerAthenaSataVersion.setDescription('This variable is the Athena Sata revision for all Athena chips.') eqlControllerMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 27), Unsigned32().clone(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerMajorVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerMajorVersion.setDescription('This variable specifies the major version number of the software present on the controller module.') eqlControllerMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 28), Unsigned32().clone(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerMinorVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerMinorVersion.setDescription('This variable specifies the minor version number of the software present on the controller module.') eqlControllerMaintenanceVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 29), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerMaintenanceVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerMaintenanceVersion.setDescription('This variable specifies the maintenance version number of the software present on the controller module.') eqlControllerSWCompatibilityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 30), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerSWCompatibilityLevel.setStatus('current') if mibBuilder.loadTexts: eqlControllerSWCompatibilityLevel.setDescription('This variable specifies the compatibility level of the software present on the controller module.') eqlControllerFullSwRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 96)).clone('unknown sw rev')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerFullSwRevision.setStatus('current') if mibBuilder.loadTexts: eqlControllerFullSwRevision.setDescription('This variable specifies controller software revision. ') eqlControllerNVRAMBattery = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("not-present", 0), ("good", 1), ("bad", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerNVRAMBattery.setStatus('current') if mibBuilder.loadTexts: eqlControllerNVRAMBattery.setDescription('This variable represents the NVRAM Battery on CM. Value would be zero if there is no NVRAM Battery( old CM). ') eqlControllerSerialNumber2 = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 33), DisplayString().clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerSerialNumber2.setStatus('current') if mibBuilder.loadTexts: eqlControllerSerialNumber2.setDescription('This variable specifies controller serial number. Is value of SN=.The eqlControllerSerialNumber is deprecated because this value can be upto 15 characters for manhattan.') eqlControllerType = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 34), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerType.setStatus('current') if mibBuilder.loadTexts: eqlControllerType.setDescription('This variable specifies the type of the controller module. Ex: Type II') eqlControllerBootTime = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 35), Counter32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: eqlControllerBootTime.setStatus('current') if mibBuilder.loadTexts: eqlControllerBootTime.setDescription('This variable specifies time at which the controller was booted expressed as seconds since epoch.') eqlBackplaneTable = MibTable((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1), ) if mibBuilder.loadTexts: eqlBackplaneTable.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneTable.setDescription('EqualLogic-Dynamic Backplane Table. This table contains backplane status information. There is only one table entry for the one backplane per PSA.') eqlBackplaneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1), ).setIndexNames((0, "EQLGROUP-MIB", "eqlGroupId"), (0, "EQLMEMBER-MIB", "eqlMemberIndex"), (0, "EQLCONTROLLER-MIB", "eqlBackplaneIndex")) if mibBuilder.loadTexts: eqlBackplaneEntry.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneEntry.setDescription('An entry (row) containing backplane status information.') eqlBackplaneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2)).clone(1)) if mibBuilder.loadTexts: eqlBackplaneIndex.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneIndex.setDescription('The index value that uniquely identifies the backplane. A well chosen number for the index is 1. It is in fact the only valid index.') eqlBackplanePartNum = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplanePartNum.setStatus('current') if mibBuilder.loadTexts: eqlBackplanePartNum.setDescription('This variable specifies part number of the backplane.') eqlBackplaneRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneRev.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneRev.setDescription('This variable specifies revision of the backplane. Is value of Rev=') eqlBackplaneDate = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneDate.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneDate.setDescription('This variable specifies date of mfg of the backplane.') eqlBackplaneSN = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneSN.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneSN.setDescription('This variable specifies serial number of the backplane.') eqlBackplaneECO = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneECO.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneECO.setDescription('This variable specifies eco level of the backplane.') eqlBackplaneEEprom = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneEEprom.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneEEprom.setDescription('The contents of the eeprom.') eqlBackplaneSN2 = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 8), DisplayString().clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneSN2.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneSN2.setDescription('This variable specifies the backplane serial number. Is value of SN=.The eqlBackplaneSN is deprecated because this value can be up to 15 characters for manhattan.') eqlBackplaneType = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneType.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneType.setDescription('This variable specifies the backplane type.') eqlBackplaneTypeId = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlBackplaneTypeId.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneTypeId.setDescription('This variable specifies the backplane type as an Id. Used for Globalization.') eqlEMMTable = MibTable((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1), ) if mibBuilder.loadTexts: eqlEMMTable.setStatus('current') if mibBuilder.loadTexts: eqlEMMTable.setDescription('EqualLogic-Dynamic Member EMM Table. This table contains enclosure management status information. One table entry per emm. It is indexed by emm index. The number of entries is equal to the number of emms that are present in the system') eqlEMMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1), ).setIndexNames((0, "EQLGROUP-MIB", "eqlGroupId"), (0, "EQLMEMBER-MIB", "eqlMemberIndex"), (0, "EQLCONTROLLER-MIB", "eqlEMMIndex")) if mibBuilder.loadTexts: eqlEMMEntry.setStatus('current') if mibBuilder.loadTexts: eqlEMMEntry.setDescription('An entry (row) containing emm status information.') eqlEMMIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3)).clone(1)) if mibBuilder.loadTexts: eqlEMMIndex.setStatus('current') if mibBuilder.loadTexts: eqlEMMIndex.setDescription('The index value that uniquely identifies the EMM subsystem. ') eqlEMMModel = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone('unknown model')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMModel.setStatus('current') if mibBuilder.loadTexts: eqlEMMModel.setDescription('This variable specifies controller model. Is value of Part=') eqlEMMPartNum = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMPartNum.setStatus('current') if mibBuilder.loadTexts: eqlEMMPartNum.setDescription('This variable specifies part number of the CM.') eqlEMMRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMRev.setStatus('current') if mibBuilder.loadTexts: eqlEMMRev.setDescription('This variable specifies revision of the CM.') eqlEMMDate = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMDate.setStatus('current') if mibBuilder.loadTexts: eqlEMMDate.setDescription('This variable specifies date of mfg of the CM.') eqlEMMSN = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMSN.setStatus('current') if mibBuilder.loadTexts: eqlEMMSN.setDescription('This variable specifies serial number of the CM.') eqlEMMECO = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMECO.setStatus('current') if mibBuilder.loadTexts: eqlEMMECO.setDescription('This variable specifies eco level of the CM.') eqlEMMEEprom = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMEEprom.setStatus('current') if mibBuilder.loadTexts: eqlEMMEEprom.setDescription('The contents of the eeprom.') eqlEMMSN2 = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 9), DisplayString().clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlEMMSN2.setStatus('current') if mibBuilder.loadTexts: eqlEMMSN2.setDescription('This variable specifies the serial number. Is value of SN=.The eqlEMMSN is deprecated because this value can be up to 15 characters for manhattan.') eqlDaughterCardTable = MibTable((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1), ) if mibBuilder.loadTexts: eqlDaughterCardTable.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardTable.setDescription('EqualLogic-Dynamic Member DaughterCard Table. This table contains daughter card information. One table entry per daughter card. It is indexed by daughter card index. The number of entries is equal to the number of daughter cards that are present in the system') eqlDaughterCardEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1), ).setIndexNames((0, "EQLGROUP-MIB", "eqlGroupId"), (0, "EQLMEMBER-MIB", "eqlMemberIndex"), (0, "EQLCONTROLLER-MIB", "eqlDaughterCardIndex")) if mibBuilder.loadTexts: eqlDaughterCardEntry.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardEntry.setDescription('An entry (row) containing daughter card information.') eqlDaughterCardIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2)).clone(1)) if mibBuilder.loadTexts: eqlDaughterCardIndex.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardIndex.setDescription('The index value that uniquely identifies the DaughterCard subsystem. 1 based') eqlDaughterCardModel = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone('unknown model')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlDaughterCardModel.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardModel.setDescription('This variable specifies controller model. Is value of Part=') eqlDaughterCardPartNum = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlDaughterCardPartNum.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardPartNum.setDescription('This variable specifies part number of the daughter card.') eqlDaughterCardRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlDaughterCardRev.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardRev.setDescription('This variable specifies revision of the daughter card.') eqlDaughterCardDate = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlDaughterCardDate.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardDate.setDescription('This variable specifies date of mfg of the daughter card.') eqlDaughterCardSN = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlDaughterCardSN.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardSN.setDescription('This variable specifies serial number of the daughter card.') eqlDaughterCardECO = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlDaughterCardECO.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardECO.setDescription('This variable specifies eco level of the daughter card.') eqlDaughterCardEEprom = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlDaughterCardEEprom.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardEEprom.setDescription('The contents of the eeprom.') eqlChannelCardTable = MibTable((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1), ) if mibBuilder.loadTexts: eqlChannelCardTable.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardTable.setDescription('EqualLogic-Dynamic Member ChannelCard Table. This table contains channel card information. One table entry per channel card. It is indexed by channel card index. The number of entries is equal to the number of channel cards that are present in the system') eqlChannelCardEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1), ).setIndexNames((0, "EQLGROUP-MIB", "eqlGroupId"), (0, "EQLMEMBER-MIB", "eqlMemberIndex"), (0, "EQLCONTROLLER-MIB", "eqlChannelCardIndex")) if mibBuilder.loadTexts: eqlChannelCardEntry.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardEntry.setDescription('An entry (row) containing channel card information.') eqlChannelCardIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))) if mibBuilder.loadTexts: eqlChannelCardIndex.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardIndex.setDescription('The index value that uniquely identifies the ChannelCard subsystem.') eqlChannelCardSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlChannelCardSerialNumber.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardSerialNumber.setDescription('This variable specifies serial number of the card.') eqlChannelCardFirmwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlChannelCardFirmwareRev.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardFirmwareRev.setDescription('This variable specifies firmware revision of the card.') eqlChannelCardInitRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlChannelCardInitRev.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardInitRev.setDescription('This variable specifies revision of the initialization configuration file.') eqlChannelCardStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("unknown", 0), ("not-present", 1), ("failed", 2), ("good", 3))).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlChannelCardStatus.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardStatus.setDescription('This variable specifies the status of the channel card .') eqlSFPTable = MibTable((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1), ) if mibBuilder.loadTexts: eqlSFPTable.setStatus('current') if mibBuilder.loadTexts: eqlSFPTable.setDescription('EqualLogic-Dynamic Member SFP Table. This table contains SFP information. One table entry per SFP. It is indexed by SFP index. The number of entries is equal to the number of SFPs that are present in the system') eqlSFPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1), ).setIndexNames((0, "EQLGROUP-MIB", "eqlGroupId"), (0, "EQLMEMBER-MIB", "eqlMemberIndex"), (0, "EQLCONTROLLER-MIB", "eqlSFPIndex")) if mibBuilder.loadTexts: eqlSFPEntry.setStatus('current') if mibBuilder.loadTexts: eqlSFPEntry.setDescription('An entry (row) containing SFP information.') eqlSFPIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100))) if mibBuilder.loadTexts: eqlSFPIndex.setStatus('current') if mibBuilder.loadTexts: eqlSFPIndex.setDescription('The index value that uniquely identifies the SFP.') eqlSFPMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 0), ("single-mode", 1), ("multi-mode", 2), ("copper", 3), ("not-present", 4))).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPMode.setStatus('current') if mibBuilder.loadTexts: eqlSFPMode.setDescription('This variable specifies the mode of the SFP.') eqlSFPIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPIfIndex.setStatus('current') if mibBuilder.loadTexts: eqlSFPIfIndex.setDescription('Index of the interface attached to the SFP.') eqlSFPIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 3))).clone(namedValues=NamedValues(("unknown", 0), ("sfp-transceiver", 3))).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPIdentifier.setStatus('current') if mibBuilder.loadTexts: eqlSFPIdentifier.setDescription('Identifies the SFP.') eqlSFPConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 7, 33))).clone(namedValues=NamedValues(("unknown", 0), ("lc", 7), ("copper", 33))).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPConnector.setStatus('current') if mibBuilder.loadTexts: eqlSFPConnector.setDescription('type of the SFP connector.') eqlSFPBitrate = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPBitrate.setStatus('current') if mibBuilder.loadTexts: eqlSFPBitrate.setDescription('Bit rate of the SFP in units of 100 Mbits/sec. 103 => 10300 => 10 Gbps') eqlSFPLength1 = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPLength1.setStatus('current') if mibBuilder.loadTexts: eqlSFPLength1.setDescription('If Mode is single mode, length in kilometres, Mode is multi mode, length in units of 10metres of 50/125 um fiber.') eqlSFPLength2 = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPLength2.setStatus('current') if mibBuilder.loadTexts: eqlSFPLength2.setDescription('If Mode is single mode, length in units of 100metres, Mode is multi mode, length in units of 10metres of 62/125 um fiber.') eqlSFPVendorName = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPVendorName.setStatus('current') if mibBuilder.loadTexts: eqlSFPVendorName.setDescription('This variable specifies vendor name of the SFP.') eqlSFPPartNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPPartNumber.setStatus('current') if mibBuilder.loadTexts: eqlSFPPartNumber.setDescription('This variable specifies part number of the SFP.') eqlSFPFirmwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPFirmwareRev.setStatus('current') if mibBuilder.loadTexts: eqlSFPFirmwareRev.setDescription('This variable specifies firmware revision of the SFP.') eqlSFPSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPSerialNumber.setStatus('current') if mibBuilder.loadTexts: eqlSFPSerialNumber.setDescription('This variable specifies serial number of the SFP.') eqlSFPDateCode = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPDateCode.setStatus('current') if mibBuilder.loadTexts: eqlSFPDateCode.setDescription('This variable specifies date of manufacture of the SFP.') eqlSFPStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("unknown", 0), ("not-present", 1), ("failed", 2), ("good", 3))).clone('unknown')).setMaxAccess("readonly") if mibBuilder.loadTexts: eqlSFPStatus.setStatus('current') if mibBuilder.loadTexts: eqlSFPStatus.setDescription('This variable specifies the status of the SFP.') mibBuilder.exportSymbols("EQLCONTROLLER-MIB", eqlControllerPhysRam=eqlControllerPhysRam, eqlControllerCPUrev=eqlControllerCPUrev, eqlEMMEntry=eqlEMMEntry, eqlemmConformance=eqlemmConformance, eqlSFPDateCode=eqlSFPDateCode, eqlDaughterCardRev=eqlDaughterCardRev, eqlEMMEEprom=eqlEMMEEprom, eqlSFPConnector=eqlSFPConnector, eqlSFPStatus=eqlSFPStatus, eqlBackplaneECO=eqlBackplaneECO, eqlControllerDate=eqlControllerDate, eqlDaughterCardPartNum=eqlDaughterCardPartNum, eqlControllerPrimaryFlashImageRev=eqlControllerPrimaryFlashImageRev, eqlControllerBootRomBuildDate=eqlControllerBootRomBuildDate, eqlBackplanePartNum=eqlBackplanePartNum, eqlSFPIfIndex=eqlSFPIfIndex, eqlchannelcardObjects=eqlchannelcardObjects, eqlDaughterCardECO=eqlDaughterCardECO, eqlBackplaneRev=eqlBackplaneRev, eqlControllerUpTime=eqlControllerUpTime, eqlemmObjects=eqlemmObjects, eqlChannelCardEntry=eqlChannelCardEntry, eqlControllerPrimaryOrSecondary=eqlControllerPrimaryOrSecondary, eqlEMMSN=eqlEMMSN, eqlControllerChipsetTemp=eqlControllerChipsetTemp, eqlDaughterCardEntry=eqlDaughterCardEntry, eqlControllerSerialNumber2=eqlControllerSerialNumber2, eqlBackplaneTypeId=eqlBackplaneTypeId, eqlDaughterCardSN=eqlDaughterCardSN, eqlcontrollerModule=eqlcontrollerModule, eqlBackplaneSN=eqlBackplaneSN, eqlControllerMajorVersion=eqlControllerMajorVersion, eqlControllerCPUPass=eqlControllerCPUPass, PYSNMP_MODULE_ID=eqlcontrollerModule, eqlControllerMaintenanceVersion=eqlControllerMaintenanceVersion, eqlControllerPLDrev=eqlControllerPLDrev, eqlcontrollerObjects=eqlcontrollerObjects, eqlDaughterCardIndex=eqlDaughterCardIndex, eqlControllerCPUfreq=eqlControllerCPUfreq, eqlControllerBootTime=eqlControllerBootTime, eqlSFPEntry=eqlSFPEntry, eqlDaughterCardModel=eqlDaughterCardModel, eqlSFPIndex=eqlSFPIndex, eqlSFPLength2=eqlSFPLength2, eqlSFPFirmwareRev=eqlSFPFirmwareRev, eqlControllerSWCompatibilityLevel=eqlControllerSWCompatibilityLevel, eqlControllerMinorVersion=eqlControllerMinorVersion, eqlControllerEntry=eqlControllerEntry, eqlBackplaneIndex=eqlBackplaneIndex, eqlSFPBitrate=eqlSFPBitrate, eqlSFPSerialNumber=eqlSFPSerialNumber, eqlChannelCardIndex=eqlChannelCardIndex, eqlEMMSN2=eqlEMMSN2, eqlChannelCardSerialNumber=eqlChannelCardSerialNumber, eqlSFPIdentifier=eqlSFPIdentifier, eqlbackplaneNotifications=eqlbackplaneNotifications, eqlEMMModel=eqlEMMModel, eqlDaughterCardEEprom=eqlDaughterCardEEprom, eqlEMMRev=eqlEMMRev, eqlControllerType=eqlControllerType, eqlBackplaneSN2=eqlBackplaneSN2, eqlControllerIndex=eqlControllerIndex, eqlEMMPartNum=eqlEMMPartNum, eqlEMMTable=eqlEMMTable, eqlDaughterCardTable=eqlDaughterCardTable, eqlChannelCardTable=eqlChannelCardTable, eqlControllerEEprom=eqlControllerEEprom, eqlsfpObjects=eqlsfpObjects, eqlControllerInfoMsg=eqlControllerInfoMsg, eqlEMMIndex=eqlEMMIndex, eqlControllerPlatformType=eqlControllerPlatformType, eqlControllerFullSwRevision=eqlControllerFullSwRevision, eqlControllerNVRAMBattery=eqlControllerNVRAMBattery, eqlControllerBootRomVersion=eqlControllerBootRomVersion, eqlSFPTable=eqlSFPTable, eqlChannelCardStatus=eqlChannelCardStatus, eqlemmNotifications=eqlemmNotifications, eqlControllerAthenaSataVersion=eqlControllerAthenaSataVersion, eqlControllerBatteryStatus=eqlControllerBatteryStatus, eqldaughtercardNotifications=eqldaughtercardNotifications, eqlSFPLength1=eqlSFPLength1, eqlbackplaneConformance=eqlbackplaneConformance, eqldaughtercardConformance=eqldaughtercardConformance, eqlControllerSecondaryFlashImageRev=eqlControllerSecondaryFlashImageRev, eqlcontrollerConformance=eqlcontrollerConformance, eqlControllerModel=eqlControllerModel, eqlSFPMode=eqlSFPMode, eqlSFPPartNumber=eqlSFPPartNumber, eqlChannelCardFirmwareRev=eqlChannelCardFirmwareRev, eqlControllerCMRevision=eqlControllerCMRevision, eqlControllerSerialNumber=eqlControllerSerialNumber, eqlControllerECO=eqlControllerECO, eqlChannelCardInitRev=eqlChannelCardInitRev, eqlBackplaneEntry=eqlBackplaneEntry, eqlControllerSwRevision=eqlControllerSwRevision, eqlEMMECO=eqlEMMECO, eqlEMMDate=eqlEMMDate, eqlDaughterCardDate=eqlDaughterCardDate, eqlBackplaneDate=eqlBackplaneDate, eqlSFPVendorName=eqlSFPVendorName, eqlControllerProcessorTemp=eqlControllerProcessorTemp, eqlbackplaneObjects=eqlbackplaneObjects, eqldaughtercardObjects=eqldaughtercardObjects, eqlControllerPlatformVersion=eqlControllerPlatformVersion, eqlControllerTable=eqlControllerTable, eqlcontrollerNotifications=eqlcontrollerNotifications, eqlBackplaneType=eqlBackplaneType, eqlBackplaneTable=eqlBackplaneTable, eqlBackplaneEEprom=eqlBackplaneEEprom)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, single_value_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (eql_group_id,) = mibBuilder.importSymbols('EQLGROUP-MIB', 'eqlGroupId') (eql_member_index,) = mibBuilder.importSymbols('EQLMEMBER-MIB', 'eqlMemberIndex') (equal_logic,) = mibBuilder.importSymbols('EQUALLOGIC-SMI', 'equalLogic') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (ip_address, enterprises, gauge32, iso, unsigned32, time_ticks, bits, notification_type, integer32, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, counter64, counter32, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'enterprises', 'Gauge32', 'iso', 'Unsigned32', 'TimeTicks', 'Bits', 'NotificationType', 'Integer32', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Counter64', 'Counter32', 'ModuleIdentity') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') eqlcontroller_module = module_identity((1, 3, 6, 1, 4, 1, 12740, 4)) eqlcontrollerModule.setRevisions(('2002-09-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: eqlcontrollerModule.setRevisionsDescriptions(('Initial revision',)) if mibBuilder.loadTexts: eqlcontrollerModule.setLastUpdated('201403121459Z') if mibBuilder.loadTexts: eqlcontrollerModule.setOrganization('EqualLogic Inc.') if mibBuilder.loadTexts: eqlcontrollerModule.setContactInfo('Contact: Customer Support Postal: Dell Inc 300 Innovative Way, Suite 301, Nashua, NH 03062 Tel: +1 603-579-9762 E-mail: [email protected] WEB: www.equallogic.com') if mibBuilder.loadTexts: eqlcontrollerModule.setDescription(' Copyright (c) 2004-2009 by Dell, Inc. All rights reserved. This software may not be copied, disclosed, transferred, or used except in accordance with a license granted by Dell, Inc. This software embodies proprietary information and trade secrets of Dell, Inc. ') eqlcontroller_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 1)) eqlcontroller_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 2)) eqlcontroller_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 3)) eqlbackplane_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 4)) eqlbackplane_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 5)) eqlbackplane_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 6)) eqlemm_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 7)) eqlemm_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 8)) eqlemm_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 9)) eqldaughtercard_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 10)) eqldaughtercard_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 11)) eqldaughtercard_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 12)) eqlchannelcard_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 13)) eqlsfp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12740, 4, 14)) eql_controller_table = mib_table((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1)) if mibBuilder.loadTexts: eqlControllerTable.setStatus('current') if mibBuilder.loadTexts: eqlControllerTable.setDescription('EqualLogic-Dynamic Member Controller Table. This table contains controller status information. One table entry per controller. It is indexed by controller slot number. The number of entries is equal to the number of controllers that are present in the system') eql_controller_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1)).setIndexNames((0, 'EQLGROUP-MIB', 'eqlGroupId'), (0, 'EQLMEMBER-MIB', 'eqlMemberIndex'), (0, 'EQLCONTROLLER-MIB', 'eqlControllerIndex')) if mibBuilder.loadTexts: eqlControllerEntry.setStatus('current') if mibBuilder.loadTexts: eqlControllerEntry.setDescription('An entry (row) containing controller status information.') eql_controller_index = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2)).clone(1)) if mibBuilder.loadTexts: eqlControllerIndex.setStatus('current') if mibBuilder.loadTexts: eqlControllerIndex.setDescription('The index value that uniquely identifies the controller. It is equal to the controller slot number. The minimum slot number is 1') eql_controller_model = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32)).clone('unknown model')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerModel.setStatus('current') if mibBuilder.loadTexts: eqlControllerModel.setDescription('This variable specifies controller model. Is value of Part=') eql_controller_cm_revision = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 9)).clone('unknown rev')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerCMRevision.setStatus('current') if mibBuilder.loadTexts: eqlControllerCMRevision.setDescription('CM version number; Is value of Rev=') eql_controller_sw_revision = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 96)).clone('unknown sw rev')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerSwRevision.setStatus('current') if mibBuilder.loadTexts: eqlControllerSwRevision.setDescription('This variable specifies the customer visible controller software revision.') eql_controller_battery_status = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('failed', 2), ('good-battery-is-charging', 3), ('low-voltage-status', 4), ('low-voltage-is-charging', 5), ('missing-battery', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerBatteryStatus.setStatus('current') if mibBuilder.loadTexts: eqlControllerBatteryStatus.setDescription('This variable specifies controller battery status.') eql_controller_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 6), counter32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerUpTime.setStatus('current') if mibBuilder.loadTexts: eqlControllerUpTime.setDescription('This variable specifies time interval since the controller was last booted in seconds. ') eql_controller_processor_temp = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerProcessorTemp.setStatus('current') if mibBuilder.loadTexts: eqlControllerProcessorTemp.setDescription('This variable specifies the temperature in Celsius.') eql_controller_chipset_temp = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerChipsetTemp.setStatus('current') if mibBuilder.loadTexts: eqlControllerChipsetTemp.setDescription('This variable specifies the temperature in Celsius.') eql_controller_primary_or_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('primary', 1), ('secondary', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerPrimaryOrSecondary.setStatus('current') if mibBuilder.loadTexts: eqlControllerPrimaryOrSecondary.setDescription('This variable specifies if the controller is a primary or secondary controller.') eql_controller_primary_flash_image_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 40)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerPrimaryFlashImageRev.setStatus('current') if mibBuilder.loadTexts: eqlControllerPrimaryFlashImageRev.setDescription('The revision of the primary flash image.') eql_controller_secondary_flash_image_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 40)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerSecondaryFlashImageRev.setStatus('current') if mibBuilder.loadTexts: eqlControllerSecondaryFlashImageRev.setDescription('The revision of the secondary flash image.') eql_controller_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerSerialNumber.setStatus('current') if mibBuilder.loadTexts: eqlControllerSerialNumber.setDescription('This variable specifies controller serial number. Is value of SN=') eql_controller_date = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerDate.setStatus('current') if mibBuilder.loadTexts: eqlControllerDate.setDescription('This variable specifies date of mfg of the CM. Is value of Date=') eql_controller_eco = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerECO.setStatus('current') if mibBuilder.loadTexts: eqlControllerECO.setDescription('This variable specifies eco level of the CM. Is value of ECO=') eql_controller_e_eprom = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 15), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerEEprom.setStatus('current') if mibBuilder.loadTexts: eqlControllerEEprom.setDescription('The contents of the eeprom.') eql_controller_pl_drev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 16), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerPLDrev.setStatus('current') if mibBuilder.loadTexts: eqlControllerPLDrev.setDescription('This variable specifies pld version number.') eql_controller_platform_type = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 17), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerPlatformType.setStatus('current') if mibBuilder.loadTexts: eqlControllerPlatformType.setDescription('This variable specifies the platform type. If the number is negative its a simulator. If zero its an eval platform. If >= 1 is the version of the pss board -- does this mean cm rev?') eql_controller_platform_version = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 18), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerPlatformVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerPlatformVersion.setDescription('This variable specifies the version of the pss board (ie CM?)') eql_controller_cpu_pass = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerCPUPass.setStatus('current') if mibBuilder.loadTexts: eqlControllerCPUPass.setDescription('This variable specifies silicon rev.') eql_controller_cp_urev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 20), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerCPUrev.setStatus('current') if mibBuilder.loadTexts: eqlControllerCPUrev.setDescription('This variable specifies the revision of the cpu.') eql_controller_cp_ufreq = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 21), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerCPUfreq.setStatus('current') if mibBuilder.loadTexts: eqlControllerCPUfreq.setDescription('This variable specifies the cpu freq in MHz.') eql_controller_phys_ram = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 22), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerPhysRam.setStatus('current') if mibBuilder.loadTexts: eqlControllerPhysRam.setDescription('This variable specifies the amount of physical memory in MB.') eql_controller_boot_rom_version = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 23), display_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerBootRomVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerBootRomVersion.setDescription('This variable specifies the bootrom version number.') eql_controller_boot_rom_build_date = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(128, 128)).setFixedLength(128).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerBootRomBuildDate.setStatus('current') if mibBuilder.loadTexts: eqlControllerBootRomBuildDate.setDescription('This variable specifies the date and time bootrom image was built.') eql_controller_info_msg = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 25), display_string().clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerInfoMsg.setStatus('current') if mibBuilder.loadTexts: eqlControllerInfoMsg.setDescription('This variable is basic info on the cpu at bootup.') eql_controller_athena_sata_version = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 26), display_string().clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerAthenaSataVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerAthenaSataVersion.setDescription('This variable is the Athena Sata revision for all Athena chips.') eql_controller_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 27), unsigned32().clone(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerMajorVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerMajorVersion.setDescription('This variable specifies the major version number of the software present on the controller module.') eql_controller_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 28), unsigned32().clone(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerMinorVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerMinorVersion.setDescription('This variable specifies the minor version number of the software present on the controller module.') eql_controller_maintenance_version = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 29), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerMaintenanceVersion.setStatus('current') if mibBuilder.loadTexts: eqlControllerMaintenanceVersion.setDescription('This variable specifies the maintenance version number of the software present on the controller module.') eql_controller_sw_compatibility_level = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 30), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerSWCompatibilityLevel.setStatus('current') if mibBuilder.loadTexts: eqlControllerSWCompatibilityLevel.setDescription('This variable specifies the compatibility level of the software present on the controller module.') eql_controller_full_sw_revision = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 31), display_string().subtype(subtypeSpec=value_size_constraint(0, 96)).clone('unknown sw rev')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerFullSwRevision.setStatus('current') if mibBuilder.loadTexts: eqlControllerFullSwRevision.setDescription('This variable specifies controller software revision. ') eql_controller_nvram_battery = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('not-present', 0), ('good', 1), ('bad', 2), ('unknown', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerNVRAMBattery.setStatus('current') if mibBuilder.loadTexts: eqlControllerNVRAMBattery.setDescription('This variable represents the NVRAM Battery on CM. Value would be zero if there is no NVRAM Battery( old CM). ') eql_controller_serial_number2 = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 33), display_string().clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerSerialNumber2.setStatus('current') if mibBuilder.loadTexts: eqlControllerSerialNumber2.setDescription('This variable specifies controller serial number. Is value of SN=.The eqlControllerSerialNumber is deprecated because this value can be upto 15 characters for manhattan.') eql_controller_type = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 34), display_string().subtype(subtypeSpec=value_size_constraint(0, 32)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerType.setStatus('current') if mibBuilder.loadTexts: eqlControllerType.setDescription('This variable specifies the type of the controller module. Ex: Type II') eql_controller_boot_time = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 1, 1, 1, 35), counter32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: eqlControllerBootTime.setStatus('current') if mibBuilder.loadTexts: eqlControllerBootTime.setDescription('This variable specifies time at which the controller was booted expressed as seconds since epoch.') eql_backplane_table = mib_table((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1)) if mibBuilder.loadTexts: eqlBackplaneTable.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneTable.setDescription('EqualLogic-Dynamic Backplane Table. This table contains backplane status information. There is only one table entry for the one backplane per PSA.') eql_backplane_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1)).setIndexNames((0, 'EQLGROUP-MIB', 'eqlGroupId'), (0, 'EQLMEMBER-MIB', 'eqlMemberIndex'), (0, 'EQLCONTROLLER-MIB', 'eqlBackplaneIndex')) if mibBuilder.loadTexts: eqlBackplaneEntry.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneEntry.setDescription('An entry (row) containing backplane status information.') eql_backplane_index = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2)).clone(1)) if mibBuilder.loadTexts: eqlBackplaneIndex.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneIndex.setDescription('The index value that uniquely identifies the backplane. A well chosen number for the index is 1. It is in fact the only valid index.') eql_backplane_part_num = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplanePartNum.setStatus('current') if mibBuilder.loadTexts: eqlBackplanePartNum.setDescription('This variable specifies part number of the backplane.') eql_backplane_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneRev.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneRev.setDescription('This variable specifies revision of the backplane. Is value of Rev=') eql_backplane_date = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneDate.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneDate.setDescription('This variable specifies date of mfg of the backplane.') eql_backplane_sn = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneSN.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneSN.setDescription('This variable specifies serial number of the backplane.') eql_backplane_eco = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneECO.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneECO.setDescription('This variable specifies eco level of the backplane.') eql_backplane_e_eprom = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneEEprom.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneEEprom.setDescription('The contents of the eeprom.') eql_backplane_sn2 = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 8), display_string().clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneSN2.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneSN2.setDescription('This variable specifies the backplane serial number. Is value of SN=.The eqlBackplaneSN is deprecated because this value can be up to 15 characters for manhattan.') eql_backplane_type = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneType.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneType.setDescription('This variable specifies the backplane type.') eql_backplane_type_id = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 4, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlBackplaneTypeId.setStatus('current') if mibBuilder.loadTexts: eqlBackplaneTypeId.setDescription('This variable specifies the backplane type as an Id. Used for Globalization.') eql_emm_table = mib_table((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1)) if mibBuilder.loadTexts: eqlEMMTable.setStatus('current') if mibBuilder.loadTexts: eqlEMMTable.setDescription('EqualLogic-Dynamic Member EMM Table. This table contains enclosure management status information. One table entry per emm. It is indexed by emm index. The number of entries is equal to the number of emms that are present in the system') eql_emm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1)).setIndexNames((0, 'EQLGROUP-MIB', 'eqlGroupId'), (0, 'EQLMEMBER-MIB', 'eqlMemberIndex'), (0, 'EQLCONTROLLER-MIB', 'eqlEMMIndex')) if mibBuilder.loadTexts: eqlEMMEntry.setStatus('current') if mibBuilder.loadTexts: eqlEMMEntry.setDescription('An entry (row) containing emm status information.') eql_emm_index = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3)).clone(1)) if mibBuilder.loadTexts: eqlEMMIndex.setStatus('current') if mibBuilder.loadTexts: eqlEMMIndex.setDescription('The index value that uniquely identifies the EMM subsystem. ') eql_emm_model = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32)).clone('unknown model')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMModel.setStatus('current') if mibBuilder.loadTexts: eqlEMMModel.setDescription('This variable specifies controller model. Is value of Part=') eql_emm_part_num = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMPartNum.setStatus('current') if mibBuilder.loadTexts: eqlEMMPartNum.setDescription('This variable specifies part number of the CM.') eql_emm_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMRev.setStatus('current') if mibBuilder.loadTexts: eqlEMMRev.setDescription('This variable specifies revision of the CM.') eql_emm_date = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMDate.setStatus('current') if mibBuilder.loadTexts: eqlEMMDate.setDescription('This variable specifies date of mfg of the CM.') eql_emmsn = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMSN.setStatus('current') if mibBuilder.loadTexts: eqlEMMSN.setDescription('This variable specifies serial number of the CM.') eql_emmeco = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMECO.setStatus('current') if mibBuilder.loadTexts: eqlEMMECO.setDescription('This variable specifies eco level of the CM.') eql_emme_eprom = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMEEprom.setStatus('current') if mibBuilder.loadTexts: eqlEMMEEprom.setDescription('The contents of the eeprom.') eql_emmsn2 = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 7, 1, 1, 9), display_string().clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlEMMSN2.setStatus('current') if mibBuilder.loadTexts: eqlEMMSN2.setDescription('This variable specifies the serial number. Is value of SN=.The eqlEMMSN is deprecated because this value can be up to 15 characters for manhattan.') eql_daughter_card_table = mib_table((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1)) if mibBuilder.loadTexts: eqlDaughterCardTable.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardTable.setDescription('EqualLogic-Dynamic Member DaughterCard Table. This table contains daughter card information. One table entry per daughter card. It is indexed by daughter card index. The number of entries is equal to the number of daughter cards that are present in the system') eql_daughter_card_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1)).setIndexNames((0, 'EQLGROUP-MIB', 'eqlGroupId'), (0, 'EQLMEMBER-MIB', 'eqlMemberIndex'), (0, 'EQLCONTROLLER-MIB', 'eqlDaughterCardIndex')) if mibBuilder.loadTexts: eqlDaughterCardEntry.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardEntry.setDescription('An entry (row) containing daughter card information.') eql_daughter_card_index = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2)).clone(1)) if mibBuilder.loadTexts: eqlDaughterCardIndex.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardIndex.setDescription('The index value that uniquely identifies the DaughterCard subsystem. 1 based') eql_daughter_card_model = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32)).clone('unknown model')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlDaughterCardModel.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardModel.setDescription('This variable specifies controller model. Is value of Part=') eql_daughter_card_part_num = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlDaughterCardPartNum.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardPartNum.setDescription('This variable specifies part number of the daughter card.') eql_daughter_card_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlDaughterCardRev.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardRev.setDescription('This variable specifies revision of the daughter card.') eql_daughter_card_date = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlDaughterCardDate.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardDate.setDescription('This variable specifies date of mfg of the daughter card.') eql_daughter_card_sn = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlDaughterCardSN.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardSN.setDescription('This variable specifies serial number of the daughter card.') eql_daughter_card_eco = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 10)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlDaughterCardECO.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardECO.setDescription('This variable specifies eco level of the daughter card.') eql_daughter_card_e_eprom = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 10, 1, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(256, 256)).setFixedLength(256).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlDaughterCardEEprom.setStatus('current') if mibBuilder.loadTexts: eqlDaughterCardEEprom.setDescription('The contents of the eeprom.') eql_channel_card_table = mib_table((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1)) if mibBuilder.loadTexts: eqlChannelCardTable.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardTable.setDescription('EqualLogic-Dynamic Member ChannelCard Table. This table contains channel card information. One table entry per channel card. It is indexed by channel card index. The number of entries is equal to the number of channel cards that are present in the system') eql_channel_card_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1)).setIndexNames((0, 'EQLGROUP-MIB', 'eqlGroupId'), (0, 'EQLMEMBER-MIB', 'eqlMemberIndex'), (0, 'EQLCONTROLLER-MIB', 'eqlChannelCardIndex')) if mibBuilder.loadTexts: eqlChannelCardEntry.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardEntry.setDescription('An entry (row) containing channel card information.') eql_channel_card_index = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))) if mibBuilder.loadTexts: eqlChannelCardIndex.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardIndex.setDescription('The index value that uniquely identifies the ChannelCard subsystem.') eql_channel_card_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlChannelCardSerialNumber.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardSerialNumber.setDescription('This variable specifies serial number of the card.') eql_channel_card_firmware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlChannelCardFirmwareRev.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardFirmwareRev.setDescription('This variable specifies firmware revision of the card.') eql_channel_card_init_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 64)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlChannelCardInitRev.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardInitRev.setDescription('This variable specifies revision of the initialization configuration file.') eql_channel_card_status = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 13, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('unknown', 0), ('not-present', 1), ('failed', 2), ('good', 3))).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlChannelCardStatus.setStatus('current') if mibBuilder.loadTexts: eqlChannelCardStatus.setDescription('This variable specifies the status of the channel card .') eql_sfp_table = mib_table((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1)) if mibBuilder.loadTexts: eqlSFPTable.setStatus('current') if mibBuilder.loadTexts: eqlSFPTable.setDescription('EqualLogic-Dynamic Member SFP Table. This table contains SFP information. One table entry per SFP. It is indexed by SFP index. The number of entries is equal to the number of SFPs that are present in the system') eql_sfp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1)).setIndexNames((0, 'EQLGROUP-MIB', 'eqlGroupId'), (0, 'EQLMEMBER-MIB', 'eqlMemberIndex'), (0, 'EQLCONTROLLER-MIB', 'eqlSFPIndex')) if mibBuilder.loadTexts: eqlSFPEntry.setStatus('current') if mibBuilder.loadTexts: eqlSFPEntry.setDescription('An entry (row) containing SFP information.') eql_sfp_index = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100))) if mibBuilder.loadTexts: eqlSFPIndex.setStatus('current') if mibBuilder.loadTexts: eqlSFPIndex.setDescription('The index value that uniquely identifies the SFP.') eql_sfp_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 0), ('single-mode', 1), ('multi-mode', 2), ('copper', 3), ('not-present', 4))).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPMode.setStatus('current') if mibBuilder.loadTexts: eqlSFPMode.setDescription('This variable specifies the mode of the SFP.') eql_sfp_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPIfIndex.setStatus('current') if mibBuilder.loadTexts: eqlSFPIfIndex.setDescription('Index of the interface attached to the SFP.') eql_sfp_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 3))).clone(namedValues=named_values(('unknown', 0), ('sfp-transceiver', 3))).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPIdentifier.setStatus('current') if mibBuilder.loadTexts: eqlSFPIdentifier.setDescription('Identifies the SFP.') eql_sfp_connector = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 7, 33))).clone(namedValues=named_values(('unknown', 0), ('lc', 7), ('copper', 33))).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPConnector.setStatus('current') if mibBuilder.loadTexts: eqlSFPConnector.setDescription('type of the SFP connector.') eql_sfp_bitrate = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPBitrate.setStatus('current') if mibBuilder.loadTexts: eqlSFPBitrate.setDescription('Bit rate of the SFP in units of 100 Mbits/sec. 103 => 10300 => 10 Gbps') eql_sfp_length1 = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPLength1.setStatus('current') if mibBuilder.loadTexts: eqlSFPLength1.setDescription('If Mode is single mode, length in kilometres, Mode is multi mode, length in units of 10metres of 50/125 um fiber.') eql_sfp_length2 = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPLength2.setStatus('current') if mibBuilder.loadTexts: eqlSFPLength2.setDescription('If Mode is single mode, length in units of 100metres, Mode is multi mode, length in units of 10metres of 62/125 um fiber.') eql_sfp_vendor_name = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPVendorName.setStatus('current') if mibBuilder.loadTexts: eqlSFPVendorName.setDescription('This variable specifies vendor name of the SFP.') eql_sfp_part_number = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPPartNumber.setStatus('current') if mibBuilder.loadTexts: eqlSFPPartNumber.setDescription('This variable specifies part number of the SFP.') eql_sfp_firmware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPFirmwareRev.setStatus('current') if mibBuilder.loadTexts: eqlSFPFirmwareRev.setDescription('This variable specifies firmware revision of the SFP.') eql_sfp_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPSerialNumber.setStatus('current') if mibBuilder.loadTexts: eqlSFPSerialNumber.setDescription('This variable specifies serial number of the SFP.') eql_sfp_date_code = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPDateCode.setStatus('current') if mibBuilder.loadTexts: eqlSFPDateCode.setDescription('This variable specifies date of manufacture of the SFP.') eql_sfp_status = mib_table_column((1, 3, 6, 1, 4, 1, 12740, 4, 14, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('unknown', 0), ('not-present', 1), ('failed', 2), ('good', 3))).clone('unknown')).setMaxAccess('readonly') if mibBuilder.loadTexts: eqlSFPStatus.setStatus('current') if mibBuilder.loadTexts: eqlSFPStatus.setDescription('This variable specifies the status of the SFP.') mibBuilder.exportSymbols('EQLCONTROLLER-MIB', eqlControllerPhysRam=eqlControllerPhysRam, eqlControllerCPUrev=eqlControllerCPUrev, eqlEMMEntry=eqlEMMEntry, eqlemmConformance=eqlemmConformance, eqlSFPDateCode=eqlSFPDateCode, eqlDaughterCardRev=eqlDaughterCardRev, eqlEMMEEprom=eqlEMMEEprom, eqlSFPConnector=eqlSFPConnector, eqlSFPStatus=eqlSFPStatus, eqlBackplaneECO=eqlBackplaneECO, eqlControllerDate=eqlControllerDate, eqlDaughterCardPartNum=eqlDaughterCardPartNum, eqlControllerPrimaryFlashImageRev=eqlControllerPrimaryFlashImageRev, eqlControllerBootRomBuildDate=eqlControllerBootRomBuildDate, eqlBackplanePartNum=eqlBackplanePartNum, eqlSFPIfIndex=eqlSFPIfIndex, eqlchannelcardObjects=eqlchannelcardObjects, eqlDaughterCardECO=eqlDaughterCardECO, eqlBackplaneRev=eqlBackplaneRev, eqlControllerUpTime=eqlControllerUpTime, eqlemmObjects=eqlemmObjects, eqlChannelCardEntry=eqlChannelCardEntry, eqlControllerPrimaryOrSecondary=eqlControllerPrimaryOrSecondary, eqlEMMSN=eqlEMMSN, eqlControllerChipsetTemp=eqlControllerChipsetTemp, eqlDaughterCardEntry=eqlDaughterCardEntry, eqlControllerSerialNumber2=eqlControllerSerialNumber2, eqlBackplaneTypeId=eqlBackplaneTypeId, eqlDaughterCardSN=eqlDaughterCardSN, eqlcontrollerModule=eqlcontrollerModule, eqlBackplaneSN=eqlBackplaneSN, eqlControllerMajorVersion=eqlControllerMajorVersion, eqlControllerCPUPass=eqlControllerCPUPass, PYSNMP_MODULE_ID=eqlcontrollerModule, eqlControllerMaintenanceVersion=eqlControllerMaintenanceVersion, eqlControllerPLDrev=eqlControllerPLDrev, eqlcontrollerObjects=eqlcontrollerObjects, eqlDaughterCardIndex=eqlDaughterCardIndex, eqlControllerCPUfreq=eqlControllerCPUfreq, eqlControllerBootTime=eqlControllerBootTime, eqlSFPEntry=eqlSFPEntry, eqlDaughterCardModel=eqlDaughterCardModel, eqlSFPIndex=eqlSFPIndex, eqlSFPLength2=eqlSFPLength2, eqlSFPFirmwareRev=eqlSFPFirmwareRev, eqlControllerSWCompatibilityLevel=eqlControllerSWCompatibilityLevel, eqlControllerMinorVersion=eqlControllerMinorVersion, eqlControllerEntry=eqlControllerEntry, eqlBackplaneIndex=eqlBackplaneIndex, eqlSFPBitrate=eqlSFPBitrate, eqlSFPSerialNumber=eqlSFPSerialNumber, eqlChannelCardIndex=eqlChannelCardIndex, eqlEMMSN2=eqlEMMSN2, eqlChannelCardSerialNumber=eqlChannelCardSerialNumber, eqlSFPIdentifier=eqlSFPIdentifier, eqlbackplaneNotifications=eqlbackplaneNotifications, eqlEMMModel=eqlEMMModel, eqlDaughterCardEEprom=eqlDaughterCardEEprom, eqlEMMRev=eqlEMMRev, eqlControllerType=eqlControllerType, eqlBackplaneSN2=eqlBackplaneSN2, eqlControllerIndex=eqlControllerIndex, eqlEMMPartNum=eqlEMMPartNum, eqlEMMTable=eqlEMMTable, eqlDaughterCardTable=eqlDaughterCardTable, eqlChannelCardTable=eqlChannelCardTable, eqlControllerEEprom=eqlControllerEEprom, eqlsfpObjects=eqlsfpObjects, eqlControllerInfoMsg=eqlControllerInfoMsg, eqlEMMIndex=eqlEMMIndex, eqlControllerPlatformType=eqlControllerPlatformType, eqlControllerFullSwRevision=eqlControllerFullSwRevision, eqlControllerNVRAMBattery=eqlControllerNVRAMBattery, eqlControllerBootRomVersion=eqlControllerBootRomVersion, eqlSFPTable=eqlSFPTable, eqlChannelCardStatus=eqlChannelCardStatus, eqlemmNotifications=eqlemmNotifications, eqlControllerAthenaSataVersion=eqlControllerAthenaSataVersion, eqlControllerBatteryStatus=eqlControllerBatteryStatus, eqldaughtercardNotifications=eqldaughtercardNotifications, eqlSFPLength1=eqlSFPLength1, eqlbackplaneConformance=eqlbackplaneConformance, eqldaughtercardConformance=eqldaughtercardConformance, eqlControllerSecondaryFlashImageRev=eqlControllerSecondaryFlashImageRev, eqlcontrollerConformance=eqlcontrollerConformance, eqlControllerModel=eqlControllerModel, eqlSFPMode=eqlSFPMode, eqlSFPPartNumber=eqlSFPPartNumber, eqlChannelCardFirmwareRev=eqlChannelCardFirmwareRev, eqlControllerCMRevision=eqlControllerCMRevision, eqlControllerSerialNumber=eqlControllerSerialNumber, eqlControllerECO=eqlControllerECO, eqlChannelCardInitRev=eqlChannelCardInitRev, eqlBackplaneEntry=eqlBackplaneEntry, eqlControllerSwRevision=eqlControllerSwRevision, eqlEMMECO=eqlEMMECO, eqlEMMDate=eqlEMMDate, eqlDaughterCardDate=eqlDaughterCardDate, eqlBackplaneDate=eqlBackplaneDate, eqlSFPVendorName=eqlSFPVendorName, eqlControllerProcessorTemp=eqlControllerProcessorTemp, eqlbackplaneObjects=eqlbackplaneObjects, eqldaughtercardObjects=eqldaughtercardObjects, eqlControllerPlatformVersion=eqlControllerPlatformVersion, eqlControllerTable=eqlControllerTable, eqlcontrollerNotifications=eqlcontrollerNotifications, eqlBackplaneType=eqlBackplaneType, eqlBackplaneTable=eqlBackplaneTable, eqlBackplaneEEprom=eqlBackplaneEEprom)
#!/bin/python num = int(input()) possibilities = 0 while num >= 0: if num % 4 == 0: possibilities += 1 num -= 5 print(possibilities)
num = int(input()) possibilities = 0 while num >= 0: if num % 4 == 0: possibilities += 1 num -= 5 print(possibilities)
class Mouse(object): def __init__(self, browser): self.browser = browser def left_click( self, element=None, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None, ): self.left_click_by_offset( element, 0, 0, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class, ) def left_click_by_offset( self, element=None, xoffset=0, yoffset=0, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None, ): actions = self.browser.get_action_chains() element = self.browser._get_element( element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class, ) self.browser.wait_for_visible( element=element, ) if type(element) == tuple: element = self.browser.find_element( element=element, ) self.browser._safe_log( "Click at '%s' by offset(%s,%s)", element, xoffset, yoffset ) actions.move_to_element(element).move_by_offset( xoffset, yoffset ).click().perform() def hover( self, element=None, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None, ): self.browser._safe_log("Hover at '%s'", element) self.hover_by_offset( element, 0, 0, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class, ) def hover_by_offset( self, element=None, xoffset=0, yoffset=0, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None, ): actions = self.browser.get_action_chains() element = self.browser._get_element( element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class, ) self.browser.wait_for_visible( element=element, ) element = self.browser.find_element( element=element, ) self.browser._safe_log( "Mouse over '%s' by offset(%s,%s)", element, xoffset, yoffset ) actions.move_to_element(element).move_by_offset(xoffset, yoffset).perform() def right_click( self, element=None, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None, ): actions = self.browser.get_action_chains() element = self.browser._get_element( element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class, ) self.browser.wait_for_visible( element=element, ) if type(element) == tuple: element = self.browser.find_element( element=element, ) self.browser._safe_log( "Right click at '%s'", self.browser._to_string( element=element, ), ) actions.context_click(element).perform() def right_click_by_offset( self, element=None, xoffset=0, yoffset=0, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None, ): actions = self.browser.get_action_chains() element = self.browser._get_element( element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class, ) self.browser.wait_for_visible( element=element, ) if type(element) == tuple: element = self.browser.find_element( element=element, ) self.browser._safe_log( "Right click at '%s' by offset(%s,%s)", element, xoffset, yoffset ) actions.move_to_element(element).move_by_offset( xoffset, yoffset ).context_click().perform()
class Mouse(object): def __init__(self, browser): self.browser = browser def left_click(self, element=None, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None): self.left_click_by_offset(element, 0, 0, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class) def left_click_by_offset(self, element=None, xoffset=0, yoffset=0, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None): actions = self.browser.get_action_chains() element = self.browser._get_element(element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class) self.browser.wait_for_visible(element=element) if type(element) == tuple: element = self.browser.find_element(element=element) self.browser._safe_log("Click at '%s' by offset(%s,%s)", element, xoffset, yoffset) actions.move_to_element(element).move_by_offset(xoffset, yoffset).click().perform() def hover(self, element=None, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None): self.browser._safe_log("Hover at '%s'", element) self.hover_by_offset(element, 0, 0, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class) def hover_by_offset(self, element=None, xoffset=0, yoffset=0, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None): actions = self.browser.get_action_chains() element = self.browser._get_element(element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class) self.browser.wait_for_visible(element=element) element = self.browser.find_element(element=element) self.browser._safe_log("Mouse over '%s' by offset(%s,%s)", element, xoffset, yoffset) actions.move_to_element(element).move_by_offset(xoffset, yoffset).perform() def right_click(self, element=None, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None): actions = self.browser.get_action_chains() element = self.browser._get_element(element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class) self.browser.wait_for_visible(element=element) if type(element) == tuple: element = self.browser.find_element(element=element) self.browser._safe_log("Right click at '%s'", self.browser._to_string(element=element)) actions.context_click(element).perform() def right_click_by_offset(self, element=None, xoffset=0, yoffset=0, by_id=None, by_xpath=None, by_link=None, by_partial_link=None, by_name=None, by_tag=None, by_css=None, by_class=None): actions = self.browser.get_action_chains() element = self.browser._get_element(element=element, by_id=by_id, by_xpath=by_xpath, by_link=by_link, by_partial_link=by_partial_link, by_name=by_name, by_tag=by_tag, by_css=by_css, by_class=by_class) self.browser.wait_for_visible(element=element) if type(element) == tuple: element = self.browser.find_element(element=element) self.browser._safe_log("Right click at '%s' by offset(%s,%s)", element, xoffset, yoffset) actions.move_to_element(element).move_by_offset(xoffset, yoffset).context_click().perform()
# Theory: Kwargs # With *args you can create more flexible functions that accept # a varying number of positional arguments. You may now wonder # how to do the same with named arguments. Fortunately, in # Python, you can work with keyword arguments in a similar way. # Multiple keyword arguments # Let's get acquianted with the ** operator used to pass a # varying number of keyword arguments into a function. # **kwargs collects all possible extra values in a dictionary with # keywords as keys. # By convention, people use special names for this kind of # arguments: *args for positional arguments and **kwargs for # keyword arguments, but you can call them whatever you want. # The main thing is that a single asterisk * matches a value by # position and a double asterisk ** associates a value with a # name, or keyword. So, **kwargs differs from *args in that you # will need to assign keywords. # Here is an example: def capital(**kwargs): for key, value in kwargs.items(): print(value, "is the capital city of", key) capital(Canada="Ottawa", Estonia="Tallinn", Venezuela="Caracas", Finland="Helsinki") # Once the function has been invoked, these 4 lines will be # printed: # Ottawa is the capital city of Canada # Tallinn is the capital city of Estonia # Caracas is the capital city of Venezuela # Helsinki is the capital city of Finland # So, everything works just fine! And again, the number of # arguments we pass may differ in the next call. # Note that the names in a call are without quotes. That is # not a mistake. Moreover, the names should be valid, for # example, you cannot start a keyword with a number. # Follow the same naming rules as for variables. # It is also possible to combine *args and **kwargs in one # function definition: def func(positional_args, defaults, *args, **kwargs): pass # The order is crucial here, Just as non-keyword arguments # precede keyword arguments, *args must come before # **kwargs in this case. Otherwise, both when creating and # calling a function with *args and **kwargs in the wrong order, # a SyntaxError will appear: # def func(positional_args, defaults, **kwargs, *args): # SyntaxError: invalid syntax # func(positional_args, defaults, **kwargs, *args) # SyntaxError: iterable argument unpacking follows keyword argument unpacking # 2. Unpacking in function calls # There are two unpacking operators in Python: a single asterisk # * unpacks elements of an iterable object and a double asterisk # ** works with dictionaries. Let's try to get key-value pairs from # a dictioary and pass them as keyword arguments using a # double asterisk **: def say_bye(**names): for name in names: print("Au revior,", name) print("See you on", names[name]["next appointment"]) print() humans = {"Laura": {"next appointment": "Tuesday"}, "Robin": {"next appointment": "Friday"}} say_bye(**humans) # Au revior, Laura # See you on Tuesday # Au revior, Robin # See you on Friday # By default, you iterate over keys in a dictionary, so be careful # with this. You might need this type of unpacking when setting # specific parameters of a function. Saving values in a dictionary # and then unpacking them in this way might be much easier than # list them in each call manually. Also, it will save time when # you choose to fine-tune these parameters. # 3. Summary # Let's go over the main points dicussed in the topic: # - If you want to work with a varying number of keyword # arguments, make use of **kwargs. # - The variable name kwargs in conventional, you can always # choose another one. # - Notice the difference: *args provides access to a tuple of # remaining values, while **kwargs collects remaining key- # value pairs in a dictionary. # - The order of parameters in the function definition is # important, as well as the order of passed arguments. # - In function calls, now you can use both unpacking # operators: a single asterisk * for iterable objects and a # double asterisk ** for dictionaries.
def capital(**kwargs): for (key, value) in kwargs.items(): print(value, 'is the capital city of', key) capital(Canada='Ottawa', Estonia='Tallinn', Venezuela='Caracas', Finland='Helsinki') def func(positional_args, defaults, *args, **kwargs): pass def say_bye(**names): for name in names: print('Au revior,', name) print('See you on', names[name]['next appointment']) print() humans = {'Laura': {'next appointment': 'Tuesday'}, 'Robin': {'next appointment': 'Friday'}} say_bye(**humans)
#!/usr/bin/env python3 # Copyright 2009-2017 BHG http://bw.org/ x = 42 y = 73 # Compares the vallue of x and y if x < y: print('x < y: x is {} and y is {}'.format(x, y)) elif x > y: print("x is greater than y") else: print("x and y are equal") if x > y: print('x > y: x is {} and y is {}'.format(x, y)) print("Inside Condition") x = 10 print(x)
x = 42 y = 73 if x < y: print('x < y: x is {} and y is {}'.format(x, y)) elif x > y: print('x is greater than y') else: print('x and y are equal') if x > y: print('x > y: x is {} and y is {}'.format(x, y)) print('Inside Condition') x = 10 print(x)
__title__ = 'Generative FSL for Covid Prediction' __version__ = '1.0.0' __author__ = 'Suvarna Kadam' __license__ = 'MIT' __copyright__ = 'Copyright 2021'
__title__ = 'Generative FSL for Covid Prediction' __version__ = '1.0.0' __author__ = 'Suvarna Kadam' __license__ = 'MIT' __copyright__ = 'Copyright 2021'
print('Temperature conversion program') print(' press 1 for convert from celcius to another \n press 2 for convert from faremhit to another \n press 3 for convert from kelvin to another') choice = int(input('enter your choice number : ')) if choice >3: print('invalid choice optino...please enter from 1 to 3') # celcius converter if choice==1: temp = float(input('please enter temparature in celcius : ')) # rounding to 2 decumal places farenhit = round((((9/5)*temp)+32),2) kelvin = round((temp +273.15),2) print('temparature in farenhit is ', farenhit , ' deg F') print('temparature in kelvin is ', kelvin , ' deg K') # farenhit converter elif choice==2: temp = float(input('please enter temparature in farenhit : ')) # rounding to 2 decumal places celcius = round(((5/9)*(temp-32)),2) kelvin = round(((temp +459.67)*(5/9)),2) print('temparature in farenhit is ', celcius , ' deg C') print('temparature in kelvin is ', kelvin , ' deg K') # kelvin converter elif choice==3: temp = float(input('please enter temparature in kelvin : ')) # rounding to 2 decumal places celcius = round((temp-273.15),2) farenhit = round(((temp*(9/5))-459.67),2) print('temparature in farenhit is ', celcius , ' deg C') print('temparature in kelvin is ', farenhit , ' deg F')
print('Temperature conversion program') print(' press 1 for convert from celcius to another \n press 2 for convert from faremhit to another \n press 3 for convert from kelvin to another') choice = int(input('enter your choice number : ')) if choice > 3: print('invalid choice optino...please enter from 1 to 3') if choice == 1: temp = float(input('please enter temparature in celcius : ')) farenhit = round(9 / 5 * temp + 32, 2) kelvin = round(temp + 273.15, 2) print('temparature in farenhit is ', farenhit, ' deg F') print('temparature in kelvin is ', kelvin, ' deg K') elif choice == 2: temp = float(input('please enter temparature in farenhit : ')) celcius = round(5 / 9 * (temp - 32), 2) kelvin = round((temp + 459.67) * (5 / 9), 2) print('temparature in farenhit is ', celcius, ' deg C') print('temparature in kelvin is ', kelvin, ' deg K') elif choice == 3: temp = float(input('please enter temparature in kelvin : ')) celcius = round(temp - 273.15, 2) farenhit = round(temp * (9 / 5) - 459.67, 2) print('temparature in farenhit is ', celcius, ' deg C') print('temparature in kelvin is ', farenhit, ' deg F')
a=int(input('enter a :')) b=int(input('enter a :')) c=int(input('enter a :')) def largest_num(x,y,z): if x>y and x>z: print(x) elif y>x and y>z: print(y) else: print(z) print('largest :',end="") largest_num(a,b,c)
a = int(input('enter a :')) b = int(input('enter a :')) c = int(input('enter a :')) def largest_num(x, y, z): if x > y and x > z: print(x) elif y > x and y > z: print(y) else: print(z) print('largest :', end='') largest_num(a, b, c)
# List in Python # from typing import Tuple name = ["Anirban", "Rangan", "Miko", "UK NK", "Lucifer"] print(name) # mixed List mixing1 = ["ISHITA ROY", 143, 0.99, 'E'] print(mixing1) print(mixing1[2]) # list shorting num1 = [2, 5, 78, 3, 88, 23, 1, 94, 33, 21, 5, 3, 67, 27] print(num1) num2 = num1.copy() num1.sort() print(num1) num1.reverse() num1.remove(33) num1.pop() num1.append(101) num1.append(1000) num1.insert(2, 200000) print(min(num1)) print(max(num1)) print(num1) # slicing print(num2[1:10]) # mutable and immutable # tuple: immutable tp: tuple[int, int, int] = (2, 3, 7) print(tp) tp1 = (7, 3, 2) tp3 = tp1 + tp print(tp3) # swapping two numbers using python a = 7 b = 1 a, b = b, a print(a, b) print(float(sum(num1)))
name = ['Anirban', 'Rangan', 'Miko', 'UK NK', 'Lucifer'] print(name) mixing1 = ['ISHITA ROY', 143, 0.99, 'E'] print(mixing1) print(mixing1[2]) num1 = [2, 5, 78, 3, 88, 23, 1, 94, 33, 21, 5, 3, 67, 27] print(num1) num2 = num1.copy() num1.sort() print(num1) num1.reverse() num1.remove(33) num1.pop() num1.append(101) num1.append(1000) num1.insert(2, 200000) print(min(num1)) print(max(num1)) print(num1) print(num2[1:10]) tp: tuple[int, int, int] = (2, 3, 7) print(tp) tp1 = (7, 3, 2) tp3 = tp1 + tp print(tp3) a = 7 b = 1 (a, b) = (b, a) print(a, b) print(float(sum(num1)))