content
stringlengths
7
1.05M
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: hussein """ if distance > 0.2: with open('robot1.csv', 'a', newline='') as f: fieldnames = ['Data_X', 'Data_Y', 'Label_X', 'Label_Y'] thewriter = csv.DictWriter(f, fieldnames=fieldnames) if self.i1 == 0: thewriter.writeheader() self.i1 = 1 thewriter.writerow({'Data_X' : self.X1, 'Data_Y' : self.Y1, 'Label_X' : self.U1[0], 'Label_Y' : self.U1[1]}) with open('robot2.csv', 'a', newline='') as f: fieldnames = ['Data_X', 'Data_Y', 'Label_X', 'Label_Y'] thewriter = csv.DictWriter(f, fieldnames=fieldnames) if self.i2 == 0: thewriter.writeheader() self.i2 = 1 thewriter.writerow({'Data_X' : self.X2, 'Data_Y' : self.Y2, 'Label_X' : self.U2[0], 'Label_Y' : self.U2[1]})
class Solution: def generateParenthesis(self, n: int) -> List[str]: res = [] self.helper(res, '', n, n) return res def helper(self, res, tempList, left, right): if left > right: return if left == 0 and right == 0: res.append(tempList) if left>0: self.helper(res,tempList+'(', left-1,right) if right>0: self.helper(res, tempList+')', left, right-1)
#!/usr/bin/python # #Stores the configuration information that will be used across entire project # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. WATCH_FOLDER='/mnt/cluster-programs/watch-folder' CONVERSION_TYPES=['iPod-LQ','iPod-HQ','Movie-Archive','Movie-LQ','TV-Show-Archive','TV-Show-LQ'] JOB_FOLDER='/mnt/cluster-programs/handbrake/jobs/' BASE_DIR='/mnt/cluster-programs/handbrake/' FTP_PORT=2010 MESSAGE_SERVER='Chiana' VHOST='cluster' MESSAGE_USERID='cluster-admin' MESSAGE_PWD='1234' EXCHANGE='handbrake' JOB_QUEUE='job-queue' SERVER_COMM_QUEUE='server-queue' SERVER_COMM_WRITER=dict(server=MESSAGE_SERVER, vhost=VHOST, \ userid=MESSAGE_USERID, password=MESSAGE_PWD, \ exchange=EXCHANGE, exchange_type='direct', \ routing_key=SERVER_COMM_QUEUE, exchange_auto_delete=False, \ queue_durable=True, queue_auto_delete=False) STATUS_WRITER=dict(server=MESSAGE_SERVER, vhost=VHOST, \ userid=MESSAGE_USERID, password=MESSAGE_PWD, \ exchange=EXCHANGE, exchange_type='direct', \ routing_key='status-updates', exchange_auto_delete=False, \ queue_durable=True, queue_auto_delete=False)
class Solution: def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool: output = [] push = 0 pop = 0 while push < len(pushed) or pop < len(popped): if len(output) != 0 and pop < len(popped) and output[-1] == popped[pop]: output.pop() pop += 1 elif push < len(pushed): output.append(pushed[push]) push += 1 else: return False return push == len(pushed) and pop == len(popped)
#!/usr/bin/env python """ Convenience methods for list comparison & manipulation Fast and useful, set/frozenset* only retain unique values, duplicates are automatically removed. lr_union union merge values, remove duplicates lr_diff difference left elements, subtracting any in common with right lr_intr intersection only common values found in both left and right lr_symm symmetric_difference omit values found in both left and right lr_cont issuperset test left contains all values from right * Unlike set, frozenset preserves its own order and is immutable. They do not preserve the source-order. """ lr_union = lambda l, r: list(set(l).union(r)) lr_diff = lambda l, r: list(set(l).difference(r)) lr_intr = lambda l, r: list(set(l).intersection(r)) lr_symm = lambda l, r: list(set(l).symmetric_difference(r)) lr_cont = lambda l, r: set(l).issuperset(r) def tests(): """ doctest tests/examples for set and set conveniences A few examples without the conveniences above. Strings are a form of list, they can be passed where apropriate >>> set('aabbcc') # only unique are returned set(['a', 'c', 'b']) Do the work and cast as list (switch to tuple if prefered) >>> list(set('aabbcc')) ['a', 'c', 'b'] Using list does not remove duplicates >>> list('aabbcc') # list is not unique ['a', 'a', 'b', 'b', 'c', 'c'] Simple join of lists, note the redundant values >>> ['a', 'a', 'b'] + ['b', 'c', 'c'] ['a', 'a', 'b', 'b', 'c', 'c'] Join both lists, return only unique values, join list before set (slower) >>> list(set(['a', 'a', 'b'] + ['b', 'c', 'c'])) ['a', 'c', 'b'] Join lists, as above, using built-in set library (faster) >>> lr_union(['a', 'a', 'b'], ['b', 'c', 'c']) ['a', 'c', 'b'] Remove right values from left >>> lr_diff(['a', 'b'], ['b', 'c']) ['a'] Remove as above, swapped/reordered inputs to remove left from right >>> lr_diff(['b', 'c'], ['a', 'b']) ['c'] Common elements >>> lr_intr(['a', 'b'], ['b', 'c']) ['b'] Unique elements (remove the common, intersecting, values) Note: similar to left-right + right-left. >>> lr_symm(['a', 'b'], ['b', 'c']) ['a', 'c'] Is left a superset of (does it contain) the right >>> lr_cont(['a', 'b'], ['b', 'c']) False >>> lr_cont(['a', 'b', 'c'], ['b', 'c']) True Marginally less trite examples using words >>> lwords = 'the quick brown fox'.split() >>> rtags = 'brown,fox,jumps,over'.split(',') Return all unique words from both lists. >>> lr_union(lwords,rtags) ['brown', 'over', 'fox', 'quick', 'the', 'jumps'] Return unique common, intersecting, words. Members of left AND right only. >>> lr_intr(lwords,rtags) ['brown', 'fox'] Return unique uncommon words. Members of left OR right >>> lr_symm(lwords,rtags) ['quick', 'the', 'jumps', 'over'] Note: intersection + symmetric = union, but don't count on their order! """
PET_LEVELS = [ 100, 110, 120, 130, 145, 160, 175, 190, 210, 230, 250, 275, 300, 330, 360, 400, 440, 490, 540, 600, 660, 730, 800, 880, 960, 1050, 1150, 1260, 1380, 1510, 1650, 1800, 1960, 2130, 2310, 2500, 2700, 2920, 3160, 3420, 3700, 4000, 4350, 4750, 5200, 5700, 6300, 7000, 7800, 8700, 9700, 10800, 12000, 13300, 14700, 16200, 17800, 19500, 21300, 23200, 25200, 27400, 29800, 32400, 35200, 38200, 41400, 44800, 48400, 52200, 56200, 60400, 64800, 69400, 74200, 79200, 84700, 90700, 97200, 104200, 111700, 119700, 128200, 137200, 146700, 156700, 167700, 179700, 192700, 206700, 221700, 237700, 254700, 272700, 291700, 311700, 333700, 357700, 383700, 411700, 441700, 476700, 516700, 561700, 611700, 666700, 726700, 791700, 861700, 936700, 1016700, 1101700, 1191700, 1286700, 1386700, 1496700, 1616700, 1746700, 1886700 ]
def sortarray(arr): total_len = len(arr) if total_len == 0 or total_len == 1: return 0 sorted_array = sorted(arr) ptr1 = 0 ptr2 = 0 counter = 0 idx = 0 while idx < total_len: if sorted_array[ptr1] == arr[ptr2]: ptr1 = ptr1 +1 counter = counter + 1 ptr2 = ptr2 + 1 idx = idx +1 return (total_len - counter) print(sortarray([1,3,2]))
#!/usr/bin/env python3 class MyRange: def __init__(self, start, end=None, step=1): if step == 0: raise if end == None: start, end = 0, start self._start = start self._end = end self._step = step self._pointer = start def __getitem__(self, key): res = self._start + self._step * key if self._step > 0: if res >= self._end: raise StopIteration else: if res <= self._end: raise StopIteration return res def __iter__(self): self._pointer = self._start return self def __next__(self): if self._step > 0: self._pointer += self._step if self._pointer >= self._end: raise StopIteration else: self._pointer += self._step if self._pointer <= self._end: raise StopIteration return self._pointer if __name__ == '__main__': for i in MyRange(10): print('range(10):', i) t = MyRange(1, -11, -2) for i in t: print('range(1, -11, -2):', i) for i in t: print('range(1, -11, -2) again:', i) # sol #1: using __getitem__ # sol #2: using __next__ && __iter__
N, K, S = map(int, input().split()) if S == 1: const = S + 1 else: const = S - 1 ans = [] for i in range(N): if i < K: ans.append(S) else: ans.append(const) print(*ans)
def reverse_list(x): """Takes an list and returns the reverse of it. If x is empty, return []. >>> reverse_list([1, 2, 3, 4]) [4, 3, 2, 1] >>> reverse_list([]) [] """ return x[::-1] def sum_list(x): """Takes a list, and returns the sum of that list. If x is empty list, return 0. >>> sum_list([1, 2, 3, 4]) 10 >>> sum_list([]) 0 """ return sum(x) def head_of_list(x): """Takes a list, returns the first item in that list. If x is empty, return None >>> head_of_list([1, 2, 3, 4]) 1 >>> head_of_list([]) is None True """ return x[0] if x else None
num = int(input('Digite um numero : ')) tot=0 for c in range(1,num + 1): if num % c == 0 : print(' {} '.format(c)) tot +=1 else: print('{} '.format(c))
def nb_year(p0, percent, aug, p): count = 0 while p0 < p: pop = p0 + p0 * (percent/100) + aug p0 = pop ###this is kinda gross...should have just done something like### ### p0 += p0 * percent/100 + aug #### count += 1 return count
anapara=int(input("Anaparayı giriniz: ")) oran=int(input("Oran giriniz: ")) yıl=int(input("Yıl giriniz: ")) basit_faiz=(anapara*oran*yıl)/100 print("Faiz miktarı: ",basit_faiz) print("{} yıl sonraki toplam para miktarı: {}₺".format(yıl,anapara+basit_faiz))
# //Escreva um programa que leia a velocidade de um carro. Se ele ultrapassar 80Km/h, # mostre uma mensagem dizendo que ele foi multado. A multa vai custar R$7,00 por cada Km acima do limite. print("-=-" * 15) print(" RADAR ELETRONICO ") vel = int(input('VELOCIDADE REGISTRADA: ')) multa = (vel*7) - (560) if vel <= 80: print('Sua velocidade está dentro do limite.') print("-=-" * 15) else: print('Você excedeu a velocidade de 80KM. ') print('FOI MULTADO EM: R${}'.format(multa)) if vel > 80: pag = str(input('Você ira pagar essa multa? (S/N) ')) if pag == 'S': print('Ok, iremos enviar no seu e-amail!') print("-=-" * 15) else: print('Iremos te solicitar por correios.') print("-=-" * 15) else: exit()
#Leia 2 valores inteiros X e Y. A seguir, calcule e mostre #a soma dos números impares entre eles. x = int(input()) y = int(input()) i = 0 if x < y: x+= 1 while x < y: if x % 2 != 0: i += x x += 1 if y < x: y+= 1 while y < x: if y % 2 != 0: i += y y += 1 print(i)
# 흡입력은 전원이 켜져 있을 때, 흡입을 시작한다. # 동시에 흡입력은 전원을 끈다고 해서 달라지진 않는다. # 단, 전원이 켜지는 순간에 정지가 아니라 약,중,강 중 하나라면 바로 동작한다. # 전원(Boolean형으로 표현할 것.) : 켜짐(True), 꺼짐(False) # 흡입력상태(숫자형로 표현할 것.) : 정지(0), 약(1), 중(2), 강(3) # 흡입력조절올리기 : 정지 -> 약 | 약 -> 중 | 중 -> 강, 약,중,강 일 경우"약으로 청소중", "중으로 청소중", "강으로 청소중" 이라고 출력하시오. # 흡입력조절내리기 : 강 -> 중 | 중 -> 약 | 약 -> 정지, 약,중,강 일 경우"약으로 청소중", "중으로 청소중", "강으로 청소중" 이라고 출력하시오. # 전원제어 : 약,중,강 상태일 때는 전원이 켜지자 마자 바로 "약으로 청소중", "중으로 청소중", "강으로 청소중" 이라고 출력하시오. # 0 = '정지' # 1 = '약' # 2 = '중' # 3 = '강' class 청소기(): def __init__(self): self.전원 = False self.흡입력 = 0 self.단계 = ("정지", "약", "중", "강") def 전원버튼(self): if self.전원 == False: self.전원 = True print('켜짐') print(self.단계[self.흡입력], '으로 청소중') else: self.전원 = False print('꺼짐') def 흡입력올리기(self): if self.전원 == True: if self.흡입력 < 3: self.흡입력 += 1 print(self.단계[self.흡입력], '으로 청소중') def 흡입력내리기(self): if self.전원 == True: if 0 < self.흡입력: self.흡입력 -= 1 print(self.단계[self.흡입력], '으로 청소중') 청소 = 청소기() 청소.전원버튼() 청소.흡입력올리기() 청소.흡입력올리기() 청소.전원버튼() 청소.전원버튼() 청소.흡입력올리기() 청소.흡입력내리기() 청소.전원버튼() 청소.전원버튼() 청소.흡입력내리기() 청소.흡입력내리기() 청소.전원버튼()
########################################################################### # # Copyright 2020 Google LLC # # 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 # # https://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. # ########################################################################### DCM_Field_Lookup = { 'Video_Unmutes': 'INTEGER', 'Zip_Postal_Code': 'STRING', 'Path_Length': 'INTEGER', 'Measurable_Impressions_For_Audio': 'INTEGER', 'Average_Interaction_Time': 'FLOAT', 'Invalid_Impressions': 'INTEGER', 'Floodlight_Variable_40': 'STRING', 'Floodlight_Variable_41': 'STRING', 'Floodlight_Variable_42': 'STRING', 'Floodlight_Variable_43': 'STRING', 'Floodlight_Variable_44': 'STRING', 'Floodlight_Variable_45': 'STRING', 'Floodlight_Variable_46': 'STRING', 'Floodlight_Variable_47': 'STRING', 'Floodlight_Variable_48': 'STRING', 'Floodlight_Variable_49': 'STRING', 'Clicks': 'INTEGER', 'Warnings': 'INTEGER', 'Paid_Search_Advertiser_Id': 'INTEGER', 'Video_Third_Quartile_Completions': 'INTEGER', 'Video_Progress_Events': 'INTEGER', 'Cost_Per_Revenue': 'FLOAT', 'Total_Interaction_Time': 'INTEGER', 'Roadblock_Impressions': 'INTEGER', 'Video_Replays': 'INTEGER', 'Keyword': 'STRING', 'Full_Screen_Video_Plays': 'INTEGER', 'Active_View_Impression_Distribution_Not_Measurable': 'FLOAT', 'Unique_Reach_Total_Reach': 'INTEGER', 'Has_Exits': 'BOOLEAN', 'Paid_Search_Engine_Account': 'STRING', 'Operating_System_Version': 'STRING', 'Campaign': 'STRING', 'Active_View_Percent_Visible_At_Start': 'FLOAT', 'Active_View_Not_Viewable_Impressions': 'INTEGER', 'Twitter_Offers_Accepted': 'INTEGER', 'Interaction_Type': 'STRING', 'Activity_Delivery_Status': 'FLOAT', 'Video_Companion_Clicks': 'INTEGER', 'Floodlight_Paid_Search_Average_Cost_Per_Transaction': 'FLOAT', 'Paid_Search_Agency_Id': 'INTEGER', 'Asset': 'STRING', 'Active_View_Audible_Amp_Fully_On_Screen_For_Half_Of_Duration_15_Sec_Cap_Impressions': 'INTEGER', 'User_List_Current_Size': 'STRING', 'Exit_Url': 'STRING', 'Natural_Search_Revenue': 'FLOAT', 'Retweets': 'INTEGER', 'Full_Screen_Impressions': 'INTEGER', 'Audio_Unmutes': 'INTEGER', 'Dynamic_Element_4_Field_Value_2': 'STRING', 'Dynamic_Element_4_Field_Value_3': 'STRING', 'Dynamic_Element_4_Field_Value_1': 'STRING', 'Creative_Start_Date': 'DATE', 'Small_Video_Player_Size_Impressions': 'INTEGER', 'Audio_Replays': 'INTEGER', 'Video_Player_Size_Avg_Width': 'INTEGER', 'Rich_Media_Standard_Event_Count': 'INTEGER', 'Publisher_Problems': 'INTEGER', 'Paid_Search_Advertiser': 'STRING', 'Has_Video_Completions': 'BOOLEAN', 'Cookie_Reach_Duplicate_Impression_Reach': 'INTEGER', 'Audio_Third_Quartile_Completions': 'INTEGER', 'Package_Roadblock_Strategy': 'STRING', 'Video_Midpoints': 'INTEGER', 'Click_Through_Conversion_Events_Cross_Environment': 'INTEGER', 'Video_Pauses': 'INTEGER', 'Trueview_Views': 'INTEGER', 'Interaction_Count_Mobile_Static_Image': 'INTEGER', 'Dynamic_Element_Click_Rate': 'FLOAT', 'Dynamic_Element_1_Field_6_Value': 'STRING', 'Dynamic_Element_4_Value': 'STRING', 'Creative_End_Date': 'DATE', 'Dynamic_Element_4_Field_3_Value': 'STRING', 'Dynamic_Field_Value_3': 'STRING', 'Mobile_Carrier': 'STRING', 'U_Value': 'STRING', 'Average_Display_Time': 'FLOAT', 'Custom_Variable': 'STRING', 'Video_Interactions': 'INTEGER', 'Average_Expansion_Time': 'FLOAT', 'Email_Shares': 'INTEGER', 'Flight_Booked_Rate': 'STRING', 'Impression_Count': 'INTEGER', 'Site_Id_Dcm': 'INTEGER', 'Dynamic_Element_3_Value_Id': 'STRING', 'Paid_Search_Legacy_Keyword_Id': 'INTEGER', 'View_Through_Conversion_Events_Cross_Environment': 'INTEGER', 'Counters': 'INTEGER', 'Floodlight_Paid_Search_Average_Cost_Per_Action': 'FLOAT', 'Activity_Group_Id': 'INTEGER', 'Active_View_Percent_Audible_And_Visible_At_Midpoint': 'FLOAT', 'Click_Count': 'INTEGER', 'Video_4A_39_S_Ad_Id': 'STRING', 'Total_Interactions': 'INTEGER', 'Active_View_Viewable_Impressions': 'INTEGER', 'Natural_Search_Engine_Property': 'STRING', 'Video_Views': 'INTEGER', 'Domain': 'STRING', 'Total_Conversion_Events_Cross_Environment': 'INTEGER', 'Dbm_Advertiser': 'STRING', 'Companion_Impressions': 'INTEGER', 'View_Through_Conversions_Cross_Environment': 'INTEGER', 'Dynamic_Element_5_Field_Value_3': 'STRING', 'Dynamic_Element_5_Field_Value_2': 'STRING', 'Dynamic_Element_5_Field_Value_1': 'STRING', 'Dynamic_Field_Value_1': 'STRING', 'Active_View_Impression_Distribution_Viewable': 'FLOAT', 'Creative_Field_2': 'STRING', 'Twitter_Leads_Generated': 'INTEGER', 'Paid_Search_External_Campaign_Id': 'INTEGER', 'Creative_Field_8': 'STRING', 'Interaction_Count_Paid_Search': 'INTEGER', 'Activity_Group': 'STRING', 'Video_Player_Location_Avg_Pixels_From_Top': 'INTEGER', 'Interaction_Number': 'INTEGER', 'Dynamic_Element_3_Value': 'STRING', 'Cookie_Reach_Total_Reach': 'INTEGER', 'Cookie_Reach_Exclusive_Click_Reach': 'INTEGER', 'Creative_Field_5': 'STRING', 'Cookie_Reach_Overlap_Impression_Reach': 'INTEGER', 'Paid_Search_Ad_Group': 'STRING', 'Interaction_Count_Rich_Media': 'INTEGER', 'Dynamic_Element_Total_Conversions': 'INTEGER', 'Transaction_Count': 'INTEGER', 'Num_Value': 'STRING', 'Cookie_Reach_Overlap_Total_Reach': 'INTEGER', 'Floodlight_Attribution_Type': 'STRING', 'Cookie_Reach_Exclusive_Impression_Reach_Percent': 'FLOAT', 'Html5_Impressions': 'INTEGER', 'Served_Pixel_Density': 'STRING', 'Has_Full_Screen_Video_Plays': 'BOOLEAN', 'Interaction_Count_Static_Image': 'INTEGER', 'Has_Video_Companion_Clicks': 'BOOLEAN', 'Twitter_Video_100Percent_In_View_For_3_Seconds': 'INTEGER', 'Paid_Search_Ad': 'STRING', 'Paid_Search_Visits': 'INTEGER', 'Audio_Pauses': 'INTEGER', 'Creative_Pixel_Size': 'STRING', 'Flight_Start_Date': 'DATE', 'Active_View_Percent_Of_Third_Quartile_Impressions_Visible': 'FLOAT', 'Natural_Search_Transactions': 'FLOAT', 'Cookie_Reach_Impression_Reach': 'INTEGER', 'Dynamic_Field_Value_4': 'STRING', 'Twitter_Line_Item_Id': 'INTEGER', 'Has_Video_Stops': 'BOOLEAN', 'Active_View_Percent_Audible_And_Visible_At_Completion': 'FLOAT', 'Paid_Search_Labels': 'STRING', 'Twitter_Creative_Type': 'STRING', 'Operating_System': 'STRING', 'Dynamic_Element_3_Field_4_Value': 'STRING', 'Hours_Since_First_Interaction': 'INTEGER', 'Asset_Category': 'STRING', 'Active_View_Measurable_Impressions': 'INTEGER', 'Package_Roadblock': 'STRING', 'Large_Video_Player_Size_Impressions': 'INTEGER', 'Paid_Search_Actions': 'FLOAT', 'Active_View_Percent_Visible_At_Midpoint': 'FLOAT', 'Has_Full_Screen_Views': 'BOOLEAN', 'Backup_Image': 'INTEGER', 'Likes': 'INTEGER', 'Dbm_Line_Item': 'STRING', 'Active_View_Percent_Audible_Impressions': 'FLOAT', 'Flight_Booked_Cost': 'STRING', 'Other_Twitter_Engagements': 'INTEGER', 'Audio_Completions': 'INTEGER', 'Click_Rate': 'FLOAT', 'Cost_Per_Activity': 'FLOAT', 'Dynamic_Element_2_Value': 'STRING', 'Cookie_Reach_Exclusive_Impression_Reach': 'INTEGER', 'Content_Category': 'STRING', 'Twitter_Video_50Percent_In_View_For_2_Seconds': 'INTEGER', 'Total_Revenue_Cross_Environment': 'FLOAT', 'Unique_Reach_Click_Reach': 'INTEGER', 'Has_Video_Replays': 'BOOLEAN', 'Twitter_Creative_Id': 'INTEGER', 'Has_Counters': 'BOOLEAN', 'Dynamic_Element_4_Value_Id': 'STRING', 'Dynamic_Element_4_Field_1_Value': 'STRING', 'Has_Video_Interactions': 'BOOLEAN', 'Video_Player_Size': 'STRING', 'Active_View_Audible_Amp_Fully_On_Screen_For_Half_Of_Duration_Trueview_Impressions': 'INTEGER', 'Advertiser_Id': 'INTEGER', 'Rich_Media_Clicks': 'INTEGER', 'Floodlight_Variable_59': 'STRING', 'Floodlight_Variable_58': 'STRING', 'Floodlight_Variable_57': 'STRING', 'Floodlight_Variable_56': 'STRING', 'Floodlight_Variable_55': 'STRING', 'Floodlight_Variable_54': 'STRING', 'Floodlight_Variable_53': 'STRING', 'Floodlight_Variable_52': 'STRING', 'Floodlight_Variable_51': 'STRING', 'Floodlight_Variable_50': 'STRING', 'Cookie_Reach_Incremental_Total_Reach': 'INTEGER', 'Playback_Method': 'STRING', 'Has_Interactive_Impressions': 'BOOLEAN', 'Paid_Search_Average_Position': 'FLOAT', 'Floodlight_Variable_96': 'STRING', 'Package_Roadblock_Id': 'INTEGER', 'Recalculated_Attribution_Type': 'STRING', 'Dbm_Advertiser_Id': 'INTEGER', 'Floodlight_Variable_100': 'STRING', 'Cookie_Reach_Exclusive_Total_Reach_Percent': 'FLOAT', 'Active_View_Impression_Distribution_Not_Viewable': 'FLOAT', 'Floodlight_Variable_3': 'STRING', 'Floodlight_Variable_2': 'STRING', 'Floodlight_Variable_1': 'STRING', 'Floodlight_Variable_7': 'STRING', 'Floodlight_Variable_6': 'STRING', 'Floodlight_Variable_5': 'STRING', 'Floodlight_Variable_4': 'STRING', 'Rendering_Id': 'INTEGER', 'Floodlight_Variable_9': 'STRING', 'Floodlight_Variable_8': 'STRING', 'Cookie_Reach_Incremental_Impression_Reach': 'INTEGER', 'Active_View_Percent_Visible_At_Third_Quartile': 'FLOAT', 'Reporting_Problems': 'INTEGER', 'Package_Roadblock_Total_Booked_Units': 'STRING', 'Active_View_Percent_Visible_At_Completion': 'FLOAT', 'Has_Video_Midpoints': 'BOOLEAN', 'Dynamic_Element_4_Field_4_Value': 'STRING', 'Percentage_Of_Measurable_Impressions_For_Video_Player_Location': 'FLOAT', 'Campaign_End_Date': 'DATE', 'Placement_External_Id': 'STRING', 'Cost_Per_Click': 'FLOAT', 'Cookie_Reach_Overlap_Click_Reach_Percent': 'FLOAT', 'Active_View_Percent_Full_Screen': 'FLOAT', 'Hour': 'STRING', 'Click_Through_Revenue': 'FLOAT', 'Video_Skips': 'INTEGER', 'Paid_Search_Click_Rate': 'FLOAT', 'Has_Video_Views': 'BOOLEAN', 'Dbm_Cost_Account_Currency': 'FLOAT', 'Flight_End_Date': 'DATE', 'Has_Video_Plays': 'BOOLEAN', 'Paid_Search_Clicks': 'INTEGER', 'Creative_Field_9': 'STRING', 'Manual_Closes': 'INTEGER', 'Creative_Field_7': 'STRING', 'Creative_Field_6': 'STRING', 'App': 'STRING', 'Creative_Field_4': 'STRING', 'Creative_Field_3': 'STRING', 'Campaign_Start_Date': 'DATE', 'Creative_Field_1': 'STRING', 'Content_Classifier': 'STRING', 'Cookie_Reach_Duplicate_Click_Reach': 'INTEGER', 'Site_Dcm': 'STRING', 'Digital_Content_Label': 'STRING', 'Has_Manual_Closes': 'BOOLEAN', 'Has_Timers': 'BOOLEAN', 'Impressions': 'INTEGER', 'Classified_Impressions': 'INTEGER', 'Dbm_Site_Id': 'INTEGER', 'Dynamic_Element_2_Field_1_Value': 'STRING', 'Floodlight_Variable_72': 'STRING', 'Creative': 'STRING', 'Asset_Orientation': 'STRING', 'Custom_Variable_Count_1': 'INTEGER', 'Video_Stops': 'INTEGER', 'Paid_Search_Ad_Id': 'INTEGER', 'Cookie_Reach_Overlap_Total_Reach_Percent': 'FLOAT', 'Click_Delivery_Status': 'FLOAT', 'Dynamic_Element_Impressions': 'INTEGER', 'Interaction_Count_Click_Tracker': 'INTEGER', 'Placement_Total_Booked_Units': 'STRING', 'Date': 'DATE', 'Twitter_Placement_Type': 'STRING', 'Total_Revenue': 'FLOAT', 'Recalculated_Attributed_Interaction': 'STRING', 'Ad_Type': 'STRING', 'Social_Engagement_Rate': 'FLOAT', 'Dynamic_Element_5_Field_1_Value': 'STRING', 'Dynamic_Profile_Id': 'INTEGER', 'Active_View_Impressions_Visible_10_Seconds': 'INTEGER', 'Interaction_Count_Video': 'INTEGER', 'Dynamic_Element_5_Value': 'STRING', 'Video_Player_Size_Avg_Height': 'INTEGER', 'Creative_Type': 'STRING', 'Campaign_External_Id': 'STRING', 'Dynamic_Element_Click_Through_Conversions': 'INTEGER', 'Conversion_Url': 'STRING', 'Floodlight_Variable_89': 'STRING', 'Floodlight_Variable_84': 'STRING', 'Floodlight_Variable_85': 'STRING', 'Floodlight_Variable_86': 'STRING', 'Floodlight_Variable_87': 'STRING', 'Floodlight_Variable_80': 'STRING', 'Floodlight_Variable_81': 'STRING', 'Floodlight_Variable_82': 'STRING', 'Floodlight_Variable_83': 'STRING', 'Active_View_Audible_Amp_Fully_On_Screen_For_Half_Of_Duration_Trueview_Measurable_Impressions': 'INTEGER', 'Floodlight_Variable_66': 'STRING', 'Floodlight_Variable_67': 'STRING', 'Floodlight_Variable_64': 'STRING', 'Floodlight_Variable_65': 'STRING', 'Floodlight_Variable_62': 'STRING', 'Floodlight_Variable_63': 'STRING', 'Floodlight_Variable_60': 'STRING', 'Active_View_Eligible_Impressions': 'INTEGER', 'Dynamic_Element_3_Field_Value_1': 'STRING', 'Dynamic_Element_3_Field_Value_3': 'STRING', 'Dynamic_Element_3_Field_Value_2': 'STRING', 'Floodlight_Variable_68': 'STRING', 'Floodlight_Variable_69': 'STRING', 'Floodlight_Variable_13': 'STRING', 'Floodlight_Variable_12': 'STRING', 'Floodlight_Variable_11': 'STRING', 'Floodlight_Variable_10': 'STRING', 'Floodlight_Variable_17': 'STRING', 'Floodlight_Variable_16': 'STRING', 'Floodlight_Variable_15': 'STRING', 'Floodlight_Variable_14': 'STRING', 'Floodlight_Variable_19': 'STRING', 'Floodlight_Variable_18': 'STRING', 'Audience_Targeted': 'STRING', 'Total_Conversions_Cross_Environment': 'INTEGER', 'Interaction_Count_Mobile_Rich_Media': 'INTEGER', 'Active_View_Percent_Viewable_Impressions': 'FLOAT', 'Dynamic_Element_1_Field_1_Value': 'STRING', 'Active_View_Audible_Amp_Fully_On_Screen_For_Half_Of_Duration_Trueview_Rate': 'FLOAT', 'Has_Video_Skips': 'BOOLEAN', 'Dynamic_Element_5_Field_2_Value': 'STRING', 'Twitter_Buy_Now_Clicks': 'INTEGER', 'Creative_Groups_2': 'STRING', 'Creative_Groups_1': 'STRING', 'Campaign_Id': 'INTEGER', 'Twitter_Campaign_Id': 'INTEGER', 'Active_View_Audible_Amp_Fully_On_Screen_For_Half_Of_Duration_15_Sec_Cap_Rate': 'FLOAT', 'Dynamic_Element_1_Field_5_Value': 'STRING', 'Paid_Search_Match_Type': 'STRING', 'Activity_Per_Thousand_Impressions': 'FLOAT', 'Has_Expansions': 'BOOLEAN', 'Dbm_Creative_Id': 'INTEGER', 'Active_View_Percent_Audible_And_Visible_At_Start': 'FLOAT', 'Booked_Viewable_Impressions': 'FLOAT', 'Dynamic_Element_1_Field_2_Value': 'STRING', 'Paid_Search_Cost': 'FLOAT', 'Dynamic_Element_5_Field_5_Value': 'STRING', 'Floodlight_Paid_Search_Spend_Per_Transaction_Revenue': 'FLOAT', 'Active_View_Percent_Of_Midpoint_Impressions_Audible_And_Visible': 'FLOAT', 'Dynamic_Element_4': 'STRING', 'Dynamic_Element_5': 'STRING', 'Dynamic_Element_2': 'STRING', 'Click_Through_Conversions': 'FLOAT', 'Dynamic_Element_1': 'STRING', 'Dynamic_Element_4_Field_6_Value': 'STRING', 'Attributed_Event_Platform_Type': 'STRING', 'Audio_Midpoints': 'INTEGER', 'Attributed_Event_Connection_Type': 'STRING', 'Dynamic_Element_1_Value': 'STRING', 'Measurable_Impressions_For_Video_Player_Location': 'INTEGER', 'Audio_Companion_Impressions': 'INTEGER', 'Video_Full_Screen': 'INTEGER', 'Active_View_Percent_Visible_At_First_Quartile': 'FLOAT', 'Companion_Creative': 'STRING', 'Cookie_Reach_Exclusive_Total_Reach': 'INTEGER', 'Audio_Mutes': 'INTEGER', 'Placement_Rate': 'STRING', 'Companion_Clicks': 'INTEGER', 'Cookie_Reach_Overlap_Click_Reach': 'INTEGER', 'Site_Keyname': 'STRING', 'Placement_Cost_Structure': 'STRING', 'Percentage_Of_Measurable_Impressions_For_Audio': 'FLOAT', 'Rich_Media_Custom_Event_Count': 'INTEGER', 'Dbm_Cost_Usd': 'FLOAT', 'Dynamic_Element_1_Field_3_Value': 'STRING', 'Has_Video_Third_Quartile_Completions': 'BOOLEAN', 'Paid_Search_Landing_Page_Url': 'STRING', 'Verifiable_Impressions': 'INTEGER', 'Average_Time': 'FLOAT', 'Creative_Field_12': 'STRING', 'Creative_Field_11': 'STRING', 'Creative_Field_10': 'STRING', 'Channel_Mix': 'STRING', 'Paid_Search_Campaign': 'STRING', 'Natural_Search_Landing_Page': 'STRING', 'Dynamic_Element_1_Field_4_Value': 'STRING', 'Payment_Source': 'STRING', 'Planned_Media_Cost': 'FLOAT', 'Conversion_Referrer': 'STRING', 'Companion_Creative_Id': 'INTEGER', 'Dynamic_Element_4_Field_2_Value': 'STRING', 'Total_Conversions': 'FLOAT', 'Custom_Variable_Count_2': 'INTEGER', 'Paid_Search_External_Ad_Group_Id': 'INTEGER', 'Hd_Video_Player_Size_Impressions': 'INTEGER', 'Click_Through_Transaction_Count': 'FLOAT', 'Cookie_Reach_Exclusive_Click_Reach_Percent': 'FLOAT', 'Floodlight_Attributed_Interaction': 'STRING', 'Dynamic_Profile': 'STRING', 'Floodlight_Variable_28': 'STRING', 'Floodlight_Variable_29': 'STRING', 'Dynamic_Element_2_Field_2_Value': 'STRING', 'Floodlight_Variable_22': 'STRING', 'Floodlight_Variable_23': 'STRING', 'Floodlight_Variable_20': 'STRING', 'Floodlight_Variable_21': 'STRING', 'Floodlight_Variable_26': 'STRING', 'Floodlight_Variable_27': 'STRING', 'Floodlight_Variable_24': 'STRING', 'Floodlight_Variable_25': 'STRING', 'Dynamic_Element_4_Field_5_Value': 'STRING', 'Creative_Id': 'INTEGER', 'Activity_Per_Click': 'FLOAT', 'Floodlight_Variable_88': 'STRING', 'Active_View_Percent_Of_First_Quartile_Impressions_Visible': 'FLOAT', 'Serving_Problems': 'INTEGER', 'Placement': 'STRING', 'Dynamic_Element_2_Field_Value_1': 'STRING', 'Dynamic_Element_2_Field_Value_2': 'STRING', 'Dynamic_Element_2_Field_Value_3': 'STRING', 'Interaction_Count_Mobile_Video': 'INTEGER', 'Has_Full_Screen_Video_Completions': 'BOOLEAN', 'Placement_Total_Planned_Media_Cost': 'STRING', 'Video_First_Quartile_Completions': 'INTEGER', 'Twitter_Creative_Media_Id': 'INTEGER', 'Cookie_Reach_Duplicate_Total_Reach': 'INTEGER', 'Rich_Media_Impressions': 'INTEGER', 'Video_Completions': 'INTEGER', 'Month': 'STRING', 'Paid_Search_Keyword_Id': 'INTEGER', 'Cookie_Reach_Duplicate_Click_Reach_Percent': 'FLOAT', 'Replies': 'INTEGER', 'Dynamic_Element_5_Field_6_Value': 'STRING', 'Video_Mutes': 'INTEGER', 'Flight_Booked_Units': 'STRING', 'Dynamic_Element_Value_Id': 'STRING', 'Expansion_Time': 'INTEGER', 'Invalid_Clicks': 'INTEGER', 'Has_Video_Progress_Events': 'BOOLEAN', 'Dynamic_Element_2_Field_3_Value': 'STRING', 'Rich_Media_Standard_Event_Path_Summary': 'STRING', 'Video_Muted_At_Start': 'INTEGER', 'Audio_Companion_Clicks': 'INTEGER', 'Active_View_Audible_Amp_Fully_On_Screen_For_Half_Of_Duration_15_Sec_Cap_Measurable_Impressions': 'INTEGER', 'Interaction_Date_Time': 'DATETIME', 'User_List': 'STRING', 'Event_Timers': 'FLOAT', 'Paid_Search_External_Keyword_Id': 'INTEGER', 'Timers': 'INTEGER', 'Floodlight_Paid_Search_Action_Conversion_Percentage': 'FLOAT', 'View_Through_Revenue_Cross_Environment': 'FLOAT', 'Advertiser': 'STRING', 'Has_Video_Unmutes': 'BOOLEAN', 'Natural_Search_Query': 'STRING', 'Audio_Plays': 'INTEGER', 'Unique_Reach_Average_Impression_Frequency': 'FLOAT', 'Path_Type': 'STRING', 'Dynamic_Field_Value_2': 'STRING', 'Interaction_Channel': 'STRING', 'Blocked_Impressions': 'INTEGER', 'Dynamic_Field_Value_5': 'STRING', 'Dynamic_Field_Value_6': 'STRING', 'Placement_Compatibility': 'STRING', 'City': 'STRING', 'Dbm_Line_Item_Id': 'INTEGER', 'Cookie_Reach_Incremental_Click_Reach': 'INTEGER', 'Floodlight_Variable_61': 'STRING', 'Natural_Search_Processed_Landing_Page_Query_String': 'STRING', 'Report_Day': 'DATE', 'Dbm_Site': 'STRING', 'Connection_Type': 'STRING', 'Video_Average_View_Time': 'FLOAT', 'Click_Through_Revenue_Cross_Environment': 'FLOAT', 'Dbm_Creative': 'STRING', 'Attributed_Event_Environment': 'STRING', 'Floodlight_Variable_99': 'STRING', 'Floodlight_Variable_98': 'STRING', 'Measurable_Impressions_For_Video_Player_Size': 'INTEGER', 'Dynamic_Element_1_Value_Id': 'STRING', 'Paid_Search_Engine_Account_Id': 'INTEGER', 'Floodlight_Variable_93': 'STRING', 'Floodlight_Variable_92': 'STRING', 'Floodlight_Variable_91': 'STRING', 'Floodlight_Variable_90': 'STRING', 'Floodlight_Variable_97': 'STRING', 'Placement_Strategy': 'STRING', 'Floodlight_Variable_95': 'STRING', 'Floodlight_Variable_94': 'STRING', 'Active_View_Percent_Of_Completed_Impressions_Audible_And_Visible': 'FLOAT', 'Floodlight_Variable_75': 'STRING', 'Floodlight_Variable_74': 'STRING', 'Floodlight_Variable_77': 'STRING', 'Floodlight_Variable_76': 'STRING', 'Floodlight_Variable_71': 'STRING', 'Floodlight_Variable_70': 'STRING', 'Floodlight_Variable_73': 'STRING', 'Activity': 'STRING', 'Natural_Search_Engine_Url': 'STRING', 'Total_Display_Time': 'INTEGER', 'User_List_Description': 'STRING', 'Active_View_Impressions_Audible_And_Visible_At_Completion': 'INTEGER', 'Floodlight_Variable_79': 'STRING', 'Floodlight_Variable_78': 'STRING', 'Twitter_Impression_Type': 'STRING', 'Active_View_Average_Viewable_Time_Seconds': 'FLOAT', 'Active_View_Percent_Measurable_Impressions': 'FLOAT', 'Natural_Search_Landing_Page_Query_String': 'STRING', 'Percentage_Of_Measurable_Impressions_For_Video_Player_Size': 'FLOAT', 'Has_Full_Screen_Impressions': 'BOOLEAN', 'Conversion_Id': 'INTEGER', 'Creative_Version': 'STRING', 'Active_View_Percent_In_Background': 'FLOAT', 'Dynamic_Element_2_Value_Id': 'STRING', 'Hours_Since_Attributed_Interaction': 'INTEGER', 'Dynamic_Element_3_Field_5_Value': 'STRING', 'Has_Video_First_Quartile_Completions': 'BOOLEAN', 'Dynamic_Element': 'STRING', 'Active_View_Percent_Visible_10_Seconds': 'FLOAT', 'Booked_Clicks': 'FLOAT', 'Booked_Impressions': 'FLOAT', 'Tran_Value': 'STRING', 'Dynamic_Element_Clicks': 'INTEGER', 'Has_Dynamic_Impressions': 'BOOLEAN', 'Site_Id_Site_Directory': 'INTEGER', 'Active_View_Percent_Audible_And_Visible_At_Third_Quartile': 'FLOAT', 'Twitter_Url_Clicks': 'INTEGER', 'Dynamic_Element_2_Field_6_Value': 'STRING', 'Has_Backup_Image': 'BOOLEAN', 'Dynamic_Element_2_Field_5_Value': 'STRING', 'Rich_Media_Custom_Event_Path_Summary': 'STRING', 'Advertiser_Group': 'STRING', 'General_Invalid_Traffic_Givt_Clicks': 'INTEGER', 'Has_Video_Pauses': 'BOOLEAN', 'Follows': 'INTEGER', 'Has_Html5_Impressions': 'BOOLEAN', 'Percent_Invalid_Clicks': 'FLOAT', 'Percent_Invalid_Impressions': 'FLOAT', 'Activity_Date_Time': 'DATETIME', 'Site_Site_Directory': 'STRING', 'Placement_Pixel_Size': 'STRING', 'Within_Floodlight_Lookback_Window': 'STRING', 'Dbm_Partner': 'STRING', 'Dynamic_Element_3_Field_3_Value': 'STRING', 'Ord_Value': 'STRING', 'Floodlight_Configuration': 'INTEGER', 'Ad_Id': 'INTEGER', 'Video_Plays': 'INTEGER', 'Video_Player_Location_Avg_Pixels_From_Left': 'INTEGER', 'Days_Since_First_Interaction': 'INTEGER', 'Event_Counters': 'INTEGER', 'Active_View_Not_Measurable_Impressions': 'INTEGER', 'Landing_Page_Url': 'STRING', 'Ad_Status': 'STRING', 'Unique_Reach_Impression_Reach': 'INTEGER', 'Dynamic_Element_2_Field_4_Value': 'STRING', 'Dbm_Partner_Id': 'INTEGER', 'Asset_Id': 'INTEGER', 'Video_View_Rate': 'FLOAT', 'Twitter_App_Install_Clicks': 'INTEGER', 'Cookie_Reach_Duplicate_Total_Reach_Percent': 'FLOAT', 'Total_Social_Engagements': 'INTEGER', 'Media_Cost': 'FLOAT', 'Placement_Tag_Type': 'STRING', 'Dbm_Insertion_Order': 'STRING', 'Floodlight_Variable_39': 'STRING', 'Floodlight_Variable_38': 'STRING', 'Paid_Search_External_Ad_Id': 'INTEGER', 'Browser_Platform': 'STRING', 'Floodlight_Variable_31': 'STRING', 'Floodlight_Variable_30': 'STRING', 'Floodlight_Variable_33': 'STRING', 'Floodlight_Variable_32': 'STRING', 'Floodlight_Variable_35': 'STRING', 'Floodlight_Variable_34': 'STRING', 'Floodlight_Variable_37': 'STRING', 'Floodlight_Variable_36': 'STRING', 'Dynamic_Element_View_Through_Conversions': 'INTEGER', 'Active_View_Viewable_Impression_Cookie_Reach': 'INTEGER', 'Video_Interaction_Rate': 'FLOAT', 'Dynamic_Element_3_Field_1_Value': 'STRING', 'Booked_Activities': 'FLOAT', 'Has_Video_Full_Screen': 'BOOLEAN', 'User_List_Membership_Life_Span': 'STRING', 'Video_Length': 'STRING', 'Paid_Search_Keyword': 'STRING', 'Revenue_Per_Click': 'FLOAT', 'Downloaded_Impressions': 'INTEGER', 'Days_Since_Attributed_Interaction': 'INTEGER', 'Code_Serves': 'INTEGER', 'Effective_Cpm': 'FLOAT', 'Environment': 'STRING', 'Active_View_Percent_Play_Time_Audible_And_Visible': 'FLOAT', 'Paid_Search_Agency': 'STRING', 'Dynamic_Element_5_Field_3_Value': 'STRING', 'Paid_Search_Engine_Account_Category': 'STRING', 'Week': 'STRING', 'Designated_Market_Area_Dma': 'STRING', 'Cookie_Reach_Click_Reach': 'INTEGER', 'Twitter_Buy_Now_Purchases': 'INTEGER', 'Floodlight_Paid_Search_Average_Dcm_Transaction_Amount': 'FLOAT', 'Placement_Start_Date': 'DATE', 'Cookie_Reach_Overlap_Impression_Reach_Percent': 'FLOAT', 'View_Through_Revenue': 'FLOAT', 'Impression_Delivery_Status': 'FLOAT', 'Floodlight_Paid_Search_Transaction_Conversion_Percentage': 'FLOAT', 'Click_Through_Conversions_Cross_Environment': 'INTEGER', 'Activity_Id': 'INTEGER', 'Has_Video_Mutes': 'BOOLEAN', 'Exits': 'INTEGER', 'Paid_Search_Bid_Strategy': 'STRING', 'Active_View_Percent_Of_Midpoint_Impressions_Visible': 'FLOAT', 'Dbm_Insertion_Order_Id': 'INTEGER', 'Placement_Id': 'INTEGER', 'App_Id': 'STRING', 'View_Through_Transaction_Count': 'FLOAT', 'Floodlight_Paid_Search_Transaction_Revenue_Per_Spend': 'FLOAT', 'View_Through_Conversions': 'FLOAT', 'Dynamic_Element_5_Field_4_Value': 'STRING', 'Active_View_Percent_Of_First_Quartile_Impressions_Audible_And_Visible': 'FLOAT', 'Companion_Creative_Pixel_Size': 'STRING', 'Revenue_Per_Thousand_Impressions': 'FLOAT', 'Natural_Search_Clicks': 'INTEGER', 'Dynamic_Element_3_Field_2_Value': 'STRING', 'Audio_First_Quartile_Completions': 'INTEGER', 'Dynamic_Element_1_Field_Value_3': 'STRING', 'Dynamic_Element_1_Field_Value_2': 'STRING', 'Dynamic_Element_1_Field_Value_1': 'STRING', 'Full_Screen_Average_View_Time': 'FLOAT', 'Dynamic_Element_5_Value_Id': 'STRING', 'Rich_Media_Click_Rate': 'FLOAT', 'User_List_Id': 'INTEGER', 'Click_Through_Url': 'STRING', 'Active_View_Percent_Of_Completed_Impressions_Visible': 'FLOAT', 'Video_Prominence_Score': 'STRING', 'Active_View_Percent_Play_Time_Audible': 'FLOAT', 'Natural_Search_Actions': 'FLOAT', 'Platform_Type': 'STRING', 'General_Invalid_Traffic_Givt_Impressions': 'INTEGER', 'Active_View_Percent_Audible_And_Visible_At_First_Quartile': 'FLOAT', 'Dynamic_Element_3': 'STRING', 'Active_View_Percent_Play_Time_Visible': 'FLOAT', 'Active_View_Percent_Of_Third_Quartile_Impressions_Audible_And_Visible': 'FLOAT', 'Paid_Search_Transactions': 'FLOAT', 'Rich_Media_Event': 'STRING', 'Country': 'STRING', 'Dynamic_Element_3_Field_6_Value': 'STRING', 'Expansions': 'INTEGER', 'Interaction_Rate': 'FLOAT', 'Natural_Search_Processed_Landing_Page': 'STRING', 'Floodlight_Impressions': 'INTEGER', 'Paid_Search_Bid_Strategy_Id': 'INTEGER', 'Interactive_Impressions': 'INTEGER', 'Interaction_Count_Natural_Search': 'INTEGER', 'Twitter_Impression_Id': 'INTEGER', 'Ad': 'STRING', 'Paid_Search_Ad_Group_Id': 'INTEGER', 'Paid_Search_Campaign_Id': 'INTEGER', 'Full_Screen_Video_Completions': 'INTEGER', 'Dynamic_Element_Value': 'STRING', 'State_Region': 'STRING', 'Placement_End_Date': 'DATE', 'Cookie_Reach_Duplicate_Impression_Reach_Percent': 'FLOAT', 'Paid_Search_Impressions': 'INTEGER', 'Cookie_Reach_Average_Impression_Frequency': 'FLOAT', 'Natural_Search_Engine_Country': 'STRING', 'Paid_Search_Revenue': 'FLOAT', 'Percent_Composition_Impressions': 'FLOAT', }
def factorial(n): # return base case if n == 1: return 1 return n * factorial(n - 1) def steps(n): # step 0 if n == 0: return [[0]] # step 1 if n == 1: return [[0, 1]] n_1 = [a_list + [n] for a_list in steps(n-1)] n_2 = [a_list + [n] for a_list in steps(n-2)] return n_1 + n_2 # my_max([5, 2, 3, 8, 1, 6]) = 6 def my_bad_max(my_list): temp_max = 0 counter = 0 for index, value in enumerate(my_list): sublist = my_list[0:index] for second_value in sublist: counter = counter + 1 if value - second_value > temp_max: temp_max = value - second_value print(f'I did {counter} iterations...') return temp_max # my_max([5, 2, 3, 8, 1, 6]) = 6 def my_max(a_list): temp_max = 0 temp_number = 0 counter = 0 for value in reversed(a_list): counter = counter + 1 if value > temp_number: temp_number = value if temp_number - value > temp_max: temp_max = temp_number - value print(f'I did {counter} iterations...') return temp_max if __name__ == '__main__': arr = [5, 2, 3, 8, 1, 6] print(my_max(arr))
pkgname = "dash" pkgver = "0.5.11.3" pkgrel = 0 build_style = "gnu_configure" pkgdesc = "POSIX-compliant Unix shell, much smaller than GNU bash" maintainer = "q66 <[email protected]>" license = "BSD-3-Clause" url = "http://gondor.apana.org.au/~herbert/dash" sources = [f"http://gondor.apana.org.au/~herbert/dash/files/{pkgname}-{pkgver}.tar.gz"] sha256 = ["62b9f1676ba6a7e8eaec541a39ea037b325253240d1f378c72360baa1cbcbc2a"] options = ["bootstrap", "!check"] def post_install(self): self.install_license("COPYING") self.install_link("dash", "usr/bin/sh")
OCTICON_SYNC = """ <svg class="octicon octicon-sync" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M8 2.5a5.487 5.487 0 00-4.131 1.869l1.204 1.204A.25.25 0 014.896 6H1.25A.25.25 0 011 5.75V2.104a.25.25 0 01.427-.177l1.38 1.38A7.001 7.001 0 0114.95 7.16a.75.75 0 11-1.49.178A5.501 5.501 0 008 2.5zM1.705 8.005a.75.75 0 01.834.656 5.501 5.501 0 009.592 2.97l-1.204-1.204a.25.25 0 01.177-.427h3.646a.25.25 0 01.25.25v3.646a.25.25 0 01-.427.177l-1.38-1.38A7.001 7.001 0 011.05 8.84a.75.75 0 01.656-.834z"></path></svg> """
class Movie: def __init__(self,name,genre,watched): self.name= name self.genre = genre self.watched = watched def __repr__(self): return 'Movie : {} and Genre : {}'.format(self.name,self.genre ) def json(self): return { 'name': self.name, 'genre': self.genre, 'watched': self.watched }
f=0 for i in range(0,n): st=str(a[i]) rev=st[::-1] if(st==rev): f=1 else: f=0 if(f==0): return 0 else: return 1
class PresentationSettings(): def __init__(self, settings:dict = {}): self.title = settings['title'] if 'title' in settings else 'Presentation' self.theme = settings['theme'] if 'theme' in settings else 'black'
# # PySNMP MIB module ZhoneProductRegistrations (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZhoneProductRegistrations # Produced by pysmi-0.3.4 at Wed May 1 15:52:37 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") NotificationType, iso, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, ObjectIdentity, IpAddress, Integer32, Gauge32, Counter64, Counter32, Unsigned32, Bits, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "iso", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "ObjectIdentity", "IpAddress", "Integer32", "Gauge32", "Counter64", "Counter32", "Unsigned32", "Bits", "ModuleIdentity") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") zhoneModules, zhoneRegMux, zhoneRegistrations, zhoneRegMalc, zhoneRegCpe, zhoneRegPls, zhoneRegSechtor = mibBuilder.importSymbols("Zhone", "zhoneModules", "zhoneRegMux", "zhoneRegistrations", "zhoneRegMalc", "zhoneRegCpe", "zhoneRegPls", "zhoneRegSechtor") zhoneRegistrationsModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 5504, 6, 1)) zhoneRegistrationsModule.setRevisions(('2012-08-01 16:11', '2011-11-30 11:56', '2011-08-15 07:13', '2011-05-13 05:14', '2010-09-23 14:40', '2010-08-03 10:12', '2010-02-11 15:38', '2009-08-13 14:04', '2008-10-28 13:44', '2007-11-15 12:08', '2007-10-31 13:13', '2007-06-27 11:54', '2007-06-11 16:12', '2007-05-11 16:00', '2007-05-09 10:56', '2007-04-03 10:48', '2007-03-09 14:13', '2006-10-26 15:17', '2006-08-31 20:02', '2006-07-13 16:07', '2006-05-22 16:01', '2006-05-05 15:42', '2006-04-28 13:36', '2006-04-27 13:23', '2006-04-24 12:06', '2006-04-18 17:43', '2006-03-27 11:14', '2005-12-09 14:14', '2004-09-08 17:28', '2004-08-30 11:07', '2004-05-25 12:30', '2004-05-21 14:25', '2004-05-21 13:26', '2004-04-06 01:45', '2004-03-17 10:54', '2004-03-02 14:00', '2003-10-31 14:26', '2003-07-10 12:19', '2003-05-16 17:04', '2003-02-11 14:58', '2002-10-23 10:18', '2002-10-10 09:43', '2002-10-10 09:42', '2001-06-26 17:04', '2001-06-07 11:59', '2001-05-15 11:53', '2001-02-01 13:10', '2000-09-28 16:48', '2000-09-12 10:55',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: zhoneRegistrationsModule.setRevisionsDescriptions(('Add znidNextGen node for ZNID-26xx products.', 'add mx1Ux80 TP-RJ45 new modules', 'Change description of mx1U19x family.', 'Add mx1U19x family', 'Add znidNextGen OIDs for 21xx, 24xx, 94xx, 97xx and FiberJack models.', 'Add the MX1Ux6x and MX1Ux80 products', 'Added mx319.', 'Add znid and znidNextGen nodes.', 'Add SysObjectID values for Raptor-XP-170 flavors', 'Added RaptorXP and MalcXP indoor and outdoor units', 'V01.00.37 - Add SkyZhone 1xxx, EtherXtend 30xxx, and EtherXtend 31xxx nodes.', 'V01.00.36 - Add node FiberSLAM 101.', 'V01.00.35 - Change gigaMux100 node identity name to FiberSLAM 105.', '- Add new card type raptorXP160 in zhoneRegistrations->zhoneRegMalc->raptorXP, - Obsolete the following card types: r100adsl2Pxxx/r100adsl2pgm r100adsl2Pxxx/r100adsl2pgte m100/m100adsl2pgm m100/m100Vdsl2xxx - the whole tree r100Vdsl2xx - the whole tree ', 'Added card types malcXP350A and raptorXP350A', 'V01.00.32 - Add nodes for Raptor XP and MALC XP family definitions. Add raptorXP105A and malcXP150A leaves.', 'V01.00.31 - Add Raptor-XP-150-A definition.', 'Added zhoneRegMalcNextGen node.', 'V01.00.29 - Add m100Adsl2pAnxB', 'V01.00.28 - Add r100Adsl2pAnxB', 'V01.00.27 - Correct case of new onbject names', 'V01.00.26 - Add r100Adsl2pGte', 'V01.00.25 - Add m100Vdsl2Gm', 'V01.00.24 - Add r100Vdsl2Gm', 'V01.00.23 - Add m100Adsl2pGm', ' ', 'V01.00.20 - Add new ethX products.', 'V01.00.19 - added M100 product tree.', 'V01.00.18 -- Add r100Adsl2PGigE definition.', 'V01.00.17 -- Add zrg8xx series.', 'V01.00.17 -- Add zrg6xx series.', 'V01.00.16 - Add r100adsl2p family of products.', 'add zrg700 ODU', 'V01.00.14 - Add isc303 product.', 'V01.00.13 - Add IDU/ODU for ZRG300 and ZRG500 products', 'V01.00.12 - Add raptor50LP product', 'V01.00.11 - Add Zhone Residential Gateway (ZRG) products.', 'V01.00.11 - Added ZEDGE 6200 products', 'V01.00.10 - add raptor100LP product. Modified raptor100A description.', 'V01.00.09 - Added REBEL MALC oids.', 'V01.00.08 -- change malc100 to malc319', 'V01.00.07 - add malc100 product', 'V01.00.06 -- added for skyzhone', 'V01.00.05 - Added malc19 and malc23 Product to the malc product family ', 'V01.00.04 - Expanded 23GHz family to 4 sub-bands per product. Corrected name of 5.7GHz family.', "V01.00.03 - changed zhoneRegZwt to zhoneRegWtn. Added sysObjId's for skyzhone155 and skyzhone8x.", 'V01.00.02 - added sysObjectID assignments for Sechtor 100 models.', 'V01.00.01 - added Wireless Transport Node product type and the DS3 Wireless Transport Node product model.', 'V01.00.00 - Initial Release',)) if mibBuilder.loadTexts: zhoneRegistrationsModule.setLastUpdated('201208011611Z') if mibBuilder.loadTexts: zhoneRegistrationsModule.setOrganization('Zhone Technologies') if mibBuilder.loadTexts: zhoneRegistrationsModule.setContactInfo(' Postal: Zhone Technologies, Inc. @ Zhone Way 7001 Oakport Street Oakland, CA 94621 USA Toll-Free: +1 877-ZHONE20 (+1 877-946-6320) Tel: +1-510-777-7000 Fax: +1-510-777-7001 E-mail: [email protected]') if mibBuilder.loadTexts: zhoneRegistrationsModule.setDescription('This mib describes the per product registrations that are then used for the sysObjectId field. The format is 1.3.6.1.4.1.5504.1.x.y.z where 5504 is our enterprise ID. X is the product type so: X = 1 - PLS X = 2 - CPE X = 3 - MUX Y is the product model type: Y = 1 - BAN (for the PLS product) Etc. Y = 1 - IAD-50 (for CPE equipment) Etc. Z is just an incremental field which needs to be documented what value maps to which product model. For example, an IAD-50 could be .1.3.6.1.4.1.5504.1.2.1.1. A new model of the iad-50 that for some reason we would want to differentiate functionality would be .1.3.6.1.4.1.5504.2.1.2. ') ban_2000 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 1, 1)).setLabel("ban-2000") if mibBuilder.loadTexts: ban_2000.setStatus('current') if mibBuilder.loadTexts: ban_2000.setDescription('BAN-2000 sysObjectId.') zedge64 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 1)) if mibBuilder.loadTexts: zedge64.setStatus('current') if mibBuilder.loadTexts: zedge64.setDescription('zedge64 CPE equipment product registrations. The zedge64 has four flavours with diffrenet features so four child node are created under this node. The oid of these child node will be the sysObjectId of the corresponding product.') zedge64_SHDSL_FXS = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 1, 1)).setLabel("zedge64-SHDSL-FXS") if mibBuilder.loadTexts: zedge64_SHDSL_FXS.setStatus('current') if mibBuilder.loadTexts: zedge64_SHDSL_FXS.setDescription('zedge64-SHDSL-FXS sysObjectId.') zedge64_SHDSL_BRI = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 1, 2)).setLabel("zedge64-SHDSL-BRI") if mibBuilder.loadTexts: zedge64_SHDSL_BRI.setStatus('current') if mibBuilder.loadTexts: zedge64_SHDSL_BRI.setDescription('zedge64-SHDSL-BRI sysObjectId.') zedge64_T1_FXS = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 1, 3)).setLabel("zedge64-T1-FXS") if mibBuilder.loadTexts: zedge64_T1_FXS.setStatus('current') if mibBuilder.loadTexts: zedge64_T1_FXS.setDescription('zedge64-T1-FXS sysObjectId.') zedge64_E1_FXS = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 1, 4)).setLabel("zedge64-E1-FXS") if mibBuilder.loadTexts: zedge64_E1_FXS.setStatus('current') if mibBuilder.loadTexts: zedge64_E1_FXS.setDescription('zedge64-E1-FXS sysObjectId.') zedge6200 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 2)) if mibBuilder.loadTexts: zedge6200.setStatus('current') if mibBuilder.loadTexts: zedge6200.setDescription('zedge6200 CPE equipment product registrations. The zedge6200 has 3 flavours with diffrenet features so 3 child nodes are created under this node. The oid of these child node will be the sysObjectId of the corresponding product.') zedge6200_IP_T1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 2, 1)).setLabel("zedge6200-IP-T1") if mibBuilder.loadTexts: zedge6200_IP_T1.setStatus('current') if mibBuilder.loadTexts: zedge6200_IP_T1.setDescription('zedge6200(ipIad) sysObjectId.') zedge6200_IP_EM = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 2, 2)).setLabel("zedge6200-IP-EM") if mibBuilder.loadTexts: zedge6200_IP_EM.setStatus('current') if mibBuilder.loadTexts: zedge6200_IP_EM.setDescription('zedge6200EM sysObjectId.') zedge6200_IP_FXS = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 2, 3)).setLabel("zedge6200-IP-FXS") if mibBuilder.loadTexts: zedge6200_IP_FXS.setStatus('current') if mibBuilder.loadTexts: zedge6200_IP_FXS.setDescription('zedge6200FXS sysObjectId.') zrg3xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 3)) if mibBuilder.loadTexts: zrg3xx.setStatus('current') if mibBuilder.loadTexts: zrg3xx.setDescription('Zhone Residential Gateway ADSL 300 series.') zrg300_IDU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 3, 1)).setLabel("zrg300-IDU") if mibBuilder.loadTexts: zrg300_IDU.setStatus('current') if mibBuilder.loadTexts: zrg300_IDU.setDescription('1 Lifeline Pots port. 2 Derived voice FXS ports. 1 Ethernet port. 0-4 video decoders. Indoor Unit.') zrg300_ODU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 3, 2)).setLabel("zrg300-ODU") if mibBuilder.loadTexts: zrg300_ODU.setStatus('current') if mibBuilder.loadTexts: zrg300_ODU.setDescription('1 Lifeline Pots port. 2 Derived voice FXS ports. 1 Ethernet port. 0-4 video decoders. Outdoor Unit.') zrg5xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 4)) if mibBuilder.loadTexts: zrg5xx.setStatus('current') if mibBuilder.loadTexts: zrg5xx.setDescription('Zhone Residential Gateway VDSL 500 series.') zrg500_IDU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 4, 1)).setLabel("zrg500-IDU") if mibBuilder.loadTexts: zrg500_IDU.setStatus('current') if mibBuilder.loadTexts: zrg500_IDU.setDescription('1 Lifeline Pots port. 2 Derived voice FXS ports. 1 Ethernet port. 0-4 video decoders. Indoor Unit. ') zrg500_ODU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 4, 2)).setLabel("zrg500-ODU") if mibBuilder.loadTexts: zrg500_ODU.setStatus('current') if mibBuilder.loadTexts: zrg500_ODU.setDescription('1 Lifeline Pots port. 2 Derived voice FXS ports. 1 Ethernet port. 0-4 video decoders. Outdoor Unit.') zrg7xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 5)) if mibBuilder.loadTexts: zrg7xx.setStatus('current') if mibBuilder.loadTexts: zrg7xx.setDescription('Zhone Residential Gateway PON 700 series.') zrg700_IDU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 5, 1)).setLabel("zrg700-IDU") if mibBuilder.loadTexts: zrg700_IDU.setStatus('current') if mibBuilder.loadTexts: zrg700_IDU.setDescription('4 voice ports 1 multicast video port 1 ethernet channel') zrg700_ODU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 5, 2)).setLabel("zrg700-ODU") if mibBuilder.loadTexts: zrg700_ODU.setStatus('current') if mibBuilder.loadTexts: zrg700_ODU.setDescription('4 voice ports 1 multicast video port 1 ethernet channel') zrg6xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 6)) if mibBuilder.loadTexts: zrg6xx.setStatus('current') if mibBuilder.loadTexts: zrg6xx.setDescription('Zhone Resedential Gateway 600 series.') zrg600_IDU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 6, 1)).setLabel("zrg600-IDU") if mibBuilder.loadTexts: zrg600_IDU.setStatus('current') if mibBuilder.loadTexts: zrg600_IDU.setDescription('Description.') zrg600_ODU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 6, 2)).setLabel("zrg600-ODU") if mibBuilder.loadTexts: zrg600_ODU.setStatus('current') if mibBuilder.loadTexts: zrg600_ODU.setDescription('Description.') zrg8xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 7)) if mibBuilder.loadTexts: zrg8xx.setStatus('current') if mibBuilder.loadTexts: zrg8xx.setDescription('Description.') zrg800_IDU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 7, 1)).setLabel("zrg800-IDU") if mibBuilder.loadTexts: zrg800_IDU.setStatus('current') if mibBuilder.loadTexts: zrg800_IDU.setDescription('Zrg800 is like a PON (zrg700) with the addition of video set-top boards like those on the zrg3xx. It has a PON uplink, a local 10/100 network, 2 built-in video decoders, and a 2-port Circuit Emulation board.') zrg800_ODU = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 7, 2)).setLabel("zrg800-ODU") if mibBuilder.loadTexts: zrg800_ODU.setStatus('current') if mibBuilder.loadTexts: zrg800_ODU.setDescription('Zrg800 is like a PON (zrg700) with the addition of video set-top boards like those on the zrg3xx. It has a PON uplink, a local 10/100 network, 2 built-in video decoders, and a 2-port Circuit Emulation board.') ethXtendxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 8)) if mibBuilder.loadTexts: ethXtendxx.setStatus('current') if mibBuilder.loadTexts: ethXtendxx.setDescription('Zhone Ethernet First Mile CPE devices.') ethXtendShdsl = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 8, 1)) if mibBuilder.loadTexts: ethXtendShdsl.setStatus('current') if mibBuilder.loadTexts: ethXtendShdsl.setDescription('Zhone Ethernet First Mile runnig on SHDSL.') ethXtendT1E1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 8, 2)) if mibBuilder.loadTexts: ethXtendT1E1.setStatus('current') if mibBuilder.loadTexts: ethXtendT1E1.setDescription('Zhone Ethernet First Mile running on T1 or E1.') ethXtend30xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 8, 3)) if mibBuilder.loadTexts: ethXtend30xx.setStatus('current') if mibBuilder.loadTexts: ethXtend30xx.setDescription('Zhone Ethernet First Mile over SHDSL 30xx product family.') ethXtend31xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 8, 4)) if mibBuilder.loadTexts: ethXtend31xx.setStatus('current') if mibBuilder.loadTexts: ethXtend31xx.setDescription('Zhone Ethernet First Mile over SHDSL with T1/E1 PWE 31xx product family.') ethXtend32xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 8, 5)) if mibBuilder.loadTexts: ethXtend32xx.setStatus('current') if mibBuilder.loadTexts: ethXtend32xx.setDescription('Zhone Ethernet First Mile over SHDSL with Voice Ports 32xx product family.') znid = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 9)) if mibBuilder.loadTexts: znid.setStatus('current') if mibBuilder.loadTexts: znid.setDescription('Zhone Network Interface Device (ZNID) heritage product family.') znid42xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 9, 1)) if mibBuilder.loadTexts: znid42xx.setStatus('current') if mibBuilder.loadTexts: znid42xx.setDescription('Zhone Network Interface Device (ZNID) heritage product family which includes the 421x and 422x models in the heritage housing.') znidGPON42xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 9, 1, 2)) if mibBuilder.loadTexts: znidGPON42xx.setStatus('current') if mibBuilder.loadTexts: znidGPON42xx.setDescription('Zhone Network Interface Device (ZNID) heritage GPON 421x and 422x RFOG products.') znidEth422x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 9, 1, 3)) if mibBuilder.loadTexts: znidEth422x.setStatus('current') if mibBuilder.loadTexts: znidEth422x.setDescription('Zhone Network Interface Device (ZNID) heritage Active Ethernet 422x products.') znid420x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 9, 2)) if mibBuilder.loadTexts: znid420x.setStatus('current') if mibBuilder.loadTexts: znid420x.setDescription('Zhone Network Interface Device (ZNID) heritage 420x product family in the next generation housing.') znidGPON420x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 9, 2, 1)) if mibBuilder.loadTexts: znidGPON420x.setStatus('current') if mibBuilder.loadTexts: znidGPON420x.setDescription('Zhone Network Interface Device (ZNID) heritage GPON 420x products in the next generation housing.') znidNextGen = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10)) if mibBuilder.loadTexts: znidNextGen.setStatus('current') if mibBuilder.loadTexts: znidNextGen.setDescription('Zhone Network Interface Device (ZNID) next generation product family.') znidNextGen22xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 1)) if mibBuilder.loadTexts: znidNextGen22xx.setStatus('current') if mibBuilder.loadTexts: znidNextGen22xx.setDescription('Zhone Network Interface Device (ZNID) next generation indoor 22xx product family.') znidNextGenGE22xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 1, 1)) if mibBuilder.loadTexts: znidNextGenGE22xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE22xx.setDescription('Zhone Network Interface Device (ZNID) next generation 22xx Indoor Active GigE products.') znidNextGen42xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 2)) if mibBuilder.loadTexts: znidNextGen42xx.setStatus('current') if mibBuilder.loadTexts: znidNextGen42xx.setDescription('Zhone Network Interface Device (ZNID) next generation 42xx product family.') znidNextGenGPON42xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 2, 1)) if mibBuilder.loadTexts: znidNextGenGPON42xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGPON42xx.setDescription('Zhone Network Interface Device (ZNID) next generation Outdoor 42xx GPON products.') znidNextGenGE42xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 2, 2)) if mibBuilder.loadTexts: znidNextGenGE42xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE42xx.setDescription('Zhone Network Interface Device (ZNID) next generation Outdoor 42xx Active GigE products.') znidNextGen9xxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 3)) if mibBuilder.loadTexts: znidNextGen9xxx.setStatus('current') if mibBuilder.loadTexts: znidNextGen9xxx.setDescription('Zhone Network Interface Device (ZNID) next generation 9xxx product family.') znidNextGenGPON9xxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 3, 1)) if mibBuilder.loadTexts: znidNextGenGPON9xxx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGPON9xxx.setDescription('Zhone Network Interface Device (ZNID) next generation 9xxx Outdoor GPON products.') znidNextGenGE9xxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 3, 2)) if mibBuilder.loadTexts: znidNextGenGE9xxx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE9xxx.setDescription('Zhone Network Interface Device (ZNID) next generation 9xxx Outdoor Active GigE products.') znidNextGenGPON94xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 3, 3)) if mibBuilder.loadTexts: znidNextGenGPON94xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGPON94xx.setDescription('Zhone Network Interface Device (ZNID) next generation 94xx Outdoor GPON Pseudo-Wire Emulation products.') znidNextGenGE94xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 3, 4)) if mibBuilder.loadTexts: znidNextGenGE94xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE94xx.setDescription('Zhone Network Interface Device (ZNID) next generation 94xx Outdoor Active GigE Pseudo-Wire Emulation products.') znidNextGenGPON97xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 3, 5)) if mibBuilder.loadTexts: znidNextGenGPON97xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGPON97xx.setDescription('Zhone Network Interface Device (ZNID) next generation 97xx Outdoor GPON VDSL products.') znidNextGenGE97xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 3, 6)) if mibBuilder.loadTexts: znidNextGenGE97xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE97xx.setDescription('Zhone Network Interface Device (ZNID) next generation 97xx Outdoor Active GigE VDSL products.') fiberJack = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 4)) if mibBuilder.loadTexts: fiberJack.setStatus('current') if mibBuilder.loadTexts: fiberJack.setDescription('Integrated GPON Uplink Module.') znidNextGen21xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 5)) if mibBuilder.loadTexts: znidNextGen21xx.setStatus('current') if mibBuilder.loadTexts: znidNextGen21xx.setDescription('Zhone Network Interface Device (ZNID) next generation indoor 21xx product family.') znidNextGenGPON21xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 5, 1)) if mibBuilder.loadTexts: znidNextGenGPON21xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGPON21xx.setDescription('Zhone Network Interface Device (ZNID) next generation 21xx Indoor GPON products without voice.') znidNextGenGE21xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 5, 2)) if mibBuilder.loadTexts: znidNextGenGE21xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE21xx.setDescription('Zhone Network Interface Device (ZNID) next generation 21xx Indoor Active GigE products without voice.') znidNextGen24xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 6)) if mibBuilder.loadTexts: znidNextGen24xx.setStatus('current') if mibBuilder.loadTexts: znidNextGen24xx.setDescription('Zhone Network Interface Device (ZNID) next generation indoor 24xx product family.') znidNextGenGPON24xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 6, 1)) if mibBuilder.loadTexts: znidNextGenGPON24xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGPON24xx.setDescription('Zhone Network Interface Device (ZNID) next generation 24xx Indoor GPON products.') znidNextGenGE24xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 6, 2)) if mibBuilder.loadTexts: znidNextGenGE24xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE24xx.setDescription('Zhone Network Interface Device (ZNID) next generation 24xx Indoor Active GigE products.') znidNextGen26xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 7)) if mibBuilder.loadTexts: znidNextGen26xx.setStatus('current') if mibBuilder.loadTexts: znidNextGen26xx.setDescription('Zhone Network Interface Device (ZNID) 26xx series Indoor 26xx product family.') znidNextGenGPON26xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 7, 1)) if mibBuilder.loadTexts: znidNextGenGPON26xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGPON26xx.setDescription('Zhone Network Interface Device (ZNID) 26xx series Indoor GPON products.') znidNextGenGE26xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 2, 10, 7, 2)) if mibBuilder.loadTexts: znidNextGenGE26xx.setStatus('current') if mibBuilder.loadTexts: znidNextGenGE26xx.setDescription('Zhone Network Interface Device (ZNID) 26xx series Indoor Active GigE products.') z_plex10B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 3, 1)).setLabel("z-plex10B") if mibBuilder.loadTexts: z_plex10B.setStatus('current') if mibBuilder.loadTexts: z_plex10B.setDescription('Z-Plex10B CPE equipment product registrations. The z-plex has two flavours with diffrenet features so two child node are created under this node.The oid of these child node will be the sysObjectId of the corresponding z-plex product.') z_plex10B_FXS_FXO = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 3, 1, 1)).setLabel("z-plex10B-FXS-FXO") if mibBuilder.loadTexts: z_plex10B_FXS_FXO.setStatus('current') if mibBuilder.loadTexts: z_plex10B_FXS_FXO.setDescription('z-plex10B-FXS-FXO sysObjectId.') z_plex10B_FXS = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 3, 1, 2)).setLabel("z-plex10B-FXS") if mibBuilder.loadTexts: z_plex10B_FXS.setStatus('current') if mibBuilder.loadTexts: z_plex10B_FXS.setDescription('z-plex10B-FXS sysObjectId.') sechtor_100 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 4, 1)).setLabel("sechtor-100") if mibBuilder.loadTexts: sechtor_100.setStatus('current') if mibBuilder.loadTexts: sechtor_100.setDescription('Sechtor-100 sysObjectId.') s100_ATM_SM_16T1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 4, 1, 1)).setLabel("s100-ATM-SM-16T1") if mibBuilder.loadTexts: s100_ATM_SM_16T1.setStatus('current') if mibBuilder.loadTexts: s100_ATM_SM_16T1.setDescription('sysObjectID for S100-ATM-SM-16T1.') s100_ATM_SM_16E1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 4, 1, 2)).setLabel("s100-ATM-SM-16E1") if mibBuilder.loadTexts: s100_ATM_SM_16E1.setStatus('current') if mibBuilder.loadTexts: s100_ATM_SM_16E1.setDescription('sysObjectID for S100-ATM-SM-16E1.') sechtor_300 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 4, 2)).setLabel("sechtor-300") if mibBuilder.loadTexts: sechtor_300.setStatus('current') if mibBuilder.loadTexts: sechtor_300.setDescription('Sechtor-300 sysObjectId.') zhoneRegWtn = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5)) if mibBuilder.loadTexts: zhoneRegWtn.setStatus('current') if mibBuilder.loadTexts: zhoneRegWtn.setDescription('Zhone Wireless Transport Registration.') node5700Mhz = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 1)) if mibBuilder.loadTexts: node5700Mhz.setStatus('current') if mibBuilder.loadTexts: node5700Mhz.setDescription('sysObjectId Family for Wireless Transport Node with 5.7Ghz radio.') skyZhone45 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 1, 1)) if mibBuilder.loadTexts: skyZhone45.setStatus('current') if mibBuilder.loadTexts: skyZhone45.setDescription('Unit contains a built in (not modular) ds3 interface on the wireline side.') oduTypeA = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 1, 1, 1)) if mibBuilder.loadTexts: oduTypeA.setStatus('current') if mibBuilder.loadTexts: oduTypeA.setDescription('Unit transmits at 5735Mhz, receives at 5260Mhz (channel 1). Also known as ODU type A.') oduTypeB = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 1, 1, 2)) if mibBuilder.loadTexts: oduTypeB.setStatus('current') if mibBuilder.loadTexts: oduTypeB.setDescription('Unit transmits at 5260Mhz, receives at 5735Mhz (channel 1). Also known as ODU type B.') node23000Mhz = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2)) if mibBuilder.loadTexts: node23000Mhz.setStatus('current') if mibBuilder.loadTexts: node23000Mhz.setDescription('sysObjectId Family for Wireless Transport Node with 23Ghz radio in accordance with ITU-R F.637-3 Specifications.') skyZhone8e1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 1)) if mibBuilder.loadTexts: skyZhone8e1.setStatus('current') if mibBuilder.loadTexts: skyZhone8e1.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeE1A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 1, 1)) if mibBuilder.loadTexts: oduTypeE1A.setStatus('current') if mibBuilder.loadTexts: oduTypeE1A.setDescription('Unit transmits at 21200-21500Mhz, receives at 22400-22700Mhz.') oduTypeE1B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 1, 2)) if mibBuilder.loadTexts: oduTypeE1B.setStatus('current') if mibBuilder.loadTexts: oduTypeE1B.setDescription('Unit transmits at 22400-22700Mhz, receives at 21200-21500Mhz.') skyZhone8e2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 2)) if mibBuilder.loadTexts: skyZhone8e2.setStatus('current') if mibBuilder.loadTexts: skyZhone8e2.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeE2A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 2, 1)) if mibBuilder.loadTexts: oduTypeE2A.setStatus('current') if mibBuilder.loadTexts: oduTypeE2A.setDescription('Unit transmits at 21500-21800Mhz, receives at 22700-23000Mhz.') oduTypeE2B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 2, 2)) if mibBuilder.loadTexts: oduTypeE2B.setStatus('current') if mibBuilder.loadTexts: oduTypeE2B.setDescription('Unit transmits at 22700-23000Mhz, receives at 21500-21800Mhz.') skyZhone8e3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 3)) if mibBuilder.loadTexts: skyZhone8e3.setStatus('current') if mibBuilder.loadTexts: skyZhone8e3.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeE3A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 3, 1)) if mibBuilder.loadTexts: oduTypeE3A.setStatus('current') if mibBuilder.loadTexts: oduTypeE3A.setDescription('Unit transmits at 21800-22100Mhz, receives at 23000-23300Mhz.') oduTypeE3B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 3, 2)) if mibBuilder.loadTexts: oduTypeE3B.setStatus('current') if mibBuilder.loadTexts: oduTypeE3B.setDescription('Unit transmits at 23000-23300Mhz, receives at 21800-22100Mhz.') skyZhone8e4 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 4)) if mibBuilder.loadTexts: skyZhone8e4.setStatus('current') if mibBuilder.loadTexts: skyZhone8e4.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeE4A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 4, 1)) if mibBuilder.loadTexts: oduTypeE4A.setStatus('current') if mibBuilder.loadTexts: oduTypeE4A.setDescription('Unit transmits at 22100-22400Mhz, receives at 23300-23600Mhz.') oduTypeE4B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 4, 2)) if mibBuilder.loadTexts: oduTypeE4B.setStatus('current') if mibBuilder.loadTexts: oduTypeE4B.setDescription('Unit transmits at 23300-23600Mhz, receives at 22100-22400Mhz.') skyZhone8t1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 5)) if mibBuilder.loadTexts: skyZhone8t1.setStatus('current') if mibBuilder.loadTexts: skyZhone8t1.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeT1A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 5, 1)) if mibBuilder.loadTexts: oduTypeT1A.setStatus('current') if mibBuilder.loadTexts: oduTypeT1A.setDescription('Unit transmits at 21200-21500Mhz, receives at 22400-22700Mhz.') oduTypeT1B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 5, 2)) if mibBuilder.loadTexts: oduTypeT1B.setStatus('current') if mibBuilder.loadTexts: oduTypeT1B.setDescription('Unit transmits at 22400-22700Mhz, receives at 21200-21500Mhz.') skyZhone8t2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 6)) if mibBuilder.loadTexts: skyZhone8t2.setStatus('current') if mibBuilder.loadTexts: skyZhone8t2.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeT2A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 6, 1)) if mibBuilder.loadTexts: oduTypeT2A.setStatus('current') if mibBuilder.loadTexts: oduTypeT2A.setDescription('Unit transmits at 21500-21800Mhz, receives at 22700-23000Mhz.') oduTypeT2B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 6, 2)) if mibBuilder.loadTexts: oduTypeT2B.setStatus('current') if mibBuilder.loadTexts: oduTypeT2B.setDescription('Unit transmits at 22700-23000Mhz, receives at 21500-21800Mhz.') skyZhone8t3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 7)) if mibBuilder.loadTexts: skyZhone8t3.setStatus('current') if mibBuilder.loadTexts: skyZhone8t3.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeT3A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 7, 1)) if mibBuilder.loadTexts: oduTypeT3A.setStatus('current') if mibBuilder.loadTexts: oduTypeT3A.setDescription('Unit transmits at 21800-22100Mhz, receives at 23000-23300Mhz.') oduTypeT3B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 7, 2)) if mibBuilder.loadTexts: oduTypeT3B.setStatus('current') if mibBuilder.loadTexts: oduTypeT3B.setDescription('Unit transmits at 23000-23300Mhz, receives at 21800-22100Mhz.') skyZhone8t4 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 8)) if mibBuilder.loadTexts: skyZhone8t4.setStatus('current') if mibBuilder.loadTexts: skyZhone8t4.setDescription('Variant of transport node with E1/T1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 14Mhz Channel separation.') oduTypeT4A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 8, 1)) if mibBuilder.loadTexts: oduTypeT4A.setStatus('current') if mibBuilder.loadTexts: oduTypeT4A.setDescription('Unit transmits at 22100-22400Mhz, receives at 23300-23600Mhz.') oduTypeT4B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 8, 2)) if mibBuilder.loadTexts: oduTypeT4B.setStatus('current') if mibBuilder.loadTexts: oduTypeT4B.setDescription('Unit transmits at 23300-23600Mhz, receives at 22100-22400Mhz.') skyZhone155s1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 9)) if mibBuilder.loadTexts: skyZhone155s1.setStatus('current') if mibBuilder.loadTexts: skyZhone155s1.setDescription('Variant of transport node with STM-1 interface which operates a link at frequency bands 21.2-21.8Ghz and 22.4-23Ghz. 28Mhz Channel separation.') oduTypeS1A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 9, 1)) if mibBuilder.loadTexts: oduTypeS1A.setStatus('current') if mibBuilder.loadTexts: oduTypeS1A.setDescription('Unit transmits at 21200-21500Mhz, receives at 22400-22700Mhz.') oduTypeS1B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 9, 2)) if mibBuilder.loadTexts: oduTypeS1B.setStatus('current') if mibBuilder.loadTexts: oduTypeS1B.setDescription('Unit transmits at 22400-22700Mhz, receives at 21200-21500Mhz.') skyZhone155s2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 10)) if mibBuilder.loadTexts: skyZhone155s2.setStatus('current') if mibBuilder.loadTexts: skyZhone155s2.setDescription('Variant of transport node with STM-1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 28Mhz Channel separation.') oduTypeS2A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 10, 1)) if mibBuilder.loadTexts: oduTypeS2A.setStatus('current') if mibBuilder.loadTexts: oduTypeS2A.setDescription('Unit transmits at 21500-21800Mhz, receives at 22700-23000Mhz.') oduTypeS2B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 10, 2)) if mibBuilder.loadTexts: oduTypeS2B.setStatus('current') if mibBuilder.loadTexts: oduTypeS2B.setDescription('Unit transmits at 22700-23000Mhz, receives at 21500-21800Mhz.') skyZhone155s3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 11)) if mibBuilder.loadTexts: skyZhone155s3.setStatus('current') if mibBuilder.loadTexts: skyZhone155s3.setDescription('Variant of transport node with STM-1 interface which operates a link at frequency bands 21.2-21.8Ghz and 22.4-23Ghz. 28Mhz Channel separation.') oduTypeS3A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 11, 1)) if mibBuilder.loadTexts: oduTypeS3A.setStatus('current') if mibBuilder.loadTexts: oduTypeS3A.setDescription('Unit transmits at 21800-22100Mhz, receives at 23000-23300Mhz.') oduTypeS3B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 11, 2)) if mibBuilder.loadTexts: oduTypeS3B.setStatus('current') if mibBuilder.loadTexts: oduTypeS3B.setDescription('Unit transmits at 23000-23300Mhz, receives at 21800-22100Mhz.') skyZhone155s4 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 12)) if mibBuilder.loadTexts: skyZhone155s4.setStatus('current') if mibBuilder.loadTexts: skyZhone155s4.setDescription('Variant of transport node with STM-1 interface which operates a link at frequency bands 21.8-22.4Ghz and 23.0-23.6Ghz. 28Mhz Channel separation.') oduTypeS4A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 12, 1)) if mibBuilder.loadTexts: oduTypeS4A.setStatus('current') if mibBuilder.loadTexts: oduTypeS4A.setDescription('Unit transmits at 22100-22400Mhz, receives at 23300-23600Mhz.') oduTypeS4B = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 2, 12, 2)) if mibBuilder.loadTexts: oduTypeS4B.setStatus('current') if mibBuilder.loadTexts: oduTypeS4B.setDescription('Unit transmits at 23300-23600Mhz, receives at 22100-22400Mhz.') skyZhone1xxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 5, 3)) if mibBuilder.loadTexts: skyZhone1xxx.setStatus('current') if mibBuilder.loadTexts: skyZhone1xxx.setDescription('SkyZhone 802.11 a/b/g/n Wifi Access Points product family.') malc19 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 1)) if mibBuilder.loadTexts: malc19.setStatus('current') if mibBuilder.loadTexts: malc19.setDescription('Multiple Access Loop Concentrator with 19 inch rack mount cabinet product identifier.') malc23 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 2)) if mibBuilder.loadTexts: malc23.setStatus('current') if mibBuilder.loadTexts: malc23.setDescription('Multiple Access Loop Concentrator with 23 inch rack mount cabinet product identifier.') malc319 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 3)) if mibBuilder.loadTexts: malc319.setStatus('current') if mibBuilder.loadTexts: malc319.setDescription('Multiple Access Loop Concentrator with 10 inch rack mount cabinet product identifier.') raptor319A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 4)) if mibBuilder.loadTexts: raptor319A.setStatus('current') if mibBuilder.loadTexts: raptor319A.setDescription('Raptor MALC with 10 inch rack mount cabinet product identifier. The Raptor differs from the standard MALC in that it does not have any subscriber voice capability.') raptor319I = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 5)) if mibBuilder.loadTexts: raptor319I.setStatus('current') if mibBuilder.loadTexts: raptor319I.setDescription('Raptor MALC with IP termination, with 10 inch rack mount cabinet product identifier. The Raptor differs from the standard MALC in that it does not have any subscriber voice capability.') raptor719A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 6)) if mibBuilder.loadTexts: raptor719A.setStatus('current') if mibBuilder.loadTexts: raptor719A.setDescription('Raptor MALC with 19 inch rack mount cabinet product identifier. The Raptor differs from the standard MALC in that it does not have any subscriber voice capability.') raptor719I = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 7)) if mibBuilder.loadTexts: raptor719I.setStatus('current') if mibBuilder.loadTexts: raptor719I.setDescription('Raptor MALC with IP termination, with 10 inch rack mount cabinet product identifier. The Raptor differs from the standard MALC in that it does not have any subscriber voice capability.') raptor723A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 8)) if mibBuilder.loadTexts: raptor723A.setStatus('current') if mibBuilder.loadTexts: raptor723A.setDescription('Raptor MALC with 23 inch rack mount cabinet product identifier. The Raptor differs from the standard MALC in that it does not have any subscriber voice capability.') raptor723I = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 9)) if mibBuilder.loadTexts: raptor723I.setStatus('current') if mibBuilder.loadTexts: raptor723I.setDescription('Raptor MALC with IP termination, with 10 inch rack mount cabinet product identifier. The Raptor differs from the standard MALC in that it does not have any subscriber voice capability.') raptor100A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 10)) if mibBuilder.loadTexts: raptor100A.setStatus('current') if mibBuilder.loadTexts: raptor100A.setDescription('RAPTOR-100A in a single board configuration. The RAPTOR 100A is a single-board MALC with up to 4 T1/E1 IMA/UNI uplinks and 24 ADSL lines. It is offered with or without a splitter daughter-board. The RAPTOR-100A does not offer any subscriber voice services.') raptor100I = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 11)) if mibBuilder.loadTexts: raptor100I.setStatus('current') if mibBuilder.loadTexts: raptor100I.setDescription('Raptor MALC in single-board configuration with IP termination product identifier. The Raptor differs from the standard MALC in that it does not have any subscriber voice capability.') raptor100LP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 12)) if mibBuilder.loadTexts: raptor100LP.setStatus('current') if mibBuilder.loadTexts: raptor100LP.setDescription('RAPTOR-100 Line Powered in a single board configuration. The RAPTOR-100 Line-Powered is a single-board MALC with up to four GSHDSL uplinks and 16 ADSL lines. It is offered with or without a splitter daughter-board. The RAPTOR-100 LP does not offer any subscriber voice services.') raptor50Gshdsl = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 13)) if mibBuilder.loadTexts: raptor50Gshdsl.setStatus('current') if mibBuilder.loadTexts: raptor50Gshdsl.setDescription('RAPTOR-100 Line Powered in a single board configuration. The RAPTOR-100 Line-Powered is a single-board MALC with up to four GSHDSL uplinks and 16 ADSL lines. It is offered with or without a splitter daughter-board. The RAPTOR-100 LP does not offer any subscriber voice services.') isc303 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 14)) if mibBuilder.loadTexts: isc303.setStatus('current') if mibBuilder.loadTexts: isc303.setDescription('ISC-303 ADSL subsystem based on modified legacy ISC-303 TDM platform. The ISC-303 ADSL system provides up to 60 ADSL ports spread over 24 line cards. The system is fed by two T1 lines. The T1 IMA uplink operates on half of the eCTU card and the ADSL operates on half of each of the ADSL line cards. This system does not offer any subscriber voice services.') r100adsl2Pxxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15)) if mibBuilder.loadTexts: r100adsl2Pxxx.setStatus('current') if mibBuilder.loadTexts: r100adsl2Pxxx.setDescription('R100 ADSL2P family of products.') r100adsl2pip = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15, 1)) if mibBuilder.loadTexts: r100adsl2pip.setStatus('current') if mibBuilder.loadTexts: r100adsl2pip.setDescription('R100 ADSL2P IP.') r100adsl2phdsl4 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15, 2)) if mibBuilder.loadTexts: r100adsl2phdsl4.setStatus('current') if mibBuilder.loadTexts: r100adsl2phdsl4.setDescription('R100 ADSL2P HDSL4.') r100adsl2pt1ima = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15, 3)) if mibBuilder.loadTexts: r100adsl2pt1ima.setStatus('current') if mibBuilder.loadTexts: r100adsl2pt1ima.setDescription('R100 ADSL2P T1IMA.') r100adsl2pgige = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15, 4)) if mibBuilder.loadTexts: r100adsl2pgige.setStatus('current') if mibBuilder.loadTexts: r100adsl2pgige.setDescription('R100 ADSL2P GigE.') r100adsl2pgm = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15, 5)) if mibBuilder.loadTexts: r100adsl2pgm.setStatus('obsolete') if mibBuilder.loadTexts: r100adsl2pgm.setDescription('R100 Adsl2P Gm') r100adsl2pgte = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15, 6)) if mibBuilder.loadTexts: r100adsl2pgte.setStatus('obsolete') if mibBuilder.loadTexts: r100adsl2pgte.setDescription('R100 ADSL2P GTE') r100adsl2panxb = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 15, 7)) if mibBuilder.loadTexts: r100adsl2panxb.setStatus('current') if mibBuilder.loadTexts: r100adsl2panxb.setDescription('R100 ADSL2P ANXB') m100 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 16)) if mibBuilder.loadTexts: m100.setStatus('current') if mibBuilder.loadTexts: m100.setDescription('M100.') m100adsl2pxxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 16, 1)) if mibBuilder.loadTexts: m100adsl2pxxx.setStatus('current') if mibBuilder.loadTexts: m100adsl2pxxx.setDescription('M100 ADSL2P.') m100adsl2pgige = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 16, 1, 1)) if mibBuilder.loadTexts: m100adsl2pgige.setStatus('current') if mibBuilder.loadTexts: m100adsl2pgige.setDescription('M100 ADSL2P GigE.') m100adsl2pgm = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 16, 1, 2)) if mibBuilder.loadTexts: m100adsl2pgm.setStatus('obsolete') if mibBuilder.loadTexts: m100adsl2pgm.setDescription('M100 Adsl2p Gm') m100Adsl2pAnxB = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 16, 1, 3)) if mibBuilder.loadTexts: m100Adsl2pAnxB.setStatus('current') if mibBuilder.loadTexts: m100Adsl2pAnxB.setDescription('MALC 100 ADSL2P ANXB') m100Vdsl2xxx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 16, 2)) if mibBuilder.loadTexts: m100Vdsl2xxx.setStatus('obsolete') if mibBuilder.loadTexts: m100Vdsl2xxx.setDescription('M100 Vdsl2') m100vdsl2gm = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 16, 2, 1)) if mibBuilder.loadTexts: m100vdsl2gm.setStatus('obsolete') if mibBuilder.loadTexts: m100vdsl2gm.setDescription('M100 Vdsl2 Gm') r100Vdsl2xx = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 17)) if mibBuilder.loadTexts: r100Vdsl2xx.setStatus('obsolete') if mibBuilder.loadTexts: r100Vdsl2xx.setDescription('Raptor 100 Vdsl2 series') r100vdsl2gm = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 17, 1)) if mibBuilder.loadTexts: r100vdsl2gm.setStatus('obsolete') if mibBuilder.loadTexts: r100vdsl2gm.setDescription('R100 VDSL2 GM') fiberSlam = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 18)) if mibBuilder.loadTexts: fiberSlam.setStatus('current') if mibBuilder.loadTexts: fiberSlam.setDescription('FiberSLAM series.') fs105 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 18, 1)) if mibBuilder.loadTexts: fs105.setStatus('current') if mibBuilder.loadTexts: fs105.setDescription('fiberslam-105 provides datacom (2xGigE, 2x10/100) and telecom (16xT1/E1, 3xDS3/E3) traffic mapping over SONET/SDH at 2.5Gbps.') fs101 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 18, 2)) if mibBuilder.loadTexts: fs101.setStatus('current') if mibBuilder.loadTexts: fs101.setDescription('fiberslam-101 provides datacom (2xGigE, 2x10/100) and telecom (16xT1/E1) traffic mapping over SONET/SDH at 2.5Gbps.') raptorXP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19)) if mibBuilder.loadTexts: raptorXP.setStatus('current') if mibBuilder.loadTexts: raptorXP.setDescription('Raptor XP family') raptorXP150A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 1)) if mibBuilder.loadTexts: raptorXP150A.setStatus('current') if mibBuilder.loadTexts: raptorXP150A.setDescription('Raptor-XP-150-A, the Raptor Adsl2 board') raptorXP150A_ISP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 1, 1)) if mibBuilder.loadTexts: raptorXP150A_ISP.setStatus('current') if mibBuilder.loadTexts: raptorXP150A_ISP.setDescription('Raptor-150A Indoor Unit') raptorXP150A_OSP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 1, 2)) if mibBuilder.loadTexts: raptorXP150A_OSP.setStatus('current') if mibBuilder.loadTexts: raptorXP150A_OSP.setDescription('Raptor-150A Outdoor Unit') raptorXP350A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 2)) if mibBuilder.loadTexts: raptorXP350A.setStatus('current') if mibBuilder.loadTexts: raptorXP350A.setDescription('Raptor-XP-350-A, the Raptor Adsl2 T1/E1 board') raptorXP350A_ISP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 2, 1)) if mibBuilder.loadTexts: raptorXP350A_ISP.setStatus('current') if mibBuilder.loadTexts: raptorXP350A_ISP.setDescription('Raptor-XP-350A Indoor Unit') raptorXP350A_OSP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 2, 2)) if mibBuilder.loadTexts: raptorXP350A_OSP.setStatus('current') if mibBuilder.loadTexts: raptorXP350A_OSP.setDescription('Raptor-XP-350A Outdoor Unit') raptorXP160 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 3)) if mibBuilder.loadTexts: raptorXP160.setStatus('current') if mibBuilder.loadTexts: raptorXP160.setDescription('Raptor-XP-160, the Raptor Vdsl2 board') raptorXP160_ISP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 3, 1)) if mibBuilder.loadTexts: raptorXP160_ISP.setStatus('current') if mibBuilder.loadTexts: raptorXP160_ISP.setDescription('Raptor-XP-160 Indoor Unit') raptorXP160_OSP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 3, 2)) if mibBuilder.loadTexts: raptorXP160_OSP.setStatus('current') if mibBuilder.loadTexts: raptorXP160_OSP.setDescription('Raptor-XP-160 Outdoor Unit') raptorXP170 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4)) if mibBuilder.loadTexts: raptorXP170.setStatus('current') if mibBuilder.loadTexts: raptorXP170.setDescription('Raptor-XP-170, the Raptor SHDSL board') raptorXP170_WC = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 1)) if mibBuilder.loadTexts: raptorXP170_WC.setStatus('current') if mibBuilder.loadTexts: raptorXP170_WC.setDescription('Raptor-XP-170 with Wetting Current') raptorXP170_ISP_WC = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 1, 1)) if mibBuilder.loadTexts: raptorXP170_ISP_WC.setStatus('current') if mibBuilder.loadTexts: raptorXP170_ISP_WC.setDescription('Raptor-XP-170 Indoor Unit with Wetting Current') raptorXP170_OSP_WC = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 1, 2)) if mibBuilder.loadTexts: raptorXP170_OSP_WC.setStatus('current') if mibBuilder.loadTexts: raptorXP170_OSP_WC.setDescription('Raptor-XP-170 Outdoor Unit with Wetting Current') raptorXP170_WC_SD = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 2)) if mibBuilder.loadTexts: raptorXP170_WC_SD.setStatus('current') if mibBuilder.loadTexts: raptorXP170_WC_SD.setDescription('Raptor-XP-170 with Wetting Current and SELT/DELT') raptorXP170_ISP_WC_SD = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 2, 1)) if mibBuilder.loadTexts: raptorXP170_ISP_WC_SD.setStatus('current') if mibBuilder.loadTexts: raptorXP170_ISP_WC_SD.setDescription('Raptor-XP-170 Indoor Unit with Wetting Current and SELT/DELT') raptorXP170_OSP_WC_SD = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 2, 2)) if mibBuilder.loadTexts: raptorXP170_OSP_WC_SD.setStatus('current') if mibBuilder.loadTexts: raptorXP170_OSP_WC_SD.setDescription('Raptor-XP-170 Outdoor Unit with Wetting Current and SELT/DELT') raptorXP170_LP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 3)) if mibBuilder.loadTexts: raptorXP170_LP.setStatus('current') if mibBuilder.loadTexts: raptorXP170_LP.setDescription('Raptor-XP-170 with Line Power') raptorXP170_ISP_LP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 3, 1)) if mibBuilder.loadTexts: raptorXP170_ISP_LP.setStatus('current') if mibBuilder.loadTexts: raptorXP170_ISP_LP.setDescription('Raptor-XP-170 Indoor Unit with Line Power') raptorXP170_OSP_LP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 3, 2)) if mibBuilder.loadTexts: raptorXP170_OSP_LP.setStatus('current') if mibBuilder.loadTexts: raptorXP170_OSP_LP.setDescription('Raptor-XP-170 Outdoor Unit with Line Power') raptorXP170_LP_SD = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 4)) if mibBuilder.loadTexts: raptorXP170_LP_SD.setStatus('current') if mibBuilder.loadTexts: raptorXP170_LP_SD.setDescription('Raptor-XP-170 with Line Power and SELT/DELT') raptorXP170_ISP_LP_SD = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 4, 1)) if mibBuilder.loadTexts: raptorXP170_ISP_LP_SD.setStatus('current') if mibBuilder.loadTexts: raptorXP170_ISP_LP_SD.setDescription('Raptor-XP-170 Indoor Unit with Line Power and SELT/DELT') raptorXP170_OSP_LP_SD = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 19, 4, 4, 2)) if mibBuilder.loadTexts: raptorXP170_OSP_LP_SD.setStatus('current') if mibBuilder.loadTexts: raptorXP170_OSP_LP_SD.setDescription('Raptor-XP-170 Outdoor Unit with Line Power and SELT/DELT') malcXP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20)) if mibBuilder.loadTexts: malcXP.setStatus('current') if mibBuilder.loadTexts: malcXP.setDescription('Malc-XP family') malcXP150A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 1)) if mibBuilder.loadTexts: malcXP150A.setStatus('current') if mibBuilder.loadTexts: malcXP150A.setDescription('Malc-XP-150-A, the Raptor Adsl2 POTS board') malcXP150A_ISP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 1, 1)) if mibBuilder.loadTexts: malcXP150A_ISP.setStatus('current') if mibBuilder.loadTexts: malcXP150A_ISP.setDescription('MalcXP150A Indoor Unit') malcXP150A_OSP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 1, 2)) if mibBuilder.loadTexts: malcXP150A_OSP.setStatus('current') if mibBuilder.loadTexts: malcXP150A_OSP.setDescription('MalcXP150A Outdoor Unit') malcXP350A = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 4)) if mibBuilder.loadTexts: malcXP350A.setStatus('current') if mibBuilder.loadTexts: malcXP350A.setDescription('Malc-XP-350-A, the Raptor Adsl2 POTS T1/E1 board') malcXP350A_ISP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 4, 1)) if mibBuilder.loadTexts: malcXP350A_ISP.setStatus('current') if mibBuilder.loadTexts: malcXP350A_ISP.setDescription('Malc-XP-350A Indoor Unit') malcXP350A_OSP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 4, 2)) if mibBuilder.loadTexts: malcXP350A_OSP.setStatus('current') if mibBuilder.loadTexts: malcXP350A_OSP.setDescription('Malc-XP-350A Outdoor Unit') malcXP160 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 5)) if mibBuilder.loadTexts: malcXP160.setStatus('current') if mibBuilder.loadTexts: malcXP160.setDescription('Malc-XP-160, the Raptor Vdsl2 POTS board') malcXP160_ISP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 5, 1)) if mibBuilder.loadTexts: malcXP160_ISP.setStatus('current') if mibBuilder.loadTexts: malcXP160_ISP.setDescription('Malc-XP-160 Indoor Unit') malcXP160_OSP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 6, 20, 5, 2)) if mibBuilder.loadTexts: malcXP160_OSP.setStatus('current') if mibBuilder.loadTexts: malcXP160_OSP.setDescription('Malc-XP-160 Outdoor Unit') zhoneRegMxNextGen = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7)) if mibBuilder.loadTexts: zhoneRegMxNextGen.setStatus('current') if mibBuilder.loadTexts: zhoneRegMxNextGen.setDescription('Next Generation MALC') mx19 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 1)) if mibBuilder.loadTexts: mx19.setStatus('current') if mibBuilder.loadTexts: mx19.setDescription('Mx Next Gen 19 inch.') mx23 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 2)) if mibBuilder.loadTexts: mx23.setStatus('current') if mibBuilder.loadTexts: mx23.setDescription('Mx Next Gen 23 inch.') mx319 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 3)) if mibBuilder.loadTexts: mx319.setStatus('current') if mibBuilder.loadTexts: mx319.setDescription('Mx Next Gen 3U 19 inch.') mx1U = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4)) if mibBuilder.loadTexts: mx1U.setStatus('current') if mibBuilder.loadTexts: mx1U.setDescription('MX1U Product Family') mx1Ux6x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1)) if mibBuilder.loadTexts: mx1Ux6x.setStatus('current') if mibBuilder.loadTexts: mx1Ux6x.setDescription('MX1U x6x Product Family') mx1U16x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 1)) if mibBuilder.loadTexts: mx1U16x.setStatus('current') if mibBuilder.loadTexts: mx1U16x.setDescription('MX1U 16x Product Family') mx1U160 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 1, 1)) if mibBuilder.loadTexts: mx1U160.setStatus('current') if mibBuilder.loadTexts: mx1U160.setDescription('MX 160 - 24 VDSL2, 4 FE/GE') mx1U161 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 1, 2)) if mibBuilder.loadTexts: mx1U161.setStatus('current') if mibBuilder.loadTexts: mx1U161.setDescription('MX 161 - 24 VDSL2, 24 POTS SPLT (600 Ohm), 4 FE/GE') mx1U162 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 1, 3)) if mibBuilder.loadTexts: mx1U162.setStatus('current') if mibBuilder.loadTexts: mx1U162.setDescription('MX 162 - 24 VDSL2, 24 POTS SPLT (900 Ohm), 4 FE/GE') mx1U26x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 2)) if mibBuilder.loadTexts: mx1U26x.setStatus('current') if mibBuilder.loadTexts: mx1U26x.setDescription('MX1U 26x Product Family') mx1U260 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 2, 1)) if mibBuilder.loadTexts: mx1U260.setStatus('current') if mibBuilder.loadTexts: mx1U260.setDescription('MX 260 - 24 VDSL2, 3 FE/GE, 1 GPON') mx1U261 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 2, 2)) if mibBuilder.loadTexts: mx1U261.setStatus('current') if mibBuilder.loadTexts: mx1U261.setDescription('MX 261 - 24 VDSL2, 24 POTS SPLT (600 Ohm), 3 FE/GE, 1 GPON') mx1U262 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 1, 2, 3)) if mibBuilder.loadTexts: mx1U262.setStatus('current') if mibBuilder.loadTexts: mx1U262.setDescription('MX 262 - 24 VDSL2, 24 POTS SPLT (900 Ohm), 3 FE/GE, 1 GPON') mx1Ux80 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 2)) if mibBuilder.loadTexts: mx1Ux80.setStatus('current') if mibBuilder.loadTexts: mx1Ux80.setDescription('MX1U x80 Product Family') mx1U180 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 2, 1)) if mibBuilder.loadTexts: mx1U180.setStatus('current') if mibBuilder.loadTexts: mx1U180.setDescription('MX 180 - 24 FE, 2 FE/GE') mx1U280 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 2, 2)) if mibBuilder.loadTexts: mx1U280.setStatus('current') if mibBuilder.loadTexts: mx1U280.setDescription('MX 280 - 24 FE, 2 FE/GE, 1 GPON') mx1U180_TP_RJ45 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 2, 3)) if mibBuilder.loadTexts: mx1U180_TP_RJ45.setStatus('current') if mibBuilder.loadTexts: mx1U180_TP_RJ45.setDescription('MX 180 TP-RJ45 - 24 FE, 4 FE/GE') mx1U280_TP_RJ45 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 2, 4)) if mibBuilder.loadTexts: mx1U280_TP_RJ45.setStatus('current') if mibBuilder.loadTexts: mx1U280_TP_RJ45.setDescription('MX 280 TP-RJ45 - 24 FE, 3 FE/GE, 1 GPON') mx1U180_LT_TP_RJ45 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 2, 5)) if mibBuilder.loadTexts: mx1U180_LT_TP_RJ45.setStatus('current') if mibBuilder.loadTexts: mx1U180_LT_TP_RJ45.setDescription('MX 180 LT-TP-RJ45 - 24 FE, 4 FE/GE') mx1U280_LT_TP_RJ45 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 2, 6)) if mibBuilder.loadTexts: mx1U280_LT_TP_RJ45.setStatus('current') if mibBuilder.loadTexts: mx1U280_LT_TP_RJ45.setDescription('MX 280 LT-TP-RJ45 - 24 FE, 3 FE/GE, 1 GPON') mx1U19x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3)) if mibBuilder.loadTexts: mx1U19x.setStatus('current') if mibBuilder.loadTexts: mx1U19x.setDescription('MXK 19x Product Family') mx1U194 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 1)) if mibBuilder.loadTexts: mx1U194.setStatus('current') if mibBuilder.loadTexts: mx1U194.setDescription('MXK 194 - 4 GPON OLT, 8 FE/GE') mx1U198 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 2)) if mibBuilder.loadTexts: mx1U198.setStatus('current') if mibBuilder.loadTexts: mx1U198.setDescription('MXK 198 - 8 GPON OLT, 8 FE/GE') mx1U194_10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 3)) if mibBuilder.loadTexts: mx1U194_10GE.setStatus('current') if mibBuilder.loadTexts: mx1U194_10GE.setDescription('MXK 194-10GE - 4 GPON OLT, 8 FE/GE, 2 10GE') mx1U198_10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 4)) if mibBuilder.loadTexts: mx1U198_10GE.setStatus('current') if mibBuilder.loadTexts: mx1U198_10GE.setDescription('MXK 198-10GE - 8 GPON OLT, 8 FE/GE, 2 10GE') mx1U194_TOP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 5)) if mibBuilder.loadTexts: mx1U194_TOP.setStatus('current') if mibBuilder.loadTexts: mx1U194_TOP.setDescription('MXK 194-TOP - 4 GPON OLT, 8 FE/GE, TOP') mx1U198_TOP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 6)) if mibBuilder.loadTexts: mx1U198_TOP.setStatus('current') if mibBuilder.loadTexts: mx1U198_TOP.setDescription('MXK 198-TOP - 8 GPON OLT, 8 FE/GE, TOP') mx1U194_10GE_TOP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 7)) if mibBuilder.loadTexts: mx1U194_10GE_TOP.setStatus('current') if mibBuilder.loadTexts: mx1U194_10GE_TOP.setDescription('MXK 194-10GE-TOP - 4 GPON OLT, 8 FE/GE, 2 10GE, TOP') mx1U198_10GE_TOP = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 3, 8)) if mibBuilder.loadTexts: mx1U198_10GE_TOP.setStatus('current') if mibBuilder.loadTexts: mx1U198_10GE_TOP.setDescription('MXK 198-10GE-TOP - 8 GPON OLT, 8 FE/GE, 2 10GE, TOP') mx1Ux5x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 4)) if mibBuilder.loadTexts: mx1Ux5x.setStatus('current') if mibBuilder.loadTexts: mx1Ux5x.setDescription('Description.') mx1U15x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 4, 1)) if mibBuilder.loadTexts: mx1U15x.setStatus('current') if mibBuilder.loadTexts: mx1U15x.setDescription('Description.') mx1U150 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 4, 1, 1)) if mibBuilder.loadTexts: mx1U150.setStatus('current') if mibBuilder.loadTexts: mx1U150.setDescription('Description.') mx1U151 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 4, 1, 2)) if mibBuilder.loadTexts: mx1U151.setStatus('current') if mibBuilder.loadTexts: mx1U151.setDescription('Description.') mx1U152 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 4, 4, 1, 3)) if mibBuilder.loadTexts: mx1U152.setStatus('current') if mibBuilder.loadTexts: mx1U152.setDescription('Description.') mxp1U = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5)) if mibBuilder.loadTexts: mxp1U.setStatus('current') if mibBuilder.loadTexts: mxp1U.setDescription('MXP1U Product Family') mxp1Ux60 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 1)) if mibBuilder.loadTexts: mxp1Ux60.setStatus('current') if mibBuilder.loadTexts: mxp1Ux60.setDescription('MXP1U x60 Product Family') mxp1U160Family = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 1, 1)) if mibBuilder.loadTexts: mxp1U160Family.setStatus('current') if mibBuilder.loadTexts: mxp1U160Family.setDescription('MXP1U 160 Product Family') mxp1U160 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 1, 1, 1)) if mibBuilder.loadTexts: mxp1U160.setStatus('current') if mibBuilder.loadTexts: mxp1U160.setDescription('MXP 160 - 24 VDSL2, 24 POTS VOIP, 4 FE/GE') mxp1U260Family = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 1, 2)) if mibBuilder.loadTexts: mxp1U260Family.setStatus('current') if mibBuilder.loadTexts: mxp1U260Family.setDescription('MXP1U 260 Product Family') mxp1U260 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 1, 2, 1)) if mibBuilder.loadTexts: mxp1U260.setStatus('current') if mibBuilder.loadTexts: mxp1U260.setDescription('MXP 260 - 24 VDSL2, 24 POTS VOIP, 3 FE/GE, 1 GPON') mxp1Ux80 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 2)) if mibBuilder.loadTexts: mxp1Ux80.setStatus('current') if mibBuilder.loadTexts: mxp1Ux80.setDescription('MXP1U x80 Product Family') mxp1U180 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 2, 1)) if mibBuilder.loadTexts: mxp1U180.setStatus('current') if mibBuilder.loadTexts: mxp1U180.setDescription('MXP 180 - 24 FE, 24 POTS VOIP, 2 FE/GE') mxp1U280 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 2, 2)) if mibBuilder.loadTexts: mxp1U280.setStatus('current') if mibBuilder.loadTexts: mxp1U280.setDescription('MXP 280 - 24 FE, 24 POTS VOIP, 2 FE/GE, 1 GPON') mxp1U180_TP_RJ45 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 2, 3)) if mibBuilder.loadTexts: mxp1U180_TP_RJ45.setStatus('current') if mibBuilder.loadTexts: mxp1U180_TP_RJ45.setDescription('MXP 180 TP-RJ45 - 24 FE, 24 POTS VOIP, 4 FE/GE') mxp1U280_TP_RJ45 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 2, 4)) if mibBuilder.loadTexts: mxp1U280_TP_RJ45.setStatus('current') if mibBuilder.loadTexts: mxp1U280_TP_RJ45.setDescription('MXP 280 TP-RJ45 - 24 FE, 24 POTS VOIP, 3 FE/GE, 1 GPON') mxp1Ux5x = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 3)) if mibBuilder.loadTexts: mxp1Ux5x.setStatus('current') if mibBuilder.loadTexts: mxp1Ux5x.setDescription('Description.') mxp1U15xFamily = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 3, 1)) if mibBuilder.loadTexts: mxp1U15xFamily.setStatus('current') if mibBuilder.loadTexts: mxp1U15xFamily.setDescription('Description.') mxp1U150 = ObjectIdentity((1, 3, 6, 1, 4, 1, 5504, 1, 7, 5, 3, 1, 1)) if mibBuilder.loadTexts: mxp1U150.setStatus('current') if mibBuilder.loadTexts: mxp1U150.setDescription('Description.') mibBuilder.exportSymbols("ZhoneProductRegistrations", znidNextGenGPON21xx=znidNextGenGPON21xx, oduTypeE3A=oduTypeE3A, malcXP350A=malcXP350A, mx1U26x=mx1U26x, mx1U151=mx1U151, mx1U161=mx1U161, znid42xx=znid42xx, skyZhone45=skyZhone45, znidGPON42xx=znidGPON42xx, zedge6200_IP_T1=zedge6200_IP_T1, zhoneRegistrationsModule=zhoneRegistrationsModule, znidNextGenGE24xx=znidNextGenGE24xx, mx23=mx23, skyZhone155s1=skyZhone155s1, oduTypeE1A=oduTypeE1A, zrg7xx=zrg7xx, znidNextGen42xx=znidNextGen42xx, mx1U280_TP_RJ45=mx1U280_TP_RJ45, raptor50Gshdsl=raptor50Gshdsl, skyZhone8e2=skyZhone8e2, raptor719A=raptor719A, raptorXP170_OSP_LP_SD=raptorXP170_OSP_LP_SD, mx1U262=mx1U262, fs105=fs105, znidNextGenGE97xx=znidNextGenGE97xx, zrg8xx=zrg8xx, znidNextGenGE21xx=znidNextGenGE21xx, raptor100LP=raptor100LP, malcXP160_ISP=malcXP160_ISP, oduTypeE2B=oduTypeE2B, mx1U198=mx1U198, mx1U194_10GE=mx1U194_10GE, znidNextGenGE42xx=znidNextGenGE42xx, znidNextGen22xx=znidNextGen22xx, ethXtendxx=ethXtendxx, oduTypeE1B=oduTypeE1B, skyZhone155s4=skyZhone155s4, raptorXP150A=raptorXP150A, raptorXP170_OSP_WC_SD=raptorXP170_OSP_WC_SD, mxp1U280_TP_RJ45=mxp1U280_TP_RJ45, ethXtend31xx=ethXtend31xx, mx1U261=mx1U261, zrg3xx=zrg3xx, oduTypeS2B=oduTypeS2B, mx1U180_TP_RJ45=mx1U180_TP_RJ45, raptorXP170_ISP_LP_SD=raptorXP170_ISP_LP_SD, s100_ATM_SM_16E1=s100_ATM_SM_16E1, mx1Ux80=mx1Ux80, z_plex10B_FXS_FXO=z_plex10B_FXS_FXO, skyZhone8t4=skyZhone8t4, mx19=mx19, PYSNMP_MODULE_ID=zhoneRegistrationsModule, znidEth422x=znidEth422x, fiberJack=fiberJack, mx1Ux6x=mx1Ux6x, mx1U162=mx1U162, znid=znid, raptor100A=raptor100A, mx1U194_TOP=mx1U194_TOP, raptorXP350A_OSP=raptorXP350A_OSP, mxp1U180=mxp1U180, oduTypeT1B=oduTypeT1B, raptor723I=raptor723I, r100adsl2panxb=r100adsl2panxb, skyZhone155s3=skyZhone155s3, zrg600_IDU=zrg600_IDU, raptorXP170_ISP_WC=raptorXP170_ISP_WC, malcXP160_OSP=malcXP160_OSP, sechtor_300=sechtor_300, mx1U198_10GE_TOP=mx1U198_10GE_TOP, oduTypeE4A=oduTypeE4A, zrg500_ODU=zrg500_ODU, oduTypeS3A=oduTypeS3A, zedge6200_IP_FXS=zedge6200_IP_FXS, oduTypeE3B=oduTypeE3B, ethXtend30xx=ethXtend30xx, znidNextGenGE26xx=znidNextGenGE26xx, znidNextGenGPON26xx=znidNextGenGPON26xx, mxp1U180_TP_RJ45=mxp1U180_TP_RJ45, oduTypeE2A=oduTypeE2A, oduTypeS2A=oduTypeS2A, znid420x=znid420x, mx1U=mx1U, zrg500_IDU=zrg500_IDU, z_plex10B_FXS=z_plex10B_FXS, r100adsl2pip=r100adsl2pip, mxp1U260Family=mxp1U260Family, znidGPON420x=znidGPON420x, fs101=fs101, zrg800_ODU=zrg800_ODU, raptorXP160_ISP=raptorXP160_ISP, mxp1U160=mxp1U160, mxp1U=mxp1U, raptorXP170_LP_SD=raptorXP170_LP_SD, zrg600_ODU=zrg600_ODU, skyZhone8t1=skyZhone8t1, zedge64=zedge64, znidNextGenGPON97xx=znidNextGenGPON97xx, skyZhone1xxx=skyZhone1xxx, r100adsl2pgm=r100adsl2pgm, r100Vdsl2xx=r100Vdsl2xx, mxp1Ux60=mxp1Ux60, raptorXP170=raptorXP170, malcXP350A_ISP=malcXP350A_ISP, raptor319A=raptor319A, oduTypeT2B=oduTypeT2B, raptorXP160=raptorXP160, raptorXP350A_ISP=raptorXP350A_ISP, zedge64_SHDSL_FXS=zedge64_SHDSL_FXS, mx1U198_10GE=mx1U198_10GE, mx1U180_LT_TP_RJ45=mx1U180_LT_TP_RJ45, node23000Mhz=node23000Mhz, fiberSlam=fiberSlam, mx1U152=mx1U152, malcXP=malcXP, mx1U280_LT_TP_RJ45=mx1U280_LT_TP_RJ45, mx1U16x=mx1U16x, ethXtendShdsl=ethXtendShdsl, znidNextGen26xx=znidNextGen26xx, ethXtendT1E1=ethXtendT1E1, znidNextGen9xxx=znidNextGen9xxx, zedge64_E1_FXS=zedge64_E1_FXS, malc23=malc23, isc303=isc303, skyZhone8t3=skyZhone8t3, zrg700_ODU=zrg700_ODU, oduTypeT1A=oduTypeT1A, raptorXP170_WC=raptorXP170_WC, malcXP150A_ISP=malcXP150A_ISP, zedge6200_IP_EM=zedge6200_IP_EM, raptorXP170_LP=raptorXP170_LP, raptorXP=raptorXP, mxp1U160Family=mxp1U160Family, oduTypeS1A=oduTypeS1A, znidNextGenGPON24xx=znidNextGenGPON24xx, znidNextGenGE9xxx=znidNextGenGE9xxx, raptorXP150A_ISP=raptorXP150A_ISP, skyZhone155s2=skyZhone155s2, r100adsl2pgte=r100adsl2pgte, raptorXP350A=raptorXP350A, zhoneRegMxNextGen=zhoneRegMxNextGen, mx1U280=mx1U280, mxp1U280=mxp1U280, raptor719I=raptor719I, m100adsl2pgm=m100adsl2pgm, mx319=mx319, zedge6200=zedge6200, m100Adsl2pAnxB=m100Adsl2pAnxB, zrg300_ODU=zrg300_ODU, m100adsl2pgige=m100adsl2pgige, malcXP160=malcXP160, znidNextGenGPON42xx=znidNextGenGPON42xx, mxp1U260=mxp1U260, m100Vdsl2xxx=m100Vdsl2xxx, skyZhone8t2=skyZhone8t2, oduTypeS3B=oduTypeS3B, zedge64_SHDSL_BRI=zedge64_SHDSL_BRI, mx1U160=mx1U160, sechtor_100=sechtor_100, oduTypeT3A=oduTypeT3A, oduTypeB=oduTypeB, raptor319I=raptor319I, zrg300_IDU=zrg300_IDU, m100=m100, mx1U194=mx1U194, zedge64_T1_FXS=zedge64_T1_FXS, oduTypeS4A=oduTypeS4A, skyZhone8e3=skyZhone8e3, malc19=malc19, malcXP350A_OSP=malcXP350A_OSP, r100adsl2phdsl4=r100adsl2phdsl4, r100adsl2Pxxx=r100adsl2Pxxx, oduTypeE4B=oduTypeE4B, raptor100I=raptor100I, r100adsl2pgige=r100adsl2pgige, raptorXP150A_OSP=raptorXP150A_OSP, s100_ATM_SM_16T1=s100_ATM_SM_16T1, znidNextGenGE22xx=znidNextGenGE22xx, m100adsl2pxxx=m100adsl2pxxx, zrg6xx=zrg6xx, oduTypeT4A=oduTypeT4A, zrg800_IDU=zrg800_IDU, r100adsl2pt1ima=r100adsl2pt1ima, raptorXP170_ISP_LP=raptorXP170_ISP_LP, mxp1U150=mxp1U150, oduTypeT3B=oduTypeT3B, oduTypeT2A=oduTypeT2A, mxp1Ux80=mxp1Ux80, znidNextGen24xx=znidNextGen24xx, m100vdsl2gm=m100vdsl2gm, ban_2000=ban_2000, zhoneRegWtn=zhoneRegWtn, mx1Ux5x=mx1Ux5x, raptorXP170_OSP_WC=raptorXP170_OSP_WC, raptorXP170_OSP_LP=raptorXP170_OSP_LP, oduTypeT4B=oduTypeT4B, oduTypeS1B=oduTypeS1B, znidNextGenGPON94xx=znidNextGenGPON94xx, raptorXP160_OSP=raptorXP160_OSP, mx1U260=mx1U260, mx1U194_10GE_TOP=mx1U194_10GE_TOP, mxp1Ux5x=mxp1Ux5x, znidNextGenGPON9xxx=znidNextGenGPON9xxx, skyZhone8e1=skyZhone8e1, mx1U198_TOP=mx1U198_TOP, zrg5xx=zrg5xx, malc319=malc319, mx1U150=mx1U150, mx1U19x=mx1U19x, r100vdsl2gm=r100vdsl2gm, znidNextGen=znidNextGen, raptor723A=raptor723A, skyZhone8e4=skyZhone8e4, znidNextGen21xx=znidNextGen21xx, ethXtend32xx=ethXtend32xx, oduTypeA=oduTypeA, oduTypeS4B=oduTypeS4B, mx1U180=mx1U180, malcXP150A_OSP=malcXP150A_OSP, z_plex10B=z_plex10B, raptorXP170_ISP_WC_SD=raptorXP170_ISP_WC_SD, znidNextGenGE94xx=znidNextGenGE94xx, node5700Mhz=node5700Mhz, zrg700_IDU=zrg700_IDU, malcXP150A=malcXP150A, mx1U15x=mx1U15x, raptorXP170_WC_SD=raptorXP170_WC_SD, mxp1U15xFamily=mxp1U15xFamily)
class Solution: def solve(self, nums): # Write your code here if len(nums) == 0: return nums s = nums[0] flag = True for i in range(1,len(nums)): if flag: k = nums[i] nums[i] = s if k < s: s = k flag = False else: k = nums[i] nums[i] = s if k < s: s = k nums[0] = 0 return nums
A, B, K = map(int, input().rstrip().split()) for n in range(A, B + 1): if n < A + K or n > B - K: print(n)
f=input('digite a frase') fse=f.replace(' ','') ftm=fse.lower() fi=ftm[::-1] print(' {} invertida é {}'.format(f,fi)) if fi == ftm: print('sim é palindromo') else: print('nao é palindromo')
# Attributes in different classes are isolated, changing one class does not # affected the other, the same way that changing an object does not modify # another. email = '[email protected]' class Student: email = '[email protected]' def __init__(self, name, birthday, courses): # class public attributes self.full_name = name self.first_name = name.split(' ')[0] self.birthday = birthday self.courses = courses self.attendance = [] class Teacher: email = '[email protected]' def __init__(self, name): # class public attributes self.full_name = name print('email:', email) # email: [email protected] print('Student.email:', Student.email) # Student.email: [email protected] print('Teacher.email:', Teacher.email) # Teacher.email: [email protected] # Objects john = Student('John Schneider', '2010-04-05', ['German', 'Arts', 'History']) tiago = Teacher('Tiago Vieira') # If the instance does not have the attribute it will access the class # attribute. print('john.email:', john.email) # john.email: [email protected] print('tiago.email:', tiago.email) # tiago.email: [email protected] # Changing the instance attribute does not change the class. john.email = '[email protected]' print('john.email:', john.email) # john.email: [email protected] print('Student.email:', Student.email) # Student.email: [email protected] # Changing the class changes how it is visible in the object. Teacher.email = '[email protected]' print('Teacher.email:', Teacher.email) # Teacher.email: [email protected] print('tiago.email:', tiago.email) # tiago.email: [email protected] # But changing the class does not affect the instance if they have their own # attribute. Student.email = '[email protected]' print('Student.email:', Student.email) # Student.email: [email protected] print('john.email:', john.email) # john.email: [email protected]
""" this is a regional comment """ #print("hello world") #this is a single line comment #print(type("123")) #print('hello world') #print("It's our 2nd Python class") my_str = 'hello world' print(my_str) my_str = 'second str' print(my_str) my_int = 2 my_float = 2.0 print(my_int + 3) print(my_int ** 3) print (my_int + my_float)
class InvalidGroupError(Exception): pass class MaxInvalidIterationsError(Exception): pass
# Author: Mengmeng Tang # Date: March 2, 2021 # Course: CS 325 # Description: Portfolio Assignment - Sudoku Puzzle # Requirement 3: Implement a program that allows the user to solve the puzzle. def print_board(puzzle): """ Takes a sudoku puzzle as parameter Print the board to the console """ # Code adapted from this post: # https://stackoverflow.com/questions/37952851/formating-sudoku-grids-python-3 print("Column 0 1 2 3 4 5 6 7 8 ") print(" " * 6 + "+" + "---+"*9) for i, row in enumerate(puzzle): print("Row {}".format(i), ("|" + " {} {} {} |"*3).format(*[x if x != -1 else "X" for x in row])) if i % 3 == 2: print(" " * 6 + "+" + "---+"*9) # gridlines separating the 3x3 squares from each other else: print(" " * 6 + "+" + " +"*9) # gridlines within each 3x3 squares def is_full(puzzle): """ Takes a sudoku puzzle as parameter Checks if every space is filled Returns True if yes Returns False otherwise """ for row in range(9): for col in range(9): if puzzle[row][col] == -1: return False return True def row_empty_spaces(row, puzzle): """ Takes a row number, and a sudoku puzzle as parameter Returns a list of empty spaces in that row on the puzzle """ valid_spaces = [] for col in range(0, 9): if puzzle[row][col] == -1: valid_spaces.append([row, col]) i = 1 print("\nThere are {} available spaces on your selected row.".format(len(valid_spaces))) for space in valid_spaces: print("Space Number", str(i), ": ", space) i += 1 return valid_spaces def row_full(row, puzzle): """ Takes a row number, and a sudoku puzzle as parameter Returns True if there is no empty space on the row ReturnsFalse if otherwise """ for col in range(0, 9): if puzzle[row][col] == -1: return False return True def sudoku(puzzle): """ Takes a sudoku puzzle as parameter Asks for a guess from the player until all spaces on the puzzle are filled Verifies the player's solution """ # step 1: check if all cells on the board are filled if is_full(puzzle): print("Puzzle has been filled. Please use a new puzzle.") return # step 2: ask the player to choose a space to fill in in two steps: # 1) ask which row their space of choice is on # 2) present them a list of available spaces on the requested row and have them pick a space number invalid = True row = -1 while invalid: try: row = int(input("Enter the row number of the empty space of your choice: ")) if row > 8 or row < 0: print("Please pick a valid row number.") elif row_full(row, puzzle): # if the player chooses a full row (no empty spaces) print("The row you selected has no empty spaces. Try again.") else: break except ValueError: print("Oops, please enter an integer between 0 and 8.") row_spaces = row_empty_spaces(row, puzzle) # present a list of empty spaces on the row of the player's choice space_number = 0 invalid = True while invalid: try: space_number = int(input("Please pick a space number you would like to fill: ")) if space_number in range(1, len(row_spaces)+1): break else: print("Please pick a valid space number.") except ValueError: print("Oops, please enter an integer between 1 and {}.".format(len(row_spaces)+2)) col = row_spaces[space_number-1][1] # column number of the requested space # step 3: ask the player to enter a guess invalid = True guess = 0 while invalid: try: guess = int(input("What is your guess? ")) if guess in range(1, 10): break else: print("Please enter an integer between 1 and 9.") except ValueError: print("Oops, please enter a valid number.") # step 4: place the guess on the board, and print the updated board puzzle[row][col] = guess print_board(puzzle) print("\nYou have entered {} on row {}, column {}. ".format(guess, row, col)) # step 5: # if the board is fully filled, verify the solution # if the board is not filled, ask the user to keep playing if is_full(puzzle): print(verify_sudoku(puzzle)) return else: # keep playing until all spaces are filled return sudoku(puzzle) # Requirement 4: Sudoku Solution Verifier def check_square(square): """ Takes a list of values from a 3 x 3 square on the puzzle as parameter Checks if all values in the square are distinct Returns True if they pass Returns False if otherwise """ for n in square: if square.count(n) > 1: return False return True def verify_sudoku(puzzle): """ Takes a solved version of the puzzle board as parameter Verify if the solution is valid Returns "Solved!" if the puzzle has been solved Returns "Not Solved, Try Again!" if otherwise """ # Step 1: Check the rows first # If we find a duplicate number in a row, then the puzzle is not solved for row in range(9): row_cur = puzzle[row] for col in range(9): # check if the same number has appeared twice in the same row if row_cur.count(puzzle[row][col]) > 1: return "Not Solved, Try Again!" # Step 2: Check the columns # If we find a duplicate number in a column, then the puzzle is not solved for col in range(9): col_cur = [puzzle[i][col] for i in range(9)] for row in range(9): if col_cur.count(puzzle[row][col]) > 1: return "Not Solved, Try Again!" # Step 3: Check all of the 3 x 3 squares (9 in total) # If we find a duplicate number in a square, then the puzzle is not solved square1 = [puzzle[row][col] for row in range(0, 3) for col in range(0, 3)] square2 = [puzzle[row][col] for row in range(0, 3) for col in range(3, 6)] square3 = [puzzle[row][col] for row in range(0, 3) for col in range(6, 9)] square4 = [puzzle[row][col] for row in range(3, 6) for col in range(0, 3)] square5 = [puzzle[row][col] for row in range(3, 6) for col in range(3, 6)] square6 = [puzzle[row][col] for row in range(3, 6) for col in range(6, 9)] square7 = [puzzle[row][col] for row in range(6, 9) for col in range(0, 3)] square8 = [puzzle[row][col] for row in range(6, 9) for col in range(3, 6)] square9 = [puzzle[row][col] for row in range(6, 9) for col in range(6, 9)] squares = [square1, square2, square3, square4, square5, square6, square7, square8, square9] for s in squares: if check_square(s) is False: return "Not Solved, Try Again!" # Step 4: if we make it here, that means the puzzle has passed all checks return "Solved!" # Bonus A: Sudoku Solver # Code adapted from this Youtube video tutorial: # https://www.youtube.com/watch?v=tvP_FZ-D9Ng def find_next_empty(puzzle): """ Takes a puzzle as parameter Finds the next row, col on the puzzle that's not filled yet (with a value of -1) Returns (row, col) tuple or (None, None) if there is none """ for row in range(9): for col in range(9): if puzzle[row][col] == -1: return row, col return None, None # if no spaces in the puzzle are empty (-1) def valid_guess(puzzle, guess, row, col): """ Takes puzzle, guess, row, col as parameters Figures out whether the guess at the row/col of the puzzle is a valid guess Returns True if it is valid, False otherwise """ # check the row first row_vals = puzzle[row] if guess in row_vals: return False # check the column col_vals = [puzzle[i][col] for i in range(9)] if guess in col_vals: return False # check the 3x3 grid row_start = (row // 3) * 3 col_start = (col // 3) * 3 for row in range(row_start, row_start + 3): for col in range(col_start, col_start + 3): if puzzle[row][col] == guess: return False # if we get here, these checks pass return True def sudoku_solver(puzzle): """ Takes a puzzle board as parameter Return one solution to that puzzle if any """ # step 1: choose somewhere on the puzzle to make a guess row, col = find_next_empty(puzzle) # step 2: if no space is available, # since we have checked all of the inputs, # then the puzzle is solved if row is None: return True # step 3: if there is a place to place a number, then put a guess between 1 and 9 for guess in range(1, 10): if valid_guess(puzzle, guess, row, col): # if this is valid, then place that guess on the puzzle puzzle[row][col] = guess # step 4: recursively call our function until the puzzle is solved if sudoku_solver(puzzle): solution = puzzle # the current puzzle is one solution return solution # step 5: if the guess was valid OR if our guess does not solve the puzzle # backtrack and try a new number puzzle[row][col] = -1 # reset the guess # step 6: if none of the numbers that we try work, then this puzzle is UNSOLVABLE return False if __name__ == '__main__': puzzle1 = [ [-1, -1, -1, -1, 7, -1, 9, 2, 6], [-1, -1, 6, -1, 4, -1, 8, 5, -1], [-1, -1, -1, -1, -1, 6, -1, 7, -1], [ 8, -1, -1, -1, 1, -1, -1, -1, -1], [-1, -1, 3, 4, -1, 7, 5, -1, -1], [-1, 2, 4, -1, -1, -1, 1, 9, -1], [-1, 1, -1, 5, -1, -1, -1, -1, 4], [-1, 4, 9, -1, -1, 2, 6, 8, -1], [-1, 5, -1, -1, -1, -1, -1, 1, -1] ] print("\n>>>>>>>>> Welcome to Sudoku! <<<<<<<<<\n") print("- Press 1: Start a new game (Medium Difficulty) ") print("- Press 2: Test an easy puzzle ") print("- Press 3: Use our Sudoku Solver to automatically solve the puzzle ") print("- Press Any Other Key: exit game ") ans = input("\nPlease choose an option: ") if ans == '1': print_board(puzzle1) sudoku(puzzle1) if ans == '2': sudoku_solver(puzzle1) puzzle2 = puzzle1 puzzle2[0][0] = -1 print_board(puzzle2) sudoku(puzzle2) if ans == '3': print("Puzzle 1: ") print_board(puzzle1) solve = input("Press any key to auto-solve: ") sudoku_solver(puzzle1) print("\nPuzzle 1 Solution: ") print_board(puzzle1) verify = input("Press any key to verify the solution: ") print(verify_sudoku(puzzle1)) else: print("See you next time!")
friend_ages = {"Rolf": 25, "Anne": 37, "Charlie": 31, "Bob": 22} for name in friend_ages: print(name) for age in friend_ages.values(): print(age) for name, age in friend_ages.items(): print(f"{name} is {age} years old.")
__author__ = "Matthew Wardrop" __author_email__ = "[email protected]" __version__ = "1.2.3" __dependencies__ = []
# -*- coding: utf-8 -*- """Top-level package for svmplus.""" __author__ = """Niharika Gauraha""" __email__ = '[email protected]' __version__ = '1.0.0' __all__ = ['svmplus']
""" https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/ Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i]. Return the answer in an array. Example 1: Input: nums = [8,1,2,2,3] Output: [4,0,1,1,3] Explanation: For nums[0]=8 there exist four smaller numbers than it (1, 2, 2 and 3). For nums[1]=1 does not exist any smaller number than it. For nums[2]=2 there exist one smaller number than it (1). For nums[3]=2 there exist one smaller number than it (1). For nums[4]=3 there exist three smaller numbers than it (1, 2 and 2). Example 2: Input: nums = [6,5,4,8] Output: [2,1,0,3] Example 3: Input: nums = [7,7,7,7] Output: [0,0,0,0] Constraints: 2 <= nums.length <= 500 0 <= nums[i] <= 100 """ # time complexity: O(n), space complexity: O(m), where n is the length of nums, m is the largest number in nums class Solution: def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]: freq = [0] * 101 for num in nums: freq[num] += 1 count = [0] * 101 for i in range(1, len(freq)): count[i] = count[i-1] + freq[i-1] return list(count[num] for num in nums)
# Average the numbers from 1 to n n = int(input("Enter number:")) avg = 0 for i in range(n + 1): avg += i avg = avg/n print(avg)
# import math # from fractions import * # from exceptions import * # from point import * # from line import * # from ellipse import * # from polygon import * # from hyperbola import * # from triangle import * # from rectangle import * # from graph import * # from delaunay import * class Segment: def __init__(self, p, q): self.p = p self.q = q @classmethod def findIntersection(cls, segment): return None
# -*- coding:utf-8 -*- PROXY_RAW_KEY = "proxy_raw" PROXY_VALID_KEY = "proxy_valid"
""" Faça um programa que calcule a diferença entre a soma dos quadrados dos primeiros 100 números naturais e o quadrado da soma. Ex: A soma dos quadrados dos dez primeiros números naturais é, 1² + 2² + ... + 10² = 385 O quadrado da soma dos dez primeiros números naturais é, (1 + 2 + ... + 10)² = 55² = 3025 A diferença entre a soma dos quadrados dos dez primeiros números naturais e o quadrado da soma é 3025 - 385 = 2640 """ n1 = 0 cont = 0 cont2 = 0 while n1 <= 100: cont += n1 cont2 += n1 ** 2 n1 += 1 cont = cont ** 2 print(f'A diferença entre a soma dos quadrados dos dez primeiros números naturais e o quadrado da soma é {cont} - ' f'{cont2} = {cont - cont2}')
print("gabizinha", "lima", "teste") # por padrão o espaço é adicionado print("abcde", "aaaaaaaa", sep="-") print("Joao e Maria", "teste", sep="####", end="######")
# # PySNMP MIB module ALVARION-BANDWIDTH-CONTROL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALVARION-BANDWIDTH-CONTROL-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:06:10 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) # alvarionMgmtV2, = mibBuilder.importSymbols("ALVARION-SMI", "alvarionMgmtV2") AlvarionPriorityQueue, = mibBuilder.importSymbols("ALVARION-TC", "AlvarionPriorityQueue") OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") Integer32, Unsigned32, MibIdentifier, Counter32, ModuleIdentity, TimeTicks, Counter64, IpAddress, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Bits, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Unsigned32", "MibIdentifier", "Counter32", "ModuleIdentity", "TimeTicks", "Counter64", "IpAddress", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Bits", "ObjectIdentity") TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TruthValue") alvarionBandwidthControlMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14)) if mibBuilder.loadTexts: alvarionBandwidthControlMIB.setLastUpdated('200710310000Z') if mibBuilder.loadTexts: alvarionBandwidthControlMIB.setOrganization('Alvarion Ltd.') alvarionBandwidthControlMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1)) coBandwidthControlConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1)) coBandwidthControlEnable = MibScalar((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: coBandwidthControlEnable.setStatus('current') coBandwidthControlMaxTransmitRate = MibScalar((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coBandwidthControlMaxTransmitRate.setStatus('current') coBandwidthControlMaxReceiveRate = MibScalar((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coBandwidthControlMaxReceiveRate.setStatus('current') coBandwidthControlLevelTable = MibTable((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 4), ) if mibBuilder.loadTexts: coBandwidthControlLevelTable.setStatus('current') coBandwidthControlLevelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 4, 1), ).setIndexNames((0, "ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlLevelIndex")) if mibBuilder.loadTexts: coBandwidthControlLevelEntry.setStatus('current') coBandwidthControlLevelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 4, 1, 1), AlvarionPriorityQueue()) if mibBuilder.loadTexts: coBandwidthControlLevelIndex.setStatus('current') coBandwidthControlLevelMinTransmitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: coBandwidthControlLevelMinTransmitRate.setStatus('current') coBandwidthControlLevelMaxTransmitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: coBandwidthControlLevelMaxTransmitRate.setStatus('current') coBandwidthControlLevelMinReceiveRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: coBandwidthControlLevelMinReceiveRate.setStatus('current') coBandwidthControlLevelMaxReceiveRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 1, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: coBandwidthControlLevelMaxReceiveRate.setStatus('current') alvarionBandwidthControlMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 2)) alvarionBandwidthControlMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 2, 1)) alvarionBandwidthControlMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 2, 2)) alvarionBandwidthControlMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 2, 1, 1)).setObjects(("ALVARION-BANDWIDTH-CONTROL-MIB", "alvarionBandwidthControlMIBGroup"), ("ALVARION-BANDWIDTH-CONTROL-MIB", "alvarionBandwidthControlLevelMIBGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarionBandwidthControlMIBCompliance = alvarionBandwidthControlMIBCompliance.setStatus('current') alvarionBandwidthControlMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 2, 2, 1)).setObjects(("ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlEnable"), ("ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlMaxTransmitRate"), ("ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlMaxReceiveRate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarionBandwidthControlMIBGroup = alvarionBandwidthControlMIBGroup.setStatus('current') alvarionBandwidthControlLevelMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 14, 2, 2, 2)).setObjects(("ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlLevelMinTransmitRate"), ("ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlLevelMaxTransmitRate"), ("ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlLevelMinReceiveRate"), ("ALVARION-BANDWIDTH-CONTROL-MIB", "coBandwidthControlLevelMaxReceiveRate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alvarionBandwidthControlLevelMIBGroup = alvarionBandwidthControlLevelMIBGroup.setStatus('current') mibBuilder.exportSymbols("ALVARION-BANDWIDTH-CONTROL-MIB", coBandwidthControlLevelMaxReceiveRate=coBandwidthControlLevelMaxReceiveRate, coBandwidthControlLevelMinTransmitRate=coBandwidthControlLevelMinTransmitRate, coBandwidthControlLevelIndex=coBandwidthControlLevelIndex, alvarionBandwidthControlMIBCompliance=alvarionBandwidthControlMIBCompliance, alvarionBandwidthControlMIBObjects=alvarionBandwidthControlMIBObjects, coBandwidthControlLevelTable=coBandwidthControlLevelTable, alvarionBandwidthControlLevelMIBGroup=alvarionBandwidthControlLevelMIBGroup, alvarionBandwidthControlMIBConformance=alvarionBandwidthControlMIBConformance, alvarionBandwidthControlMIB=alvarionBandwidthControlMIB, coBandwidthControlLevelMinReceiveRate=coBandwidthControlLevelMinReceiveRate, alvarionBandwidthControlMIBCompliances=alvarionBandwidthControlMIBCompliances, coBandwidthControlMaxReceiveRate=coBandwidthControlMaxReceiveRate, PYSNMP_MODULE_ID=alvarionBandwidthControlMIB, coBandwidthControlMaxTransmitRate=coBandwidthControlMaxTransmitRate, alvarionBandwidthControlMIBGroups=alvarionBandwidthControlMIBGroups, coBandwidthControlLevelMaxTransmitRate=coBandwidthControlLevelMaxTransmitRate, coBandwidthControlEnable=coBandwidthControlEnable, coBandwidthControlConfig=coBandwidthControlConfig, coBandwidthControlLevelEntry=coBandwidthControlLevelEntry, alvarionBandwidthControlMIBGroup=alvarionBandwidthControlMIBGroup)
"""" + adição - subtração * multiplicação / divisão // divisão inteira ** potenciação % resto da divisão () alterar precedência """ print('Multiplicação * ', 10 * 10) print('Adição + ', 10 + 10) print('Subtração - ', 10 - 10) print('Divisão / ', 10 / 10) print('Divisão Inteira //', 10.5 / 10) print('Potenciação ** ', 10 ** 10) print('resto da divisão / ', 10 % 10) print('alterar precedência / ', (2+10) * 10)
# response topics from CTP class RspTopics(object): OnRspAuthenticate = "OnRspAuthenticate" OnRspUserLogin = "OnRspUserLogin" OnRspUserLogout = "OnRspUserLogout" OnRspUserPasswordUpdate = "OnRspUserPasswordUpdate" OnRspTradingAccountPasswordUpdate = "OnRspTradingAccountPasswordUpdate" OnRspUserAuthMethod = "OnRspUserAuthMethod" OnRspGenUserCaptcha = "OnRspGenUserCaptcha" OnRspGenUserText = "OnRspGenUserText" OnRspOrderInsert = "OnRspOrderInsert" OnRspParkedOrderInsert = "OnRspParkedOrderInsert" OnRspParkedOrderAction = "OnRspParkedOrderAction" OnRspOrderAction = "OnRspOrderAction" OnRspQueryMaxOrderVolume = "OnRspQueryMaxOrderVolume" OnRspSettlementInfoConfirm = "OnRspSettlementInfoConfirm" OnRspRemoveParkedOrder = "OnRspRemoveParkedOrder" OnRspRemoveParkedOrderAction = "OnRspRemoveParkedOrderAction" OnRspExecOrderInsert = "OnRspExecOrderInsert" OnRspExecOrderAction = "OnRspExecOrderAction" OnRspForQuoteInsert = "OnRspForQuoteInsert" OnRspQuoteInsert = "OnRspQuoteInsert" OnRspQuoteAction = "OnRspQuoteAction" OnRspBatchOrderAction = "OnRspBatchOrderAction" OnRspOptionSelfCloseInsert = "OnRspOptionSelfCloseInsert" OnRspOptionSelfCloseAction = "OnRspOptionSelfCloseAction" OnRspCombActionInsert = "OnRspCombActionInsert" OnRspQryOrder = "OnRspQryOrder" OnRspQryTrade = "OnRspQryTrade" OnRspQryInvestorPosition = "OnRspQryInvestorPosition" OnRspQryTradingAccount = "OnRspQryTradingAccount" OnRspQryInvestor = "OnRspQryInvestor" OnRspQryTradingCode = "OnRspQryTradingCode" OnRspQryInstrumentMarginRate = "OnRspQryInstrumentMarginRate" OnRspQryInstrumentCommissionRate = "OnRspQryInstrumentCommissionRate" OnRspQryExchange = "OnRspQryExchange" OnRspQryProduct = "OnRspQryProduct" OnRspQryInstrument = "OnRspQryInstrument" OnRspQryDepthMarketData = "OnRspQryDepthMarketData" OnRspQrySettlementInfo = "OnRspQrySettlementInfo" OnRspQryTransferBank = "OnRspQryTransferBank" OnRspQryInvestorPositionDetail = "OnRspQryInvestorPositionDetail" OnRspQryNotice = "OnRspQryNotice" OnRspQrySettlementInfoConfirm = "OnRspQrySettlementInfoConfirm" OnRspQryInvestorPositionCombineDetail = "OnRspQryInvestorPositionCombineDetail" OnRspQryCFMMCTradingAccountKey = "OnRspQryCFMMCTradingAccountKey" OnRspQryEWarrantOffset = "OnRspQryEWarrantOffset" OnRspQryInvestorProductGroupMargin = "OnRspQryInvestorProductGroupMargin" OnRspQryExchangeMarginRate = "OnRspQryExchangeMarginRate" OnRspQryExchangeMarginRateAdjust = "OnRspQryExchangeMarginRateAdjust" OnRspQryExchangeRate = "OnRspQryExchangeRate" OnRspQrySecAgentACIDMap = "OnRspQrySecAgentACIDMap" OnRspQryProductExchRate = "OnRspQryProductExchRate" OnRspQryProductGroup = "OnRspQryProductGroup" OnRspQryMMInstrumentCommissionRate = "OnRspQryMMInstrumentCommissionRate" OnRspQryMMOptionInstrCommRate = "OnRspQryMMOptionInstrCommRate" OnRspQryInstrumentOrderCommRate = "OnRspQryInstrumentOrderCommRate" OnRspQrySecAgentTradingAccount = "OnRspQrySecAgentTradingAccount" OnRspQrySecAgentCheckMode = "OnRspQrySecAgentCheckMode" OnRspQrySecAgentTradeInfo = "OnRspQrySecAgentTradeInfo" OnRspQryOptionInstrTradeCost = "OnRspQryOptionInstrTradeCost" OnRspQryOptionInstrCommRate = "OnRspQryOptionInstrCommRate" OnRspQryExecOrder = "OnRspQryExecOrder" OnRspQryForQuote = "OnRspQryForQuote" OnRspQryQuote = "OnRspQryQuote" OnRspQryOptionSelfClose = "OnRspQryOptionSelfClose" OnRspQryInvestUnit = "OnRspQryInvestUnit" OnRspQryCombInstrumentGuard = "OnRspQryCombInstrumentGuard" OnRspQryCombAction = "OnRspQryCombAction" OnRspQryTransferSerial = "OnRspQryTransferSerial" OnRspQryAccountregister = "OnRspQryAccountregister" OnRspQryContractBank = "OnRspQryContractBank" OnRspQryParkedOrder = "OnRspQryParkedOrder" OnRspQryParkedOrderAction = "OnRspQryParkedOrderAction" OnRspQryTradingNotice = "OnRspQryTradingNotice" OnRspQryBrokerTradingParams = "OnRspQryBrokerTradingParams" OnRspQryBrokerTradingAlgos = "OnRspQryBrokerTradingAlgos" OnRspQueryCFMMCTradingAccountToken = "OnRspQueryCFMMCTradingAccountToken" OnRspFromBankToFutureByFuture = "OnRspFromBankToFutureByFuture" OnRspFromFutureToBankByFuture = "OnRspFromFutureToBankByFuture" OnRspQueryBankAccountMoneyByFuture = "OnRspQueryBankAccountMoneyByFuture" # rtn topics from CTP class RtnTopics(object): OnRtnOrder = "OnRtnOrder" OnRtnTrade = "OnRtnTrade" OnRtnInstrumentStatus = "OnRtnInstrumentStatus" OnRtnBulletin = "OnRtnBulletin" OnRtnTradingNotice = "OnRtnTradingNotice" OnRtnErrorConditionalOrder = "OnRtnErrorConditionalOrder" OnRtnExecOrder = "OnRtnExecOrder" OnRtnQuote = "OnRtnQuote" OnRtnForQuoteRsp = "OnRtnForQuoteRsp" OnRtnCFMMCTradingAccountToken = "OnRtnCFMMCTradingAccountToken" OnRtnOptionSelfClose = "OnRtnOptionSelfClose" OnRtnCombAction = "OnRtnCombAction" OnRtnFromBankToFutureByBank = "OnRtnFromBankToFutureByBank" OnRtnFromFutureToBankByBank = "OnRtnFromFutureToBankByBank" OnRtnRepealFromBankToFutureByBank = "OnRtnRepealFromBankToFutureByBank" OnRtnRepealFromFutureToBankByBank = "OnRtnRepealFromFutureToBankByBank" OnRtnFromBankToFutureByFuture = "OnRtnFromBankToFutureByFuture" OnRtnFromFutureToBankByFuture = "OnRtnFromFutureToBankByFuture" OnRtnRepealFromBankToFutureByFutureManual = \ "OnRtnRepealFromBankToFutureByFutureManual" OnRtnRepealFromFutureToBankByFutureManual = \ "OnRtnRepealFromFutureToBankByFutureManual" OnRtnQueryBankBalanceByFuture = "OnRtnQueryBankBalanceByFuture" OnRtnRepealFromBankToFutureByFuture = \ "OnRtnRepealFromBankToFutureByFuture" OnRtnRepealFromFutureToBankByFuture = \ "OnRtnRepealFromFutureToBankByFuture" OnRtnOpenAccountByBank = "OnRtnOpenAccountByBank" OnRtnCancelAccountByBank = "OnRtnCancelAccountByBank" OnRtnChangeAccountByBank = "OnRtnChangeAccountByBank" # err rtn topics from CTP class ErrRtnTopics(object): OnErrRtnOrderInsert = "OnErrRtnOrderInsert" OnErrRtnOrderAction = "OnErrRtnOrderAction" OnErrRtnExecOrderInsert = "OnErrRtnExecOrderInsert" OnErrRtnExecOrderAction = "OnErrRtnExecOrderAction" OnErrRtnForQuoteInsert = "OnErrRtnForQuoteInsert" OnErrRtnQuoteInsert = "OnErrRtnQuoteInsert" OnErrRtnQuoteAction = "OnErrRtnQuoteAction" OnErrRtnBatchOrderAction = "OnErrRtnBatchOrderAction" OnErrRtnOptionSelfCloseInsert = "OnErrRtnOptionSelfCloseInsert" OnErrRtnOptionSelfCloseAction = "OnErrRtnOptionSelfCloseAction" OnErrRtnCombActionInsert = "OnErrRtnCombActionInsert" OnErrRtnBankToFutureByFuture = "OnErrRtnBankToFutureByFuture" OnErrRtnFutureToBankByFuture = "OnErrRtnFutureToBankByFuture" OnErrRtnRepealBankToFutureByFutureManual = \ "OnErrRtnRepealBankToFutureByFutureManual" OnErrRtnRepealFutureToBankByFutureManual = \ "OnErrRtnRepealFutureToBankByFutureManual" OnErrRtnQueryBankBalanceByFuture = "OnErrRtnQueryBankBalanceByFuture" # the following are CTP structs related to trade status class OrderPriceType(object): # TFtdcOrderPriceTypeType是一个报单价格条件类型 # 任意价 THOST_FTDC_OPT_AnyPrice = '1' # 限价 THOST_FTDC_OPT_LimitPrice = '2' # 最优价 THOST_FTDC_OPT_BestPrice = '3' # 最新价 THOST_FTDC_OPT_LastPrice = '4' # 最新价浮动上浮1个ticks THOST_FTDC_OPT_LastPricePlusOneTicks = '5' # 最新价浮动上浮2个ticks THOST_FTDC_OPT_LastPricePlusTwoTicks = '6' # 最新价浮动上浮3个ticks THOST_FTDC_OPT_LastPricePlusThreeTicks = '7' # 卖一价 THOST_FTDC_OPT_AskPrice1 = '8' # 卖一价浮动上浮1个ticks THOST_FTDC_OPT_AskPrice1PlusOneTicks = '9' # 卖一价浮动上浮2个ticks THOST_FTDC_OPT_AskPrice1PlusTwoTicks = 'A' # 卖一价浮动上浮3个ticks THOST_FTDC_OPT_AskPrice1PlusThreeTicks = 'B' # 买一价 THOST_FTDC_OPT_BidPrice1 = 'C' # 买一价浮动上浮1个ticks THOST_FTDC_OPT_BidPrice1PlusOneTicks = 'D' # 买一价浮动上浮2个ticks THOST_FTDC_OPT_BidPrice1PlusTwoTicks = 'E' # 买一价浮动上浮3个ticks THOST_FTDC_OPT_BidPrice1PlusThreeTicks = 'F' # 五档价 THOST_FTDC_OPT_FiveLevelPrice = 'G' class Direction(object): # TFtdcDirectionType是一个买卖方向类型 # 买 THOST_FTDC_D_Buy = '0' # 卖 THOST_FTDC_D_Sell = '1' class CombOffsetFlag(object): # TFtdcOffsetFlagType是一个开平标志类型 # 开仓 THOST_FTDC_OF_Open = '0' # 平仓 THOST_FTDC_OF_Close = '1' # 强平 THOST_FTDC_OF_ForceClose = '2' # 平今 THOST_FTDC_OF_CloseToday = '3' # 平昨 THOST_FTDC_OF_CloseYesterday = '4' # 强减 THOST_FTDC_OF_ForceOff = '5' # 本地强平 THOST_FTDC_OF_LocalForceClose = '6' class CombHedgeFlag(object): # TFtdcHedgeFlagType是一个投机套保标志类型 # 投机 THOST_FTDC_HF_Speculation = '1' # 套利 THOST_FTDC_HF_Arbitrage = '2' # 套保 THOST_FTDC_HF_Hedge = '3' # 做市商 THOST_FTDC_HF_MarketMaker = '5' # 第一腿投机第二腿套保 # 大商所专用 THOST_FTDC_HF_SpecHedge = '6' # 第一腿套保第二腿投机 # 大商所专用 THOST_FTDC_HF_HedgeSpec = '7' class TimeCondition(object): # TFtdcTimeConditionType是一个有效期类型类型 # 立即完成,否则撤销 THOST_FTDC_TC_IOC = '1' # 本节有效 THOST_FTDC_TC_GFS = '2' # 当日有效 THOST_FTDC_TC_GFD = '3' # 指定日期前有效 THOST_FTDC_TC_GTD = '4' # 撤销前有效 THOST_FTDC_TC_GTC = '5' # 集合竞价有效 THOST_FTDC_TC_GFA = '6' class VolumeCondition(object): # TFtdcVolumeConditionType是一个成交量类型类型 # 任何数量 THOST_FTDC_VC_AV = '1' # 最小数量 THOST_FTDC_VC_MV = '2' # 全部数量 THOST_FTDC_VC_CV = '3' class ContingentCondition(object): # TFtdcContingentConditionType是一个触发条件类型 # 立即 THOST_FTDC_CC_Immediately = '1' # 止损 THOST_FTDC_CC_Touch = '2' # 止赢 THOST_FTDC_CC_TouchProfit = '3' # 预埋单 THOST_FTDC_CC_ParkedOrder = '4' # 最新价大于条件价 THOST_FTDC_CC_LastPriceGreaterThanStopPrice = '5' # 最新价大于等于条件价 THOST_FTDC_CC_LastPriceGreaterEqualStopPrice = '6' # 最新价小于条件价 THOST_FTDC_CC_LastPriceLesserThanStopPrice = '7' # 最新价小于等于条件价 THOST_FTDC_CC_LastPriceLesserEqualStopPrice = '8' # 卖一价大于条件价 THOST_FTDC_CC_AskPriceGreaterThanStopPrice = '9' # 卖一价大于等于条件价 THOST_FTDC_CC_AskPriceGreaterEqualStopPrice = 'A' # 卖一价小于条件价 THOST_FTDC_CC_AskPriceLesserThanStopPrice = 'B' # 卖一价小于等于条件价 THOST_FTDC_CC_AskPriceLesserEqualStopPrice = 'C' # 买一价大于条件价 THOST_FTDC_CC_BidPriceGreaterThanStopPrice = 'D' # 买一价大于等于条件价 THOST_FTDC_CC_BidPriceGreaterEqualStopPrice = 'E' # 买一价小于条件价 THOST_FTDC_CC_BidPriceLesserThanStopPrice = 'F' # 买一价小于等于条件价 THOST_FTDC_CC_BidPriceLesserEqualStopPrice = 'H' class ForceCloseReason(object): # TFtdcForceCloseReasonType是一个强平原因类型 # 非强平 THOST_FTDC_FCC_NotForceClose = '0' # 资金不足 THOST_FTDC_FCC_LackDeposit = '1' # 客户超仓 THOST_FTDC_FCC_ClientOverPositionLimit = '2' # 会员超仓 THOST_FTDC_FCC_MemberOverPositionLimit = '3' # 持仓非整数倍 THOST_FTDC_FCC_NotMultiple = '4' # 违规 THOST_FTDC_FCC_Violation = '5' # 其它 THOST_FTDC_FCC_Other = '6' # 自然人临近交割 THOST_FTDC_FCC_PersonDeliv = '7' class UserForceClose(object): YES = '1' NO = '0' class IsAutoSuspend(object): YES = '1' NO = '0' class OrderStatus(object): # TFtdcOrderStatusType是一个报单状态类型 # 全部成交 THOST_FTDC_OST_AllTraded = '0' # 部分成交还在队列中 THOST_FTDC_OST_PartTradedQueueing = '1' # 部分成交不在队列中 THOST_FTDC_OST_PartTradedNotQueueing = '2' # 未成交还在队列中 THOST_FTDC_OST_NoTradeQueueing = '3' # 未成交不在队列中 THOST_FTDC_OST_NoTradeNotQueueing = '4' # 撤单 THOST_FTDC_OST_Canceled = '5' # 未知 THOST_FTDC_OST_Unknown = 'a' # 尚未触发 THOST_FTDC_OST_NotTouched = 'b' # 已触发 THOST_FTDC_OST_Touched = 'c' class OrderSubmitStatus(object): # TFtdcOrderSubmitStatusType是一个报单提交状态类型 # 已经提交 THOST_FTDC_OSS_InsertSubmitted = '0' # 撤单已经提交 THOST_FTDC_OSS_CancelSubmitted = '1' # 修改已经提交 THOST_FTDC_OSS_ModifySubmitted = '2' # 已经接受 THOST_FTDC_OSS_Accepted = '3' # 报单已经被拒绝 THOST_FTDC_OSS_InsertRejected = '4' # 撤单已经被拒绝 THOST_FTDC_OSS_CancelRejected = '5' # 改单已经被拒绝 THOST_FTDC_OSS_ModifyRejected = '6'
class Bat: species = 'Baty' def __init__(self, can_fly=True): self.fly = can_fly def say(self, msg): msg = ".." return msg def sonar(self): return "))..((" if __name__ == '__main__': b = Bat() b.say('w') b.sonar
l, r = map(int, input().split()) while(l != 0 and r != 0): print(l + r) l, r = map(int, input().split())
# -*- coding: utf-8 -*- igrok1 = 0 igrok2 = 0 win = 0 draw = 0 lose = 0 list_choises = ['Камень', 'Ножницы', 'Бумага'] def verify(igrok, num): igrok = int(input()) while 1 < igrok > 3: print("Введен некорректный номер") print("(Камень - 1, Ножницы - 2, Бумага - 3) Игрок %s, введите ваш номер:" % num) igrok = int(input()) if igrok == 1: print('Игрок %s выбрал %s' % (num, list_choises[1 - igrok])) elif igrok == 2: print('Игрок %s выбрал %s' % (num, list_choises[1 - igrok])) else: print('Игрок %s выбрал %s' % (num, list_choises[1 - igrok])) return list_choises[1 - igrok] print("(Камень - 1, Ножницы - 2, Бумага - 3) Игрок 1, введите ваш номер:") igrok1 = verify(igrok1, 1) igrok2 = verify(igrok2, 2)
expected_output = { "slot": { "lc": { "1": { "16x400G Ethernet Module": { "hardware": "3.1", "mac_address": "bc-4a-56-ff-fa-5b to bc-4a-56-ff-fb-dd", "model": "N9K-X9716D-GX", "online_diag_status": "Pass", "ports": "16", "serial_number": "FOC24322RBW", "slot": "1", "slot/world_wide_name": "LC1", "software": "10.1(0.233)", "status": "ok" } }, "2": { "36x40/100G Ethernet Module": { "hardware": "1.1", "mac_address": "90-77-ee-ff-2d-b0 to 90-77-ee-ff-2e-43", "model": "N9K-X9736C-FX", "online_diag_status": "Pass", "ports": "36", "serial_number": "FOC24294DJ8", "slot": "2", "slot/world_wide_name": "LC2", "software": "10.1(0.233)", "status": "ok" } }, "22": { "8-slot (100G) Fabric Module": { "hardware": "1.1", "mac_address": "NA", "model": "N9K-C9508-FM-E2", "online_diag_status": "Pass", "ports": "0", "serial_number": "FOC24381TPG", "slot": "22", "slot/world_wide_name": "FM2", "software": "10.1(0.233)", "status": "ok" } }, "24": { "8-slot (100G) Fabric Module": { "hardware": "1.1", "mac_address": "NA", "model": "N9K-C9508-FM-E2", "online_diag_status": "Pass", "ports": "0", "serial_number": "FOC24381TX1", "slot": "24", "slot/world_wide_name": "FM4", "software": "10.1(0.233)", "status": "ok" } }, "26": { "8-slot (100G) Fabric Module": { "hardware": "1.1", "mac_address": "NA", "model": "N9K-C9508-FM-E2", "online_diag_status": "Pass", "ports": "0", "serial_number": "FOC24381TUV", "slot": "26", "slot/world_wide_name": "FM6", "software": "10.1(0.233)", "status": "ok" } }, "29": { "System Controller": { "hardware": "2.0", "mac_address": "NA", "model": "N9K-SC-A", "online_diag_status": "Pass", "ports": "0", "serial_number": "FOC24362EU0", "slot": "29", "slot/world_wide_name": "SC1", "software": "10.1(0.233)", "status": "active" } }, "30": { "System Controller": { "hardware": "2.0", "mac_address": "NA", "model": "N9K-SC-A", "online_diag_status": "Pass", "ports": "0", "serial_number": "FOC2435407P", "slot": "30", "slot/world_wide_name": "SC2", "software": "10.1(0.233)", "status": "standby" } }, "5": { "36x40G Ethernet": { "model": "Module", "ports": "36", "slot": "5", "status": "pwr-denied" } }, "6": { "48x10/25G + 4x40/100G Ethernet Module": { "hardware": "2.3", "mac_address": "24-16-9d-ff-9a-09 to 24-16-9d-ff-9a-4c", "model": "N9K-X97160YC-EX", "online_diag_status": "Pass", "ports": "52", "serial_number": "FOC24021CNU", "slot": "6", "slot/world_wide_name": "LC6", "software": "10.1(0.233)", "status": "ok" } }, "7": { "48x10G + 4x40/100G Ethernet": { "model": "Module", "ports": "52", "slot": "7", "status": "pwr-denied" } } }, "rp": { "27": { "Supervisor Module": { "hardware": "1.1", "mac_address": "54-88-de-ff-09-2f to 54-88-de-ff-09-40", "model": "N9K-SUP-A+", "online_diag_status": "Pass", "ports": "0", "serial_number": "FOC24362EGB", "slot": "27", "slot/world_wide_name": "SUP1", "software": "10.1(0.233)", "status": "active" } } } } }
# # PySNMP MIB module SNIA-SML-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SNIA-SML-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:08:07 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, TimeTicks, ModuleIdentity, Integer32, IpAddress, Counter32, Bits, Counter64, enterprises, NotificationType, ObjectIdentity, MibIdentifier, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "TimeTicks", "ModuleIdentity", "Integer32", "IpAddress", "Counter32", "Bits", "Counter64", "enterprises", "NotificationType", "ObjectIdentity", "MibIdentifier", "Gauge32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class UShortReal(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 65535) class CimDateTime(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(24, 24) fixedLength = 24 class UINT64(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class UINT32(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647) class UINT16(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 65535) snia = MibIdentifier((1, 3, 6, 1, 4, 1, 14851)) experimental = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 1)) common = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 2)) libraries = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3)) smlRoot = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1)) smlMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: smlMibVersion.setStatus('mandatory') if mibBuilder.loadTexts: smlMibVersion.setDescription('This string contains version information for the MIB file') smlCimVersion = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: smlCimVersion.setStatus('mandatory') if mibBuilder.loadTexts: smlCimVersion.setDescription('This string contains information about the CIM version that corresponds to the MIB. The decriptions in this MIB file are based on CIM version 2.8') productGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3)) product_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: product_Name.setStatus('mandatory') if mibBuilder.loadTexts: product_Name.setDescription('Commonly used Product name.') product_IdentifyingNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-IdentifyingNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: product_IdentifyingNumber.setStatus('mandatory') if mibBuilder.loadTexts: product_IdentifyingNumber.setDescription('Product identification such as a serial number on software, a die number on a hardware chip, or (for non-commercial Products) a project number.') product_Vendor = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-Vendor").setMaxAccess("readonly") if mibBuilder.loadTexts: product_Vendor.setStatus('mandatory') if mibBuilder.loadTexts: product_Vendor.setDescription("The name of the Product's supplier, or entity selling the Product (the manufacturer, reseller, OEM, etc.). Corresponds to the Vendor property in the Product object in the DMTF Solution Exchange Standard.") product_Version = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-Version").setMaxAccess("readonly") if mibBuilder.loadTexts: product_Version.setStatus('mandatory') if mibBuilder.loadTexts: product_Version.setDescription('Product version information. Corresponds to the Version property in the Product object in the DMTF Solution Exchange Standard.') product_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: product_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: product_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") chassisGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4)) chassis_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("chassis-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_Manufacturer.setStatus('mandatory') if mibBuilder.loadTexts: chassis_Manufacturer.setDescription('The name of the organization responsible for producing the PhysicalElement. This may be the entity from whom the Element is purchased, but this is not necessarily true. The latter information is contained in the Vendor property of CIM_Product.') chassis_Model = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("chassis-Model").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_Model.setStatus('mandatory') if mibBuilder.loadTexts: chassis_Model.setDescription('The name by which the PhysicalElement is generally known.') chassis_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("chassis-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_SerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: chassis_SerialNumber.setDescription('A manufacturer-allocated number used to identify the Physical Element.') chassis_LockPresent = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("chassis-LockPresent").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_LockPresent.setStatus('mandatory') if mibBuilder.loadTexts: chassis_LockPresent.setDescription('Boolean indicating whether the Frame is protected with a lock.') chassis_SecurityBreach = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("noBreach", 3), ("breachAttempted", 4), ("breachSuccessful", 5)))).setLabel("chassis-SecurityBreach").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_SecurityBreach.setStatus('mandatory') if mibBuilder.loadTexts: chassis_SecurityBreach.setDescription("SecurityBreach is an enumerated, integer-valued property indicating whether a physical breach of the Frame was attempted but unsuccessful (value=4) or attempted and successful (5). Also, the values, 'Unknown', 'Other' or 'No Breach', can be specified.") chassis_IsLocked = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("chassis-IsLocked").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_IsLocked.setStatus('mandatory') if mibBuilder.loadTexts: chassis_IsLocked.setDescription('Boolean indicating that the Frame is currently locked.') chassis_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("chassis-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_Tag.setStatus('mandatory') if mibBuilder.loadTexts: chassis_Tag.setDescription("An arbitrary string that uniquely identifies the Physical Element and serves as the Element's key. The Tag property can contain information such as asset tag or serial number data. The key for PhysicalElement is placed very high in the object hierarchy in order to independently identify the hardware/entity, regardless of physical placement in or on Cabinets, Adapters, etc. For example, a hotswappable or removeable component may be taken from its containing (scoping) Package and be temporarily unused. The object still continues to exist - and may even be inserted into a different scoping container. Therefore, the key for Physical Element is an arbitrary string and is defined independently of any placement or location-oriented hierarchy.") chassis_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("chassis-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: chassis_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") numberOfsubChassis = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfsubChassis.setStatus('mandatory') if mibBuilder.loadTexts: numberOfsubChassis.setDescription('This value specifies the number of sub Chassis that are present.') subChassisTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10), ) if mibBuilder.loadTexts: subChassisTable.setStatus('mandatory') if mibBuilder.loadTexts: subChassisTable.setDescription('The SubChassis class represents the physical frames in the library') subChassisEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1), ).setIndexNames((0, "SNIA-SML-MIB", "subChassisIndex")) if mibBuilder.loadTexts: subChassisEntry.setStatus('mandatory') if mibBuilder.loadTexts: subChassisEntry.setDescription('Each entry in the table contains information about a frame that is present in the library.') subChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: subChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: subChassisIndex.setDescription('The current index value for the subChassis.') subChassis_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("subChassis-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_Manufacturer.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_Manufacturer.setDescription('The name of the organization responsible for producing the PhysicalElement. This may be the entity from whom the Element is purchased, but this is not necessarily true. The latter information is contained in the Vendor property of CIM_Product.') subChassis_Model = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("subChassis-Model").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_Model.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_Model.setDescription('The name by which the PhysicalElement is generally known.') subChassis_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("subChassis-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_SerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_SerialNumber.setDescription('A manufacturer-allocated number used to identify the Physical Element.') subChassis_LockPresent = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("subChassis-LockPresent").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_LockPresent.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_LockPresent.setDescription('Boolean indicating whether the Frame is protected with a lock.') subChassis_SecurityBreach = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("noBreach", 3), ("breachAttempted", 4), ("breachSuccessful", 5)))).setLabel("subChassis-SecurityBreach").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_SecurityBreach.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_SecurityBreach.setDescription("SecurityBreach is an enumerated, integer-valued property indicating whether a physical breach of the Frame was attempted but unsuccessful (value=4) or attempted and successful (5). Also, the values, 'Unknown', 'Other' or 'No Breach', can be specified.") subChassis_IsLocked = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("subChassis-IsLocked").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_IsLocked.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_IsLocked.setDescription('Boolean indicating that the Frame is currently locked.') subChassis_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("subChassis-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_Tag.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_Tag.setDescription("An arbitrary string that uniquely identifies the Physical Element and serves as the Element's key. The Tag property can contain information such as asset tag or serial number data. The key for PhysicalElement is placed very high in the object hierarchy in order to independently identify the hardware/entity, regardless of physical placement in or on Cabinets, Adapters, etc. For example, a hotswappable or removeable component may be taken from its containing (scoping) Package and be temporarily unused. The object still continues to exist - and may even be inserted into a different scoping container. Therefore, the key for Physical Element is an arbitrary string and is defined independently of any placement or location-oriented hierarchy.") subChassis_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("subChassis-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") subChassis_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("subChassis-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_OperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_OperationalStatus.setDescription("Indicates the current status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element.") subChassis_PackageType = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 17, 18, 19, 32769))).clone(namedValues=NamedValues(("unknown", 0), ("mainSystemChassis", 17), ("expansionChassis", 18), ("subChassis", 19), ("serviceBay", 32769)))).setLabel("subChassis-PackageType").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_PackageType.setStatus('mandatory') if mibBuilder.loadTexts: subChassis_PackageType.setDescription('Package type of the subChassis. The enumeration values for this variable should be the same as the DMTF CIM_Chassis.ChassisPackageType property. Use the Vendor reserved values for vendor-specific types.') storageLibraryGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5)) storageLibrary_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageLibrary-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Name.setStatus('deprecated') if mibBuilder.loadTexts: storageLibrary_Name.setDescription('The inherited Name serves as key of a System instance in an enterprise environment.') storageLibrary_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageLibrary-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Description.setStatus('deprecated') if mibBuilder.loadTexts: storageLibrary_Description.setDescription('The Description property provides a textual description of the object.') storageLibrary_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("storageLibrary-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Caption.setStatus('deprecated') if mibBuilder.loadTexts: storageLibrary_Caption.setDescription('The Caption property is a short textual description (one- line string) of the object.') storageLibrary_Status = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setLabel("storageLibrary-Status").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Status.setStatus('deprecated') if mibBuilder.loadTexts: storageLibrary_Status.setDescription('A string indicating the current status of the object. Various operational and non-operational statuses are defined. This property is deprecated in lieu of OperationalStatus, which includes the same semantics in its enumeration. This change is made for three reasons: 1) Status is more correctly defined as an array property. This overcomes the limitation of describing status via a single value, when it is really a multi-valued property (for example, an element may be OK AND Stopped. 2) A MaxLen of 10 is too restrictive and leads to unclear enumerated values. And, 3) The change to a uint16 data type was discussed when CIM V2.0 was defined. However, existing V1.0 implementations used the string property and did not want to modify their code. Therefore, Status was grandfathered into the Schema. Use of the Deprecated qualifier allows the maintenance of the existing property, but also permits an improved definition using OperationalStatus.') storageLibrary_InstallDate = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 5), CimDateTime()).setLabel("storageLibrary-InstallDate").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_InstallDate.setStatus('deprecated') if mibBuilder.loadTexts: storageLibrary_InstallDate.setDescription('A datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.') mediaAccessDeviceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6)) numberOfMediaAccessDevices = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfMediaAccessDevices.setStatus('mandatory') if mibBuilder.loadTexts: numberOfMediaAccessDevices.setDescription('This value specifies the number of MediaAccessDevices that are present.') mediaAccessDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2), ) if mibBuilder.loadTexts: mediaAccessDeviceTable.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDeviceTable.setDescription('A MediaAccessDevice represents the ability to access one or more media and use this media to store and retrieve data.') mediaAccessDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "mediaAccessDeviceIndex")) if mibBuilder.loadTexts: mediaAccessDeviceEntry.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDeviceEntry.setDescription('Each entry in the table contains information about a MediaAccessDevice that is present in the library.') mediaAccessDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDeviceIndex.setDescription('The current index value for the MediaAccessDevice.') mediaAccessDeviceObjectType = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 0), ("wormDrive", 1), ("magnetoOpticalDrive", 2), ("tapeDrive", 3), ("dvdDrive", 4), ("cdromDrive", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDeviceObjectType.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDeviceObjectType.setDescription('In the 2.7 CIM Schema a Type property is no longer associated with MediaAccessDevice. However, it can be used here to specify the type of drive that is present.') mediaAccessDevice_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("mediaAccessDevice-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Name.setStatus('deprecated') if mibBuilder.loadTexts: mediaAccessDevice_Name.setDescription('Deprecated') mediaAccessDevice_Status = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setLabel("mediaAccessDevice-Status").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Status.setStatus('deprecated') if mibBuilder.loadTexts: mediaAccessDevice_Status.setDescription('A string indicating the current status of the object. Various operational and non-operational statuses are defined. This property is deprecated in lieu of OperationalStatus, which includes the same semantics in its enumeration. This change is made for three reasons: 1) Status is more correctly defined as an array property. This overcomes the limitation of describing status via a single value, when it is really a multi-valued property (for example, an element may be OK AND Stopped. 2) A MaxLen of 10 is too restrictive and leads to unclear enumerated values. And, 3) The change to a uint16 data type was discussed when CIM V2.0 was defined. However, existing V1.0 implementations used the string property and did not want to modify their code. Therefore, Status was grandfathered into the Schema. Use of the Deprecated qualifier allows the maintenance of the existing property, but also permits an improved definition using OperationalStatus.') mediaAccessDevice_Availability = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("runningFullPower", 3), ("warning", 4), ("inTest", 5), ("notApplicable", 6), ("powerOff", 7), ("offLine", 8), ("offDuty", 9), ("degraded", 10), ("notInstalled", 11), ("installError", 12), ("powerSaveUnknown", 13), ("powerSaveLowPowerMode", 14), ("powerSaveStandby", 15), ("powerCycle", 16), ("powerSaveWarning", 17), ("paused", 18), ("notReady", 19), ("notConfigured", 20), ("quiesced", 21)))).setLabel("mediaAccessDevice-Availability").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Availability.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_Availability.setDescription("Inherited from CIM_LogicalDevice The primary availability and status of the Device. (Additional status information can be specified using the Additional Availability array property.) For example, the Availability property indicates that the Device is running and has full power (value=3), or is in a warning (4), test (5), degraded (10) or power save state (values 13-15 and 17). Regarding the Power Save states, these are defined as follows: Value 13 (Power Save - Unknown) indicates that the Device is known to be in a power save mode, but its exact status in this mode is unknown; 14 (Power Save - Low Power Mode) indicates that the Device is in a power save state but still functioning, and may exhibit degraded performance; 15 (Power Save - Standby) describes that the Device is not functioning but could be brought to full power 'quickly'; and value 17 (Power Save - Warning) indicates that the Device is in a warning state, though also in a power save mode.") mediaAccessDevice_NeedsCleaning = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("mediaAccessDevice-NeedsCleaning").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_NeedsCleaning.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_NeedsCleaning.setDescription('Boolean indicating that the MediaAccessDevice needs cleaning. Whether manual or automatic cleaning is possible is indicated in the Capabilities array property. ') mediaAccessDevice_MountCount = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 7), UINT64()).setLabel("mediaAccessDevice-MountCount").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_MountCount.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_MountCount.setDescription('For a MediaAccessDevice that supports removable Media, the number of times that Media have been mounted for data transfer or to clean the Device. For Devices accessing nonremovable Media, such as hard disks, this property is not applicable and should be set to 0.') mediaAccessDevice_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("mediaAccessDevice-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_DeviceID.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_DeviceID.setDescription('An address or other identifying information to uniquely name the LogicalDevice.') mediaAccessDevice_PowerOnHours = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 9), UINT64()).setLabel("mediaAccessDevice-PowerOnHours").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_PowerOnHours.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_PowerOnHours.setDescription('The number of consecutive hours that this Device has been powered, since its last power cycle.') mediaAccessDevice_TotalPowerOnHours = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 10), UINT64()).setLabel("mediaAccessDevice-TotalPowerOnHours").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_TotalPowerOnHours.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_TotalPowerOnHours.setDescription('The total number of hours that this Device has been powered.') mediaAccessDevice_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("mediaAccessDevice-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_OperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_OperationalStatus.setDescription("Indicates the current status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element.") mediaAccessDevice_Realizes_StorageLocationIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 12), UINT32()).setLabel("mediaAccessDevice-Realizes-StorageLocationIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Realizes_StorageLocationIndex.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_Realizes_StorageLocationIndex.setDescription('The current index value for the storageMediaLocationIndex that this MediaAccessDevice is associated with. If no association exists an index of 0 may be returned.') mediaAccessDevice_Realizes_softwareElementIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 13), UINT32()).setLabel("mediaAccessDevice-Realizes-softwareElementIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Realizes_softwareElementIndex.setStatus('mandatory') if mibBuilder.loadTexts: mediaAccessDevice_Realizes_softwareElementIndex.setDescription('The current index value for the softwareElementIndex that this MediaAccessDevice is associated with. If no association exists an index of 0 may be returned.') physicalPackageGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8)) numberOfPhysicalPackages = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfPhysicalPackages.setStatus('mandatory') if mibBuilder.loadTexts: numberOfPhysicalPackages.setDescription('This value specifies the number of PhysicalPackages that are present.') physicalPackageTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2), ) if mibBuilder.loadTexts: physicalPackageTable.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackageTable.setDescription('The PhysicalPackage class represents PhysicalElements that contain or host other components. Examples are a Rack enclosure or an adapter Card. (also a tape magazine inside an auto-loader)') physicalPackageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "physicalPackageIndex")) if mibBuilder.loadTexts: physicalPackageEntry.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackageEntry.setDescription('Each entry in the table contains information about a PhysicalPackage that is present in the library.') physicalPackageIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackageIndex.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackageIndex.setDescription('The current index value for the PhysicalPackage.') physicalPackage_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("physicalPackage-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Manufacturer.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackage_Manufacturer.setDescription('The name of the organization responsible for producing the PhysicalElement. This may be the entity from whom the Element is purchased, but this is not necessarily true. The latter information is contained in the Vendor property of CIM_Product.') physicalPackage_Model = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("physicalPackage-Model").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Model.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackage_Model.setDescription('The name by which the PhysicalElement is generally known.') physicalPackage_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("physicalPackage-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_SerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackage_SerialNumber.setDescription('A manufacturer-allocated number used to identify the Physical Element.') physicalPackage_Realizes_MediaAccessDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 5), Integer32()).setLabel("physicalPackage-Realizes-MediaAccessDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Realizes_MediaAccessDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackage_Realizes_MediaAccessDeviceIndex.setDescription("The index value of the the MediaAccess device that is associated with this physical package.'") physicalPackage_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("physicalPackage-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Tag.setStatus('mandatory') if mibBuilder.loadTexts: physicalPackage_Tag.setDescription("An arbitrary string that uniquely identifies the Physical Element and serves as the Element's key. The Tag property can contain information such as asset tag or serial number data. The key for PhysicalElement is placed very high in the object hierarchy in order to independently identify the hardware/entity, regardless of physical placement in or on Cabinets, Adapters, etc. For example, a hotswappable or removeable component may be taken from its containing (scoping) Package and be temporarily unused. The object still continues to exist - and may even be inserted into a different scoping container. Therefore, the key for Physical Element is an arbitrary string and is defined independently of any placement or location-oriented hierarchy.") softwareElementGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9)) numberOfSoftwareElements = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfSoftwareElements.setStatus('mandatory') if mibBuilder.loadTexts: numberOfSoftwareElements.setDescription('This value specifies the number of SoftwareElements that are present.') softwareElementTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2), ) if mibBuilder.loadTexts: softwareElementTable.setStatus('mandatory') if mibBuilder.loadTexts: softwareElementTable.setDescription("The CIM_SoftwareElement class is used to decompose a CIM_SoftwareFeature object into a set of individually manageable or deployable parts for a particular platform. A software element's platform is uniquely identified by its underlying hardware architecture and operating system (for example Sun Solaris on Sun Sparc or Windows NT on Intel). As such, to understand the details of how the functionality of a particular software feature is provided on a particular platform, the CIM_SoftwareElement objects referenced by CIM_SoftwareFeatureSoftwareElement associations are organized in disjoint sets based on the TargetOperatingSystem property. A CIM_SoftwareElement object captures the management details of a part or component in one of four states characterized by the SoftwareElementState property. ") softwareElementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "softwareElementIndex")) if mibBuilder.loadTexts: softwareElementEntry.setStatus('mandatory') if mibBuilder.loadTexts: softwareElementEntry.setDescription('Each entry in the table contains information about a SoftwareElement that is present in the library.') softwareElementIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElementIndex.setStatus('mandatory') if mibBuilder.loadTexts: softwareElementIndex.setDescription('The current index value for the SoftwareElement.') softwareElement_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_Name.setStatus('deprecated') if mibBuilder.loadTexts: softwareElement_Name.setDescription('deprecated') softwareElement_Version = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-Version").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_Version.setStatus('mandatory') if mibBuilder.loadTexts: softwareElement_Version.setDescription('Version should be in the form .. or . ') softwareElement_SoftwareElementID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-SoftwareElementID").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_SoftwareElementID.setStatus('mandatory') if mibBuilder.loadTexts: softwareElement_SoftwareElementID.setDescription('SoftwareIdentity represents software, viewed as an asset and/or individually identifiable entity (similar to Physical Element). It does NOT indicate whether the software is installed, executing, etc. (The latter is the role of the SoftwareFeature/ SoftwareElement classes and the Application Model.) Since software may be acquired, SoftwareIdentity can be associated with a Product using the ProductSoftwareComponent relationship. Note that the Application Model manages the deployment and installation of software via the classes, SoftwareFeatures and SoftwareElements. The deployment/installation concepts are related to the asset/identity one. In fact, a SoftwareIdentity may correspond to a Product, or to one or more SoftwareFeatures or SoftwareElements - depending on the granularity of these classes and the deployment model. The correspondence of Software Identity to Product, SoftwareFeature or SoftwareElement is indicated using the ConcreteIdentity association. Note that there may not be sufficient detail or instrumentation to instantiate ConcreteIdentity. And, if the association is instantiated, some duplication of information may result. For example, the Vendor described in the instances of Product and SoftwareIdentity MAY be the same. However, this is not necessarily true, and it is why vendor and similar information are duplicated in this class. Note that ConcreteIdentity can also be used to describe the relationship of the software to any LogicalFiles that result from installing it. As above, there may not be sufficient detail or instrumentation to instantiate this association.') softwareElement_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_Manufacturer.setStatus('mandatory') if mibBuilder.loadTexts: softwareElement_Manufacturer.setDescription('Manufacturer of this software element') softwareElement_BuildNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-BuildNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_BuildNumber.setStatus('mandatory') if mibBuilder.loadTexts: softwareElement_BuildNumber.setDescription('The internal identifier for this compilation of this software element.') softwareElement_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_SerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: softwareElement_SerialNumber.setDescription('The assigned serial number of this software element.') softwareElement_CodeSet = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-CodeSet").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_CodeSet.setStatus('deprecated') if mibBuilder.loadTexts: softwareElement_CodeSet.setDescription('The code set used by this software element. ') softwareElement_IdentificationCode = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-IdentificationCode").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_IdentificationCode.setStatus('deprecated') if mibBuilder.loadTexts: softwareElement_IdentificationCode.setDescription("The value of this property is the manufacturer's identifier for this software element. Often this will be a stock keeping unit (SKU) or a part number.") softwareElement_LanguageEdition = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setLabel("softwareElement-LanguageEdition").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_LanguageEdition.setStatus('deprecated') if mibBuilder.loadTexts: softwareElement_LanguageEdition.setDescription('The value of this property identifies the language edition of this software element. The language codes defined in ISO 639 should be used. Where the software element represents multi-lingual or international version of a product, the string multilingual should be used.') softwareElement_InstanceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-InstanceID").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_InstanceID.setStatus('mandatory') if mibBuilder.loadTexts: softwareElement_InstanceID.setDescription("Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. In order to ensure uniqueness within the NameSpace, the value of InstanceID SHOULD be constructed using the following 'preferred' algorithm: <OrgID>:<LocalID> Where <OrgID> and <LocalID> are separated by a colon ':', and where <OrgID> MUST include a copyrighted, trademarked or otherwise unique name that is owned by the business entity creating/defining the InstanceID, or is a registered ID that is assigned to the business entity by a recognized global authority (This is similar to the <Schema Name>_<Class Name> structure of Schema class names.) In addition, to ensure uniqueness <OrgID> MUST NOT contain a colon (':'). When using this algorithm, the first colon to appear in InstanceID MUST appear between <OrgID> and <LocalID>. <LocalID> is chosen by the business entity and SHOULD not be re-used to identify different underlying (real-world) elements. If the above 'preferred' algorithm is not used, the defining entity MUST assure that the resultant InstanceID is not re-used across any InstanceIDs produced by this or other providers for this instance's NameSpace. For DMTF defined instances, the 'preferred' algorithm MUST be used with the <OrgID> set to 'CIM'.") computerSystemGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10)) computerSystem_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. \\n Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") computerSystem_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("computerSystem-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_OperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_OperationalStatus.setDescription("Indicates the current status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element.") computerSystem_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Name.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_Name.setDescription('The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.') computerSystem_NameFormat = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-NameFormat").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_NameFormat.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_NameFormat.setDescription("The ComputerSystem object and its derivatives are Top Level Objects of CIM. They provide the scope for numerous components. Having unique System keys is required. The NameFormat property identifies how the ComputerSystem Name is generated. The NameFormat ValueMap qualifier defines the various mechanisms for assigning the name. Note that another name can be assigned and used for the ComputerSystem that better suit a business, using the inherited ElementName property. Possible values include 'Other', 'IP', 'Dial', 'HID', 'NWA', 'HWA', 'X25', 'ISDN', 'IPX', 'DCC', 'ICD', 'E.164', 'SNA', 'OID/OSI', 'WWN', 'NAA'") computerSystem_Dedicated = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20))).clone(namedValues=NamedValues(("notDedicated", 0), ("unknown", 1), ("other", 2), ("storage", 3), ("router", 4), ("switch", 5), ("layer3switch", 6), ("centralOfficeSwitch", 7), ("hub", 8), ("accessServer", 9), ("firewall", 10), ("print", 11), ("io", 12), ("webCaching", 13), ("management", 14), ("blockServer", 15), ("fileServer", 16), ("mobileUserDevice", 17), ("repeater", 18), ("bridgeExtender", 19), ("gateway", 20)))).setLabel("computerSystem-Dedicated").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Dedicated.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_Dedicated.setDescription("Enumeration indicating whether the ComputerSystem is a special-purpose System (ie, dedicated to a particular use), versus being 'general purpose'. For example, one could specify that the System is dedicated to 'Print' (value=11) or acts as a 'Hub' (value=8). \\n A clarification is needed with respect to the value 17 ('Mobile User Device'). An example of a dedicated user device is a mobile phone or a barcode scanner in a store that communicates via radio frequency. These systems are quite limited in functionality and programmability, and are not considered 'general purpose' computing platforms. Alternately, an example of a mobile system that is 'general purpose' (i.e., is NOT dedicated) is a hand-held computer. Although limited in its programmability, new software can be downloaded and its functionality expanded by the user.") computerSystem_PrimaryOwnerContact = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-PrimaryOwnerContact").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_PrimaryOwnerContact.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_PrimaryOwnerContact.setDescription('A string that provides information on how the primary system owner can be reached (e.g. phone number, email address, ...)') computerSystem_PrimaryOwnerName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-PrimaryOwnerName").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_PrimaryOwnerName.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_PrimaryOwnerName.setDescription('The name of the primary system owner. The system owner is the primary user of the system.') computerSystem_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Description.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_Description.setDescription('The Description property provides a textual description of the object.') computerSystem_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("computerSystem-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Caption.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_Caption.setDescription('The Caption property is a short textual description (one- line string) of the object.') computerSystem_Realizes_softwareElementIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 10), UINT32()).setLabel("computerSystem-Realizes-softwareElementIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Realizes_softwareElementIndex.setStatus('mandatory') if mibBuilder.loadTexts: computerSystem_Realizes_softwareElementIndex.setDescription('The current index value for the softwareElementIndex that this computerSystem is associated with. If no association exists an index of 0 may be returned.') changerDeviceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11)) numberOfChangerDevices = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfChangerDevices.setStatus('mandatory') if mibBuilder.loadTexts: numberOfChangerDevices.setDescription('This value specifies the number of ChangerDevices that are present.') changerDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2), ) if mibBuilder.loadTexts: changerDeviceTable.setStatus('mandatory') if mibBuilder.loadTexts: changerDeviceTable.setDescription('The changerDevice class represents changerDevices in the library') changerDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "changerDeviceIndex")) if mibBuilder.loadTexts: changerDeviceEntry.setStatus('mandatory') if mibBuilder.loadTexts: changerDeviceEntry.setDescription('Each entry in the table contains information about a changerDevice that is present in the library.') changerDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: changerDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: changerDeviceIndex.setDescription('The current index value for the changerDevice.') changerDevice_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("changerDevice-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_DeviceID.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_DeviceID.setDescription('An address or other identifying information to uniquely name the LogicalDevice.') changerDevice_MediaFlipSupported = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setLabel("changerDevice-MediaFlipSupported").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_MediaFlipSupported.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_MediaFlipSupported.setDescription('Boolean set to TRUE if the Changer supports media flipping. Media needs to be flipped when multi-sided PhysicalMedia are placed into a MediaAccessDevice that does NOT support dual sided access.') changerDevice_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("changerDevice-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") changerDevice_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("changerDevice-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Caption.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_Caption.setDescription('The Caption property is a short textual description (one- line string) of the object.') changerDevice_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("changerDevice-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Description.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_Description.setDescription('The Description property provides a textual description of the object.') changerDevice_Availability = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("runningFullPower", 3), ("warning", 4), ("inTest", 5), ("notApplicable", 6), ("powerOff", 7), ("offLine", 8), ("offDuty", 9), ("degraded", 10), ("notInstalled", 11), ("installError", 12), ("powerSaveUnknown", 13), ("powerSaveLowPowerMode", 14), ("powerSaveStandby", 15), ("powerCycle", 16), ("powerSaveWarning", 17), ("paused", 18), ("notReady", 19), ("notConfigured", 20), ("quiesced", 21)))).setLabel("changerDevice-Availability").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Availability.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_Availability.setDescription("The primary availability and status of the Device. (Additional status information can be specified using the Additional Availability array property.) For example, the Availability property indicates that the Device is running and has full power (value=3), or is in a warning (4), test (5), degraded (10) or power save state (values 13-15 and 17). Regarding the Power Save states, these are defined as follows Value 13 (\\'Power Save - Unknown\\') indicates that the Device is known to be in a power save mode, but its exact status in this mode is unknown; 14 (\\'Power Save - Low Power Mode\\') indicates that the Device is in a power save state but still functioning, and may exhibit degraded performance 15 (\\'Power Save - Standby\\') describes that the Device is not functioning but could be brought to full power 'quickly'; and value 17 (\\'Power Save - Warning\\') indicates that the Device is in a warning state, though also in a power save mode.") changerDevice_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("changerDevice-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_OperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_OperationalStatus.setDescription("Indicates the current status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element.") changerDevice_Realizes_StorageLocationIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 10), UINT32()).setLabel("changerDevice-Realizes-StorageLocationIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Realizes_StorageLocationIndex.setStatus('mandatory') if mibBuilder.loadTexts: changerDevice_Realizes_StorageLocationIndex.setDescription('The current index value for the storageMediaLocationIndex that this changerDevice is associated with. If no association exists an index of 0 may be returned.') scsiProtocolControllerGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12)) numberOfSCSIProtocolControllers = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfSCSIProtocolControllers.setStatus('mandatory') if mibBuilder.loadTexts: numberOfSCSIProtocolControllers.setDescription('This value specifies the number of SCSIProtocolControllers that are present.') scsiProtocolControllerTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2), ) if mibBuilder.loadTexts: scsiProtocolControllerTable.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolControllerTable.setDescription('The scsiProtocolController class represents SCSIProtocolControllers in the library') scsiProtocolControllerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "scsiProtocolControllerIndex")) if mibBuilder.loadTexts: scsiProtocolControllerEntry.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolControllerEntry.setDescription('Each entry in the table contains information about a SCSIProtocolController that is present in the library.') scsiProtocolControllerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolControllerIndex.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolControllerIndex.setDescription('The current index value for the scsiProtocolController.') scsiProtocolController_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("scsiProtocolController-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_DeviceID.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolController_DeviceID.setDescription('An address or other identifying information to uniquely name the LogicalDevice.') scsiProtocolController_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("scsiProtocolController-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolController_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") scsiProtocolController_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("scsiProtocolController-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_OperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolController_OperationalStatus.setDescription("Indicates the current status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element.") scsiProtocolController_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("scsiProtocolController-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Description.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolController_Description.setDescription('The Description property provides a textual description of the object.') scsiProtocolController_Availability = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("runningFullPower", 3), ("warning", 4), ("inTest", 5), ("notApplicable", 6), ("powerOff", 7), ("offLine", 8), ("offDuty", 9), ("degraded", 10), ("notInstalled", 11), ("installError", 12), ("powerSaveUnknown", 13), ("powerSaveLowPowerMode", 14), ("powerSaveStandby", 15), ("powerCycle", 16), ("powerSaveWarning", 17), ("paused", 18), ("notReady", 19), ("notConfigured", 20), ("quiesced", 21)))).setLabel("scsiProtocolController-Availability").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Availability.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolController_Availability.setDescription("The primary availability and status of the Device. (Additional status information can be specified using the Additional Availability array property.) For example, the Availability property indicates that the Device is running and has full power (value=3), or is in a warning (4), test (5), degraded (10) or power save state (values 13-15 and 17). Regarding the Power Save states, these are defined as follows: Value 13 (\\'Power Save - Unknown\\') indicates that the Device is known to be in a power save mode, but its exact status in this mode is unknown; 14 (\\'Power Save - Low Power Mode\\') indicates that the Device is in a power save state but still functioning, and may exhibit degraded performance; 15 (\\'Power Save - Standby\\') describes that the Device is not functioning but could be brought to full power 'quickly'; and value 17 (\\'Power Save - Warning\\') indicates that the Device is in a warning state, though also in a power save mode.") scsiProtocolController_Realizes_ChangerDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 7), UINT32()).setLabel("scsiProtocolController-Realizes-ChangerDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Realizes_ChangerDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolController_Realizes_ChangerDeviceIndex.setDescription('The current index value for the ChangerDeviceIndex that this scsiProtocolController is associated with. If no association exists an index of 0 may be returned.') scsiProtocolController_Realizes_MediaAccessDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 8), UINT32()).setLabel("scsiProtocolController-Realizes-MediaAccessDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Realizes_MediaAccessDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: scsiProtocolController_Realizes_MediaAccessDeviceIndex.setDescription('The current index value for the MediaAccessDeviceIndex that this scsiProtocolController is associated with. If no association exists an index of 0 may be returned.') storageMediaLocationGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13)) numberOfStorageMediaLocations = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfStorageMediaLocations.setStatus('mandatory') if mibBuilder.loadTexts: numberOfStorageMediaLocations.setDescription('This value specifies the number of StorageMediaLocations that are present.') numberOfPhysicalMedias = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfPhysicalMedias.setStatus('mandatory') if mibBuilder.loadTexts: numberOfPhysicalMedias.setDescription('This value specifies the number of PhysicalMedia that are present.') storageMediaLocationTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3), ) if mibBuilder.loadTexts: storageMediaLocationTable.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocationTable.setDescription("StorageMediaLocation represents a possible location for an instance of PhysicalMedia. PhysicalMedia represents any type of documentation or storage medium, such as tapes, CDROMs, etc. This class is typically used to locate and manage Removable Media (versus Media sealed with the MediaAccessDevice, as a single Package, as is the case with hard disks). However, 'sealed' Media can also be modeled using this class, where the Media would then be associated with the PhysicalPackage using the PackagedComponent relationship. ") storageMediaLocationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1), ).setIndexNames((0, "SNIA-SML-MIB", "storageMediaLocationIndex")) if mibBuilder.loadTexts: storageMediaLocationEntry.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocationEntry.setDescription('Each entry in the table contains information about a StorageMediaLocation that is present in the library.') storageMediaLocationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocationIndex.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocationIndex.setDescription('The current index value for the StorageMediaLocation.') storageMediaLocation_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_Tag.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_Tag.setDescription("An arbitrary string that uniquely identifies the Physical Element and serves as the Element's key. The Tag property can contain information such as asset tag or serial number data. The key for PhysicalElement is placed very high in the object hierarchy in order to independently identify the hardware/entity, regardless of physical placement in or on Cabinets, Adapters, etc. For example, a hotswappable or removeable component may be taken from its containing (scoping) Package and be temporarily unused. The object still continues to exist - and may even be inserted into a different scoping container. Therefore, the key for Physical Element is an arbitrary string and is defined independently of any placement or location-oriented hierarchy.") storageMediaLocation_LocationType = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("slot", 2), ("magazine", 3), ("mediaAccessDevice", 4), ("interLibraryPort", 5), ("limitedAccessPort", 6), ("door", 7), ("shelf", 8), ("vault", 9)))).setLabel("storageMediaLocation-LocationType").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_LocationType.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_LocationType.setDescription("The type of Location. For example, whether this is an individual Media \\'Slot\\' (value=2), a MediaAccessDevice (value=4) or a \\'Magazine\\' (value=3) is indicated in this property.") storageMediaLocation_LocationCoordinates = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-LocationCoordinates").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_LocationCoordinates.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_LocationCoordinates.setDescription('LocationCoordinates represent the physical location of the the FrameSlot instance. The property is defined as a free-form string to allow the location information to be described in vendor-unique terminology.') storageMediaLocation_MediaTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("tape", 2), ("qic", 3), ("ait", 4), ("dtf", 5), ("dat", 6), ("eightmmTape", 7), ("nineteenmmTape", 8), ("dlt", 9), ("halfInchMO", 10), ("catridgeDisk", 11), ("jazDisk", 12), ("zipDisk", 13), ("syQuestDisk", 14), ("winchesterDisk", 15), ("cdRom", 16), ("cdRomXA", 17), ("cdI", 18), ("cdRecordable", 19), ("wORM", 20), ("magneto-Optical", 21), ("dvd", 22), ("dvdRWPlus", 23), ("dvdRAM", 24), ("dvdROM", 25), ("dvdVideo", 26), ("divx", 27), ("floppyDiskette", 28), ("hardDisk", 29), ("memoryCard", 30), ("hardCopy", 31), ("clikDisk", 32), ("cdRW", 33), ("cdDA", 34), ("cdPlus", 35), ("dvdRecordable", 36), ("dvdRW", 37), ("dvdAudio", 38), ("dvd5", 39), ("dvd9", 40), ("dvd10", 41), ("dvd18", 42), ("moRewriteable", 43), ("moWriteOnce", 44), ("moLIMDOW", 45), ("phaseChangeWO", 46), ("phaseChangeRewriteable", 47), ("phaseChangeDualRewriteable", 48), ("ablativeWriteOnce", 49), ("nearField", 50), ("miniQic", 51), ("travan", 52), ("eightmmMetal", 53), ("eightmmAdvanced", 54), ("nctp", 55), ("ltoUltrium", 56), ("ltoAccelis", 57), ("tape9Track", 58), ("tape18Track", 59), ("tape36Track", 60), ("magstar3590", 61), ("magstarMP", 62), ("d2Tape", 63), ("dstSmall", 64), ("dstMedium", 65), ("dstLarge", 66)))).setLabel("storageMediaLocation-MediaTypesSupported").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_MediaTypesSupported.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_MediaTypesSupported.setDescription("Certain StorageMediaLocations may only be able to accept a limited set of PhysicalMedia MediaTypes. This property defines an array containing the types of Media that are acceptable for placement in the Location. Additional information and description of the contained MediaTypes can be provided using the TypesDescription array. Also, size data (for example, DVD disc diameter) can be specified using the MediaSizesSupported array. \\n \\n Values defined here correspond to those in the CIM_Physical Media.MediaType property. This allows quick comparisons using value equivalence calculations. It is understood that there is no external physical difference between (for example) DVD- Video and DVD-RAM. But, equivalent values in both the Physical Media and StorageMediaLocation enumerations allows for one for one comparisons with no additional processing logic (i.e., the following is not required ... if \\'DVD-Video\\' then value=\\'DVD\\').") storageMediaLocation_MediaCapacity = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 6), UINT32()).setLabel("storageMediaLocation-MediaCapacity").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_MediaCapacity.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_MediaCapacity.setDescription('A StorageMediaLocation may hold more than one PhysicalMedia - for example, a Magazine. This property indicates the Physical Media capacity of the Location.') storageMediaLocation_Association_ChangerDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 7), UINT32()).setLabel("storageMediaLocation-Association-ChangerDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_Association_ChangerDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_Association_ChangerDeviceIndex.setDescription('Experimental: The current index value for the ChangerDeviceIndex that this storageMediaLocation is associated with. If no association exists an index of 0 may be returned. This association allows a representation of the experimental ') storageMediaLocation_PhysicalMediaPresent = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMediaPresent").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMediaPresent.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMediaPresent.setDescription("'true' when Physical Media is present in this storage location. When this is 'false' -physicalMedia- entries are undefined") storageMediaLocation_PhysicalMedia_Removable = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-Removable").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Removable.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Removable.setDescription("A PhysicalComponent is Removable if it is designed to be taken in and out of the physical container in which it is normally found, without impairing the function of the overall packaging. A Component can still be Removable if power must be 'off' in order to perform the removal. If power can be 'on' and the Component removed, then the Element is both Removable and HotSwappable. For example, an upgradeable Processor chip is Removable.") storageMediaLocation_PhysicalMedia_Replaceable = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-Replaceable").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Replaceable.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Replaceable.setDescription('A PhysicalComponent is Replaceable if it is possible to replace (FRU or upgrade) the Element with a physically different one. For example, some ComputerSystems allow the main Processor chip to be upgraded to one of a higher clock rating. In this case, the Processor is said to be Replaceable. All Removable Components are inherently Replaceable.') storageMediaLocation_PhysicalMedia_HotSwappable = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-HotSwappable").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_HotSwappable.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_HotSwappable.setDescription("A PhysicalComponent is HotSwappable if it is possible to replace the Element with a physically different but equivalent one while the containing Package has power applied to it (ie, is 'on'). For example, a fan Component may be designed to be HotSwappable. All HotSwappable Components are inherently Removable and Replaceable.") storageMediaLocation_PhysicalMedia_Capacity = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 14), UINT64()).setLabel("storageMediaLocation-PhysicalMedia-Capacity").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Capacity.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Capacity.setDescription("The number of bytes that can be read from or written to a Media. This property is not applicable to 'Hard Copy' (documentation) or cleaner Media. Data compression should not be assumed, as it would increase the value in this property. For tapes, it should be assumed that no filemarks or blank space areas are recorded on the Media.") storageMediaLocation_PhysicalMedia_MediaType = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("tape", 2), ("qic", 3), ("ait", 4), ("dtf", 5), ("dat", 6), ("eightmmTape", 7), ("nineteenmmTape", 8), ("dlt", 9), ("halfInchMO", 10), ("catridgeDisk", 11), ("jazDisk", 12), ("zipDisk", 13), ("syQuestDisk", 14), ("winchesterDisk", 15), ("cdRom", 16), ("cdRomXA", 17), ("cdI", 18), ("cdRecordable", 19), ("wORM", 20), ("magneto-Optical", 21), ("dvd", 22), ("dvdRWPlus", 23), ("dvdRAM", 24), ("dvdROM", 25), ("dvdVideo", 26), ("divx", 27), ("floppyDiskette", 28), ("hardDisk", 29), ("memoryCard", 30), ("hardCopy", 31), ("clikDisk", 32), ("cdRW", 33), ("cdDA", 34), ("cdPlus", 35), ("dvdRecordable", 36), ("dvdRW", 37), ("dvdAudio", 38), ("dvd5", 39), ("dvd9", 40), ("dvd10", 41), ("dvd18", 42), ("moRewriteable", 43), ("moWriteOnce", 44), ("moLIMDOW", 45), ("phaseChangeWO", 46), ("phaseChangeRewriteable", 47), ("phaseChangeDualRewriteable", 48), ("ablativeWriteOnce", 49), ("nearField", 50), ("miniQic", 51), ("travan", 52), ("eightmmMetal", 53), ("eightmmAdvanced", 54), ("nctp", 55), ("ltoUltrium", 56), ("ltoAccelis", 57), ("tape9Track", 58), ("tape18Track", 59), ("tape36Track", 60), ("magstar3590", 61), ("magstarMP", 62), ("d2Tape", 63), ("dstSmall", 64), ("dstMedium", 65), ("dstLarge", 66)))).setLabel("storageMediaLocation-PhysicalMedia-MediaType").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaType.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaType.setDescription('Specifies the type of the PhysicalMedia, as an enumerated integer. The MediaDescription property is used to provide more explicit definition of the Media type, whether it is pre-formatted, compatability features, etc.') storageMediaLocation_PhysicalMedia_MediaDescription = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-PhysicalMedia-MediaDescription").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaDescription.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaDescription.setDescription("Additional detail related to the MediaType enumeration. For example, if value 3 ('QIC Cartridge') is specified, this property could indicate whether the tape is wide or 1/4 inch, whether it is pre-formatted, whether it is Travan compatible, etc.") storageMediaLocation_PhysicalMedia_CleanerMedia = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-CleanerMedia").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_CleanerMedia.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_CleanerMedia.setDescription('Boolean indicating that the PhysicalMedia is used for cleaning purposes and not data storage.') storageMediaLocation_PhysicalMedia_DualSided = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-DualSided").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_DualSided.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_DualSided.setDescription('Boolean indicating that the Media has two recording sides (TRUE) or only a single side (FALSE). Examples of dual sided Media include DVD-ROM and some optical disks. Examples of single sided Media are tapes and CD-ROM.') storageMediaLocation_PhysicalMedia_PhysicalLabel = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-PhysicalMedia-PhysicalLabel").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_PhysicalLabel.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_PhysicalLabel.setDescription("One or more strings on 'labels' on the PhysicalMedia. The format of the labels and their state (readable, unreadable, upside-down) are indicated in the LabelFormats and LabelStates array properties.") storageMediaLocation_PhysicalMedia_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-PhysicalMedia-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Tag.setStatus('mandatory') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Tag.setDescription("An arbitrary string that uniquely identifies the Physical Element and serves as the Element's key. The Tag property can contain information such as asset tag or serial data. The key for PhysicalElement is placed very high in number the object hierarchy in order to independently identify the hardware/entity, regardless of physical placement in or on Cabinets, Adapters, etc. For example, a hotswappable or removeable component may be taken from its containing (scoping) Package and be temporarily unused. The object still continues to exist - and may even be inserted into a different scoping container. Therefore, the key for Physical Element is an arbitrary string and is defined independently of any placement or location-oriented hierarchy.") limitedAccessPortGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14)) numberOflimitedAccessPorts = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOflimitedAccessPorts.setStatus('mandatory') if mibBuilder.loadTexts: numberOflimitedAccessPorts.setDescription('This value specifies the number of limitedAccessPorts that are present.') limitedAccessPortTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2), ) if mibBuilder.loadTexts: limitedAccessPortTable.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPortTable.setDescription('The limitedAccessPort class represents limitedAccessPorts in the library') limitedAccessPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "limitedAccessPortIndex")) if mibBuilder.loadTexts: limitedAccessPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPortEntry.setDescription('Each entry in the table contains information about a limitedAccessPort that is present in the library.') limitedAccessPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPortIndex.setDescription('The current index value for the limitedAccessPort.') limitedAccessPort_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("limitedAccessPort-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_DeviceID.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPort_DeviceID.setDescription('An address or other identifying information to uniquely name the LogicalDevice.') limitedAccessPort_Extended = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setLabel("limitedAccessPort-Extended").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Extended.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPort_Extended.setDescription("When a Port is 'Extended' or 'open' (value=TRUE), its Storage MediaLocations are accessible to a human operator. If not extended (value=FALSE), the Locations are accessible to a PickerElement.") limitedAccessPort_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("limitedAccessPort-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPort_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") limitedAccessPort_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("limitedAccessPort-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Caption.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPort_Caption.setDescription('The Caption property is a short textual description (one- line string) of the object.') limitedAccessPort_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("limitedAccessPort-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Description.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPort_Description.setDescription('The Description property provides a textual description of the object.') limitedAccessPort_Realizes_StorageLocationIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 7), UINT32()).setLabel("limitedAccessPort-Realizes-StorageLocationIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Realizes_StorageLocationIndex.setStatus('mandatory') if mibBuilder.loadTexts: limitedAccessPort_Realizes_StorageLocationIndex.setDescription('The current index value for the storageMediaLocationIndex that this limitedAccessPort is associated with. If no association exists an index of 0 may be returned.') fCPortGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15)) numberOffCPorts = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOffCPorts.setStatus('mandatory') if mibBuilder.loadTexts: numberOffCPorts.setDescription('This value specifies the number of fcPorts that are present.') fCPortTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2), ) if mibBuilder.loadTexts: fCPortTable.setStatus('mandatory') if mibBuilder.loadTexts: fCPortTable.setDescription('The fcPort class represents Fibre Channel Ports in the library') fCPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "fCPortIndex")) if mibBuilder.loadTexts: fCPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: fCPortEntry.setDescription('Each entry in the table contains information about an fcPort that is present in the library.') fCPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: fCPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: fCPortIndex.setDescription('The current index value for the fCPort.') fCPort_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("fCPort-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_DeviceID.setStatus('mandatory') if mibBuilder.loadTexts: fCPort_DeviceID.setDescription('An address or other identifying information to uniquely name the LogicalDevice.') fCPort_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("fCPort-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_ElementName.setStatus('mandatory') if mibBuilder.loadTexts: fCPort_ElementName.setDescription("A user-friendly name for the object. This property allows each instance to define a user-friendly name IN ADDITION TO its key properties/identity data, and description information. Note that ManagedSystemElement's Name property is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information MAY be present in both the Name and ElementName properties.") fCPort_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("fCPort-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_Caption.setStatus('mandatory') if mibBuilder.loadTexts: fCPort_Caption.setDescription('The Caption property is a short textual description (one- line string) of the object.') fCPort_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("fCPort-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_Description.setStatus('mandatory') if mibBuilder.loadTexts: fCPort_Description.setDescription('The Description property provides a textual description of the object.') fCPortController_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("fCPortController-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPortController_OperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: fCPortController_OperationalStatus.setDescription("Indicates the current status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element. SMI-S 1.1 Section 8.1.2.2.3 additional description for FC Ports OK - Port is online Error - Port has a failure Stopped - Port is disabled InService - Port is in Self Test Unknown") fCPort_PermanentAddress = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("fCPort-PermanentAddress").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_PermanentAddress.setStatus('mandatory') if mibBuilder.loadTexts: fCPort_PermanentAddress.setDescription("PermanentAddress defines the network address hardcoded into a port. This 'hardcoded' address may be changed via firmware upgrade or software configuration. If so, this field should be updated when the change is made. PermanentAddress should be left blank if no 'hardcoded' address exists for the NetworkAdapter. In SMI-S 1.1 table 1304 FCPorts are defined to use the port WWN as described in table 7.2.4.5.2 World Wide Name (i.e. FC Name_Identifier) FCPort Permanent Address property; no corresponding format property 16 un-separated upper case hex digits (e.g. '21000020372D3C73')") fCPort_Realizes_scsiProtocolControllerIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 8), UINT32()).setLabel("fCPort-Realizes-scsiProtocolControllerIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_Realizes_scsiProtocolControllerIndex.setStatus('mandatory') if mibBuilder.loadTexts: fCPort_Realizes_scsiProtocolControllerIndex.setDescription('The current index value for the scsiProtocolControllerIndex that this fCPort is associated with. If no association exists an index of 0 may be returned.') trapGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16)) trapsEnabled = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapsEnabled.setStatus('mandatory') if mibBuilder.loadTexts: trapsEnabled.setDescription('Set to enable sending traps') trapDriveAlertSummary = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(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, 31, 32, 33, 34, 35, 36, 37, 38, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60))).clone(namedValues=NamedValues(("readWarning", 1), ("writeWarning", 2), ("hardError", 3), ("media", 4), ("readFailure", 5), ("writeFailure", 6), ("mediaLife", 7), ("notDataGrade", 8), ("writeProtect", 9), ("noRemoval", 10), ("cleaningMedia", 11), ("unsupportedFormat", 12), ("recoverableSnappedTape", 13), ("unrecoverableSnappedTape", 14), ("memoryChipInCartridgeFailure", 15), ("forcedEject", 16), ("readOnlyFormat", 17), ("directoryCorruptedOnLoad", 18), ("nearingMediaLife", 19), ("cleanNow", 20), ("cleanPeriodic", 21), ("expiredCleaningMedia", 22), ("invalidCleaningMedia", 23), ("retentionRequested", 24), ("dualPortInterfaceError", 25), ("coolingFanError", 26), ("powerSupplyFailure", 27), ("powerConsumption", 28), ("driveMaintenance", 29), ("hardwareA", 30), ("hardwareB", 31), ("interface", 32), ("ejectMedia", 33), ("downloadFailure", 34), ("driveHumidity", 35), ("driveTemperature", 36), ("driveVoltage", 37), ("predictiveFailure", 38), ("diagnosticsRequired", 39), ("lostStatistics", 50), ("mediaDirectoryInvalidAtUnload", 51), ("mediaSystemAreaWriteFailure", 52), ("mediaSystemAreaReadFailure", 53), ("noStartOfData", 54), ("loadingFailure", 55), ("unrecoverableUnloadFailure", 56), ("automationInterfaceFailure", 57), ("firmwareFailure", 58), ("wormMediumIntegrityCheckFailed", 59), ("wormMediumOverwriteAttempted", 60)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapDriveAlertSummary.setStatus('mandatory') if mibBuilder.loadTexts: trapDriveAlertSummary.setDescription("Short summary of a media (tape, optical, etc.) driveAlert trap. Corresponds to the Number/Flag property of drive/autoloader alerts in the T10 TapeAlert Specification v3 (w/SSC-3 Enhancements) as modified by the EventSummary property in the SMI-S 1.1 section 8.1.8.25 LibraryAlert Events/Indications for Library Devices. In particular, all occurances of 'tape' have been replaced with 'media'. (This summary property has a 1 to 1 relationship to the CIM_AlertIndication.OtherAlertType property, and might be stored in the CIM_AlertIndication.Message property.)") trap_Association_MediaAccessDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 3), UINT32()).setLabel("trap-Association-MediaAccessDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: trap_Association_MediaAccessDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: trap_Association_MediaAccessDeviceIndex.setDescription('The current index value for the MediaAccessDeviceIndex that this changerAlert trap is associated with. If no association exists an index of 0 may be returned. ') trapChangerAlertSummary = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(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, 31, 32))).clone(namedValues=NamedValues(("libraryHardwareA", 1), ("libraryHardwareB", 2), ("libraryHardwareC", 3), ("libraryHardwareD", 4), ("libraryDiagnosticsRequired", 5), ("libraryInterface", 6), ("failurePrediction", 7), ("libraryMaintenance", 8), ("libraryHumidityLimits", 9), ("libraryTemperatureLimits", 10), ("libraryVoltageLimits", 11), ("libraryStrayMedia", 12), ("libraryPickRetry", 13), ("libraryPlaceRetry", 14), ("libraryLoadRetry", 15), ("libraryDoor", 16), ("libraryMailslot", 17), ("libraryMagazine", 18), ("librarySecurity", 19), ("librarySecurityMode", 20), ("libraryOffline", 21), ("libraryDriveOffline", 22), ("libraryScanRetry", 23), ("libraryInventory", 24), ("libraryIllegalOperation", 25), ("dualPortInterfaceError", 26), ("coolingFanFailure", 27), ("powerSupply", 28), ("powerConsumption", 29), ("passThroughMechanismFailure", 30), ("cartridgeInPassThroughMechanism", 31), ("unreadableBarCodeLabels", 32)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapChangerAlertSummary.setStatus('mandatory') if mibBuilder.loadTexts: trapChangerAlertSummary.setDescription("Short summary of a changer (eg. robot) changerAlert trap. Corresponds to the Number/Flag property of stand-alone changer alerts in the T10 TapeAlert Specification v3 (w/SSC-3 Enhancements) as modified by the EventSummary property in the SMI-S 1.1 section 8.1.8.25 LibraryAlert Events/Indications for Library Devices. In particular, all occurances of 'tape' have been replaced with 'media'. (This summary property has a 1 to 1 relationship to the CIM_AlertIndication.OtherAlertType property, and might be stored in the CIM_AlertIndication.Message property.)") trap_Association_ChangerDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 5), UINT32()).setLabel("trap-Association-ChangerDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: trap_Association_ChangerDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: trap_Association_ChangerDeviceIndex.setDescription('The current index value for the ChangerDeviceIndex that this changerAlert trap is associated with. If no association exists an index of 0 may be returned. ') trapPerceivedSeverity = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("information", 2), ("degradedWarning", 3), ("minor", 4), ("major", 5), ("critical", 6), ("fatalNonRecoverable", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapPerceivedSeverity.setStatus('mandatory') if mibBuilder.loadTexts: trapPerceivedSeverity.setDescription("An enumerated value that describes the severity of the Alert Indication from the notifier's point of view: 1 - Other, by CIM convention, is used to indicate that the Severity's value can be found in the OtherSeverity property. 3 - Degraded/Warning should be used when its appropriate to let the user decide if action is needed. 4 - Minor should be used to indicate action is needed, but the situation is not serious at this time. 5 - Major should be used to indicate action is needed NOW. 6 - Critical should be used to indicate action is needed NOW and the scope is broad (perhaps an imminent outage to a critical resource will result). 7 - Fatal/NonRecoverable should be used to indicate an error occurred, but it's too late to take remedial action. 2 and 0 - Information and Unknown (respectively) follow common usage. Literally, the AlertIndication is purely informational or its severity is simply unknown. This would have values described in SMI-S 1.1 section 8.1.8.25 LibraryAlert Events/Indications for Library Devices, the PerceivedSeverity column. These values are a superset of the Info/Warning/Critical values in the T10 TapeAlert Specification v3 (w/SSC-3 Enhancements) , and an SNMP agent may choose to only specify those if that's all that's available. (This corresponds to the CIM_AlertIndication.PerceivedSeverity property.)") trapDestinationTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7), ) if mibBuilder.loadTexts: trapDestinationTable.setStatus('mandatory') if mibBuilder.loadTexts: trapDestinationTable.setDescription('Table of client/manager desitinations which will receive traps') trapDestinationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1), ).setIndexNames((0, "SNIA-SML-MIB", "numberOfTrapDestinations")) if mibBuilder.loadTexts: trapDestinationEntry.setStatus('mandatory') if mibBuilder.loadTexts: trapDestinationEntry.setDescription('Entry containing information needed to send traps to an SNMP client/manager') numberOfTrapDestinations = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: numberOfTrapDestinations.setStatus('mandatory') if mibBuilder.loadTexts: numberOfTrapDestinations.setDescription('This value specifies the number of trap destination SNMP clients/managers.') trapDestinationHostType = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("iPv4", 1), ("iPv6", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestinationHostType.setStatus('mandatory') if mibBuilder.loadTexts: trapDestinationHostType.setDescription('The type of addressing model to represent the network address (IPv4/IPv6)') trapDestinationHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestinationHostAddr.setStatus('mandatory') if mibBuilder.loadTexts: trapDestinationHostAddr.setDescription('The network address of this client/manager, to which the trap should be sent') trapDestinationPort = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestinationPort.setStatus('mandatory') if mibBuilder.loadTexts: trapDestinationPort.setDescription('The port number where this client/manager is listening for traps.') driveAlert = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1) + (0,0)).setObjects(("SNIA-SML-MIB", "trapDriveAlertSummary"), ("SNIA-SML-MIB", "trap_Association_MediaAccessDeviceIndex"), ("SNIA-SML-MIB", "trapPerceivedSeverity")) if mibBuilder.loadTexts: driveAlert.setDescription('A Drive/Autoloader Alert trap, based on the T10 TapeAlert Specification v3 (w/SSC-3 Enhancements) and SMI-S 1.1 section 8.1.8.25 LibraryAlert Events/Indications.') changerAlert = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1) + (0,1)).setObjects(("SNIA-SML-MIB", "trapChangerAlertSummary"), ("SNIA-SML-MIB", "trap_Association_ChangerDeviceIndex"), ("SNIA-SML-MIB", "trapPerceivedSeverity")) if mibBuilder.loadTexts: changerAlert.setDescription('A Changer Device (eg. robot) Alert trap, based on the T10 TapeAlert Specification v3 (w/SSC-3 Enhancements) and SMI-S 1.1 section 8.1.8.25 LibraryAlert Events/Indications.') trapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8)) currentOperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setMaxAccess("readonly") if mibBuilder.loadTexts: currentOperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: currentOperationalStatus.setDescription("Indicates the previous status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element.") oldOperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setMaxAccess("readonly") if mibBuilder.loadTexts: oldOperationalStatus.setStatus('mandatory') if mibBuilder.loadTexts: oldOperationalStatus.setDescription("Indicates the previous status(es) of the element. Various health and operational statuses are defined. Many of the enumeration's values are self- explanatory. However, a few are not and are described in more detail. \\n 'Stressed' indicates that the element is functioning, but needs attention. Examples of 'Stressed' states are overload, overheated, etc. \\n 'Predictive Failure' indicates that an element is functioning nominally but predicting a failure in the near future. \\n 'In Service' describes an element being configured, maintained, cleaned, or otherwise administered. \\n 'No Contact' indicates that the monitoring system has knowledge of this element, but has never been able to establish communications with it. \\n 'Lost Communication' indicates that the ManagedSystem Element is known to exist and has been contacted successfully in the past, but is currently unreachable. \\n 'Stopped' and 'Aborted' are similar, although the former implies a clean and orderly stop, while the latter implies an abrupt stop where the element's state and configuration may need to be updated. \\n 'Dormant' indicates that the element is inactive or quiesced. \\n 'Supporting Entity in Error' describes that this element may be 'OK' but that another element, on which it is dependent, is in error. An example is a network service or endpoint that cannot function due to lower layer networking problems. \\n 'Completed' indicates the element has completed its operation. This value should be combined with either OK, Error, or Degraded so that a client can till if the complete operation passed (Completed with OK), and failure (Completed with Error). Completed with Degraded would imply the operation finished, but did not complete OK or report an error. \\n 'Power Mode' indicates the element has additional power model information contained in the Associated PowerManagementService association. \\n OperationalStatus replaces the Status property on ManagedSystemElement to provide a consistent approach to enumerations, to address implementation needs for an array property, and to provide a migration path from today's environment to the future. This change was not made earlier since it required the DEPRECATED qualifier. Due to the widespread use of the existing Status property in management applications, it is strongly RECOMMENDED that providers/instrumentation provide BOTH the Status and OperationalStatus properties. Further, the first value of OperationalStatus SHOULD contain the primary status for the element. When instrumented, Status (since it is single-valued) SHOULD also provide the primary status of the element.") libraryAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,3)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name")) if mibBuilder.loadTexts: libraryAddedTrap.setDescription('A library is added to the SMI-S agent. This trap is to support the SMI-S 1.1 section 8.1.8.23 InstCreation indication.') libraryDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,4)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name")) if mibBuilder.loadTexts: libraryDeletedTrap.setDescription('A library is deleted in the SMI-S agent. This trap is to support the SMI-S 1.1 section 8.1.8.23 InstDeletion indication.') libraryOpStatusChangedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,5)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "currentOperationalStatus"), ("SNIA-SML-MIB", "oldOperationalStatus")) if mibBuilder.loadTexts: libraryOpStatusChangedTrap.setDescription('A library OperationalStatus has changed in the SMI-S agent. This trap is to support the SMI-S 1.1 section 8.1.8.23 InstModification indication.') driveAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,6)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "mediaAccessDevice_DeviceID")) if mibBuilder.loadTexts: driveAddedTrap.setDescription('A media access device (trap drive) is added to the library. This trap is to support the SMI-S 1.1 section 8.1.8.25 InstCreation indication.') driveDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,7)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "mediaAccessDevice_DeviceID")) if mibBuilder.loadTexts: driveDeletedTrap.setDescription('A media access device (trap drive) is deleted from the library. This trap is to support the SMI-S 1.1 section 8.1.8.25 InstDeletion indication.') driveOpStatusChangedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,8)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "mediaAccessDevice_DeviceID"), ("SNIA-SML-MIB", "currentOperationalStatus"), ("SNIA-SML-MIB", "oldOperationalStatus")) if mibBuilder.loadTexts: driveOpStatusChangedTrap.setDescription('A drive OperationalStatus has changed in the SMI-S agent. This trap is to support the SMI-S 1.1 section 8.1.8.23 InstModification indication.') changerAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,9)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "changerDevice_DeviceID")) if mibBuilder.loadTexts: changerAddedTrap.setDescription('A changer device is added to the library. This trap is to support the SMI-S 1.1 section 8.1.8.25 InstCreation indication.') changerDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,10)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "changerDevice_DeviceID")) if mibBuilder.loadTexts: changerDeletedTrap.setDescription('A changer device is deleted from the library. This trap is to support the SMI-S 1.1 section 8.1.8.25 InstDeletion indication.') changerOpStatusChangedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,11)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "changerDevice_DeviceID"), ("SNIA-SML-MIB", "currentOperationalStatus"), ("SNIA-SML-MIB", "oldOperationalStatus")) if mibBuilder.loadTexts: changerOpStatusChangedTrap.setDescription('A changer OperationalStatus has changed in the SMI-S agent. This trap is to support the SMI-S 1.1 section 8.1.8.23 InstModification indication.') physicalMediaAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,12)).setObjects(("SNIA-SML-MIB", "storageMediaLocation_PhysicalMedia_Tag")) if mibBuilder.loadTexts: physicalMediaAddedTrap.setDescription('A physical media is added to the library. This trap is to support the SMI-S 1.1 section 8.1.8.25 InstCreation indication.') physicalMediaDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,13)).setObjects(("SNIA-SML-MIB", "storageMediaLocation_PhysicalMedia_Tag")) if mibBuilder.loadTexts: physicalMediaDeletedTrap.setDescription('A physical media is deleted from the library. This trap is to support the SMI-S 1.1 section 8.1.8.25 InstDeletion indication.') endOfSmlMib = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 17), ObjectIdentifier()) if mibBuilder.loadTexts: endOfSmlMib.setStatus('mandatory') if mibBuilder.loadTexts: endOfSmlMib.setDescription('Description here') mibBuilder.exportSymbols("SNIA-SML-MIB", mediaAccessDeviceObjectType=mediaAccessDeviceObjectType, softwareElementIndex=softwareElementIndex, subChassis_SecurityBreach=subChassis_SecurityBreach, storageLibrary_Caption=storageLibrary_Caption, fCPort_ElementName=fCPort_ElementName, scsiProtocolController_OperationalStatus=scsiProtocolController_OperationalStatus, product_IdentifyingNumber=product_IdentifyingNumber, mediaAccessDeviceIndex=mediaAccessDeviceIndex, storageMediaLocation_PhysicalMedia_Tag=storageMediaLocation_PhysicalMedia_Tag, trapChangerAlertSummary=trapChangerAlertSummary, scsiProtocolController_Realizes_ChangerDeviceIndex=scsiProtocolController_Realizes_ChangerDeviceIndex, trapDestinationTable=trapDestinationTable, trapDestinationHostType=trapDestinationHostType, mediaAccessDevice_Realizes_StorageLocationIndex=mediaAccessDevice_Realizes_StorageLocationIndex, mediaAccessDevice_Name=mediaAccessDevice_Name, softwareElement_SerialNumber=softwareElement_SerialNumber, changerDevice_DeviceID=changerDevice_DeviceID, scsiProtocolController_DeviceID=scsiProtocolController_DeviceID, scsiProtocolController_Description=scsiProtocolController_Description, fCPortGroup=fCPortGroup, mediaAccessDeviceGroup=mediaAccessDeviceGroup, scsiProtocolController_ElementName=scsiProtocolController_ElementName, chassisGroup=chassisGroup, scsiProtocolController_Availability=scsiProtocolController_Availability, limitedAccessPort_ElementName=limitedAccessPort_ElementName, scsiProtocolControllerTable=scsiProtocolControllerTable, limitedAccessPort_Realizes_StorageLocationIndex=limitedAccessPort_Realizes_StorageLocationIndex, storageLibrary_Status=storageLibrary_Status, subChassis_IsLocked=subChassis_IsLocked, limitedAccessPort_Caption=limitedAccessPort_Caption, chassis_SecurityBreach=chassis_SecurityBreach, fCPortIndex=fCPortIndex, scsiProtocolControllerIndex=scsiProtocolControllerIndex, numberOfSCSIProtocolControllers=numberOfSCSIProtocolControllers, storageMediaLocation_Tag=storageMediaLocation_Tag, softwareElement_SoftwareElementID=softwareElement_SoftwareElementID, chassis_LockPresent=chassis_LockPresent, softwareElement_Manufacturer=softwareElement_Manufacturer, UINT16=UINT16, snia=snia, numberOfPhysicalPackages=numberOfPhysicalPackages, subChassis_OperationalStatus=subChassis_OperationalStatus, storageMediaLocation_LocationCoordinates=storageMediaLocation_LocationCoordinates, UINT32=UINT32, storageMediaLocationIndex=storageMediaLocationIndex, numberOfMediaAccessDevices=numberOfMediaAccessDevices, storageMediaLocation_MediaCapacity=storageMediaLocation_MediaCapacity, storageMediaLocation_PhysicalMedia_DualSided=storageMediaLocation_PhysicalMedia_DualSided, storageLibrary_InstallDate=storageLibrary_InstallDate, computerSystem_Description=computerSystem_Description, softwareElement_CodeSet=softwareElement_CodeSet, computerSystem_Dedicated=computerSystem_Dedicated, subChassisIndex=subChassisIndex, changerDevice_ElementName=changerDevice_ElementName, numberOfsubChassis=numberOfsubChassis, changerDeviceIndex=changerDeviceIndex, storageMediaLocation_PhysicalMedia_Replaceable=storageMediaLocation_PhysicalMedia_Replaceable, fCPortTable=fCPortTable, common=common, storageMediaLocationTable=storageMediaLocationTable, chassis_IsLocked=chassis_IsLocked, subChassis_Tag=subChassis_Tag, mediaAccessDevice_Realizes_softwareElementIndex=mediaAccessDevice_Realizes_softwareElementIndex, subChassis_ElementName=subChassis_ElementName, chassis_Manufacturer=chassis_Manufacturer, computerSystem_NameFormat=computerSystem_NameFormat, mediaAccessDevice_NeedsCleaning=mediaAccessDevice_NeedsCleaning, limitedAccessPortIndex=limitedAccessPortIndex, limitedAccessPort_DeviceID=limitedAccessPort_DeviceID, subChassis_SerialNumber=subChassis_SerialNumber, fCPort_DeviceID=fCPort_DeviceID, driveAddedTrap=driveAddedTrap, physicalPackage_Tag=physicalPackage_Tag, physicalPackage_Realizes_MediaAccessDeviceIndex=physicalPackage_Realizes_MediaAccessDeviceIndex, computerSystem_Name=computerSystem_Name, computerSystemGroup=computerSystemGroup, storageMediaLocation_MediaTypesSupported=storageMediaLocation_MediaTypesSupported, storageMediaLocation_PhysicalMedia_CleanerMedia=storageMediaLocation_PhysicalMedia_CleanerMedia, driveOpStatusChangedTrap=driveOpStatusChangedTrap, UINT64=UINT64, softwareElement_IdentificationCode=softwareElement_IdentificationCode, trap_Association_ChangerDeviceIndex=trap_Association_ChangerDeviceIndex, subChassis_Manufacturer=subChassis_Manufacturer, trapDestinationPort=trapDestinationPort, smlRoot=smlRoot, storageMediaLocation_PhysicalMedia_Capacity=storageMediaLocation_PhysicalMedia_Capacity, mediaAccessDevice_Availability=mediaAccessDevice_Availability, fCPort_Realizes_scsiProtocolControllerIndex=fCPort_Realizes_scsiProtocolControllerIndex, storageMediaLocation_PhysicalMediaPresent=storageMediaLocation_PhysicalMediaPresent, changerOpStatusChangedTrap=changerOpStatusChangedTrap, physicalPackageTable=physicalPackageTable, fCPortController_OperationalStatus=fCPortController_OperationalStatus, chassis_ElementName=chassis_ElementName, trapDriveAlertSummary=trapDriveAlertSummary, trap_Association_MediaAccessDeviceIndex=trap_Association_MediaAccessDeviceIndex, softwareElementGroup=softwareElementGroup, changerDevice_Caption=changerDevice_Caption, fCPort_PermanentAddress=fCPort_PermanentAddress, endOfSmlMib=endOfSmlMib, trapDestinationHostAddr=trapDestinationHostAddr, changerAlert=changerAlert, softwareElement_BuildNumber=softwareElement_BuildNumber, softwareElement_LanguageEdition=softwareElement_LanguageEdition, fCPort_Description=fCPort_Description, product_ElementName=product_ElementName, changerDeviceGroup=changerDeviceGroup, libraryAddedTrap=libraryAddedTrap, softwareElementEntry=softwareElementEntry, physicalPackage_SerialNumber=physicalPackage_SerialNumber, storageMediaLocation_LocationType=storageMediaLocation_LocationType, softwareElement_Name=softwareElement_Name, numberOfChangerDevices=numberOfChangerDevices, fCPortEntry=fCPortEntry, computerSystem_PrimaryOwnerContact=computerSystem_PrimaryOwnerContact, mediaAccessDeviceEntry=mediaAccessDeviceEntry, product_Version=product_Version, storageMediaLocation_Association_ChangerDeviceIndex=storageMediaLocation_Association_ChangerDeviceIndex, mediaAccessDevice_DeviceID=mediaAccessDevice_DeviceID, chassis_Tag=chassis_Tag, physicalPackageEntry=physicalPackageEntry, limitedAccessPort_Extended=limitedAccessPort_Extended, product_Vendor=product_Vendor, changerDeviceEntry=changerDeviceEntry, changerDevice_MediaFlipSupported=changerDevice_MediaFlipSupported, changerDevice_Description=changerDevice_Description, driveAlert=driveAlert, physicalMediaAddedTrap=physicalMediaAddedTrap, physicalPackage_Manufacturer=physicalPackage_Manufacturer, computerSystem_ElementName=computerSystem_ElementName, softwareElement_InstanceID=softwareElement_InstanceID, mediaAccessDeviceTable=mediaAccessDeviceTable, physicalMediaDeletedTrap=physicalMediaDeletedTrap, limitedAccessPort_Description=limitedAccessPort_Description, subChassis_LockPresent=subChassis_LockPresent, storageMediaLocation_PhysicalMedia_Removable=storageMediaLocation_PhysicalMedia_Removable, storageMediaLocationEntry=storageMediaLocationEntry, limitedAccessPortGroup=limitedAccessPortGroup, experimental=experimental, mediaAccessDevice_Status=mediaAccessDevice_Status, currentOperationalStatus=currentOperationalStatus, storageLibrary_Description=storageLibrary_Description, computerSystem_Realizes_softwareElementIndex=computerSystem_Realizes_softwareElementIndex, subChassis_Model=subChassis_Model, fCPort_Caption=fCPort_Caption, computerSystem_PrimaryOwnerName=computerSystem_PrimaryOwnerName, libraries=libraries, computerSystem_OperationalStatus=computerSystem_OperationalStatus, product_Name=product_Name, chassis_SerialNumber=chassis_SerialNumber, changerDevice_OperationalStatus=changerDevice_OperationalStatus, trapsEnabled=trapsEnabled, CimDateTime=CimDateTime, softwareElement_Version=softwareElement_Version, trapDestinationEntry=trapDestinationEntry, numberOfPhysicalMedias=numberOfPhysicalMedias, mediaAccessDevice_PowerOnHours=mediaAccessDevice_PowerOnHours, numberOfSoftwareElements=numberOfSoftwareElements, scsiProtocolController_Realizes_MediaAccessDeviceIndex=scsiProtocolController_Realizes_MediaAccessDeviceIndex, mediaAccessDevice_TotalPowerOnHours=mediaAccessDevice_TotalPowerOnHours, storageMediaLocationGroup=storageMediaLocationGroup, changerDeletedTrap=changerDeletedTrap, libraryDeletedTrap=libraryDeletedTrap, changerAddedTrap=changerAddedTrap, scsiProtocolControllerEntry=scsiProtocolControllerEntry, smlCimVersion=smlCimVersion, physicalPackageGroup=physicalPackageGroup, trapGroup=trapGroup, numberOflimitedAccessPorts=numberOflimitedAccessPorts, numberOfTrapDestinations=numberOfTrapDestinations, numberOffCPorts=numberOffCPorts, libraryOpStatusChangedTrap=libraryOpStatusChangedTrap, subChassisTable=subChassisTable, subChassisEntry=subChassisEntry, storageMediaLocation_PhysicalMedia_HotSwappable=storageMediaLocation_PhysicalMedia_HotSwappable, changerDeviceTable=changerDeviceTable, storageMediaLocation_PhysicalMedia_MediaType=storageMediaLocation_PhysicalMedia_MediaType, softwareElementTable=softwareElementTable, storageMediaLocation_PhysicalMedia_PhysicalLabel=storageMediaLocation_PhysicalMedia_PhysicalLabel, trapObjects=trapObjects, subChassis_PackageType=subChassis_PackageType, computerSystem_Caption=computerSystem_Caption, trapPerceivedSeverity=trapPerceivedSeverity, mediaAccessDevice_MountCount=mediaAccessDevice_MountCount, scsiProtocolControllerGroup=scsiProtocolControllerGroup, smlMibVersion=smlMibVersion, physicalPackageIndex=physicalPackageIndex, changerDevice_Availability=changerDevice_Availability, storageLibraryGroup=storageLibraryGroup, numberOfStorageMediaLocations=numberOfStorageMediaLocations, oldOperationalStatus=oldOperationalStatus, mediaAccessDevice_OperationalStatus=mediaAccessDevice_OperationalStatus, limitedAccessPortEntry=limitedAccessPortEntry, UShortReal=UShortReal, productGroup=productGroup, limitedAccessPortTable=limitedAccessPortTable, physicalPackage_Model=physicalPackage_Model, storageLibrary_Name=storageLibrary_Name, storageMediaLocation_PhysicalMedia_MediaDescription=storageMediaLocation_PhysicalMedia_MediaDescription, changerDevice_Realizes_StorageLocationIndex=changerDevice_Realizes_StorageLocationIndex, driveDeletedTrap=driveDeletedTrap, chassis_Model=chassis_Model)
class Human(object): def __init__(self, first_name, last_name, age, gender): self.first_name = first_name self.last_name = last_name self.age = age self.gender = gender def as_dict(self): return { 'first_name': self.first_name, 'last_name': self.last_name, 'age': self.age, 'gender': self.gender }
class Solution: def countConsistentStrings(self, allowed: str, words: List[str]) -> int: consistent_strings = 0 for word in words: consistent = True for c in word: if c not in allowed: consistent = False break if consistent: consistent_strings += 1 return consistent_strings
fonksiyon=[] while True: try: max_derece = int(input("Lütfen fonksiyonun en büyük derecesini giriniz:")) break except: print("Lütfen bir tam sayı giriniz.") while True: try: min_derece=int(input("Lütfen fonksiyonun en düşük derecesini giriniz:")) break except: print("Lütfen bir tam sayı giriniz.") for i in range(max_derece,min_derece-1,-1): while True: try: x = float(input("{}. dereceli terimin katsayını giriniz:".format(i))) break except: print("Lütfen bir sayı giriniz.") fonksiyon.append(x) while True: try: start_x=float(input("Lütfen başlangıç değerini giriniz:")) break except: print("Lütfen bir sayı giriniz.") while True: try: epsilon = float(input("Lütfen epsilon değerini giriniz:")) break except: print("Lütfen bir sayı giriniz.") def function(fonksiyon,x,max_derece): sum=0 j=0 for i in fonksiyon: sum+=(i*(x**(max_derece-j))) j+=1 return sum def türev(fonksiyon,x,max_derece): sum=0 j=0 for i in fonksiyon: sum+=(i*(max_derece-j)*(x**(max_derece-j-1))) j+=1 return sum sum1=function(fonksiyon,start_x,max_derece) if sum1==0: print("Kökün değeri:",start_x) else: second_x=start_x-(function(fonksiyon,start_x,max_derece)/türev(fonksiyon,start_x,max_derece)) while abs(second_x-start_x)>epsilon and sum1!=0: start_x=second_x second_x = start_x - (function(fonksiyon, start_x, max_derece) / türev(fonksiyon, start_x, max_derece)) sum1=function(fonksiyon,second_x,max_derece) if sum1==0: print("Kökün değeri:",second_x) else: print("Kökün yaklaşık değeri:",round(second_x,2))
motorcycles = ['honda', 'yamaha','suzuki'] print(motorcycles) #motorcycles[0] = 'ducati' motorcycles.append('ducati') print(motorcycles) motorcycles = [] motorcycles.append('honda') motorcycles.append('yamaha') motorcycles.append('suzuki') motorcycles.insert(0, 'ducati') print(motorcycles) del motorcycles[1] print(motorcycles)
# Requirements # Python 3.6+ # Torch 1.8+ class BertClassifier(nn.Module): def __init__(self, n): super(BertClassifier, self).__init__() self.bert = BertModel.from_pretrained('bert-base-cased') self.drop = nn.Dropout(p=0.3) self.out = nn.Linear(self.bert.config.hidden_size, n) def forward(self, input_ids, attention_mask): _, pooled_output = self.bert( input_ids=input_ids, attention_mask=attention_mask, return_dict=False) output = self.drop(pooled_output) return self.out(output)
# type: ignore def test_func(): assert True
# Модуль 2 def f2(a, b): return a * b def f3(a, b): return a - b
""" Data format for jointed energy and reserve management problem """ ALPHA = 0 BETA = 1 IG = 2 PG = 3 RUG = 4 RDG = 5
# V0 # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/79460546 class Solution(object): def arrayNesting(self, nums): """ :type nums: List[int] :rtype: int """ visited = [False] * len(nums) ans = 0 for i in range(len(nums)): road = 0 while not visited[i]: road += 1 # order of below 2 lines of code is unchangeable visited[i] = True i = nums[i] ans = max(ans, road) return ans # V1' # http://bookshadow.com/weblog/2017/05/28/leetcode-array-nesting/ class Solution(object): def arrayNesting(self, nums): """ :type nums: List[int] :rtype: int """ def search(idx): cnt = 0 while nums[idx] >= 0: cnt += 1 next = nums[idx] nums[idx] = -1 idx = next return cnt ans = 0 for x in range(len(nums)): if nums[x] >= 0: ans = max(ans, search(x)) return ans # V2 # Time: O(n) # Space: O(1) class Solution(object): def arrayNesting(self, nums): """ :type nums: List[int] :rtype: int """ result = 0 for num in nums: if num is not None: start, count = num, 0 while nums[start] is not None: temp = start start = nums[start] nums[temp] = None count += 1 result = max(result, count) return result
class PropertyNotHoldsException(Exception): def __init__(self, property_text, last_proved_stacktrace): self.last_proved_stacktrace = last_proved_stacktrace message = "A property found not to hold:\n\t" message += property_text super().__init__(message) class ModelNotFoundException(Exception): pass
def range(minimo,maximo,step): lista=[] while minimo<maximo: lista+=[minimo] #lista.append(minimo) minimo+=step return lista print(range(2,10,2)) print(range(100,1000,100))
ize_matrix = int(input()) matrix = [] all_commands = [] for s in range(size_matrix): matrix.append([int(x) for x in input().split()]) coordinates = input().split(" ") for x in coordinates: all_commands.append(x) while all_commands: for command in all_commands: spl = command.split(",") row = int(spl[0]) col = int(spl[1]) moment_position = matrix[row][col] if matrix[row][col] <= 0: all_commands = all_commands[1:] continue if row - 1 >= 0: if matrix[row - 1][col] > 0: # 2 отгоре matrix[row - 1][col] = matrix[row - 1][col] - moment_position if row - 1 >= 0 and col + 1 < len(matrix): if matrix[row - 1][col + 1] > 0: # 5 горе дясо matrix[row - 1][col + 1] = matrix[row - 1][col + 1] - moment_position if row - 1 >= 0 and col - 1 >= 0: if matrix[row - 1][col - 1] > 0: # 3 горе ляво matrix[row - 1][col - 1] = matrix[row - 1][col - 1] - moment_position if row + 1 < len(matrix): if matrix[row + 1][col] > 0: # 3 отдолу matrix[row + 1][col] = matrix[row + 1][col] - moment_position if col - 1 >= 0: if matrix[row][col - 1] > 0: # 4 ляво matrix[row][col - 1] = matrix[row][col - 1] - moment_position if col - 1 >= 0 and row + 1 < len(matrix): if matrix[row + 1][col - 1] > 0: # 9 ляво долу matrix[row + 1][col - 1] = matrix[row + 1][col - 1] - moment_position if col + 1 < len(matrix): if matrix[row][col + 1] > 0: # 9 дясно matrix[row][col + 1] = matrix[row][col + 1] - moment_position if col + 1 < len(matrix) and row + 1 < len(matrix): if matrix[row + 1][col + 1] > 0: # 6 дясно долу matrix[row + 1][col + 1] = matrix[row + 1][col + 1] - moment_position matrix[row][col] = 0 if all_commands: all_commands = all_commands[1:] total = 0 count_alive = 0 for alive in matrix: for t in alive: if t > 0: total += t count_alive += 1 print(f"Alive cells: {count_alive}") print(f"Sum: {total}") for j in matrix: print(' '.join(str(x) for x in j))
def getting_input(): """ Gets input from user and implements it into an 2 dim array """ print('Enter a table:') return [list(map(int, list(input()))) for _ in range(9)]
class Type(): NONE = 0x0 NOCOLOR = 0x1 JAIL = 0x2 BHYVE = 0x4 EXIT = 0x8 CONNECTION_CLOSED = 0x10
# -*- coding:utf-8 -*- # !/usr/bin/env python3 """ """ class AsyncIteratorWrapper: def __init__(self, obj): self._it = iter(obj) def __aiter__(self): return self async def __anext__(self): try: value = next(self._it) except StopIteration: raise StopAsyncIteration return value
""" tentar criar um código para me ceder coordenadas de forma espiral; ou um dado intervalo bidimensional. """ def espiral(ponto): """ dá um pares-ordenados(no formato tela, não matemático) para um desenho formando uma espiral nascendo de um ponto passado.""" y,x = ponto # par ordenado de tela, não-matemático. # funções que mudam a direção das # cordenadas iniciais. def baixo(): nonlocal y y += 1 def direita(): nonlocal x x += 1 def esquerda(): nonlocal x x -= 1 def cima(): nonlocal y y -= 1 # funções numa ordem crescente de quatro. direcoes = (baixo, esquerda, cima, direita) q = 0 # contador e chave. while q <= 12: # gera uma quantia 'q' inicialmente. for k in range(q): direcoes[q%4]() yield((y,x)) # aumenta a quantia a criar, e # a chave para nova função computada. q += 1 pass def range_bidimensional(ponto, raio): """ pega um ponto e circunda ela com todos pontos formando um quadrado, dado ele como centro. O "raio"(metade do lado de tal quadrado também tem de ser informado também, com um limite. """ # par ordenado baseado em tela, não-matemático molde. y, x = ponto # acha ponto superior esquerdo. x -= raio y -= raio # partindo deste ponto superior-esquerdo # mapeia todo o quadrado. for i in range(x, x+2*raio): for j in range(y, y+2*raio): yield(j,i,) pass # o que será importado. __all__ = ["range_bidimensional", "espiral"]
""" This module implement a filter interface. """ class ImagineFilterInterface(object): """ Filter interface """ def apply(self, resource): """ Apply filter to resource :param resource: Image :return: Image """ raise NotImplementedError()
# coding=utf-8 """ Music classroom network diagnostic tools config file. Author: Yunchao Chen Date: 2016-06-29 """ # For Soft dog SOFT_DOG_DATA_SIZE = 128 SOFT_DOG_LIBRARY = "win32dll.dll" SOFT_DOG_DATA_HAS_PARSED = False USE_FAKE_SOFT_DOG_DATA = True FAKE_SOFT_DOG_DATA = "v1;HLG-C1;2;20160623;;19233099" # For classroom API API_VERSION = "1.0" API_LEVEL_DEV = 0 API_LEVEL_PRE = 1 API_LEVEL_PROD = 2 SERVER_URL_LIST = [ "http://cr-api.dev-cr.xiaoyezi.com", "http://cr-api.pre-cr.xiaoyezi.com", "http://cr-api.cr.xiaoyezi.com" ] API_LEVEL = API_LEVEL_DEV RESOURCE_DOWNLOAD_API = "http://cr-api.cr.xiaoyezi.com/api/classroom/1.0/courses" def get_server_url(): return SERVER_URL_LIST[API_LEVEL] # For HTTP return code HTTP_CODE_OK = 200 # For music classroom pressure test MUSIC_CLASSROOM_PRESSURE_TEST = False # For IP Provider IP_PROVIDER = "http://1212.ip138.com/ic.asp" # For Log LOG_FILE_HANDLE = None MSG_DATA = { "NETWORK_DIAGNOSTIC_START": u"网络诊断开始...", "NETWORK_DIAGNOSTIC_FINISH": u"网络诊断结束。", "NETWORK_DIAGNOSTIC_SUCCESS": u"网络诊断正常。", "NETWORK_DIAGNOSTIC_FAILED": u"网络诊断异常。", "BAD_SOFT_DOG_LIBRARY": u"加密狗库文(win32dll.dll)件损坏。", "SOFT_DOG_LIBRARY_FOUND": u"加密狗库文件(win32dll.dll)找到。", "SOFT_DOG_LIBRARY_NOT_FOUND": u"加密狗库文件(win32dll.dll)未找到。", "LOAD_SOFT_DOG_LIBRARY_SUCCESS": u"加载加密狗库文件(win32dll.dll)成功。", "SOFT_DOG_READ_METHOD_EXIST": u"加密狗库文件(win32dll.dll)DogRead方法存在。", "SOFT_DOG_READ_METHOD_NOT_EXIST": u"加密狗库文件(win32dll.dll)DogRead方法不存在。", "LOAD_SOFT_DOG_LIBRARY_FAILED": u"加载加密狗库文件(win32dll.dll)失败。", "READ_SOFT_DOG_DATA_FAILED": u"读取加密狗数据失败,请检查加密狗是否插入,或驱动是否正确安装。", "READ_SOFT_DOG_DATA_SUCCESS": u"读取加密狗数据成功。", "USE_FAKE_SOFT_DOG_DATA": u"使用假的加密狗数据做测试。", "GET_CLASSROOM_ID_SUCCESS": u"获取音乐教室ID成功。", "GET_CLASSROOM_ID_FAILED": u"获取音乐教室ID失败。", "GET_CLASSROOM_TEACHER_LIST_SUCCESS": u"获取音乐教室教师列表成功。", "GET_CLASSROOM_TEACHER_LIST_FAILED" : u"获取音乐教室教师列表失败。", "RESOLVE_BAIDU_DOMAIN_SUCCESS": u"解析百度域名成功。", "RESOLVE_BAIDU_DOMAIN_FAILED": u"解析百度域名失败。", "PING_BAIDU_SUCCESS": u"ping百度成功。", "PING_BAIDU_FAILED": u"ping百度失败。", "PC_IP_NOT_CORRECT": u"本机获取的IP不正确。", "PING_GATE_WAY_SUCCESS": u"ping路由器网关成功。", "PING_GATE_WAY_FAILED": u"ping路由器网关失败。", "GET_IP_PROVIDER_INFO_SUCCESS": u"获取机构IP供应商信息成功。", "GET_IP_PROVIDER_INFO_FAILED": u"获取机构IP供应商信息失败。", "RESOLVE_XIOYEZI_SERVER_API_DOMAIN_SUCCESS": u"解析小叶子服务器API域名成功。", "RESOLVE_XIOYEZI_SERVER_API_DOMAIN_FAILED": u"解析小叶子服务器API域名失败。", "RESOURCE_DOWNLOADING": u"正在下载资源,请稍等...", "DOWNLOAD_RESOURCE_SUCCESS": u"下载资源成功。", "DOWNLOAD_RESOURCE_FAILED": u"下载资源失败。", "ACCESS_RESOURCE_DOWNLOAD_API_SUCCESS": u"访问资源下载API成功。", "ACCESS_RESOURCE_DOWNLOAD_API_FAILED": u"访问资源下载API失败。", "ACCESS_GET_CLASSROOM_API_SUCCESS": u"访问获取音乐教室API成功。", "ACCESS_GET_CLASSROOM_API_FAILED": u"访问获取音乐教室API失败。", "DNS_ERROR": u"DNS错误,请检查DNS配置。", "ETHERNET_ERROR": u"公网配置错误,请检查公网配置。", "ROUTER_ERROR" : u"电脑没有连接路由器,请检查电脑和路由器连线。", "EXEC_PING_COMMAND": u"正在执行ping命令,请稍等...", "EXEC_RESOLVE_DOMAIN": u"正在解析域名,请稍等...", "SEARCH_CLASSROOM_ID": u"正在获取音乐教室ID,请稍等...", "SEARCH_TEACHER_LIST": u"正在获取教师列表,请稍等...", "PRESS_ENTER_TO_EXIT": u"按键盘回车键退出程序...", }
### naive apporach class Solution: def moveZeroes(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ zeroNum = 0 i = 0 while nums: if nums[i] == 0: nums.pop(i) zeroNum += 1 i -= 1 i += 1 if i >= len(nums) - 1: break for i in range(zeroNum): nums.append(0) ### smarter approach class Solution: def moveZeroes(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ zero = 0 for i in range(len(nums)): if nums[i] != 0: nums[i], nums[zero] = nums[zero], nums[i] zero += 1 ### "cheat" approach class Solution: def moveZeroes(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ nums.sort(key=bool, reverse=True)
print("==== PROGRAM HITUNG TOTAL HARGA PESANAN ====".center(50)) print("="*38) print("*Menu*".center(37)) print("="*38) print("1. Susu".rjust(8), "Rp.7.000".rjust(27)) print("2. Teh".rjust(7), "Rp.5.000".rjust(28)) print("3. Kopi".rjust(8), " Rp.5.000".rjust(27)) print("="*38, "\n") banyak_jenis = int(input("banyak jenis: ")) kode_potong = [] banyak_potong = [] jenis_potong = [] harga = [] total = [] i = 0 while i < banyak_jenis: print("jenis ke", i+1) kode_potong.append(input("kode Pesanan [S/T/K]: ")) banyak_potong.append(int(input("banyak Pesanan: \n"))) if kode_potong[i] == "S" or kode_potong[i] == "s": jenis_potong.append("Susu") harga.append("7000") total.append(banyak_potong[i]*int("7000")) elif kode_potong[i] == "T" or kode_potong[i] == "t": jenis_potong.append("Teh") harga.append("5000") total.append(banyak_potong[i]*int("5000")) elif kode_potong[i] == "K" or kode_potong[i] == "k": jenis_potong.append("Kopi") harga.append("5000") total.append(banyak_potong[i] * int("5000")) else: jenis_potong.append("Kode salah") harga.append("0") total.append(banyak_potong[i]*int("0")) i = i+1 print("="*61) print("*CAFE BALE-BALE*".center(61)) print("="*61) print("No".rjust(4), "Jenis".rjust(10), "Harga".rjust(15), "Banyak".rjust(15), "Jumlah".rjust(10)) print("".rjust(4), "Potong".rjust(11), "satuan".rjust(15), "Beli".rjust(13), "Harga".rjust(11)) print("-"*61) jumlah_bayar = 0 a = 0 while a < banyak_jenis: jumlah_bayar = jumlah_bayar + total[0] print(" %i %s %s %i Rp.%i\n" % (a+1, jenis_potong[a], harga[a], banyak_potong[a], total[a])) a = a + 1 print("Total jumlah Rp.".rjust(52), jumlah_bayar) print("-"*61) jumlah = jumlah_bayar if jumlah >= 35000: diskon = jumlah_bayar / 10 total_bayar = jumlah_bayar - diskon print("Diskon 10% Rp.".rjust(50), diskon) print("kamu hanya perlu membayar Rp.".rjust(49), total_bayar) elif jumlah >= 35000 or jumlah_bayar >= 15000: diskon = jumlah_bayar / 5 total_bayar = jumlah_bayar - diskon print("Diskon 5% Rp.".rjust(50), diskon) print("kamu hanya perlu membayar Rp.".rjust(49), total_bayar) elif jumlah < 15000: diskon = 0 total = jumlah_bayar print("Diskon Rp.0".rjust(47)) print("Total bayar Rp.".rjust(51), total) print("="*61)
first_num = int(input()) second_num = int(input()) third_num = int(input()) for i in range (1, first_num + 1): for j in range (1, second_num + 1): for k in range (1, third_num + 1): if i % 2 == 0 and j > 1 and k % 2 == 0: for prime in range(2, j): if (j % prime) == 0: break else: print(f'{i} {j} {k}')
a = int(input("Enter number a: ")) b = int(input("Enter number b: ")) i = a % b j = b % a print(i * j + 1)
class UserMessageError(Exception): def __init__(self, response_code, user_msg=None, server_msg=None): self.user_msg = user_msg or "" self.server_msg = server_msg or self.user_msg self.response_code = response_code super().__init__() class ClientError(UserMessageError): def __init__(self, response_code=400, user_msg=None, **kwargs): if not user_msg: user_msg = "Invalid request" super().__init__(response_code, user_msg=user_msg, **kwargs) class ServerError(UserMessageError): def __init__(self, response_code=500, user_msg=None, server_msg=None): user_msg = f"An error occurred while processing the request{f': {user_msg}' if user_msg else ''}" server_msg = f"Server-side error while processing request: {server_msg or user_msg}" super().__init__(response_code, user_msg=user_msg, server_msg=server_msg) class NotFoundError(UserMessageError): def __init__(self, user_msg=None, **kwargs): if not user_msg: user_msg = "Requested resource not found" super().__init__(404, user_msg=user_msg, **kwargs) class NotAuthorized(ClientError): def __init__(self, user_msg=None, **kwargs): if not user_msg: user_msg = "You are not authorized to access the requested resource." super().__init__(response_code=401, user_msg=user_msg, **kwargs) class InvalidEnum(ValueError): pass
# https://projecteuler.net/problem=5 def gcd(a, b): if b == 0: return a return gcd(b, a%b) print(gcd(1,6)) result = 1 for i in range(2, 21): g = gcd(result, i) result = result * (i/g) print(i, g, result) print(result)
#Calculadora basica que haga suma,resta,multiplicacion y division def main() : n = input('Ingresa los numeroes entre espacios: \n') print("\t") print("Estos son los numeros ingresados: ") respuesta = input("\n Desea continuar? Y/N: ") if respuesta == "Y": print("Funciono") print(n)
class TimeoutException(Exception): """Class to add a timeout attribute to an exception. If an exception is raised specifically due to a rate-limits being exceeded, this class can be used to add a timeout, indicated how long a task or application should wait until retrying. Attributes: exception (Exception): Base exception raised by any class. timeout (int): Number of seconds the task should wait until retrying. """ def __init__(self, exception, timeout): self.exception = exception self.timeout = timeout def __str__(self): return str(self.exception)
def insertion_sort(lst): for passes in range(1, len(lst)): # n-1 passes current_val = lst[passes] pos = passes while pos > 0 and lst[pos-1] > current_val: lst[pos] = lst[pos-1] pos = pos-1 lst[pos] = current_val return lst arr = [2, 4, 42, 6, 22, 7] print(insertion_sort(arr))
class Util: def __init__(self, node): self._node = node def createmultisig(self, nrequired, keys, address_type="legacy"): # 01 return self._node._rpc.call("createmultisig", nrequired, keys, address_type) def deriveaddresses(self, descriptor, range=None): # 02 return self._node._rpc.call("deriveaddresses", descriptor, range) def estimatesmartfee(self, conf_target, estimate_mode="CONSERVATIVE"): # 03 return self._node._rpc.call("estimatesmartfee", conf_target, estimate_mode) def getdescriptorinfo(self, descriptor): # 04 return self._node._rpc.call("getdescriptorinfo", descriptor) def signmessagewithprivkey(self, privkey, message): # 05 return self._node._rpc.call("signmessagewithprivkey", privkey, message) def validateaddress(self, address): # 06 return self._node._rpc.call("validateaddress", address) def verifymessage(self, address, signature, message): # 07 return self._node._rpc.call("verifymessage", address, signature, message)
# For singly Linked List # class MySinglyLinkedList: # def __init__(self): # self.head = None # self.size = 0 # # If the index is invalid, return -1 # def get(self, index: int) -> int: # if index >= self.size or index < 0: # return -1 # if self.head is None: # return -1 # curr = self.head # for i in range(index): # curr = curr.next # return curr.val # def addAtHead(self, val: int) -> None: # node = Node(val, self.head) # self.head = node # self.size += 1 # def addAtTail(self, val: int) -> None: # curr = self.head # if curr is None: # self.addAtHead(val) # else: # while curr.next is not None: # curr = curr.next # curr.next = Node(val) # self.size += 1 # def addAtIndex(self, index: int, val: int) -> None: # if index > self.size: # return -1 # if index == 0: # self.addAtHead(val) # else: # curr = self.head # prev = curr # for i in range(index): # prev = curr # curr = curr.next # prev.next = Node(val, curr) # self.size += 1 # # Delete the indexth node in the linked list, if the index is valid. # def deleteAtIndex(self, index: int) -> None: # if index >= self.size: # return -1 # curr = self.head # if index == 0: # self.head = self.head.next # else: # prev = curr # for i in range(index): # prev = curr # curr = curr.next # if curr.next is None: # prev.next = None # else: # prev.next = curr.next # self.size -= 1 ''' ["MyLinkedList","addAtIndex","addAtIndex","addAtIndex","get"] [[],[0,10],[0,20],[1,30],[0]] ["MyLinkedList","addAtHead","addAtTail","addAtIndex","get","deleteAtIndex","deleteAtIndex","deleteAtIndex","get"] [[],[1],[3],[1,2],[1],[1],[0],[0],[1]] ["MyLinkedList","addAtHead","get","addAtTail","get","addAtIndex","addAtIndex","get","deleteAtIndex","get"] [[],[1],[0],[3],[1],[1,2],[4,4],[1],[1],[1]] ["MyLinkedList","addAtHead","deleteAtIndex"] [[],[1],[0]] ["MyLinkedList","addAtHead","addAtTail","addAtIndex","get","deleteAtIndex","get"] [[],[1],[3],[1,2],[1],[0],[0]] ''' # Your MyLinkedList object will be instantiated and called as such: # obj = MyLinkedList() # param_1 = obj.get(index) # obj.addAtHead(val) # obj.addAtTail(val) # obj.addAtIndex(index,val) # obj.deleteAtIndex(index) class Node: def __init__(self, val = 0, anext = None, prev = None): self.val = val self.next = anext self.prev = prev class MyLinkedList: def __init__(self): self.head = None self.size = 0 def get(self, index): if self.size and 0 <= index < self.size: curr = self.head while index > 0: curr = curr.next index -= 1 return curr.val else: return -1 def addAtHead(self, val): node = Node(val, self.head, None) self.head = node self.size += 1 def addAtTail(self, val): if not self.size: self.addAtHead(val) return curr = self.head while curr.next: curr = curr.next node = Node(val, None, curr) curr.next = node self.size += 1 def deleteAtIndex(self, index): if index == 0: self.head = self.head.next self.size -= 1 return if index < self.size and index > 0: curr = self.head while index > 0: prev = curr curr = curr.next index -= 1 anext = None if curr is not None: anext = curr.next prev.next = anext self.size -= 1 def addAtIndex(self, index, val): if index > self.size or index < 0: return self.head if not self.size or index == 0: self.addAtHead(val) return if index == self.size: self.addAtTail(val) return curr = self.head while index > 0: prev = curr curr = curr.next index -= 1 anext = curr node = Node(val, anext, prev) anext.prev = node if prev: prev.next = node self.size += 1
widget = WidgetDefault() widget.width = 101 widget.height = 101 widget.border = "None" widget.background = "None" commonDefaults["BarGraphWidget"] = widget def generateBarGraphWidget(file, screen, bar, parentName): name = bar.getName() file.write(" %s = leBarGraphWidget_New();" % (name)) generateBaseWidget(file, screen, bar) writeSetBoolean(file, name, "Stacked", bar.getStacked(), False) writeSetBoolean(file, name, "FillGraphArea", bar.getFillGraphArea(), True) writeSetInt(file, name, "TickLength", bar.getTickLength(), 5) if bar.getMinValue() != 0: file.write(" %s->fn->setMinValue(%s, BAR_GRAPH_AXIS_0, %d);" % (name, name, bar.getMinValue())) if bar.getMaxValue() != 100: file.write(" %s->fn->setMaxValue(%s, BAR_GRAPH_AXIS_0, %d);" % (name, name, bar.getMaxValue())) if bar.getTickInterval() != 10: file.write(" %s->fn->setValueAxisTicksInterval(%s, BAR_GRAPH_AXIS_0, %d);" % (name, name, bar.getTickInterval())) if bar.getSubtickInterval() != 5: file.write(" %s->fn->setValueAxisSubticksInterval(%s, BAR_GRAPH_AXIS_0, %d);" % (name, name, bar.getSubtickInterval())) if bar.getValueAxisTicksVisible() == False: file.write(" %s->fn->setValueAxisTicksVisible(%s, BAR_GRAPH_AXIS_0, LE_FALSE);" % (name, name)) if bar.getValueGridlinesVisible() == False: file.write(" %s->fn->setGridLinesVisible(%s, BAR_GRAPH_AXIS_0, LE_FALSE);" % (name, name)) position = bar.getValueAxisTicksPosition().toString() if position != "Center": if position == "Inside": position = "BAR_GRAPH_TICK_IN" elif position == "Outside": position = "BAR_GRAPH_TICK_OUT" else: position = "BAR_GRAPH_TICK_CENTER" file.write(" %s->fn->setValueAxisTicksPosition(%s, BAR_GRAPH_AXIS_0, %s);" % (name, name, position)) if bar.getValueAxisLabelsVisible() == False: file.write(" %s->fn->setValueAxisLabelsVisible(%s, BAR_GRAPH_AXIS_0, LE_FALSE);" % (name, name)) if bar.getValueAxisSubticksVisible() == False: file.write(" %s->fn->setValueAxisSubticksVisible(%s, BAR_GRAPH_AXIS_0, LE_FALSE);" % (name, name)) position = bar.getValueAxisSubticksPosition().toString() if position != "Center": if position == "Inside": position = "BAR_GRAPH_TICK_IN" elif position == "Outside": position = "BAR_GRAPH_TICK_OUT" else: position = "BAR_GRAPH_TICK_CENTER" file.write(" %s->fn->setValueAxisSubticksPosition(%s, BAR_GRAPH_AXIS_0, %s);" % (name, name, position)) writeSetFontAssetName(file, name, "TicksLabelFont", bar.getLabelFontName()) writeSetBoolean(file, name, "CategoryAxisTicksVisible", bar.getCategoryAxisTicksVisible(), True) writeSetBoolean(file, name, "CategoryAxisLabelsVisible", bar.getCategoryAxisLabelsVisible(), True) position = bar.getCategoryAxisTicksPosition().toString() if position != "Center": if position == "Inside": position = "BAR_GRAPH_TICK_IN" elif position == "Outside": position = "BAR_GRAPH_TICK_OUT" else: position = "BAR_GRAPH_TICK_CENTER" file.write(" %s->fn->setCategoryAxisTicksPosition(%s, %s);" % (name, name, position)) categoryList = bar.getCategories() for i in range(0, len(categoryList)): file.write(" %s->fn->addCategory(%s, NULL);" % (name, name)) stringName = craftStringAssetName(categoryList[i].string) if stringName != "NULL": file.write(" %s->fn->setCategoryString(%s, %d, (leString*)%s);" % (name, name, i, stringName)) seriesList = bar.getDataSeries() if len(seriesList) > 0: for idx, series in enumerate(seriesList): file.write(" %s->fn->addSeries(%s, NULL);" % (name, name)) if testStringValidity(series.scheme): file.write(" %s->fn->setSeriesScheme(%s, %d, &%s);" % (name, name, idx, series.scheme)) for dataVal in series.data: file.write(" %s->fn->addDataToSeries(%s, %d, %d, NULL);" % (name, name, idx, dataVal)) file.write(" %s->fn->addChild(%s, (leWidget*)%s);" % (parentName, parentName, name)) file.writeNewLine() def generateBarGraphAction(text, variables, owner, event, action): name = action.targetName #print(action.argumentData) if action.actionID == "SetTickLength": val = getActionArgumentValue(action, "Length") writeActionFunc(text, action, "setTickLength", [val]) elif action.actionID == "SetFillGraphArea": val = getActionArgumentValue(action, "Fill") writeActionFunc(text, action, "setFillGraphArea", [val]) elif action.actionID == "SetStacked": val = getActionArgumentValue(action, "Stacked") writeActionFunc(text, action, "setStacked", [val]) elif action.actionID == "SetMax": val = getActionArgumentValue(action, "Value") writeActionFunc(text, action, "setMaxValue", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "SetMin": val = getActionArgumentValue(action, "Value") writeActionFunc(text, action, "setMinValue", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "SetTickInterval": val = getActionArgumentValue(action, "Interval") writeActionFunc(text, action, "setValueAxisTicksInterval", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "SetSubtickInterval": val = getActionArgumentValue(action, "Interval") writeActionFunc(text, action, "setValueAxisSubticksInterval", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "ShowValueAxisLabels": val = getActionArgumentValue(action, "Show") writeActionFunc(text, action, "setValueAxisLabelsVisible", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "ShowValueAxisTicks": val = getActionArgumentValue(action, "Show") writeActionFunc(text, action, "setValueAxisTicksVisible", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "ShowValueAxisSubticks": val = getActionArgumentValue(action, "Show") writeActionFunc(text, action, "setValueAxisSubticksVisible", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "ShowValueAxisGrid": val = getActionArgumentValue(action, "Show") writeActionFunc(text, action, "setGridLinesVisible", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "SetValueAxisTickPosition": val = getActionArgumentValue(action, "Position") if val == "Center": val = "BAR_GRAPH_TICK_CENTER" elif val == "Inside": val = "BAR_GRAPH_TICK_IN" elif val == "Outside": val = "BAR_GRAPH_TICK_OUT" writeActionFunc(text, action, "setValueAxisTicksPosition", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "SetValueAxisSubtickPosition": val = getActionArgumentValue(action, "Position") if val == "Center": val = "BAR_GRAPH_TICK_CENTER" elif val == "Inside": val = "BAR_GRAPH_TICK_IN" elif val == "Outside": val = "BAR_GRAPH_TICK_OUT" writeActionFunc(text, action, "setValueAxisSubticksPosition", ["BAR_GRAPH_AXIS_0", val]) elif action.actionID == "ShowCategoryAxisLabels": val = getActionArgumentValue(action, "Show") writeActionFunc(text, action, "setCategoryAxisLabelsVisible", [val]) elif action.actionID == "ShowCategoryAxisTicks": val = getActionArgumentValue(action, "Show") writeActionFunc(text, action, "setCategoryAxisTicksVisible", [val]) elif action.actionID == "SetCategoryAxisTickPosition": val = getActionArgumentValue(action, "Position") if val == "Center": val = "BAR_GRAPH_TICK_CENTER" elif val == "Inside": val = "BAR_GRAPH_TICK_IN" elif val == "Outside": val = "BAR_GRAPH_TICK_OUT" writeActionFunc(text, action, "setCategoryAxisTicksPosition", [val]) elif action.actionID == "SetLabelFont": val = getActionArgumentValue(action, "FontAsset") writeActionFunc(text, action, "setTicksLabelFont", [val]) elif action.actionID == "AddCategory": val = getActionArgumentValue(action, "StringAsset") variables["categoryIdx"] = "uint32_t" writeActionFunc(text, action, "addCategory", ["&categoryIdx"]) writeActionFunc(text, action, "setCategoryString", ["categoryIdx", val]) elif action.actionID == "AddSeries": val = getActionArgumentValue(action, "Scheme") variables["seriesIdx"] = "uint32_t" writeActionFunc(text, action, "addSeries", ["&seriesIdx"]) writeActionFunc(text, action, "setSeriesScheme", ["seriesIdx", val]) elif action.actionID == "AddData": seriesIdx = getActionArgumentValue(action, "SeriesIndex") val = getActionArgumentValue(action, "Value") writeActionFunc(text, action, "addDataToSeries", [seriesIdx, val, "NULL"]) elif action.actionID == "SetData": catIdx = getActionArgumentValue(action, "CategoryIndex") seriesIdx = getActionArgumentValue(action, "SeriesIndex") val = getActionArgumentValue(action, "Value") variables["categoryIdx"] = "uint32_t" variables["seriesIdx"] = "uint32_t" writeActionFunc(text, action, "setDataInSeries", [seriesIdx, catIdx, val]) elif action.actionID == "DeleteData": writeActionFunc(text, action, "clearData", []) else: generateWidgetAction(text, variables, owner, event, action)
""" Faça um programa cadastro. Ele deve solicitar o nome, idade e sexo de 10 pessoas. Ao final mostre, a média de idade de todos dos homens e das mulheres, assim como a média geral. O nome do homem mais velho e da mulher mais nova. Obrigatório utilizar estrutura FOR. """ soma_id_h = soma_id_m = quant_h = quant_m = maior_idade = menor_idade = 0 nome_h_velho = nome_m_nova = '' for cont in range(4): nome = str(input('Nome: ')).title() idade = int(input('Idade: ')) sexo = str(input('Sexo [M | F]: ')).upper() print('*' * 30) if cont == 0: maior_idade = idade nome_h_velho = nome menor_idade = idade nome_m_nova = nome if sexo == "M": soma_id_h += idade quant_h += 1 if idade > maior_idade: maior_idade = idade nome_h_velho = nome elif sexo == "F": soma_id_m += idade quant_m += 1 if idade < menor_idade: menor_idade = idade nome_m_nova = nome else: print('Dado inválido!') print(f'\n\nMédia de idade dos homens: {soma_id_h / quant_h:.1f}\n' f'Média de idade das mulheres: {soma_id_m / quant_m:.1f}\n' f'Média idade geral: {(soma_id_h / quant_h) + (soma_id_m / quant_m):.1f}\n' f'Com {maior_idade} anos de idade, o Sr. {nome_h_velho} é o mais velho.\n' f'Com {menor_idade} anos de idade, a Srª {nome_m_nova} é a mais nova.')
# -*- coding: utf-8 -*- """ bandwidth This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). """ class PriorityEnum(object): """Implementation of the 'Priority' enum. The message's priority, currently for toll-free or short code SMS only. Messages with a priority value of `"high"` are given preference over your other traffic. Attributes: DEFAULT: TODO: type description here. HIGH: TODO: type description here. """ DEFAULT = 'default' HIGH = 'high'
#!/usr/bin/python35 fp = open('hello.txt') print(fp.__next__()) print(next(fp)) fp.close()
GLOBAL_TRANSITIONS = "global_transitions" TRANSITIONS = "transitions" RESPONSE = "response" PROCESSING = "processing" GRAPH = "graph" MISC = "misc"
# Faça um programa que leia um número inteiro # e mostre na tela o seu antecessor e seu sucessor. num = int(input('Digite um número: ')) ant = num - 1 suc = num + 1 print(f'O antecessor e o sucessor do número {num} são respectivamente {ant} e {suc}!')
#!/usr/bin/env python3 #https://codeforces.com/contest/1399/problem/F #不能固定一个,必须两边都能动! #如何排序? def f(ll): n = len(ll) ll.sort(key=lambda s:(s[1],-s[0])) cl = [1]*n #max nubmer of taowa, inclding itself for i in range(n): l = ll[i][0] for j in range(i): if ll[j][0]>=l: cl[i] = max(cl[i],cl[j]+1) #cl[i] += 1 dp = {} print(ll) print(cl) for i in range(n): #fix left l,r = ll[i] if r not in dp: dp[r] = 0 if l-1 not in dp: dp[l-1] = 0 dp[r] = max(dp[r],dp[l-1]+cl[i]) print(dp) return max(dp.values()) T = int(input()) for i in range(T): n = int(input()) ll = [list(map(int,input().split())) for _ in range(n)] print(f(ll))
# ATM simulator flourish = ('=' * 40) print(flourish) print('{:^40}'.format('BANCO CEV')) print(flourish) withdrawal = int(input('Quanto você quer sacar? ')) total = withdrawal bill = 50 total_bills = 0 while True: if total >= bill: total -= bill total_bills += 1 else: if total_bills > 0: print(f'Total de {total_bills} cédulas de R$ {bill}') if bill == 50: bill = 20 total_bills = 0 elif bill == 20: bill = 10 total_bills = 0 elif bill == 10: bill = 1 total_bills = 0 if total == 0: break print(flourish) print('Volte sempre ao BANCO CEV! Tenha um bom dia!')
################################################################################# # # # Copyright 2018/08/16 Zachary Priddy ([email protected]) https://zpriddy.com # # # # 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 WTFRequest(object): def __init__(self, request_name, pid=None, **kwargs): self._request_name = request_name self._pid = pid self._kwargs = kwargs self.set_kwargs() def set_kwargs(self): for name, value in self._kwargs.iteritems(): setattr(self, name, value) @property def request_name(self): return self._request_name @property def pid(self): return self._pid @property def kwargs(self): return self._kwargs class WTFAction(WTFRequest): def __init__(self, action_name, pid=None, **kwargs): super(WTFAction, self).__init__(action_name, pid, **kwargs)
def merge_the_tools(string, k): lens = len(string) for i in range(0, lens, k): lists = [j for j in string[i:i+k]] print(''.join(sorted(set(lists), key=lists.index))) s = input() n = int(input()) merge_the_tools(s, n)
def f(x, y): """ Args: x (int): foo Args: y (int): bar Examples: first line second line third line """
# Stepper mode select STEPPER_m0 = 17 STEPPER_m1 = 27 STEPPER_m2 = 22 # First wheel GPIO Pin WHEEL1_step = 21 WHEEL1_dir = 20 # Second wheel GPIO Pin WHEEL2_step = 11 WHEEL2_dir = 10 # Third wheel GPIO Pin WHEEL3_step = 7 WHEEL3_dir = 8 # Fourth wheel GPIO Pin WHEEL4_step = 24 WHEEL4_dir = 23 CW = 1 # Clockwise rotation CCW = 0 # Counter-clockwise rotation STEPS_PER_REVOLUTION = 800 # Steps per Revolution (360/1.8) * 4. Multiply by 4 because quarter step. STEPPER_DELAY = 0.0005
def compute(a, b): return a + b def Test1(): a = -1 b = 1 assert compute(a, b) == -1 def testabc(): a = 0 b = -1 assert compute(a, b) == 0 def Test3(): a = 1 b = 10 assert compute(a, b) == 10 def Test4(): a = -1 b = -1 assert compute(a, b) == 1
URL_PROJECT_VIEW="http://tasks.hotosm.org/project/{project}" URL_PROJECT_EDIT="http://tasks.hotosm.org/project/{project}/edit" URL_PROJECT_TASKS="http://tasks.hotosm.org/project/{project}/tasks.json" URL_CHANGESET_VIEW="http://www.openstreetmap.org/changeset/{changeset}" URL_CHANGESET_API ="https://api.openstreetmap.org/api/0.6/changeset/{changeset}" URL_USER_VIEW="https://www.openstreetmap.org/user/{user}" TASK_STATE_READY = 0 TASK_STATE_INVALIDATED = 1 TASK_STATE_DONE = 2 TASK_STATE_VALIDATED = 3 TASK_STATE_REMOVED = -1
def contains_cycle(first_node): nodes_visited = set() if not first_node or not first_node.next: return False current_node = first_node.next while current_node.next: if current_node.value in nodes_visited: return True else: nodes_visited.add(current_node.value) current_node = current_node.next return False
pessoas = {'nome': 'Gustavo', 'sexo ': 'M', 'idade' : 22} print(pessoas) print(pessoas['idade'])## 22 print(f' O {pessoas["nome"]} tem {pessoas["idade"]} anos.')## O Gustavo tem 22 anos. print(pessoas.keys())## dict_keys(['nome', 'sexo ', 'idade']) print(pessoas.values())##dict_values(['Gustavo', 'M', 22]) print(pessoas.items())##dict_items([('nome', 'Gustavo'), ('sexo ', 'M'), ('idade', 22)]) for k in pessoas.keys(): print(k)## nome sexo idade for k, v in pessoas.items(): print(f'{k} = {v}') ## nome = Gustavo // sexo = M // idade=22 pessoas['peso ']= 98.5 ## apaga sexo] for k, v in pessoas.items(): print(f'{k} = {v}') ## nome = Gustavo // sexo = M // idade=22// peso = 98.5
CONF_Main = { "environment": "lux_gym:lux-v0", "setup": "rl", "model_name": "actor_critic_sep_residual_six_actions", "n_points": 40, # check tfrecords reading transformation merge_rl } CONF_Scrape = { "lux_version": "3.1.0", "scrape_type": "single", "parallel_calls": 8, "is_for_rl": True, "is_pg_rl": True, "team_name": None, # "Toad Brigade", "only_wins": False, "only_top_teams": False, } CONF_Collect = { "is_for_imitator": False, "is_for_rl": True, "is_pg_rl": True, "only_wins": False, } CONF_Evaluate = { "eval_compare_agent": "compare_agent_sub13", } CONF_Imitate = { "batch_size": 300, "self_imitation": False, "with_evaluation": True, } CONF_RL = { "rl_type": "continuous_ac_mc", # "lambda": 0.8, "debug": False, "default_lr": 1e-5, "batch_size": 300, # "iterations_number": 1000, # "save_interval": 100, "entropy_c": 1e-5, "entropy_c_decay": 0.3, }
# Transmission registers TXB0CTRL = 0x30 TXB1CTRL = 0x40 TXB2CTRL = 0x50 TXRTSCTRL = 0x0D TXB0SIDH = 0x31 TXB1SIDH = 0x41 TXB2SIDH = 0x51 TXB0SIDL = 0x32 TXB1SIDL = 0x42 TXB2SIDL = 0x52 TXB0EID8 = 0x33 TXB1EID8 = 0x43 TXB0EID8 = 0x53 TXB0EID0 = 0x34 TXB1EID0 = 0x44 TXB2EID0 = 0x54 TXB0DLC = 0x35 TXB1DLC = 0x45 TXB2DLC = 0x55 TXB0D = 0x36 TXB1D = 0x46 TXB2D = 0x56 # receive registers RXB0CTRL = 0x60 RXB1CTRL = 0x70 BFPCTRL = 0x0C RXB0SIDH = 0x61 RXB1SIDH = 0x71 RXB0SIDL = 0x62 RXB1SIDL = 0x72 RXB0EID8 = 0x63 RXB1EID8 = 0x73 RXB0EID0 = 0x64 RXB1EID0 = 0x74 RXB0DLC = 0x65 RXB1DLC = 0x75 RXB0D0 = 0x66 RXB0D1 = 0x67 RXB0D2 = 0x68 RXB0D3 = 0x69 RXB0D4 = 0x6A RXB0D5 = 0x6B RXB0D6 = 0x6C RXB0D7 = 0x6D RXB1D = 0x76 # Filter Registers RXF0SIDH = 0x00 RXF1SIDH = 0x04 RXF2SIDH = 0x08 RXF3SIDH = 0x10 RXF4SIDH = 0x14 RXF5SIDH = 0x18 RXF0SIDL = 0x01 RXF1SIDL = 0x05 RXF2SIDL = 0x09 RXF3SIDL = 0x11 RXF4SIDL = 0x15 RXF5SIDL = 0x19 RXF0EID8 = 0x02 RXF1EID8 = 0x06 RXF2EID8 = 0x0A RXF3EID8 = 0x12 RXF4EID8 = 0x16 RXF5EID8 = 0x1A RXF0EID0 = 0x03 RXF1EID0 = 0x07 RXF2EID0 = 0x0B RXF3EID0 = 0x13 RXF4EID0 = 0x17 RXF5EID0 = 0x1B #Mask Registers RXM0SIDH = 0x20 RXM1SIDH = 0x24 RXM0SIDL = 0x21 RXM1SIDL = 0x25 RXM0EID8 = 0x22 RXM1EID8 = 0x26 RXM0EID0 = 0x23 RXM1EID0 = 0x27 # Configuration Registers CNF1 = 0x2A CNF2 = 0x29 CNF3 = 0x28 TEC = 0x1C REC = 0x1D EFLG = 0x2D CANINTE = 0x2B CANINTF = 0x2C CANCTRL = 0x0F CANSTAT = 0x0E
class Solution: def increasingTriplet(self, nums): """ :type nums: List[int] :rtype: bool """ first = second = float('inf') for n in nums: if n <= first: first = n elif n <= second: second = n else: return True return False def test_increasing_triplet(): s = Solution() assert s.increasingTriplet([1, 2, 3, 4, 5]) is True assert s.increasingTriplet([5, 4, 3, 2, 1]) is False assert s.increasingTriplet([5, 1, 5, 5, 2, 5, 4]) is True assert s.increasingTriplet([2, 4, -2, -3]) is False
# Heroku PostgreSQL credentials, rename this file to config.py HOST = "placeholder" DB = "placeholder" USER = "placeholder" PASSWORD = "placeholder" PORT = "5432"
def move(direction, distance): global row global col if direction == 'up': if row - distance >= 0 and \ field[row - distance][col] == '.': field[row - distance][col] = 'p' field[row][col] = '.' row = row - distance elif direction == 'down': if row + distance < n and \ field[row + distance][col] == '.': field[row + distance][col] = 'p' field[row][col] = '.' row = row + distance elif direction == 'left': if col - distance >= 0 and \ field[row][col - distance] == '.': field[row][col - distance] = 'p' field[row][col] = '.' col = col - distance elif direction == 'right': if col + distance < n and \ field[row][col + distance] == '.': field[row][col + distance] = 'p' field[row][col] = '.' row = row + distance def shoot(direction, distance): global targets_destroyed global row global col if direction == 'up': if row - distance >= 0: if field[row - distance][col] == 't': targets_destroyed += 1 field[row - distance][col] = 'x' elif direction == 'down': if row + distance < n: if field[row + distance][col] == 't': targets_destroyed += 1 field[row + distance][col] = 'x' elif direction == 'left': for x in field: print(' '.join(x)) print(col) print(distance) if col - distance >= 0: if field[row][col - distance] == 't': targets_destroyed += 1 field[row][col - distance] = 'x' elif direction == 'right': if col + distance < n: if field[row][col + distance] == 't': targets_destroyed += 1 field[row][col + distance] = 'x' n = int(input()) field = [] row = 0 col = 0 targets_count = 0 targets_destroyed = 0 # • "." - empty field # • "p" - the starting position of the plane # • "t" - a target that the plane wants to destroy for _ in range(n): field.append([x for x in input().split()]) for r in range(n): for c in range(n): if field[r][c] == 'p': row = r col = c break if field[r][c] == 't': targets_count += 1 # for x in field: # print(' '.join(x)) commands_count = int(input()) for _ in range(commands_count): tokens = input().split() (command, operator, index) = tokens[0], tokens[1], int(tokens[2]) if command == 'move' and index < n: move(operator, index) elif command == 'shoot' and index < n: shoot(operator, index) # print('-' * 20) # for x in field: # print(' '.join(x)) if targets_count - targets_destroyed == 0: print(f'Mission accomplished! All {targets_count} targets destroyed.') else: print(f'Mission failed! {targets_count - targets_destroyed} targets left.') for x in field: print(' '.join(x))
# Every neuron has a unique connection to the previous neuron. inputs = [3.1 , 2.5 , 5.4] # Every input is going to have a unique weight weights = [4.5 , 7.6 , 2.4] # Every neuron is going to have a unique bias bias = 3 # Now let's check the output from the neuron output = inputs[0] * weights[0] + inputs[1] * weights[1] + inputs[2] * weights[2] + bias # Now let's print the output print(output)
class RebarCouplerError(Enum, IComparable, IFormattable, IConvertible): """ Error states for the Rebar Coupler enum RebarCouplerError,values: BarSegementsAreNotParallel (6),BarSegmentsAreNotOnSameLine (7),BarSegmentSmallerThanEngagement (13),BarsNotTouching (3),CurvesOtherThanLine (12),DifferentLayout (2),InconsistentShape (8),IncorrectEndTreatmentCoupler (5),IncorrectEndTreatmentHook (4),IncorrectInputData (1),InvalidDiameter (9),ValidationSuccessfuly (0),VaryingDistanceBetweenDistributionsBars (14) """ def __eq__(self, *args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass BarSegementsAreNotParallel = None BarSegmentsAreNotOnSameLine = None BarSegmentSmallerThanEngagement = None BarsNotTouching = None CurvesOtherThanLine = None DifferentLayout = None InconsistentShape = None IncorrectEndTreatmentCoupler = None IncorrectEndTreatmentHook = None IncorrectInputData = None InvalidDiameter = None ValidationSuccessfuly = None value__ = None VaryingDistanceBetweenDistributionsBars = None