content
stringlengths
7
1.05M
# # @lc app=leetcode id=498 lang=python3 # # [498] Diagonal Traverse # # https://leetcode.com/problems/diagonal-traverse/description/ # # algorithms # Medium (47.34%) # Likes: 662 # Dislikes: 318 # Total Accepted: 76.3K # Total Submissions: 161K # Testcase Example: '[[1,2,3],[4,5,6],[7,8,9]]' # # Given a matrix of M x N elements (M rows, N columns), return all elements of # the matrix in diagonal order as shown in the below image. # # # # Example: # # # Input: # [ # ⁠[ 1, 2, 3 ], # ⁠[ 4, 5, 6 ], # ⁠[ 7, 8, 9 ] # ] # # Output: [1,2,4,7,5,3,6,8,9] # # Explanation: # # # # # # Note: # # The total number of elements of the given matrix will not exceed 10,000. # # # @lc code=start def downDiagonal(r, c, n, m): if r == 0 and c < m - 1: change() return r, c + 1 elif c == m - 1: change() return r + 1, c else: return r - 1, c + 1 def upDiagonal(r, c, n, m): if c == 0 and r < n - 1: change() return r + 1, c elif r == n - 1: change() return r, c + 1 else: return r + 1, c - 1 UNUSED_ADVANCE = upDiagonal ADVANCE_FUNCTION = downDiagonal def change(): global UNUSED_ADVANCE global ADVANCE_FUNCTION ADVANCE_FUNCTION, UNUSED_ADVANCE = UNUSED_ADVANCE, ADVANCE_FUNCTION class Solution: def findDiagonalOrder(self, matrix): if not matrix: return [] global UNUSED_ADVANCE global ADVANCE_FUNCTION UNUSED_ADVANCE = upDiagonal ADVANCE_FUNCTION = downDiagonal n = len(matrix) m = len(matrix[0]) res = [] left = n * m pos = 0, 0 while left: left -= 1 res.append(matrix[pos[0]][pos[1]]) pos = ADVANCE_FUNCTION(pos[0], pos[1], n, m) return res # @lc code=end
__all__ = [ "messenger", "writer", "processor", "listener", ]
# ПРИМЕР НАСЛЕДОВАНИЯ class PC (object): def __init__(self): self.model ='' self.speed = '' def ShowSpeed (self): print(self.speed + self.model) class Laptop (PC): # Наследуем клас Laptop от класса PC def __init__(self): super(Laptop, self).__init__() # функция super() пробежит по всемродителям класса Laptop # и добавит все свойства __init__ не дублируя def ShowSpeed (self): # создаем такую же функцию как у родителя if True: pass # новые действия для функции else: super(Laptop, self).ShowSpeed() # выполняем функцию родителя def ShowModel(self): print('Laptop')
class Solution: def hammingDistance(self, x: int, y: int) -> int: if x < 0 or y < 0: raise Exception("Negative Input(s)") h_dist = 0 while x > 0 or y > 0: if (x ^ y) & 1 == 1: h_dist += 1 x >>= 1 y >>= 1 return h_dist
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def helper(self, l1, r1, l2, r2): if l1 > r1: return None mid = self.postorder[r2] mid_idx = self.inorder.index(mid) left_size = mid_idx - l1 return TreeNode(mid, self.helper(l1, l1+left_size-1, l2, l2+left_size-1), self.helper(mid_idx+1, r1, l2+left_size, r2-1)) def buildTree(self, inorder: List[int], postorder: List[int]) -> TreeNode: self.inorder = inorder self.postorder = postorder return self.helper(0, len(inorder)-1, 0, len(postorder)-1)
def DIST_NAIF(x, y): return DIST_NAIF_REC(x, y, 0, 0, 0, float('inf')) def DIST_NAIF_REC(x, y, i, j, c, dist): """ x: Dna y: Dna i: indice dans [0..|x|] j: indice dans [0..|y|] dist: coup du meilleur alignement connu avant cet appel return dist meilleur coup connu apre cet appel """ if i == len(x.seq) and j == len(x.seq): if c < dist: dist = c else: if i<len(x.seq) and j<len(y.seq): dist = DIST_NAIF_REC(x, y, i+1, j+1, c+Dna.c_atomique(x.seq[i+1], y.seq[j+1]), dist) if i<len(x.seq): dist = DIST_NAIF_REC(x, y, i+1, j, c+Dna.c_ins, dist) if j<len(y.seq): dist = DIST_NAIF_REC(x, y, i, j+1, c+Dna.c_del, dist) return dist
""" Safe Squares from Rooks On a generalized n-by-n chessboard, there are some number of rooks, each rook represented as a two-tuple (row, column) of the row and the column that it is in. (The rows and columns are numbered from 0 to n-1.) A chess rook covers all squares that are in the same row or in the same column as that rook. Given the board size n and the list of rooks on that board, count the number of empty squares that are safe, that is, are not covered by any rook. Input: [(1, 1), (3, 5), (7, 0), (7, 6)], 8 Output: 20 ========================================= The result is a multiplication between free rows and free columns. Use hashsets to store the free rows and columns. Time Complexity: O(N) Space Complexity: O(N) """ ############ # Solution # ############ def safe_squares_rooks(rooks, n): rows = set() cols = set() for i in range(n): rows.add(i) cols.add(i) for rook in rooks: if rook[0] in rows: rows.remove(rook[0]) if rook[1] in cols: cols.remove(rook[1]) return len(rows) * len(cols) ########### # Testsing # ########### # safe_squares_rooks 1 # Correct result => 1 print(safe_squares_rooks([(1, 1)], 2)) # safe_squares_rooks 2 # Correct result => 4 print(safe_squares_rooks([(2, 3), (0, 1)], 4)) # safe_squares_rooks 3 # Correct result => 20 print(safe_squares_rooks([(1, 1), (3, 5), (7, 0), (7, 6)], 8)) # safe_squares_rooks 4 # Correct result => 0 print(safe_squares_rooks([(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5)], 6))
""" Link: https://www.hackerrank.com/challenges/python-print/problem?isFullScreen=true Problem: Print Function """ #Solution if __name__ == '__main__': n = int(input()) for i in range(1,n+1): print(i, end="")
def mergeSort(alist): if len(alist) > 1: mid = len(alist)//2 lefthalf = alist[:mid] righthalf = alist[mid:] mergeSort(lefthalf) mergeSort(righthalf) i = 0; j = 0; k = 0 while i < len(lefthalf) and j < len(righthalf): if lefthalf[i] < righthalf[j]: alist[k] = lefthalf[i] i += 1 else: alist[k] = righthalf[j] j += 1 k += 1 while i < len(lefthalf): alist[k] = lefthalf[i] i += 1 k += 1 while j < len(righthalf): alist[k] = righthalf[j] j += 1 k += 1 alist = [54,26,93,17,77,31,44,55,20] mergeSort(alist) print(alist)
#AREA DO CIRCULO r= float(input()) resultado= 3.14* r**2/10000 print("Area={:.4f}".format(resultado) )
soma = cont = 0 while True: num = int(input('Digite um número: ')) if num == 999: break soma += num cont += 1 print('PROGRAMA FINALIZADO!') print(f'Foram digitados {cont} números e soma entre ele é {soma}')
#Berivan ARAS #180401037 def polinom_bulma(m1,m2,m3,m4,m5,m6,file): file.write("m1 = "+str(m1)+" m2 = "+str(m2)+" m3 = "+str(m3)+" m4 = "+str(m4)+" m5 = "+str(m5)+" m6 = "+str(m6)+"\n") if m1>m6 and m1>m5 and m1>m4 and m1>m3 and m1>m2: file2.write(str(m1) + "en uygun 1. polinom. \n") elif m2>m6 and m2>m5 and m2>m4 and m2>m3: file2.write(str(m2) + "en uygun 2.polinom. \n") elif m3>m6 and m3>m5 and m3>m4: file2.write(str(m3) + " en uygun 3.polinom. \n") elif m4>m6 and m4>m5: file2.write(str(m4) + "en uygun 4.polinom. \n") elif m5>m6: file2.write(str(m5) + "en uygun 5.polinom. \n") else: file2.write(str(m6) + "en uygun 6.polinom. \n") def katsayılar(pol1,pol2,pol3,pol4,pol5,pol6,file): file.write("1.dereceden polinom icin x0 = "+str(pol1[0]) + " x1 = " + str(pol1[1]) + "\n" ) file.write("2.dereceden polinom icin x0 = "+str(pol2[0]) + " x1 = " + str(pol2[1]) + " x2 =" + str(pol2[2]) + "\n") file.write("3.dereceden polinom icin x0 = "+str(pol3[0]) + " x1 = " + str(pol3[1]) + " x2 =" + str(pol3[2]) + " x3 = " + str(pol3[3]) + "\n") file.write("4.dereceden polinom icin x0 = "+str(pol4[0]) + " x1 = " + str(pol4[1]) + " x2 =" + str(pol4[2]) + " x3 = " + str(pol4[3]) + " x4 = " + str(pol4[4]) + "\n") file.write("5.dereceden polinom icin x0 = "+str(pol5[0]) + " x1 = " + str(pol5[1]) + " x2 =" + str(pol5[2]) + " x3 = " + str(pol5[3]) + " x4 = " + str(pol5[4]) + " x5 = "+ str(pol5[5])+ "\n") file.write("6.dereceden polinom icin x0 = "+str(pol6[0]) + " x1 = " + str(pol6[1]) + " x2 =" + str(pol6[2]) + " x3 = " + str(pol6[3]) + " x4 = " + str(pol6[4]) + " x5 = "+ str(pol6[5])+" x6 = "+str(pol6[6])+ "\n") def interpolasyon(derece,veri): matrix=[] a=0 for i in range(derece+1): line=[] for j in range(derece+1): toplam=0 for k in range(1,len(veri)+1): toplam += k**a line.append(toplam) a += 1 matrix.append(line) a -= derece cozum = [] for i in range(derece+1): toplam=0 for j in range(len(veri)): toplam += veri[j]*(j+1)**i cozum.append(toplam) for i in range(derece,-1,-1): simile = matrix[i][i] for j in range(i-1,-1,-1): rate=simile/matrix[j][i] cozum[j] = cozum[j]*rate-cozum[i] for k in range(derece+1): matrix[j][k]= matrix[j][k]*rate-matrix[i][k] for i in range(derece+1): simile = matrix[i][i] for j in range(i+1, derece+1): rate = simile/matrix[j][i] cozum[j] = cozum[j]*rate-cozum[i] for k in range(derece+1): matrix[j][k] = matrix[j][k]*rate-matrix[i][k] for i in range(derece+1): cozum[i]=cozum[i]/matrix[i][i] y_ortalama=0 for i in range (len(veri)): y_ortalama += veri[i] y_ortalama = y_ortalama/len(veri) y_ortalama_t, y_ortalama_r = 0,0 for i in range(len(veri)): z = veri[i] y_ortalama_t += (veri[i]-y_ortalama)**2 for j in range(len(cozum)): z -= cozum[j]*(i+1)**j z=z**2 y_ortalama_r += z m = ((y_ortalama_t - y_ortalama_r)/y_ortalama_t)**(1/2) return cozum,m file = open("veri.txt","r") veri = file.readlines() for i in range(len(veri)): veri[i]=int(veri[i]) pol1,m1=interpolasyon(1,veri) pol2,m2=interpolasyon(2,veri) pol3,m3=interpolasyon(3,veri) pol4,m4=interpolasyon(4,veri) pol5,m5=interpolasyon(5,veri) pol6,m6=interpolasyon(6,veri) file.close() file2 = open("sonuc.txt","w") katsayılar(pol1,pol2,pol3,pol4,pol5,pol6,file2) polinom_bulma(m1,m2,m3,m4,m5,m6,file2) for i in range(len(veri)//10): file2.write("\n"+str(i+1)+". 10'lu grup icin \n") onlu_sıralı=[] for j in range(10): onlu_sıralı.append(veri[10*i+j]) pol1,m1=interpolasyon(1,onlu_sıralı) pol2,m2=interpolasyon(2,onlu_sıralı) pol3,m3=interpolasyon(3,onlu_sıralı) pol4,m4=interpolasyon(4,onlu_sıralı) pol5,m5=interpolasyon(5,onlu_sıralı) pol6,m6=interpolasyon(6,onlu_sıralı) katsayılar(pol1,pol2,pol3,pol4,pol5,pol6,file2) polinom_bulma(m1,m2,m3,m4,m5,m6,file2) file2.close()
#!/usr/bin/env python3 def has_dups(data): for i in data: if data.count(i) > 1: return True else: return False print(has_dups([1, 2, 3])) print(has_dups([1,1,2,3]))
# Copyright 2019 The Kubernetes Authors. # # 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. """Configures repositories required by repo-infra.""" load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") load("@bazel_skylib//lib:versions.bzl", "versions") load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") def configure(minimum_bazel_version = None, rbe_name = "rbe_default", go_version = None, nogo = None): if minimum_bazel_version: # Allow an additional downstream constraint versions.check(minimum_bazel_version = minimum_bazel_version) versions.check(minimum_bazel_version = "2.2.0") # Minimum rules for this repo if rbe_name: rbe_autoconfig(name = rbe_name) protobuf_deps() # No options go_rules_dependencies() # No options go_register_toolchains(go_version = go_version, nogo = nogo) gazelle_dependencies() # TODO(fejta): go_sdk and go_repository_default_cache def repo_infra_go_repositories(): go_repositories() repo_infra_patches() def repo_infra_patches(): # These require custom edits, please maintain go_repository( name = "com_github_golang_protobuf", build_file_generation = "on", build_file_proto_mode = "disable_global", # Avoid import cyle importpath = "github.com/golang/protobuf", sum = "h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=", version = "v1.3.3", ) go_repository( name = "org_golang_x_tools", # Must keep in sync with rules_go version build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/tools", patch_args = ["-p1"], patches = [ "@io_bazel_rules_go//third_party:org_golang_x_tools-extras.patch", # Add go_tool_library targets ], sum = "h1:zE128a8BUJqwFqwi8LxUnOdV3eSOGIzDhiIV/QW8eXc=", version = "v0.0.0-20200221191710-57f3fb51f507", ) def go_repositories(): """Packages used by go.mod, created by @io_k8s_repo_infra//hack:update-bazel.""" go_repository( name = "cc_mvdan_interfacer", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "mvdan.cc/interfacer", sum = "h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I=", version = "v0.0.0-20180901003855-c20040233aed", ) go_repository( name = "cc_mvdan_lint", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "mvdan.cc/lint", sum = "h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo=", version = "v0.0.0-20170908181259-adc824a0674b", ) go_repository( name = "cc_mvdan_unparam", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "mvdan.cc/unparam", sum = "h1:Cq7MalBHYACRd6EesksG1Q8EoIAKOsiZviGKbOLIej4=", version = "v0.0.0-20190720180237-d51796306d8f", ) go_repository( name = "com_github_bazelbuild_bazel_gazelle", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/bazelbuild/bazel-gazelle", sum = "h1:kRymV9q+24Mbeg25fJehw+gvrtVIlwZZAefOSUq4MzU=", version = "v0.20.0", ) go_repository( name = "com_github_bazelbuild_buildtools", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/bazelbuild/buildtools", sum = "h1:F2UHxHXipTXxTmIKALHwAdNsvTPhSkgshcTNCMPJj1M=", version = "v0.0.0-20200228172928-c9d9e342afdb", ) go_repository( name = "com_github_burntsushi_toml", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/BurntSushi/toml", sum = "h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=", version = "v0.3.1", ) go_repository( name = "com_github_davecgh_go_spew", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/davecgh/go-spew", sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=", version = "v1.1.1", ) go_repository( name = "com_github_fatih_color", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/fatih/color", sum = "h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=", version = "v1.7.0", ) go_repository( name = "com_github_fsnotify_fsnotify", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/fsnotify/fsnotify", sum = "h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=", version = "v1.4.7", ) go_repository( name = "com_github_go_critic_go_critic", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-critic/go-critic", sum = "h1:4DTQfT1wWwLg/hzxwD9bkdhDQrdJtxe6DUTadPlrIeE=", version = "v0.4.1", ) go_repository( name = "com_github_go_lintpack_lintpack", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-lintpack/lintpack", sum = "h1:DI5mA3+eKdWeJ40nU4d6Wc26qmdG8RCi/btYq0TuRN0=", version = "v0.5.2", ) go_repository( name = "com_github_go_ole_go_ole", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-ole/go-ole", sum = "h1:2lOsA72HgjxAuMlKpFiCbHTvu44PIVkZ5hqm3RSdI/E=", version = "v1.2.1", ) go_repository( name = "com_github_go_toolsmith_astcast", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/astcast", sum = "h1:JojxlmI6STnFVG9yOImLeGREv8W2ocNUM+iOhR6jE7g=", version = "v1.0.0", ) go_repository( name = "com_github_go_toolsmith_astcopy", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/astcopy", sum = "h1:OMgl1b1MEpjFQ1m5ztEO06rz5CUd3oBv9RF7+DyvdG8=", version = "v1.0.0", ) go_repository( name = "com_github_go_toolsmith_astequal", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/astequal", sum = "h1:4zxD8j3JRFNyLN46lodQuqz3xdKSrur7U/sr0SDS/gQ=", version = "v1.0.0", ) go_repository( name = "com_github_go_toolsmith_astfmt", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/astfmt", sum = "h1:A0vDDXt+vsvLEdbMFJAUBI/uTbRw1ffOPnxsILnFL6k=", version = "v1.0.0", ) go_repository( name = "com_github_go_toolsmith_astinfo", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/astinfo", sum = "h1:wP6mXeB2V/d1P1K7bZ5vDUO3YqEzcvOREOxZPEu3gVI=", version = "v0.0.0-20180906194353-9809ff7efb21", ) go_repository( name = "com_github_go_toolsmith_astp", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/astp", sum = "h1:alXE75TXgcmupDsMK1fRAy0YUzLzqPVvBKoyWV+KPXg=", version = "v1.0.0", ) go_repository( name = "com_github_go_toolsmith_pkgload", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/pkgload", sum = "h1:4DFWWMXVfbcN5So1sBNW9+yeiMqLFGl1wFLTL5R0Tgg=", version = "v1.0.0", ) go_repository( name = "com_github_go_toolsmith_strparse", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/strparse", sum = "h1:Vcw78DnpCAKlM20kSbAyO4mPfJn/lyYA4BJUDxe2Jb4=", version = "v1.0.0", ) go_repository( name = "com_github_go_toolsmith_typep", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-toolsmith/typep", sum = "h1:zKymWyA1TRYvqYrYDrfEMZULyrhcnGY3x7LDKU2XQaA=", version = "v1.0.0", ) go_repository( name = "com_github_gobwas_glob", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gobwas/glob", sum = "h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=", version = "v0.2.3", ) go_repository( name = "com_github_gogo_protobuf", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gogo/protobuf", sum = "h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE=", version = "v1.2.1", ) go_repository( name = "com_github_golang_mock", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golang/mock", sum = "h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s=", version = "v1.3.1", ) go_repository( name = "com_github_golang_protobuf", build_file_generation = "on", build_file_proto_mode = "disable_global", # Avoid import cycle importpath = "github.com/golang/protobuf", sum = "h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=", version = "v1.3.3", ) go_repository( name = "com_github_golangci_check", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/check", sum = "h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0=", version = "v0.0.0-20180506172741-cfe4005ccda2", ) go_repository( name = "com_github_golangci_dupl", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/dupl", sum = "h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM=", version = "v0.0.0-20180902072040-3e9179ac440a", ) go_repository( name = "com_github_golangci_errcheck", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/errcheck", sum = "h1:YYWNAGTKWhKpcLLt7aSj/odlKrSrelQwlovBpDuf19w=", version = "v0.0.0-20181223084120-ef45e06d44b6", ) go_repository( name = "com_github_golangci_go_misc", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/go-misc", sum = "h1:9kfjN3AdxcbsZBf8NjltjWihK2QfBBBZuv91cMFfDHw=", version = "v0.0.0-20180628070357-927a3d87b613", ) go_repository( name = "com_github_golangci_goconst", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/goconst", sum = "h1:pe9JHs3cHHDQgOFXJJdYkK6fLz2PWyYtP4hthoCMvs8=", version = "v0.0.0-20180610141641-041c5f2b40f3", ) go_repository( name = "com_github_golangci_gocyclo", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/gocyclo", sum = "h1:J2XAy40+7yz70uaOiMbNnluTg7gyQhtGqLQncQh+4J8=", version = "v0.0.0-20180528134321-2becd97e67ee", ) go_repository( name = "com_github_golangci_gofmt", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/gofmt", sum = "h1:iR3fYXUjHCR97qWS8ch1y9zPNsgXThGwjKPrYfqMPks=", version = "v0.0.0-20190930125516-244bba706f1a", ) go_repository( name = "com_github_golangci_golangci_lint", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/golangci-lint", sum = "h1:/rWK6IXb9k554NPStxDapUgHsJhKf73AsSWvYqIDkp8=", version = "v1.23.7", ) go_repository( name = "com_github_golangci_ineffassign", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/ineffassign", sum = "h1:gLLhTLMk2/SutryVJ6D4VZCU3CUqr8YloG7FPIBWFpI=", version = "v0.0.0-20190609212857-42439a7714cc", ) go_repository( name = "com_github_golangci_lint_1", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/lint-1", sum = "h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA=", version = "v0.0.0-20191013205115-297bf364a8e0", ) go_repository( name = "com_github_golangci_maligned", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/maligned", sum = "h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA=", version = "v0.0.0-20180506175553-b1d89398deca", ) go_repository( name = "com_github_golangci_misspell", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/misspell", sum = "h1:EL/O5HGrF7Jaq0yNhBLucz9hTuRzj2LdwGBOaENgxIk=", version = "v0.0.0-20180809174111-950f5d19e770", ) go_repository( name = "com_github_golangci_prealloc", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/prealloc", sum = "h1:leSNB7iYzLYSSx3J/s5sVf4Drkc68W2wm4Ixh/mr0us=", version = "v0.0.0-20180630174525-215b22d4de21", ) go_repository( name = "com_github_golangci_revgrep", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/revgrep", sum = "h1:HVfrLniijszjS1aiNg8JbBMO2+E1WIQ+j/gL4SQqGPg=", version = "v0.0.0-20180526074752-d9c87f5ffaf0", ) go_repository( name = "com_github_golangci_unconvert", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golangci/unconvert", sum = "h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys=", version = "v0.0.0-20180507085042-28b1c447d1f4", ) go_repository( name = "com_github_google_go_cmp", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/go-cmp", sum = "h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=", version = "v0.4.0", ) go_repository( name = "com_github_gostaticanalysis_analysisutil", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gostaticanalysis/analysisutil", sum = "h1:JVnpOZS+qxli+rgVl98ILOXVNbW+kb5wcxeGx8ShUIw=", version = "v0.0.0-20190318220348-4088753ea4d3", ) go_repository( name = "com_github_hashicorp_hcl", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/hashicorp/hcl", sum = "h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=", version = "v1.0.0", ) go_repository( name = "com_github_hpcloud_tail", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/hpcloud/tail", sum = "h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=", version = "v1.0.0", ) go_repository( name = "com_github_inconshreveable_mousetrap", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/inconshreveable/mousetrap", sum = "h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=", version = "v1.0.0", ) go_repository( name = "com_github_kisielk_gotool", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/kisielk/gotool", sum = "h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=", version = "v1.0.0", ) go_repository( name = "com_github_klauspost_compress", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/klauspost/compress", sum = "h1:8VMb5+0wMgdBykOV96DwNwKFQ+WTI4pzYURP99CcB9E=", version = "v1.4.1", ) go_repository( name = "com_github_klauspost_cpuid", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/klauspost/cpuid", sum = "h1:NMpwD2G9JSFOE1/TJjGSo5zG7Yb2bTe7eq1jH+irmeE=", version = "v1.2.0", ) go_repository( name = "com_github_kr_pretty", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/kr/pretty", sum = "h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=", version = "v0.1.0", ) go_repository( name = "com_github_kr_pty", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/kr/pty", sum = "h1:AkaSdXYQOWeaO3neb8EM634ahkXXe3jYbVh/F9lq+GI=", version = "v1.1.8", ) go_repository( name = "com_github_kr_text", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/kr/text", sum = "h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=", version = "v0.1.0", ) go_repository( name = "com_github_logrusorgru_aurora", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/logrusorgru/aurora", sum = "h1:9MlwzLdW7QSDrhDjFlsEYmxpFyIoXmYRon3dt0io31k=", version = "v0.0.0-20181002194514-a7b3b318ed4e", ) go_repository( name = "com_github_magiconair_properties", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/magiconair/properties", sum = "h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4=", version = "v1.8.1", ) go_repository( name = "com_github_mattn_go_colorable", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mattn/go-colorable", sum = "h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=", version = "v0.1.4", ) go_repository( name = "com_github_mattn_go_isatty", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mattn/go-isatty", sum = "h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=", version = "v0.0.8", ) go_repository( name = "com_github_mattn_goveralls", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mattn/goveralls", sum = "h1:7eJB6EqsPhRVxvwEXGnqdO2sJI0PTsrWoTMXEk9/OQc=", version = "v0.0.2", ) go_repository( name = "com_github_mitchellh_go_homedir", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mitchellh/go-homedir", sum = "h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=", version = "v1.1.0", ) go_repository( name = "com_github_mitchellh_go_ps", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mitchellh/go-ps", sum = "h1:9+ke9YJ9KGWw5ANXK6ozjoK47uI3uNbXv4YVINBnGm8=", version = "v0.0.0-20190716172923-621e5597135b", ) go_repository( name = "com_github_mitchellh_mapstructure", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mitchellh/mapstructure", sum = "h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=", version = "v1.1.2", ) go_repository( name = "com_github_mozilla_tls_observatory", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mozilla/tls-observatory", sum = "h1:Av0AX0PnAlPZ3AY2rQUobGFaZfE4KHVRdKWIEPvsCWY=", version = "v0.0.0-20190404164649-a3c1b6cfecfd", ) go_repository( name = "com_github_nbutton23_zxcvbn_go", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/nbutton23/zxcvbn-go", sum = "h1:AREM5mwr4u1ORQBMvzfzBgpsctsbQikCVpvC+tX285E=", version = "v0.0.0-20180912185939-ae427f1e4c1d", ) go_repository( name = "com_github_onsi_ginkgo", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/onsi/ginkgo", sum = "h1:JAKSXpt1YjtLA7YpPiqO9ss6sNXEsPfSGdwN0UHqzrw=", version = "v1.11.0", ) go_repository( name = "com_github_onsi_gomega", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/onsi/gomega", sum = "h1:C5Dqfs/LeauYDX0jJXIe2SWmwCbGzx9yF8C8xy3Lh34=", version = "v1.8.1", ) go_repository( name = "com_github_openpeedeep_depguard", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/OpenPeeDeeP/depguard", sum = "h1:VlW4R6jmBIv3/u1JNlawEvJMM4J+dPORPaZasQee8Us=", version = "v1.0.1", ) go_repository( name = "com_github_pelletier_go_toml", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/pelletier/go-toml", sum = "h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=", version = "v1.2.0", ) go_repository( name = "com_github_pkg_errors", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/pkg/errors", sum = "h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=", version = "v0.8.1", ) go_repository( name = "com_github_pmezard_go_difflib", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/pmezard/go-difflib", sum = "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=", version = "v1.0.0", ) go_repository( name = "com_github_quasilyte_go_consistent", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/quasilyte/go-consistent", sum = "h1:JoUA0uz9U0FVFq5p4LjEq4C0VgQ0El320s3Ms0V4eww=", version = "v0.0.0-20190521200055-c6f3937de18c", ) go_repository( name = "com_github_rogpeppe_go_internal", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/rogpeppe/go-internal", sum = "h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk=", version = "v1.3.0", ) go_repository( name = "com_github_shirou_gopsutil", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/shirou/gopsutil", sum = "h1:WokF3GuxBeL+n4Lk4Fa8v9mbdjlrl7bHuneF4N1bk2I=", version = "v0.0.0-20190901111213-e4ec7b275ada", ) go_repository( name = "com_github_shirou_w32", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/shirou/w32", sum = "h1:udFKJ0aHUL60LboW/A+DfgoHVedieIzIXE8uylPue0U=", version = "v0.0.0-20160930032740-bb4de0191aa4", ) go_repository( name = "com_github_shurcool_go", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/shurcooL/go", sum = "h1:MZM7FHLqUHYI0Y/mQAt3d2aYa0SiNms/hFqC9qJYolM=", version = "v0.0.0-20180423040247-9e1955d9fb6e", ) go_repository( name = "com_github_shurcool_go_goon", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/shurcooL/go-goon", sum = "h1:llrF3Fs4018ePo4+G/HV/uQUqEI1HMDjCeOf2V6puPc=", version = "v0.0.0-20170922171312-37c2f522c041", ) go_repository( name = "com_github_sirupsen_logrus", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/sirupsen/logrus", sum = "h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=", version = "v1.4.2", ) go_repository( name = "com_github_sourcegraph_go_diff", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/sourcegraph/go-diff", sum = "h1:gO6i5zugwzo1RVTvgvfwCOSVegNuvnNi6bAD1QCmkHs=", version = "v0.5.1", ) go_repository( name = "com_github_spf13_afero", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/spf13/afero", sum = "h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI=", version = "v1.1.2", ) go_repository( name = "com_github_spf13_cast", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/spf13/cast", sum = "h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8=", version = "v1.3.0", ) go_repository( name = "com_github_spf13_cobra", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/spf13/cobra", sum = "h1:f0B+LkLX6DtmRH1isoNA9VTtNUK9K8xYd28JNNfOv/s=", version = "v0.0.5", ) go_repository( name = "com_github_spf13_jwalterweatherman", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/spf13/jwalterweatherman", sum = "h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk=", version = "v1.0.0", ) go_repository( name = "com_github_spf13_pflag", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/spf13/pflag", sum = "h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=", version = "v1.0.5", ) go_repository( name = "com_github_spf13_viper", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/spf13/viper", sum = "h1:VPZzIkznI1YhVMRi6vNFLHSwhnhReBfgTxIPccpfdZk=", version = "v1.6.1", ) go_repository( name = "com_github_stackexchange_wmi", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/StackExchange/wmi", sum = "h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8=", version = "v0.0.0-20180116203802-5d049714c4a6", ) go_repository( name = "com_github_stretchr_testify", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/stretchr/testify", sum = "h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=", version = "v1.4.0", ) go_repository( name = "com_github_timakin_bodyclose", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/timakin/bodyclose", sum = "h1:RumXZ56IrCj4CL+g1b9OL/oH0QnsF976bC8xQFYUD5Q=", version = "v0.0.0-20190930140734-f7f2e9bca95e", ) go_repository( name = "com_github_ultraware_funlen", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/ultraware/funlen", sum = "h1:Av96YVBwwNSe4MLR7iI/BIa3VyI7/djnto/pK3Uxbdo=", version = "v0.0.2", ) go_repository( name = "com_github_valyala_bytebufferpool", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/valyala/bytebufferpool", sum = "h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=", version = "v1.0.0", ) go_repository( name = "com_github_valyala_fasthttp", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/valyala/fasthttp", sum = "h1:dzZJf2IuMiclVjdw0kkT+f9u4YdrapbNyGAN47E/qnk=", version = "v1.2.0", ) go_repository( name = "com_github_valyala_quicktemplate", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/valyala/quicktemplate", sum = "h1:BaO1nHTkspYzmAjPXj0QiDJxai96tlcZyKcI9dyEGvM=", version = "v1.2.0", ) go_repository( name = "com_github_valyala_tcplisten", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/valyala/tcplisten", sum = "h1:0R4NLDRDZX6JcmhJgXi5E4b8Wg84ihbmUKp/GvSPEzc=", version = "v0.0.0-20161114210144-ceec8f93295a", ) go_repository( name = "com_sourcegraph_sqs_pbtypes", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "sourcegraph.com/sqs/pbtypes", sum = "h1:JPJh2pk3+X4lXAkZIk2RuE/7/FoK9maXw+TNPJhVS/c=", version = "v0.0.0-20180604144634-d3ebe8f20ae4", ) go_repository( name = "in_gopkg_check_v1", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/check.v1", sum = "h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=", version = "v1.0.0-20190902080502-41f04d3bba15", ) go_repository( name = "in_gopkg_errgo_v2", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/errgo.v2", sum = "h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=", version = "v2.1.0", ) go_repository( name = "in_gopkg_fsnotify_v1", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/fsnotify.v1", sum = "h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=", version = "v1.4.7", ) go_repository( name = "in_gopkg_tomb_v1", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/tomb.v1", sum = "h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=", version = "v1.0.0-20141024135613-dd632973f1e7", ) go_repository( name = "in_gopkg_yaml_v2", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/yaml.v2", sum = "h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=", version = "v2.2.7", ) go_repository( name = "io_k8s_klog", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "k8s.io/klog", sum = "h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8=", version = "v1.0.0", ) go_repository( name = "org_golang_x_build", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/build", sum = "h1:aJVl+xDmB1VkCrLev/VX9jah/wJX/I58lUclpeX5zBY=", version = "v0.0.0-20200302185339-bb8466fe872a", ) go_repository( name = "org_golang_x_crypto", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/crypto", sum = "h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8=", version = "v0.0.0-20191011191535-87dc89f01550", ) go_repository( name = "org_golang_x_net", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/net", sum = "h1:CCH4IOTTfewWjGOlSp+zGcjutRKlBEZQ6wTn8ozI/nI=", version = "v0.0.0-20200202094626-16171245cfb2", ) go_repository( name = "org_golang_x_sync", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/sync", sum = "h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=", version = "v0.0.0-20190911185100-cd5d95a43a6e", ) go_repository( name = "org_golang_x_sys", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/sys", sum = "h1:LfCXLvNmTYH9kEmVgqbnsWfruoXZIrh4YBgqVHtDvw0=", version = "v0.0.0-20200202164722-d101bd2416d5", ) go_repository( name = "org_golang_x_text", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/text", sum = "h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=", version = "v0.3.2", ) go_repository( name = "org_golang_x_tools", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/tools", patch_args = ["-p1"], patches = [ "@io_bazel_rules_go//third_party:org_golang_x_tools-extras.patch", # Add go_tool_library targets ], sum = "h1:zE128a8BUJqwFqwi8LxUnOdV3eSOGIzDhiIV/QW8eXc=", version = "v0.0.0-20200221191710-57f3fb51f507", ) go_repository( name = "org_golang_x_xerrors", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/xerrors", sum = "h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=", version = "v0.0.0-20191204190536-9bdfabe68543", ) go_repository( name = "com_github_armon_consul_api", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/armon/consul-api", sum = "h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA=", version = "v0.0.0-20180202201655-eb2c6b5be1b6", ) go_repository( name = "com_github_bazelbuild_rules_go", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/bazelbuild/rules_go", sum = "h1:wzbawlkLtl2ze9w/312NHZ84c7kpUCtlkD8HgFY27sw=", version = "v0.0.0-20190719190356-6dae44dc5cab", ) go_repository( name = "com_github_coreos_etcd", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/coreos/etcd", sum = "h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=", version = "v3.3.10+incompatible", ) go_repository( name = "com_github_coreos_go_etcd", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/coreos/go-etcd", sum = "h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo=", version = "v2.0.0+incompatible", ) go_repository( name = "com_github_coreos_go_semver", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/coreos/go-semver", sum = "h1:3Jm3tLmsgAYcjC+4Up7hJrFBPr+n7rAqYeSw/SZazuY=", version = "v0.2.0", ) go_repository( name = "com_github_cpuguy83_go_md2man", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/cpuguy83/go-md2man", sum = "h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=", version = "v1.0.10", ) go_repository( name = "com_github_russross_blackfriday", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/russross/blackfriday", sum = "h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=", version = "v1.5.2", ) go_repository( name = "com_github_ugorji_go_codec", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/ugorji/go/codec", sum = "h1:3SVOIvH7Ae1KRYyQWRjXWJEA9sS/c/pjvH++55Gr648=", version = "v0.0.0-20181204163529-d75b2dcb6bc8", ) go_repository( name = "com_github_xordataexchange_crypt", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/xordataexchange/crypt", sum = "h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow=", version = "v0.0.3-0.20170626215501-b2862e3d0a77", ) go_repository( name = "com_github_go_logr_logr", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-logr/logr", sum = "h1:M1Tv3VzNlEHg6uyACnRdtrploV2P7wZqH8BoQMtz0cg=", version = "v0.1.0", ) go_repository( name = "co_honnef_go_tools", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "honnef.co/go/tools", sum = "h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM=", version = "v0.0.1-2019.2.3", ) go_repository( name = "com_github_anmitsu_go_shlex", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/anmitsu/go-shlex", sum = "h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA=", version = "v0.0.0-20161002113705-648efa622239", ) go_repository( name = "com_github_bradfitz_go_smtpd", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/bradfitz/go-smtpd", sum = "h1:ckJgFhFWywOx+YLEMIJsTb+NV6NexWICk5+AMSuz3ss=", version = "v0.0.0-20170404230938-deb6d6237625", ) go_repository( name = "com_github_client9_misspell", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/client9/misspell", sum = "h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=", version = "v0.3.4", ) go_repository( name = "com_github_coreos_go_systemd", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/coreos/go-systemd", sum = "h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=", version = "v0.0.0-20190321100706-95778dfbb74e", ) go_repository( name = "com_github_flynn_go_shlex", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/flynn/go-shlex", sum = "h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=", version = "v0.0.0-20150515145356-3f9db97f8568", ) go_repository( name = "com_github_gliderlabs_ssh", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gliderlabs/ssh", sum = "h1:j3L6gSLQalDETeEg/Jg0mGY0/y/N6zI2xX1978P0Uqw=", version = "v0.1.1", ) go_repository( name = "com_github_golang_glog", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golang/glog", sum = "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=", version = "v0.0.0-20160126235308-23def4e6c14b", ) go_repository( name = "com_github_google_btree", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/btree", sum = "h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=", version = "v1.0.0", ) go_repository( name = "com_github_google_go_github", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/go-github", sum = "h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY=", version = "v17.0.0+incompatible", ) go_repository( name = "com_github_google_go_querystring", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/go-querystring", sum = "h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=", version = "v1.0.0", ) go_repository( name = "com_github_google_martian", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/martian", sum = "h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=", version = "v2.1.0+incompatible", ) go_repository( name = "com_github_google_pprof", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/pprof", sum = "h1:DLpL8pWq0v4JYoRpEhDfsJhhJyGKCcQM2WPW2TJs31c=", version = "v0.0.0-20191218002539-d4f498aebedc", ) go_repository( name = "com_github_googleapis_gax_go_v2", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/googleapis/gax-go/v2", sum = "h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=", version = "v2.0.5", ) go_repository( name = "com_github_gregjones_httpcache", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gregjones/httpcache", sum = "h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM=", version = "v0.0.0-20180305231024-9cad4c3443a7", ) go_repository( name = "com_github_hashicorp_golang_lru", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/hashicorp/golang-lru", sum = "h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=", version = "v0.5.1", ) go_repository( name = "com_github_jellevandenhooff_dkim", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/jellevandenhooff/dkim", sum = "h1:ujPKutqRlJtcfWk6toYVYagwra7HQHbXOaS171b4Tg8=", version = "v0.0.0-20150330215556-f50fe3d243e1", ) go_repository( name = "com_github_jstemmer_go_junit_report", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/jstemmer/go-junit-report", sum = "h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=", version = "v0.9.1", ) go_repository( name = "com_github_tarm_serial", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/tarm/serial", sum = "h1:UyzmZLoiDWMRywV4DUYb9Fbt8uiOSooupjTq10vpvnU=", version = "v0.0.0-20180830185346-98f6abe2eb07", ) go_repository( name = "com_google_cloud_go", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "cloud.google.com/go", sum = "h1:GGslhk/BU052LPlnI1vpp3fcbUs+hQ3E+Doti/3/vF8=", version = "v0.52.0", ) go_repository( name = "in_gopkg_inf_v0", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/inf.v0", sum = "h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=", version = "v0.9.1", ) go_repository( name = "io_opencensus_go", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "go.opencensus.io", sum = "h1:75k/FF0Q2YM8QYo07VPddOLBslDt1MZOdEslOHvmzAs=", version = "v0.22.2", ) go_repository( name = "org_go4", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "go4.org", sum = "h1:+hE86LblG4AyDgwMCLTE6FOlM9+qjHSYS+rKqxUVdsM=", version = "v0.0.0-20180809161055-417644f6feb5", ) go_repository( name = "org_go4_grpc", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "grpc.go4.org", sum = "h1:tmXTu+dfa+d9Evp8NpJdgOy6+rt8/x4yG7qPBrtNfLY=", version = "v0.0.0-20170609214715-11d0a25b4919", ) go_repository( name = "org_golang_google_api", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "google.golang.org/api", sum = "h1:0q95w+VuFtv4PAx4PZVQdBMmYbaCHbnfKaEiDIcVyag=", version = "v0.17.0", ) go_repository( name = "org_golang_google_appengine", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "google.golang.org/appengine", sum = "h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM=", version = "v1.6.5", ) go_repository( name = "org_golang_google_genproto", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "google.golang.org/genproto", sum = "h1:tirixpud1WdjE3/NrL9ar4ot0ADfwls8sOcIf1ivRDw=", version = "v0.0.0-20200207204624-4f3edf09f4f6", ) go_repository( name = "org_golang_google_grpc", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "google.golang.org/grpc", sum = "h1:zvIju4sqAGvwKspUQOhwnpcqSbzi7/H6QomNNjTL4sk=", version = "v1.27.1", ) go_repository( name = "org_golang_x_exp", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/exp", sum = "h1:zQpM52jfKHG6II1ISZY1ZcpygvuSFZpLwfluuF89XOg=", version = "v0.0.0-20191227195350-da58074b4299", ) go_repository( name = "org_golang_x_lint", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/lint", sum = "h1:J5lckAjkw6qYlOZNj90mLYNTEKDvWeuc1yieZ8qUzUE=", version = "v0.0.0-20191125180803-fdd1cda4f05f", ) go_repository( name = "org_golang_x_oauth2", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/oauth2", sum = "h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=", version = "v0.0.0-20200107190931-bf48bf16ab8d", ) go_repository( name = "org_golang_x_perf", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/perf", sum = "h1:xYq6+9AtI+xP3M4r0N1hCkHrInHDBohhquRgx9Kk6gI=", version = "v0.0.0-20180704124530-6e6d33e29852", ) go_repository( name = "org_golang_x_time", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/time", sum = "h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ=", version = "v0.0.0-20190308202827-9d24e82272b4", ) go_repository( name = "com_github_alecthomas_template", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/alecthomas/template", sum = "h1:cAKDfWh5VpdgMhJosfJnn5/FoN2SRZ4p7fJNX58YPaU=", version = "v0.0.0-20160405071501-a0175ee3bccc", ) go_repository( name = "com_github_alecthomas_units", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/alecthomas/units", sum = "h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY=", version = "v0.0.0-20151022065526-2efee857e7cf", ) go_repository( name = "com_github_beorn7_perks", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/beorn7/perks", sum = "h1:HWo1m869IqiPhD389kmkxeTalrjNbbJTC8LXupb+sl0=", version = "v1.0.0", ) go_repository( name = "com_github_cespare_xxhash", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/cespare/xxhash", sum = "h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=", version = "v1.1.0", ) go_repository( name = "com_github_coreos_bbolt", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/coreos/bbolt", sum = "h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s=", version = "v1.3.2", ) go_repository( name = "com_github_coreos_pkg", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/coreos/pkg", sum = "h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg=", version = "v0.0.0-20180928190104-399ea9e2e55f", ) go_repository( name = "com_github_creack_pty", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/creack/pty", sum = "h1:6pwm8kMQKCmgUg0ZHTm5+/YvRK0s3THD/28+T6/kk4A=", version = "v1.1.7", ) go_repository( name = "com_github_dgrijalva_jwt_go", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/dgrijalva/jwt-go", sum = "h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=", version = "v3.2.0+incompatible", ) go_repository( name = "com_github_dgryski_go_sip13", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/dgryski/go-sip13", sum = "h1:RMLoZVzv4GliuWafOuPuQDKSm1SJph7uCRnnS61JAn4=", version = "v0.0.0-20181026042036-e10d5fee7954", ) go_repository( name = "com_github_ghodss_yaml", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/ghodss/yaml", sum = "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=", version = "v1.0.0", ) go_repository( name = "com_github_go_kit_kit", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-kit/kit", sum = "h1:Wz+5lgoB0kkuqLEc6NVmwRknTKP6dTGbSqvhZtBI/j0=", version = "v0.8.0", ) go_repository( name = "com_github_go_logfmt_logfmt", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-logfmt/logfmt", sum = "h1:MP4Eh7ZCb31lleYCFuwm0oe4/YGak+5l1vA2NOE80nA=", version = "v0.4.0", ) go_repository( name = "com_github_go_stack_stack", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-stack/stack", sum = "h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=", version = "v1.8.0", ) go_repository( name = "com_github_gofrs_flock", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gofrs/flock", sum = "h1:ekuhfTjngPhisSjOJ0QWKpPQE8/rbknHaes6WVJj5Hw=", version = "v0.0.0-20190320160742-5135e617513b", ) go_repository( name = "com_github_golang_groupcache", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/golang/groupcache", sum = "h1:5ZkaAPbicIKTF2I64qf5Fh8Aa83Q/dnOafMYV0OMwjA=", version = "v0.0.0-20191227052852-215e87163ea7", ) go_repository( name = "com_github_google_renameio", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/renameio", sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=", version = "v0.1.0", ) go_repository( name = "com_github_gorilla_websocket", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gorilla/websocket", sum = "h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q=", version = "v1.4.0", ) go_repository( name = "com_github_grpc_ecosystem_go_grpc_middleware", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/grpc-ecosystem/go-grpc-middleware", sum = "h1:Iju5GlWwrvL6UBg4zJJt3btmonfrMlCDdsejg4CZE7c=", version = "v1.0.0", ) go_repository( name = "com_github_grpc_ecosystem_go_grpc_prometheus", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/grpc-ecosystem/go-grpc-prometheus", sum = "h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=", version = "v1.2.0", ) go_repository( name = "com_github_grpc_ecosystem_grpc_gateway", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/grpc-ecosystem/grpc-gateway", sum = "h1:bM6ZAFZmc/wPFaRDi0d5L7hGEZEx/2u+Tmr2evNHDiI=", version = "v1.9.0", ) go_repository( name = "com_github_jonboulle_clockwork", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/jonboulle/clockwork", sum = "h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo=", version = "v0.1.0", ) go_repository( name = "com_github_julienschmidt_httprouter", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/julienschmidt/httprouter", sum = "h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g=", version = "v1.2.0", ) go_repository( name = "com_github_kisielk_errcheck", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/kisielk/errcheck", sum = "h1:ZqfnKyx9KGpRcW04j5nnPDgRgoXUeLh2YFBeFzphcA0=", version = "v1.1.0", ) go_repository( name = "com_github_konsorten_go_windows_terminal_sequences", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/konsorten/go-windows-terminal-sequences", sum = "h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=", version = "v1.0.1", ) go_repository( name = "com_github_kr_logfmt", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/kr/logfmt", sum = "h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=", version = "v0.0.0-20140226030751-b84e30acd515", ) go_repository( name = "com_github_lib_pq", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/lib/pq", sum = "h1:LXpIM/LZ5xGFhOpXAQUIMM1HdyqzVYM13zNdjCEEcA0=", version = "v1.2.0", ) go_repository( name = "com_github_matoous_godox", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/matoous/godox", sum = "h1:RHba4YImhrUVQDHUCe2BNSOz4tVy2yGyXhvYDvxGgeE=", version = "v0.0.0-20190911065817-5d6d842e92eb", ) go_repository( name = "com_github_matttproud_golang_protobuf_extensions", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/matttproud/golang_protobuf_extensions", sum = "h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=", version = "v1.0.1", ) go_repository( name = "com_github_mwitkow_go_conntrack", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mwitkow/go-conntrack", sum = "h1:F9x/1yl3T2AeKLr2AMdilSD8+f9bvMnNN8VS5iDtovc=", version = "v0.0.0-20161129095857-cc309e4a2223", ) go_repository( name = "com_github_oklog_ulid", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/oklog/ulid", sum = "h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=", version = "v1.3.1", ) go_repository( name = "com_github_oneofone_xxhash", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/OneOfOne/xxhash", sum = "h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=", version = "v1.2.2", ) go_repository( name = "com_github_prometheus_client_golang", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/prometheus/client_golang", sum = "h1:9iH4JKXLzFbOAdtqv/a+j8aewx2Y8lAjAydhbaScPF8=", version = "v0.9.3", ) go_repository( name = "com_github_prometheus_client_model", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/prometheus/client_model", sum = "h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=", version = "v0.0.0-20190812154241-14fe0d1b01d4", ) go_repository( name = "com_github_prometheus_common", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/prometheus/common", sum = "h1:7etb9YClo3a6HjLzfl6rIQaU+FDfi0VSX39io3aQ+DM=", version = "v0.4.0", ) go_repository( name = "com_github_prometheus_procfs", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/prometheus/procfs", sum = "h1:sofwID9zm4tzrgykg80hfFph1mryUeLRsUfoocVVmRY=", version = "v0.0.0-20190507164030-5867b95ac084", ) go_repository( name = "com_github_prometheus_tsdb", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/prometheus/tsdb", sum = "h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA=", version = "v0.7.1", ) go_repository( name = "com_github_rogpeppe_fastuuid", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/rogpeppe/fastuuid", sum = "h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng=", version = "v0.0.0-20150106093220-6724a57986af", ) go_repository( name = "com_github_securego_gosec", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/securego/gosec", sum = "h1:AtnWoOvTioyDXFvu96MWEeE8qj4COSQnJogzLy/u41A=", version = "v0.0.0-20200103095621-79fbf3af8d83", ) go_repository( name = "com_github_soheilhy_cmux", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/soheilhy/cmux", sum = "h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E=", version = "v0.1.4", ) go_repository( name = "com_github_spaolacci_murmur3", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/spaolacci/murmur3", sum = "h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ=", version = "v0.0.0-20180118202830-f09979ecbc72", ) go_repository( name = "com_github_stretchr_objx", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/stretchr/objx", sum = "h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48=", version = "v0.2.0", ) go_repository( name = "com_github_tmc_grpc_websocket_proxy", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/tmc/grpc-websocket-proxy", sum = "h1:LnC5Kc/wtumK+WB441p7ynQJzVuNRJiqddSIE3IlSEQ=", version = "v0.0.0-20190109142713-0ad062ec5ee5", ) go_repository( name = "com_github_ugorji_go", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/ugorji/go", sum = "h1:j4s+tAvLfL3bZyefP2SEWmhBzmuIlH/eqNuPdFPgngw=", version = "v1.1.4", ) go_repository( name = "com_github_ultraware_whitespace", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/ultraware/whitespace", sum = "h1:If7Va4cM03mpgrNH9k49/VOicWpGoG70XPBFFODYDsg=", version = "v0.0.4", ) go_repository( name = "com_github_uudashr_gocognit", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/uudashr/gocognit", sum = "h1:MoG2fZ0b/Eo7NXoIwCVFLG5JED3qgQz5/NEE+rOsjPs=", version = "v1.0.1", ) go_repository( name = "com_github_xiang90_probing", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/xiang90/probing", sum = "h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8=", version = "v0.0.0-20190116061207-43a291ad63a2", ) go_repository( name = "in_gopkg_alecthomas_kingpin_v2", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/alecthomas/kingpin.v2", sum = "h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=", version = "v2.2.6", ) go_repository( name = "in_gopkg_resty_v1", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/resty.v1", sum = "h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI=", version = "v1.12.0", ) go_repository( name = "io_etcd_go_bbolt", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "go.etcd.io/bbolt", sum = "h1:Z/90sZLPOeCy2PwprqkFa25PdkusRzaj9P8zm/KNyvk=", version = "v1.3.2", ) go_repository( name = "org_golang_x_mod", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/mod", sum = "h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=", version = "v0.1.1-0.20191105210325-c90efee705ee", ) go_repository( name = "org_uber_go_atomic", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "go.uber.org/atomic", sum = "h1:cxzIVoETapQEqDhQu3QfnvXAV4AlzcvUCxkVUFw3+EU=", version = "v1.4.0", ) go_repository( name = "org_uber_go_multierr", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "go.uber.org/multierr", sum = "h1:HoEmRHQPVSqub6w2z2d2EOVs2fjyFRGyofhKuyDq0QI=", version = "v1.1.0", ) go_repository( name = "org_uber_go_zap", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "go.uber.org/zap", sum = "h1:ORx85nbTijNz8ljznvCMR1ZBIPKFn3jQrag10X2AsuM=", version = "v1.10.0", ) go_repository( name = "com_github_bombsimon_wsl_v2", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/bombsimon/wsl/v2", sum = "h1:+Vjcn+/T5lSrO8Bjzhk4v14Un/2UyCA1E3V5j9nwTkQ=", version = "v2.0.0", ) go_repository( name = "com_github_google_uuid", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/google/uuid", sum = "h1:b4Gk+7WdP/d3HZH8EJsZpvV7EtDOgaZLtnaNGIu1adA=", version = "v1.0.0", ) go_repository( name = "com_github_gopherjs_gopherjs", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/gopherjs/gopherjs", sum = "h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=", version = "v0.0.0-20181017120253-0766667cb4d1", ) go_repository( name = "com_github_jtolds_gls", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/jtolds/gls", sum = "h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=", version = "v4.20.0+incompatible", ) go_repository( name = "com_github_pborman_uuid", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/pborman/uuid", sum = "h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g=", version = "v1.2.0", ) go_repository( name = "com_github_smartystreets_assertions", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/smartystreets/assertions", sum = "h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=", version = "v0.0.0-20180927180507-b2de0cb4f26d", ) go_repository( name = "com_github_smartystreets_goconvey", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/smartystreets/goconvey", sum = "h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=", version = "v1.6.4", ) go_repository( name = "com_github_subosito_gotenv", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/subosito/gotenv", sum = "h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=", version = "v1.2.0", ) go_repository( name = "com_github_tommy_muehle_go_mnd", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/tommy-muehle/go-mnd", sum = "h1:4D0wuPKjOTiK2garzuPGGvm4zZ/wLYDOH8TJSABC7KU=", version = "v1.1.1", ) go_repository( name = "in_gopkg_ini_v1", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "gopkg.in/ini.v1", sum = "h1:AQvPpx3LzTDM0AjnIRlVFwFFGC+npRopjZxLJj6gdno=", version = "v1.51.0", ) go_repository( name = "com_github_go_sql_driver_mysql", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-sql-driver/mysql", sum = "h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk=", version = "v1.4.0", ) go_repository( name = "com_github_jingyugao_rowserrcheck", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/jingyugao/rowserrcheck", sum = "h1:GmsqmapfzSJkm28dhRoHz2tLRbJmqhU86IPgBtN3mmk=", version = "v0.0.0-20191204022205-72ab7603b68a", ) go_repository( name = "com_github_jirfag_go_printf_func_name", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/jirfag/go-printf-func-name", sum = "h1:jNYPNLe3d8smommaoQlK7LOA5ESyUJJ+Wf79ZtA7Vp4=", version = "v0.0.0-20191110105641-45db9963cdd3", ) go_repository( name = "com_github_jmoiron_sqlx", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/jmoiron/sqlx", sum = "h1:lrdPtrORjGv1HbbEvKWDUAy97mPpFm4B8hp77tcCUJY=", version = "v1.2.1-0.20190826204134-d7d95172beb5", ) go_repository( name = "com_github_mattn_go_sqlite3", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/mattn/go-sqlite3", sum = "h1:pDRiWfl+++eC2FEFRy6jXmQlvp4Yh3z1MJKg4UeYM/4=", version = "v1.9.0", ) go_repository( name = "com_github_burntsushi_xgb", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/BurntSushi/xgb", sum = "h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=", version = "v0.0.0-20160522181843-27f122750802", ) go_repository( name = "com_github_census_instrumentation_opencensus_proto", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/census-instrumentation/opencensus-proto", sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=", version = "v0.2.1", ) go_repository( name = "com_github_chzyer_logex", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/chzyer/logex", sum = "h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=", version = "v1.1.10", ) go_repository( name = "com_github_chzyer_readline", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/chzyer/readline", sum = "h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=", version = "v0.0.0-20180603132655-2972be24d48e", ) go_repository( name = "com_github_chzyer_test", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/chzyer/test", sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=", version = "v0.0.0-20180213035817-a1ea475d72b1", ) go_repository( name = "com_github_envoyproxy_go_control_plane", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/envoyproxy/go-control-plane", sum = "h1:4cmBvAEBNJaGARUEs3/suWRyfyBfhf7I60WBZq+bv2w=", version = "v0.9.1-0.20191026205805-5f8ba28d4473", ) go_repository( name = "com_github_envoyproxy_protoc_gen_validate", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/envoyproxy/protoc-gen-validate", sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=", version = "v0.1.0", ) go_repository( name = "com_github_go_gl_glfw_v3_3_glfw", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/go-gl/glfw/v3.3/glfw", sum = "h1:b+9H1GAsx5RsjvDFLoS5zkNBzIQMuVKUYQDmxU3N5XE=", version = "v0.0.0-20191125211704-12ad95a8df72", ) go_repository( name = "com_github_ianlancetaylor_demangle", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/ianlancetaylor/demangle", sum = "h1:UDMh68UUwekSh5iP2OMhRRZJiiBccgV7axzUG8vi56c=", version = "v0.0.0-20181102032728-5e5cf60278f6", ) go_repository( name = "com_github_nytimes_gziphandler", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "github.com/NYTimes/gziphandler", sum = "h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=", version = "v1.1.1", ) go_repository( name = "com_google_cloud_go_bigquery", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "cloud.google.com/go/bigquery", sum = "h1:hL+ycaJpVE9M7nLoiXb/Pn10ENE2u+oddxbD8uu0ZVU=", version = "v1.0.1", ) go_repository( name = "com_google_cloud_go_datastore", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "cloud.google.com/go/datastore", sum = "h1:Kt+gOPPp2LEPWp8CSfxhsM8ik9CcyE/gYu+0r+RnZvM=", version = "v1.0.0", ) go_repository( name = "com_google_cloud_go_pubsub", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "cloud.google.com/go/pubsub", sum = "h1:W9tAK3E57P75u0XLLR82LZyw8VpAnhmyTOxW9qzmyj8=", version = "v1.0.1", ) go_repository( name = "com_google_cloud_go_storage", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "cloud.google.com/go/storage", sum = "h1:VV2nUM3wwLLGh9lSABFgZMjInyUbJeaRSE64WuAIQ+4=", version = "v1.0.0", ) go_repository( name = "com_shuralyov_dmitri_gpu_mtl", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "dmitri.shuralyov.com/gpu/mtl", sum = "h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY=", version = "v0.0.0-20190408044501-666a987793e9", ) go_repository( name = "io_rsc_binaryregexp", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "rsc.io/binaryregexp", sum = "h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=", version = "v0.2.0", ) go_repository( name = "org_golang_x_image", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/image", sum = "h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=", version = "v0.0.0-20190802002840-cff245a6509b", ) go_repository( name = "org_golang_x_mobile", build_file_generation = "on", build_file_proto_mode = "disable", importpath = "golang.org/x/mobile", sum = "h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs=", version = "v0.0.0-20190719004257-d2bd2a29d028", )
# In practice, this is just a number-base changer, where the number not in base 10 is represented as an array. # Created to transform binary output arrays of a multilabel classifier into a single base 10 int. def mux(array, array_base=2): """Multiplex array containing digits of given base into base-10 int Args: array (numpy.ndarray): 1-d array of digits of base "base". base (int, optional): Base of digits in array. Defaults to 2. Returns: int: multiplexed number """ s = 0 for i, digit in enumerate(array): exponent = len(array) - 1 - i s += digit * array_base ** exponent return s def demux(x, n_classes, array_base=2): """Demultiplex a single base-10 int into an array of length n_classes Args: x (int): base-10 int to demux into array n_classes (int): length of output array. Must be greater than array_base (int, optional): base of digits in output array. Defaults to 2. Returns: numpy.ndarray: demuxed array, a base-"base" representation of x represented as an array """ assert x < n_classes ** array_base, "\ n_classes too small for x, minimum size is {:d}".format(ceil(log(x, 2))) # I could have done this using builtin array = np.zeros(n_classes) s = x # Sum to hold remainder of x for i in range(n_classes - 1, 0, -1): digit = s // (array_base ** i) array[i] = digit s -= array_base ** digit assert s == 0, "Remainder sum after demux is not 0, it is {:d}".format(s) return array
headers = {'User-Agent': 'Mozilla/5.0 Chrome/86.0.4240.75'} # Enter the URL of the product page on flipkart PRODUCT_URL = 'enter_url_here' # Enter the threshhold price of the product THRESHHOLD = 6969.0 # Enter your email address MY_EMAIL = '' # Enter your password (Check readme.md for steps to get app password) MY_APP_PASSWORD = '' # Enter time delay (60 for 1 minute) CHECK_AGAIN = 60 * 30 # 60*30 will be 30 minutes # Enter the recipient email RECEIVER_EMAIL = ''
""" This file transform the SQL produced by MySQL on SQL that can execute on PostgreSQL """ __READ_SQL_FILE__ = "original_schema_msql.sql" __OUTPUT_SQL_FILE__ = "02_create_schema_db_for_postgresql.sql" code_to_add_in_top_of_file = [""" -- delete all tables in public schema, with exception of the spatial_ref_sys -- SOURCE: https://stackoverflow.com/questions/3327312/drop-all-tables-in-postgresql DO $$ DECLARE r RECORD; BEGIN FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = 'public' and tablename != 'spatial_ref_sys') LOOP EXECUTE 'DROP TABLE IF EXISTS ' || quote_ident(r.tablename) || ' CASCADE'; END LOOP; END $$; """] def put_extra_code(text): for code in code_to_add_in_top_of_file: text = code + text return text def replace_phrases(text): text = text.replace("mydb", "pauliceia") text = text.replace("`", "") text = text.replace("TINYINT(1)", "BOOLEAN") text = text.replace("DEFAULT 0", "DEFAULT FALSE") text = text.replace("DEFAULT 1", "DEFAULT TRUE") text = text.replace("ENGINE = InnoDB", "") #text = text.replace("ON DELETE NO ACTION", "ON DELETE CASCADE") text = text.replace("ON UPDATE NO ACTION", "ON UPDATE CASCADE") text = text.replace("""SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;""", "") text = text.replace("""SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';""", "") text = text.replace("-- MySQL Script generated by MySQL Workbench", "") text = text.replace("-- Model: New Model Version: 1.0", "") text = text.replace("-- MySQL Workbench Forward Engineering", "") text = text.replace(")\n;", "\n);") # put the ) and ; together, and in other line #text = text.replace("'", "") text = text.replace("USE pauliceia ;", "") text = text.replace(" DEFAULT CHARACTER SET utf8", "") # if the geometries are not in text, so replace them if "GEOMETRY(MULTIPOINT, 4326)" not in text: text = text.replace("MULTIPOINT", "GEOMETRY(MULTIPOINT, 4326)") if "GEOMETRY(MULTILINESTRING, 4326)" not in text: text = text.replace("MULTILINESTRING", "GEOMETRY(MULTILINESTRING, 4326)") if "GEOMETRY(MULTIPOLYGON, 4326)" not in text: text = text.replace("MULTIPOLYGON", "GEOMETRY(MULTIPOLYGON, 4326)") if "GEOMETRY(GEOMETRYCOLLECTION, 4326)" not in text: text = text.replace("GEOMETRYCOLLECTION", "GEOMETRY(GEOMETRYCOLLECTION, 4326)") return text def remove_bad_lines_and_put_default_values(text): lines = text.split("\n") lines_copy = list(lines) # create a copy to iterate inside it # iterate reversed for i in range(len(lines_copy)-1, -1, -1): line = lines_copy[i] line_lower = line.lower() if "comment" in line_lower: comment_occurrence = lines[i].find("COMMENT") first_occurrence = lines[i].find("'", 0) second_occurrence = lines[i].find("'", first_occurrence+1) comment = lines[i][comment_occurrence:second_occurrence+1] # remove the comment lines[i] = lines[i].replace(comment, "") # if there is a index line, so remove it in the original list if "index" in line_lower or ("brst" in line_lower and "2017" in line_lower): del lines[i] continue # put cascade in the final of line if ("drop schema if exists" in line_lower or "drop table if exists" in line_lower) \ and "cascade" not in line_lower: lines[i] = lines[i].replace(";", "CASCADE ;") # put default values, but NOT in FKs #if "visible boolean" in line_lower and "fk" not in line_lower: #lines[i] = lines[i].replace(",", " DEFAULT TRUE,") #if "version int" in line_lower and "fk" not in line_lower: #lines[i] = lines[i].replace(",", " DEFAULT 1,") # default FALSE to "is_read" column, because is True, just if the user read the message #if "is_read boolean" in line_lower: #lines[i] = lines[i].replace(",", " DEFAULT FALSE,") # USER #if ("is_email_valid boolean" in line_lower) or ("terms_agreed boolean" in line_lower): #lines[i] = lines[i].replace(",", " DEFAULT FALSE,") if ("email text" in line_lower) or ("username text" in line_lower): lines[i] = lines[i].replace(",", " UNIQUE,") # constraint UNIQUE #if ("is_the_admin boolean" in line_lower) or ("can_add_layer boolean" in line_lower) or ("receive_notification_by_email boolean" in line_lower): #lines[i] = lines[i].replace(",", " DEFAULT FALSE,") # LAYER if "f_table_name text" in line_lower: lines[i] = lines[i].replace(",", " UNIQUE,") # constraint UNIQUE #if "is_published boolean" in line_lower: #lines[i] = lines[i].replace(",", " DEFAULT FALSE,") # USER_LAYER #if "is_the_creator boolean" in line_lower: #lines[i] = lines[i].replace(",", " DEFAULT FALSE,") # REFERENCE # just change the 'description' of the 'reference' #if "reference" in lines[i-2] and "description text" in line_lower: # lines[i] = lines[i].replace(",", " UNIQUE,") # constraint UNIQUE # KEYWORD # just change the 'name' of the 'keyword' if "keyword" in lines[i-2] and "name text" in line_lower: lines[i] = lines[i].replace(",", " UNIQUE,") # constraint UNIQUE text = "\n".join(lines) return text def add_serial_number_in_ID(text): lines = text.split("\n") lines_copy = list(lines) # create a copy to iterate inside it for i in range(0, len(lines_copy)): line = lines_copy[i] line_before = lines_copy[i-1] line_lower = line.lower() line_before_lower = line_before.lower() # put SERIAL just in ID field, NOT in FKs #if " id int" in line_lower and "fk" not in line_lower: if "id int" in line_lower and "create table" in line_before_lower: line_splited = line.replace("NOT NULL", "").split(" ") line_splited[3] = "SERIAL" lines[i] = " ".join(line_splited) text = "\n".join(lines) return text def remove_example_table(text): lines = text.split("\n") lines_copy = list(lines) # create a copy to iterate inside it remove_line = False for i in range(0, len(lines_copy)): line = lines_copy[i] line_lower = line.lower() # start to remove when find the "<", that means a example table, as <feature_table> if "<" in line_lower: remove_line = True # stop to remove the line when find ); if ");" in line_lower and remove_line: # remove the line with ");" lines[i] = lines[i].replace(lines[i], "") # erase the line remove_line = False # remove the lines of the <feature_table> if remove_line: lines[i] = lines[i].replace(lines[i], "") # erase the line text = "\n".join(lines) return text def put_delete_cascade_in_notification_table(text): lines = text.split("\n") lines_copy = list(lines) # create a copy to iterate inside it remove_line = False for i in range(0, len(lines_copy)): line = lines_copy[i] line_lower = line.lower() # start to remove when find the "foreign key (notification_id_parent)" (when it is the delete no action) if "foreign key (notification_id_parent)" in line_lower or "foreign key (layer_id)" in line_lower: remove_line = True # replace the line to delete cascade if remove_line: lines[i] = lines[i].replace("ON DELETE NO ACTION", "ON DELETE CASCADE") # erase the line #print(lines[i]) # stop to remove the line when find "on update cascade" if "on update cascade" in line_lower and remove_line: remove_line = False #print("\n\n") text = "\n".join(lines) return text def last_modifications(text): # remove the schema text = text.replace("pauliceia.", "") text = text.replace(""" -- ----------------------------------------------------- -- Schema pauliceia -- ----------------------------------------------------- DROP SCHEMA IF EXISTS pauliceia CASCADE ; -- ----------------------------------------------------- -- Schema pauliceia -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS pauliceia ;""", "") text = text.replace("\n\n\n\n", "\n") text = text.replace("\n\n\n\n", "\n") text = text.replace("\n\n\n\n", "\n") text = text.replace(" user ", " user_ ") text = text.replace("BLOB", "BYTEA") return text def main(): """ This function replace code from MySQL generate by MySQL Workbench to PostgreSQL SQL with some modifications to Pauliceia """ with open(__OUTPUT_SQL_FILE__, 'a') as file_output, open(__READ_SQL_FILE__, 'r') as file_read: text = file_read.read() # read everything in the file text = replace_phrases(text) text = put_extra_code(text) # remove bad lines text = remove_bad_lines_and_put_default_values(text) # add SERIAL number in ID text = add_serial_number_in_ID(text) # remove the <feature_table> and version_<feature_table> text = remove_example_table(text) text = put_delete_cascade_in_notification_table(text) text = last_modifications(text) # after all modification save it in file again file_output.seek(0) # rewind (return pointer to top of file) file_output.truncate() # clear file file_output.write(text) # write the updated text before print("All file was changed with success!") main()
# Электронные часы-1 num = int(input()) print((num // 60) % 24, num % 60)
# Key Arbitrary def build_profile(first, last, **user_info): profile = {} profile['first'] = first profile['last'] = last for key, value in user_info.items(): profile[key] = value return profile user_profile0 = build_profile('albert', 'einstein', location = 'princeton', field = 'physics') user_profile1 = build_profile('islam', 'kamilov', location = 'kyrgyzstan', field = 'computer science') print(user_profile1)
COMMIT="12c255d13729fb571e4964f4f0a97ddba4bbe0d2" VERSION="1.1-53-g12c255d" DICTCOMMIT="8f414ce140263ac8c378d4e7bc97c035ade85aa7" DICTVERSION="0.2.0"
num = int(input('Digite o número que deseja saber a tabuada: ')) print('-='*21) for i in range(1,10): print('{} x {} = {}'.format(num, i, num*i))
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def isSameTree(self, p: 'TreeNode', q: 'TreeNode') -> 'bool': def helper(p,q): if not p and not q: return True if (not p and q) or (p and not q) or p.val != q.val: return False return helper(p.left,q.left) and helper(p.right,q.right) return helper(p,q) def isSameTree_stack(self, p: 'TreeNode', q: 'TreeNode') -> 'bool': if not p and not q: return True stack = [(p,q)] while stack: a,b = stack.pop() if not a and not b: continue if (a and not b) or (not a and b): return False if a.val != b.val: return False stack.append((a.left,b.left)) stack.append((a.right,b.right)) return True
text_based = ["perspective_score", "identity_attack", "sentiment", "Please", "Please_start", "HASHEDGE", "Indirect_(btw)", "Hedges", "Factuality", "Deference", "Gratitude", "Apologizing", "1st_person_pl.", "1st_person", "1st_person_start", "2nd_person", "2nd_person_start", "Indirect_(greeting)", "Direct_question", "Direct_start", "HASPOSITIVE", "HASNEGATIVE", "SUBJUNCTIVE", "INDICATIVE", ] G_logs_based = ["rounds", "shepherd_time", "review_time"] OSS_logs_based = ["rounds", "shepherd_time"] # drop the features with very low importance (< 0.01) # and the results are better drop_cols = ["Indirect_(btw)", "Indirect_(greeting)", "Apologizing", "Deference", "SUBJUNCTIVE", "INDICATIVE"] text_based = list(set(text_based) - set(drop_cols)) length = ["length"] def get_feature_set(dat): if dat == "G": logs_based = G_logs_based else: logs_based = OSS_logs_based if dat == "issues": feature_set = [ text_based ] else: # code review comments in OSS and G share the same set of features feature_set = [ text_based, logs_based, text_based + logs_based, #text_based + length, #logs_based + length, #text_based + logs_based + length, ] return feature_set
#Submitted by thr3sh0ld #logic: Readable code class Solution: def largestDivisibleSubset(self, nums: List[int]) -> List[int]: if len(nums) == 0 or len(nums) == 1: return nums nums.sort(reverse= False) l = len(nums) count = [1 for i in range(l)] #dp prev = [-1 for i in range(l)] #store indexing max_ind = 0 for i in range(0,l): for j in range(i-1,-1,-1): if (nums[i] % nums[j] == 0): if (count[i] < count[j] + 1): count[i] = count[j]+1 prev[i] = j if (count[max_ind] < count[i]): max_ind = i k = max_ind res = [] while k!=-1: res.insert(0,nums[k]) k=prev[k] return res
int('0x7e0', 0) # 2016 int('7e0', 16) # 2016 hex(2016) # '0x7e0'
#!/usr/bin/env python3.6.4 # encoding: utf-8 # @Time : 2018/6/24 14:40 # @Author : penghaibo # @contact: xxxx@qq.com # @Site : # @File : config.py # @Software: PyCharm appkey = "d391709bada01c89be6dba753752bcd5" host = "http://v.juhe.cn/historyWeather/"
# # PySNMP MIB module A100-R1-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A100-R1-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 16:48:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") IpAddress, MibIdentifier, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, ObjectIdentity, NotificationType, TimeTicks, Counter64, iso, Unsigned32, Integer32, Bits, Counter32, enterprises = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibIdentifier", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "ObjectIdentity", "NotificationType", "TimeTicks", "Counter64", "iso", "Unsigned32", "Integer32", "Bits", "Counter32", "enterprises") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") nec = MibIdentifier((1, 3, 6, 1, 4, 1, 119)) nec_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2)).setLabel("nec-mib") necProductDepend = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2, 3)) atomis_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2, 3, 14)).setLabel("atomis-mib") m5core_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3)).setLabel("m5core-mib") node = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1)) linf = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 2)) conn = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 3)) perf = MibIdentifier((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 4)) nodeOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("down", 1), ("active", 2), ("off-line", 3), ("testing", 4), ("initializing", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nodeOperStatus.setStatus('mandatory') nodeIfConfTable = MibTable((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 2), ) if mibBuilder.loadTexts: nodeIfConfTable.setStatus('mandatory') nodeIfConfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 2, 1), ).setIndexNames((0, "A100-R1-MIB", "nodeIfConfIndex")) if mibBuilder.loadTexts: nodeIfConfEntry.setStatus('mandatory') nodeIfConfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nodeIfConfIndex.setStatus('mandatory') nodeIfConfPhysType = MibTableColumn((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 99))).clone(namedValues=NamedValues(("other", 1), ("sar", 2), ("taxi100M", 3), ("oc3cSMF", 4), ("oc-3cMMF", 5), ("ds3-PLCP-SCRAMBLE", 6), ("ds3-PLCP-noScramble", 7), ("relay-6Mcel", 8), ("notInstalled", 99)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nodeIfConfPhysType.setStatus('mandatory') nodeIfConfRev = MibTableColumn((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 2, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: nodeIfConfRev.setStatus('mandatory') nodeIfConfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 99))).clone(namedValues=NamedValues(("other", 1), ("inService", 2), ("outOfService", 3), ("testing", 4), ("localLoopBack", 5), ("remoteLoopBack", 6), ("notInstalled", 99)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nodeIfConfStatus.setStatus('mandatory') nodeFanStatus = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nodeFanStatus.setStatus('mandatory') nodeUpcWindowSize = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 120))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nodeUpcWindowSize.setStatus('mandatory') nodeBestEffortBufferSize = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nodeBestEffortBufferSize.setStatus('mandatory') nodeGuaranteedBufferSize = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nodeGuaranteedBufferSize.setStatus('mandatory') nodeBestEffortBufferThreshold = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nodeBestEffortBufferThreshold.setStatus('mandatory') nodeGuaranteedBufferThreshold = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nodeGuaranteedBufferThreshold.setStatus('mandatory') nodeSaveConf = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("save", 1)))).setMaxAccess("writeonly") if mibBuilder.loadTexts: nodeSaveConf.setStatus('mandatory') nodeSaveResult = MibScalar((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("temporaryFailure", 1), ("notReady", 2), ("ready", 3), ("succeed", 4), ("nearend", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nodeSaveResult.setStatus('mandatory') linfStatusTable = MibTable((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 2, 1), ) if mibBuilder.loadTexts: linfStatusTable.setStatus('mandatory') linfStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 2, 1, 1), ).setIndexNames((0, "A100-R1-MIB", "linfIndex")) if mibBuilder.loadTexts: linfStatusEntry.setStatus('mandatory') linfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: linfIndex.setStatus('mandatory') linfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 99))).clone(namedValues=NamedValues(("normal", 1), ("los", 2), ("lof", 3), ("loc", 4), ("ais", 5), ("yellow-line", 6), ("yellow-path", 7), ("lop", 8), ("notInstalled", 99)))).setMaxAccess("readonly") if mibBuilder.loadTexts: linfStatus.setStatus('mandatory') linfConf = MibTableColumn((1, 3, 6, 1, 4, 1, 119, 2, 3, 14, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 99))).clone(namedValues=NamedValues(("public-UNI", 1), ("private-UNI", 2), ("private-NNI", 3), ("others", 99)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: linfConf.setStatus('mandatory') mibBuilder.exportSymbols("A100-R1-MIB", necProductDepend=necProductDepend, linfConf=linfConf, nodeIfConfIndex=nodeIfConfIndex, nodeFanStatus=nodeFanStatus, nodeBestEffortBufferSize=nodeBestEffortBufferSize, nodeGuaranteedBufferThreshold=nodeGuaranteedBufferThreshold, nodeIfConfPhysType=nodeIfConfPhysType, nodeOperStatus=nodeOperStatus, linfStatus=linfStatus, nodeUpcWindowSize=nodeUpcWindowSize, nodeSaveResult=nodeSaveResult, linfStatusTable=linfStatusTable, nodeIfConfTable=nodeIfConfTable, nodeIfConfRev=nodeIfConfRev, nodeIfConfStatus=nodeIfConfStatus, atomis_mib=atomis_mib, m5core_mib=m5core_mib, linfIndex=linfIndex, nodeIfConfEntry=nodeIfConfEntry, nodeGuaranteedBufferSize=nodeGuaranteedBufferSize, node=node, nec_mib=nec_mib, linfStatusEntry=linfStatusEntry, nodeSaveConf=nodeSaveConf, perf=perf, nodeBestEffortBufferThreshold=nodeBestEffortBufferThreshold, linf=linf, nec=nec, conn=conn)
# # PySNMP MIB module HPN-ICF-DOT11-LIC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-DOT11-LIC-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:25:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") hpnicfDot11, = mibBuilder.importSymbols("HPN-ICF-DOT11-REF-MIB", "hpnicfDot11") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Unsigned32, NotificationType, Bits, iso, Counter64, MibIdentifier, Counter32, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, TimeTicks, ObjectIdentity, IpAddress, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "NotificationType", "Bits", "iso", "Counter64", "MibIdentifier", "Counter32", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "TimeTicks", "ObjectIdentity", "IpAddress", "Integer32") TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "DisplayString") hpnicfDot11LIC = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14)) hpnicfDot11LIC.setRevisions(('2012-04-25 18:00',)) if mibBuilder.loadTexts: hpnicfDot11LIC.setLastUpdated('201204251800Z') if mibBuilder.loadTexts: hpnicfDot11LIC.setOrganization('') hpnicfDot11LICConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 1)) hpnicfDot11LICApNumGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2)) hpnicfDot11LICFeatureGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3)) hpnicfDot11LICSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICSerialNumber.setStatus('current') hpnicfDot11LicApNumGroupSupport = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 1, 2), TruthValue().clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LicApNumGroupSupport.setStatus('current') hpnicfDot11LICApNumAttrTable = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 1)) hpnicfDot11LICDefautAPNumPermit = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICDefautAPNumPermit.setStatus('current') hpnicfDot11LICCurrentAPNumPermit = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICCurrentAPNumPermit.setStatus('current') hpnicfDot11LICMaxAPNumPermit = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICMaxAPNumPermit.setStatus('current') hpnicfDot11LICApNumLicTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 2), ) if mibBuilder.loadTexts: hpnicfDot11LICApNumLicTable.setStatus('current') hpnicfDot11LICApNumLicEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 2, 1), ).setIndexNames((0, "HPN-ICF-DOT11-LIC-MIB", "hpnicfDot11LICLicenseKeyIndex")) if mibBuilder.loadTexts: hpnicfDot11LICApNumLicEntry.setStatus('current') hpnicfDot11LICLicenseKeyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICLicenseKeyIndex.setStatus('current') hpnicfDot11LICLicenseKey = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICLicenseKey.setStatus('current') hpnicfDot11LICActivationKey = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 2, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICActivationKey.setStatus('current') hpnicfDot11LICApNum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICApNum.setStatus('current') hpnicfDot11LICFeatureAttrTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 1), ) if mibBuilder.loadTexts: hpnicfDot11LICFeatureAttrTable.setStatus('current') hpnicfDot11LICFeatureAttrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 1, 1), ).setIndexNames((0, "HPN-ICF-DOT11-LIC-MIB", "hpnicfDot11LICAttrIndex")) if mibBuilder.loadTexts: hpnicfDot11LICFeatureAttrEntry.setStatus('current') hpnicfDot11LICAttrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICAttrIndex.setStatus('current') hpnicfDot11LICAttrTypeName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 1, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICAttrTypeName.setStatus('current') hpnicfDot11LICAttrDefVal = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICAttrDefVal.setStatus('current') hpnicfDot11LICAttrMaxVal = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICAttrMaxVal.setStatus('current') hpnicfDot11LICFeatureLicTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 2), ) if mibBuilder.loadTexts: hpnicfDot11LICFeatureLicTable.setStatus('current') hpnicfDot11LICFeatureLicEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 2, 1), ).setIndexNames((0, "HPN-ICF-DOT11-LIC-MIB", "hpnicfDot11LICKeyIndex")) if mibBuilder.loadTexts: hpnicfDot11LICFeatureLicEntry.setStatus('current') hpnicfDot11LICKeyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICKeyIndex.setStatus('current') hpnicfDot11LICTypeName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 2, 1, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICTypeName.setStatus('current') hpnicfDot11LICKey = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 2, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICKey.setStatus('current') hpnicfDot11LICTimeLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICTimeLimit.setStatus('current') hpnicfDot11LICValue = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 75, 14, 3, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDot11LICValue.setStatus('current') mibBuilder.exportSymbols("HPN-ICF-DOT11-LIC-MIB", hpnicfDot11LICFeatureLicEntry=hpnicfDot11LICFeatureLicEntry, hpnicfDot11LICValue=hpnicfDot11LICValue, hpnicfDot11LICAttrMaxVal=hpnicfDot11LICAttrMaxVal, hpnicfDot11LICTimeLimit=hpnicfDot11LICTimeLimit, hpnicfDot11LICFeatureGroup=hpnicfDot11LICFeatureGroup, hpnicfDot11LICSerialNumber=hpnicfDot11LICSerialNumber, hpnicfDot11LICCurrentAPNumPermit=hpnicfDot11LICCurrentAPNumPermit, hpnicfDot11LICAttrDefVal=hpnicfDot11LICAttrDefVal, hpnicfDot11LICLicenseKeyIndex=hpnicfDot11LICLicenseKeyIndex, hpnicfDot11LICLicenseKey=hpnicfDot11LICLicenseKey, hpnicfDot11LICFeatureLicTable=hpnicfDot11LICFeatureLicTable, hpnicfDot11LICKey=hpnicfDot11LICKey, hpnicfDot11LICDefautAPNumPermit=hpnicfDot11LICDefautAPNumPermit, hpnicfDot11LICApNumLicEntry=hpnicfDot11LICApNumLicEntry, hpnicfDot11LICTypeName=hpnicfDot11LICTypeName, hpnicfDot11LICAttrTypeName=hpnicfDot11LICAttrTypeName, hpnicfDot11LICApNumLicTable=hpnicfDot11LICApNumLicTable, hpnicfDot11LICMaxAPNumPermit=hpnicfDot11LICMaxAPNumPermit, hpnicfDot11LicApNumGroupSupport=hpnicfDot11LicApNumGroupSupport, hpnicfDot11LICConfigGroup=hpnicfDot11LICConfigGroup, hpnicfDot11LICApNum=hpnicfDot11LICApNum, hpnicfDot11LICActivationKey=hpnicfDot11LICActivationKey, hpnicfDot11LIC=hpnicfDot11LIC, hpnicfDot11LICKeyIndex=hpnicfDot11LICKeyIndex, hpnicfDot11LICFeatureAttrTable=hpnicfDot11LICFeatureAttrTable, hpnicfDot11LICAttrIndex=hpnicfDot11LICAttrIndex, PYSNMP_MODULE_ID=hpnicfDot11LIC, hpnicfDot11LICApNumAttrTable=hpnicfDot11LICApNumAttrTable, hpnicfDot11LICApNumGroup=hpnicfDot11LICApNumGroup, hpnicfDot11LICFeatureAttrEntry=hpnicfDot11LICFeatureAttrEntry)
lista_alunos=[] lista_notas=[] n1=0 n2=1 n3=2 n4=3 for i in range(0,10,1): lista_alunos.append(str(input('Digite seu nome:'))) for i in range(0,1,1): lista_notas.append(float(input('Digite a primeira nota:'))) lista_notas.append(float(input('Digite a segunda nota:'))) lista_notas.append(float(input('Digite a terceira nota:'))) lista_notas.append(float(input('Digite a quarta nota:'))) for i in lista_alunos: media=(lista_notas[n1]+lista_notas[n2]+lista_notas[n3]+lista_notas[n4])/4 print(f'Nome:{[i]}\nMedia:{media}') if(media>=7.0): print('Aprovado') else: print('Reprovado') n1+=4 n2+=4 n3+=4 n4+=4
def simple_generator(): for i in range(5): yield i def run_simple_generator(): for j in simple_generator(): print(f"For loop: {j}") sg = simple_generator() print(f"Next value: {next(sg)}") print(f"Next value: {next(sg)}") print(f"Next value: {next(sg)}") my_gen = simple_generator() print(type(my_gen), next(my_gen)) print(next(my_gen)) def generator_comprehension(): gen_comp = (x for x in range(4)) list_comp = [x for x in range(4)] for j in gen_comp: print(j) print(f"{type(gen_comp)}, {type(list_comp)}")
my_variable = 'hello' my_list_variable = ['hello', 'hi', 'nice to meet you'] my_tuple_variable = ('hello', 'hi', 'nice to meet you') # we can not increase the size of a tuple, it's immutable my_set_variable = {'hello', 'hi', 'nice to meet you'} # Unique and unordered print(my_list_variable) print(my_tuple_variable) print(my_set_variable) my_short_tuple_variable = ("hello",) another_short_tuple_variable = "hello", print(my_list_variable[0]) print(my_tuple_variable[0]) print(my_set_variable[0]) # This won't work, because there is no order. Which one is element 0? my_list_variable.append('another string') print(my_list_variable) my_tuple_variable.append('a string') # This won't work, because a tuple is not a list. my_tuple_variable = my_tuple_variable + ("a string",) print(my_tuple_variable) my_tuple_variable[0] = 'can I change this?' # No, you can't my_set_variable.add('hello') print(my_set_variable) my_set_variable.add('hello') print(my_set_variable) ###### Set Operations set_one = {1, 2, 3, 4, 5} set_two = {1, 3, 5, 7, 9, 11} print(set_one.intersection(set_two)) # {1, 3, 5} print({1, 2}.union({2, 3})) # {1, 2, 3} print({1, 2, 3, 4}.difference({2, 4})) # {1, 3}
# -*- coding: utf-8 -*- DEFAULT_SETTINGS_MODULE = True APP_B_FOO = "foo"
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'use_system_sqlite%': 0, }, 'target_defaults': { 'defines': [ 'SQLITE_CORE', 'SQLITE_ENABLE_BROKEN_FTS3', 'DSQLITE_ENABLE_FTS3_PARENTHESIS', 'SQLITE_ENABLE_FTS3', 'SQLITE_ENABLE_FTS4', 'SQLITE_ENABLE_MEMORY_MANAGEMENT', 'SQLITE_SECURE_DELETE', 'SQLITE_SEPARATE_CACHE_POOLS', 'THREADSAFE', '_HAS_EXCEPTIONS=0', ], }, 'targets': [ { 'target_name': 'sqlite', 'conditions': [ [ 'v8_is_3_28==1', { 'defines': [ 'V8_IS_3_28=1' ], }], [ 'node_win_onecore==1', { 'defines': ['SQLITE_OS_WINRT'] }], [ 'v8_is_3_14==1', { 'defines': [ 'V8_IS_3_14=1' ], }], ['use_system_sqlite', { 'type': 'none', 'direct_dependent_settings': { 'defines': [ 'USE_SYSTEM_SQLITE', ], }, 'conditions': [ ['OS == "ios"', { 'dependencies': [ 'sqlite_regexp', ], 'link_settings': { 'libraries': [ '$(SDKROOT)/usr/lib/libsqlite3.dylib', ], }, }], ], }, { # !use_system_sqlite 'product_name': 'sqlite3', 'type': 'static_library', 'sources': [ 'sqlite3.h', 'sqlite3ext.h', 'sqlite3.c', ], 'include_dirs': [ # 'amalgamation', # Needed for fts2 to build. # 'src/src', ], 'direct_dependent_settings': { 'include_dirs': [ '.', '../..', ], }, 'msvs_disabled_warnings': [ 4018, 4244, 4267, ], 'conditions': [ ['OS=="linux"', { 'link_settings': { 'libraries': [ '-ldl', ], }, }], ['OS == "mac" or OS == "ios"', { 'link_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', ], }, }], ['OS=="ios"', { 'xcode_settings': { 'ALWAYS_SEARCH_USER_PATHS': 'NO', 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic # (Equivalent to -fPIC) 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics 'PREBINDING': 'NO', # No -Wl,-prebind 'EMBED_BITCODE': 'YES', 'IPHONEOS_DEPLOYMENT_TARGET': '6.0', 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', 'USE_HEADERMAP': 'NO', 'OTHER_CFLAGS': [ '-fno-strict-aliasing', '-fno-standalone-debug' ], 'OTHER_CPLUSPLUSFLAGS': [ '-fno-strict-aliasing', '-fno-standalone-debug' ], 'OTHER_LDFLAGS': [ '-s' ], 'WARNING_CFLAGS': [ '-Wall', '-Wendif-labels', '-W', '-Wno-unused-parameter', ], }, 'defines':[ '__IOS__' ], 'conditions': [ ['target_arch=="ia32"', { 'xcode_settings': {'ARCHS': ['i386']}, }], ['target_arch=="x64"', { 'xcode_settings': {'ARCHS': ['x86_64']}, }], [ 'target_arch in "arm64 arm armv7s"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '-fembed-bitcode' ], 'OTHER_CPLUSPLUSFLAGS': [ '-fembed-bitcode' ], } }], [ 'target_arch=="arm64"', { 'xcode_settings': {'ARCHS': ['arm64']}, }], [ 'target_arch=="arm"', { 'xcode_settings': {'ARCHS': ['armv7']}, }], [ 'target_arch=="armv7s"', { 'xcode_settings': {'ARCHS': ['armv7s']}, }], [ 'target_arch=="x64" or target_arch=="ia32"', { 'xcode_settings': { 'SDKROOT': 'iphonesimulator' }, }, { 'xcode_settings': { 'SDKROOT': 'iphoneos', 'ENABLE_BITCODE': 'YES'}, }] ], }], ['OS == "android"', { 'defines': [ 'HAVE_USLEEP=1', 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', 'SQLITE_DEFAULT_AUTOVACUUM=1', 'SQLITE_TEMP_STORE=3', 'SQLITE_ENABLE_FTS3_BACKWARDS', 'DSQLITE_DEFAULT_FILE_FORMAT=4', ], }], ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { 'cflags': [ # SQLite doesn't believe in compiler warnings, # preferring testing. # http://www.sqlite.org/faq.html#q17 '-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast', ], }], ['clang==1', { 'xcode_settings': { 'WARNING_CFLAGS': [ # sqlite does `if (*a++ && *b++);` in a non-buggy way. '-Wno-empty-body', # sqlite has some `unsigned < 0` checks. '-Wno-tautological-compare', ], }, 'cflags': [ '-Wno-empty-body', '-Wno-tautological-compare', ], }], ], }], ], }, ], }
# Copyright (c) 2018 Fortinet, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # FortiAuthenticator API request format templates. # About api request message naming regulations: # Prefix HTTP method # ADD_XXX --> POST # SET_XXX --> PUT # DELETE_XXX --> DELETE # GET_XXX --> GET # MODIFY_XXX --> PATCH # Version GET_VERSION = """ { {% if sn is defined %} "path": "/version?sn={{ sn }}", {% else %} "path": "/version/", {% endif %} "method": "GET" } """ # Namespace # query GET_REALM = """ { {% if id is defined %} {% if sn is defined %} "path": "/api/v1/realm/{{ id }}?sn={{ sn }}", {% else %} "path": "/api/v1/realm/{{ id }}/", {% endif %} {% else %} {% set _options = { "sn": sn, "is_default": is_default, "name": name, "customer_id": customer_id, "cluster_members": cluster_members } %} {% set _query = [] %} {% for k, v in _options.items() if v is defined %} {% if _query.append(k+'='+translate_uri_chars(v)) %} {% endif %} {% endfor %} {% if _query %} {% set _query = '&'.join(_query) %} "path": "/api/v1/realm?{{ _query }}", {% else %} "path": "/api/v1/realm/", {% endif %} {% endif %} "method": "GET" } """ # add ADD_REALM = """ { "path": "/api/v1/realm", "method": "POST", "body": { {% if description is defined %} "description": "{{ description }}", {% endif %} {% if sn is defined %} "sn": "{{ sn }}", {% endif %} "name": "{{ name }}" } } """ # delete DELETE_REALM = """ { {% if sn is defined %} "path": "/api/v1/realm/{{ id }}?sn={{ sn }}", {% else %} "path": "/api/v1/realm/{{ id }}/, {% endif %} "method": "DELETE" } """ # authenticated api client # query GET_CLIENT = """ { {% if id is defined %} {% if sn is defined %} "path": "/api/v1/client/{{ id }}?sn={{ sn }}", {% else %} "path": "/api/v1/client/{{ id }}/, {% endif %} {% else %} {% set _options = { "sn": sn, "vdom": vdom, "realm_id": realm_id, "customer_id": customer_id, "cluster_members": cluster_members } %} {% set _query = [] %} {% for k, v in _options.items() if v is defined %} {% if _query.append(k+'='+translate_uri_chars(v)) %} {% endif %} {% endfor %} {% if _query %} {% set _query = '&'.join(_query) %} "path": "/api/v1/client?{{ _query }}", {% else %} "path": "/api/v1/client/", {% endif %} {% endif %} "method": "GET" } """ # delete DELETE_CLIENT = """ { {% if sn is defined %} "path": "/api/v1/client/{{ id }}?sn={{ sn }}", {% else %} "path": "/api/v1/client/{{ id }}/, {% endif %} "method": "DELETE" } """ # User # query GET_USER = """ { {% if id is defined %} {% if sn is defined %} "path": "/api/v1/user/{{ id }}?sn={{ sn }}", {% else %} "path": "/api/v1/user/{{ id }}/", {% endif %} {% else %} {% set _options = { "sn": sn, "username": username, "email": email, "mobile_number": mobile_number, "realm_id": realm_id, "realm": realm, "vdom": vdom, "active": active, "auth_method": auth_method, "notification_method": notification_method, "customer_id": customer_id, "cluster_members": cluster_members } %} {% set _query = [] %} {% for k, v in _options.items() if v is defined %} {% if _query.append(k+'='+translate_uri_chars(v)) %} {% endif %} {% endfor %} {% if _query %} {% set _query = '&'.join(_query) %} "path": "/api/v1/user?{{ _query }}", {% else %} "path": "/api/v1/user/", {% endif %} {% endif %} "method": "GET" } """ # add ADD_USER = """ { "path": "/api/v1/user/", "method": "POST", "body": { {% if sn is defined %} "sn": "{{ sn }}", {% endif %} {% if vdom is defined %} "vdom": "{{ vdom }}", {% endif %} "email": "{{ email }}", {% if realm_id is defined %} "realm_id": "{{ realm_id }}", {% elif realm is defined %} "realm": "{{ realm }}", {% endif %} {% if mobile_number is defined %} "mobile_number": "{{ mobile_number }}", {% endif %} {% if auth_method is defined %} "auth_method": "{{ auth_method }}", {% endif %} {% if notification_method is defined %} "notification_method": "{{ notification_method }}", {% endif %} {% if user_data is defined %} "user_data": "{{ user_data }}", {% endif %} {% if cluster_members is defined %} "cluster_members": [ {% for member in cluster_members %} "{{ member }}"{{ "," if not loop.last }} {% endfor %} ], {% endif %} "username": "{{ username }}" } } """ # delete DELETE_USER = """ { {% if cluster_members is defined %} {% set _members = translate_uri_chars(cluster_members) %} {% set _url = "/api/v1/user/" + id + "?cluster_members=" + _members %} {% if sn is defined %} "path": "{{ _url }}&sn={{ sn }}", {% else %} "path": "{{ _url }}", {% endif %} {% else %} {% if sn is defined %} "path": "/api/v1/user/{{ id }}?sn={{ sn }}", {% else %} "path": "/api/v1/user/{{ id }}/", {% endif %} {% endif %} "method": "DELETE" } """ # put MODIFY_USER = """ { "path": "/api/v1/user/{{ id }}/", "method": "PUT", "body": { {% set _options = { "sn": sn, "email": email, "mobile_number": mobile_number, "active": active, "change_token": change_token } %} {% for k, v in _options.items() if v is defined %} "{{ k }}": "{{ v }}", {% endfor %} "id": "{{ id }}" } } """ SYNC_USER = """ { "path": "/api/v1/user_sync/", "method": "POST", "body": { {% if vdom is defined %} "vdom": "{{ vdom }}", {% endif %} {% if realm is defined %} "realm": "{{ realm }}", {% endif %} {% if users is defined %} "users": [ {% for user in users %} {{ user }}{{ "," if not loop.last }} {% endfor %} ], {% endif %} {% if cluster_members is defined %} "cluster_members": [ {% for member in cluster_members %} "{{ member }}"{{ "," if not loop.last }} {% endfor %} ], {% endif %} "sn": "{{ sn }}" } """ # count GET_COUNT = """ { {% set _options = { "sn": sn, "resource": resource, "realm_id": realm_id, "active": active, "customer_id": customer_id, "cluster_members": cluster_members } %} {% set _query = [] %} {% for k, v in _options.items() if v is defined %} {% if _query.append(k+'='+translate_uri_chars(v)) %} {% endif %} {% endfor %} {% if _query %} {% set _query = '&'.join(_query) %} "path": "/api/v1/count?{{ _query }}", {% else %} "path": "/api/v1/count/", {% endif %} "method": "GET" } """ # authentication ADD_AUTH = """ { "path": "/api/v1/auth/", "method": "POST", "body": { {% if token is defined %} "token": "{{ token }}", {% endif %} {% if sn is defined %} "sn": "{{ sn }}", {% endif %} {% if realm_id is defined %} "realm_id": "{{ realm_id }}", {% elif realm is defined %} "realm": "{{ realm }}", {% endif %} {% if vdom is defined %} "vdom": "{{ vdom }}", {% endif %} {% if auth_method is defined %} "auth_method": "{{ auth_method }}", {% endif %} "username": "{{ username }}" } } """ GET_AUTH = """ { {% if id is defined %} "path": "/api/v1/auth/{{ id }}/", {% else %} {% set _options = { "sn": sn, "chunksize": chunksize } %} {% set _query = [] %} {% for k, v in _options.items() if v is defined %} {% if _query.append(k+'='+translate_uri_chars(v)) %} {% endif %} {% endfor %} {% if _query %} {% set _query = '&'.join(_query) %} "path": "/api/v1/auth?{{ _query }}", {% else %} "path": "/api/v1/auth/", {% endif %} {% endif %} "method": "GET" } """ # statement GET_STATEMENT = """ { {% set _options = { "sn": sn, "start": start, "end": end, "realm_id": realm_id, "realm": realm, "cluster_members": cluster_members } %} {% set _query = [] %} {% for k, v in _options.items() if v is defined %} {% if _query.append(k+'='+translate_uri_chars(v)) %} {% endif %} {% endfor %} {% if _query %} {% set _query = '&'.join(_query) %} "path": "/api/v1/statement?{{ _query }}", {% else %} "path": "/api/v1/statement/", {% endif %} "method": "GET" } """ # token activation ADD_TOKEN_ACTIVATION = """ { "path": "/api/v1/token/activation", "method": "POST", "body": { {% if token is defined %} "token": "{{ token }}", {% endif %} } } """ TOKEN_TRANSFER_START = """ { "path": "/api/v1/token/transfer/start", "method": "POST", "body": { "sn": "{{ sn }}", "tokens": "{{ tokens }}", "reg_id": "{{ reg_id }}", "hmac": "{{ hmac }}", "transfer_code": "{{ transfer_code }}", "msg_sn": "FortiToken Cloud" } } """ # Trial ADD_TRIAL = """ { "path": "/api/v1/trial/", "method": "POST", "body": { {% if sn is defined %} "sn": "{{ sn }}" {% endif %} {% if customer_id is defined %} "customer_id": "{{ customer_id }}" {% endif %} } } """ # authenticated api client # query GET_TASK = """ { {% if id is defined %} {% set _options = { "sn": sn, "vdom": vdom, "realm_id": realm_id, "customer_id": customer_id, "cluster_members": cluster_members } %} {% set _query = [] %} {% for k, v in _options.items() if v is defined %} {% if _query.append(k+'='+translate_uri_chars(v)) %} {% endif %} {% endfor %} {% if _query %} {% set _query = '&'.join(_query) %} "path": "/api/v1/task/{{ id }}?{{ _query }}", {% else %} "path": "/api/v1/task/{{ id }}", {% endif %} {% endif %} "method": "GET" } """ GET_COUNT_AUTH = """ { "path": "/faas_auth*/_search?pretty", "method": "GET", "body": { "query": { "range": { "@timestamp": { "gte": "now-7d", "lte": "now" } } }, "aggs": { "auth_by_customer_id": { "terms": { "field": "context.customer_id.keyword", "size": 50 } } } } } """
seriffont = {"Width": 6, "Height": 8, "Start": 32, "End": 127, "Data": bytearray([ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, #0x00, 0x12, 0x3F, 0x12, 0x3F, 0x12, 0x00, #0x00, 0x26, 0x7F, 0x32, 0x00, 0x00, 0x00, #0x00, 0x13, 0x0B, 0x34, 0x32, 0x00, 0x00, #0x00, 0x1A, 0x25, 0x1A, 0x28, 0x00, 0x00, #0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x7E, 0x81, 0x00, 0x00, 0x00, 0x00, #0x00, 0x81, 0x7E, 0x00, 0x00, 0x00, 0x00, #0x00, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00, #0x00, 0x08, 0x1C, 0x08, 0x00, 0x00, 0x00, #0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, #0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x38, 0x07, 0x00, 0x00, 0x00, 0x00, #0x00, 0x1E, 0x21, 0x21, 0x1E, 0x00, 0x00, #0x00, 0x02, 0x3F, 0x00, 0x00, 0x00, 0x00, #0x00, 0x32, 0x29, 0x29, 0x36, 0x00, 0x00, #0x00, 0x12, 0x21, 0x25, 0x1A, 0x00, 0x00, #0x00, 0x18, 0x16, 0x3F, 0x10, 0x00, 0x00, #0x00, 0x27, 0x25, 0x19, 0x00, 0x00, 0x00, #0x00, 0x1E, 0x25, 0x25, 0x18, 0x00, 0x00, #0x00, 0x03, 0x39, 0x07, 0x00, 0x00, 0x00, #0x00, 0x1A, 0x25, 0x25, 0x1A, 0x00, 0x00, #0x00, 0x06, 0x29, 0x29, 0x1E, 0x00, 0x00, #0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x08, 0x14, 0x22, 0x00, 0x00, 0x00, #0x00, 0x14, 0x14, 0x14, 0x00, 0x00, 0x00, #0x00, 0x22, 0x14, 0x08, 0x00, 0x00, 0x00, #0x00, 0x02, 0x29, 0x05, 0x02, 0x00, 0x00, #0x00, 0x1C, 0x22, 0x49, 0x55, 0x59, 0x12, #0x0C, 0x30, 0x2C, 0x0B, 0x0B, 0x2C, 0x30, #0x00, 0x21, 0x3F, 0x25, 0x25, 0x1A, 0x00, #0x00, 0x1E, 0x21, 0x21, 0x21, 0x13, 0x00, #0x00, 0x21, 0x3F, 0x21, 0x21, 0x1E, 0x00, #0x00, 0x21, 0x3F, 0x25, 0x33, 0x00, 0x00, #0x00, 0x21, 0x3F, 0x25, 0x03, 0x00, 0x00, #0x00, 0x1E, 0x21, 0x21, 0x29, 0x3B, 0x00, #0x00, 0x3F, 0x04, 0x04, 0x3F, 0x00, 0x00, #0x00, 0x3F, 0x21, 0x00, 0x00, 0x00, 0x00, #0x00, 0x21, 0x1F, 0x01, 0x00, 0x00, 0x00, #0x00, 0x21, 0x3F, 0x0C, 0x33, 0x21, 0x00, #0x00, 0x3F, 0x21, 0x30, 0x00, 0x00, 0x00, #0x00, 0x21, 0x3F, 0x0C, 0x30, 0x0C, 0x3F, #0x21, 0x3F, 0x03, 0x0C, 0x3F, 0x01, 0x00, #0x00, 0x1E, 0x21, 0x21, 0x21, 0x1E, 0x00, #0x00, 0x3F, 0x29, 0x06, 0x00, 0x00, 0x00, #0x00, 0x1E, 0x21, 0x21, 0x61, 0x1E, 0x00, #0x00, 0x21, 0x3F, 0x09, 0x36, 0x00, 0x00, #0x00, 0x32, 0x25, 0x25, 0x1B, 0x00, 0x00, #0x00, 0x01, 0x3F, 0x01, 0x00, 0x00, 0x00, #0x00, 0x1F, 0x21, 0x20, 0x21, 0x1F, 0x00, #0x00, 0x03, 0x0D, 0x30, 0x30, 0x0D, 0x03, #0x00, 0x0F, 0x31, 0x0C, 0x0C, 0x31, 0x0F, #0x00, 0x21, 0x33, 0x0C, 0x0C, 0x33, 0x21, #0x00, 0x03, 0x24, 0x38, 0x24, 0x03, 0x01, #0x00, 0x29, 0x25, 0x33, 0x00, 0x00, 0x00, #0x00, 0x7F, 0x41, 0x00, 0x00, 0x00, 0x00, #0x00, 0x07, 0x38, 0x00, 0x00, 0x00, 0x00, #0x00, 0x41, 0x7F, 0x00, 0x00, 0x00, 0x00, #0x00, 0x02, 0x01, 0x02, 0x00, 0x00, 0x00, #0x00, 0x40, 0x40, 0x40, 0x40, 0x00, 0x00, #0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, #0x00, 0x14, 0x24, 0x38, 0x00, 0x00, 0x00, #0x00, 0x3F, 0x28, 0x24, 0x18, 0x00, 0x00, #0x00, 0x18, 0x24, 0x24, 0x00, 0x00, 0x00, #0x00, 0x18, 0x24, 0x25, 0x3F, 0x00, 0x00, #0x00, 0x18, 0x24, 0x28, 0x00, 0x00, 0x00, #0x00, 0x3E, 0x25, 0x00, 0x00, 0x00, 0x00, #0x00, 0x18, 0xA4, 0xA4, 0x7C, 0x00, 0x00, #0x00, 0x3F, 0x04, 0x38, 0x00, 0x00, 0x00, #0x00, 0x3D, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0xFD, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x3F, 0x18, 0x24, 0x00, 0x00, 0x00, #0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x3C, 0x04, 0x38, 0x04, 0x38, 0x00, #0x00, 0x3C, 0x04, 0x38, 0x00, 0x00, 0x00, #0x00, 0x18, 0x24, 0x24, 0x18, 0x00, 0x00, #0x00, 0xFC, 0xA4, 0x24, 0x18, 0x00, 0x00, #0x00, 0x18, 0x24, 0xA4, 0xFC, 0x00, 0x00, #0x00, 0x3C, 0x04, 0x00, 0x00, 0x00, 0x00, #0x00, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, #0x00, 0x1E, 0x24, 0x00, 0x00, 0x00, 0x00, #0x00, 0x1C, 0x20, 0x3C, 0x00, 0x00, 0x00, #0x00, 0x0C, 0x30, 0x0C, 0x00, 0x00, 0x00, #0x00, 0x0C, 0x30, 0x0C, 0x30, 0x0C, 0x00, #0x00, 0x24, 0x18, 0x24, 0x00, 0x00, 0x00, #0x00, 0x9C, 0x60, 0x1C, 0x00, 0x00, 0x00, #0x00, 0x34, 0x24, 0x2C, 0x00, 0x00, 0x00, #0x00, 0x08, 0x77, 0x00, 0x00, 0x00, 0x00, #0x00, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00, 0x77, 0x08, 0x00, 0x00, 0x00, 0x00, #0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, #0x00, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, #0x00 ])}
London_walk = ox.graph_from_place('London, UK', network_type='walk') London_walk_simple=nx.Graph(London_walk) street_bus=London_walk_simple.copy() street_bus.add_nodes_from(BN.nodes(data=True)) street_bus.add_edges_from(BN.edges(data=True)) # create tree street_nodes=[] for node,data in London_walk_simple.nodes(data=True): street_nodes.append(data['pos']) street_nodes_array=np.vstack(street_nodes) tree = KDTree(street_nodes_array) def passenger_node_mapping(node,prestige_id,easting,northing,to_be_mapped_graph,tree_graph,tree): to_be_mapped_graph.add_node(node, easting_amt = easting, northing_amt=northing, pos=(easting,northing), prestige_id=prestige_id, mode='walk',specific_mode='passenger', size=0.01,color='#2ECCFA' ) to_be_mapped_graph.add_edge(node, tree_graph.nodes()[tree.query([easting,northing])[1]], length=tree.query([easting,northing])[0], weight=tree.query([easting,northing])[0]/80, color='#A4A4A4', ivt=None, waiting_time=None, walking_time=tree.query([easting,northing])[0]/80, boarding=None, mode='walk', specific_mode='street', width=0.005, size=0.01 ), to_be_mapped_graph.add_edge(tree_graph.nodes()[tree.query([easting,northing])[1]], node, length=tree.query([easting,northing])[0], weight=tree.query([easting,northing])[0]/80, color='#A4A4A4', ivt=None, waiting_time=None, walking_time=tree.query([easting,northing])[0]/80, boarding=None, mode='walk', specific_mode='street', width=0.005, size=0.01 ) return to_be_mapped_graph ## example ## passenger_node_mapping('walala',prestige_id=189765768,easting=529997,northing=181436,to_be_mapped_graph=street_bus, tree_graph=London_walk_simple,tree=tree) # passenegr_node remove def remove_passemger_node(node,mapped_graph): mapped_graph.remove_node(node) return mapped_graph
# 18 > = Adult # 5-17 = Child # >0 - 5 = Infant your_age = int(input("Enter you age : ")) if your_age >= 18 : print("ADULT") elif your_age > 5 : print("CHILD") else : print("INFANT")
class Solution: def solve(self, matrix): dp = [[[None,0,0,0] for x in range(len(matrix[0])+1)] for y in range(len(matrix)+1)] ans = 0 for y in range(len(matrix)): for x in range(len(matrix[0])): coeff0 = 1 if matrix[y][x] == dp[y-1][x][0] == dp[y][x-1][0] == dp[y-1][x-1][0] else 0 coeff1 = 1 if matrix[y][x] == dp[y-1][x][0] else 0 coeff2 = 1 if matrix[y][x] == dp[y][x-1][0] else 0 dp[y][x] = [matrix[y][x], coeff0*min(dp[y-1][x-1][1], dp[y-1][x][2], dp[y][x-1][3]) + 1, coeff1*dp[y-1][x][2] + 1, coeff2*dp[y][x-1][3]+1] ans = max(ans, dp[y][x][1]) return ans
class Solution: def bitwiseComplement(self, N: int) -> int: if N == 0: return 1 tmp = [] while N: t = N % 2 N //= 2 tmp.append(1-t) ans = 0 for k in range(len(tmp)-1, -1, -1): ans += tmp[k] * 2**k return ans
def closest_row(dataframe, column, value): """ Function which takes a dataframe and returns the row that is closest to the specified value of the specified column. :param dataframe: Dataframe object :param column: String which matches to a column in the dataframe in which you would like to find the closest value of. :param value: Value to find the closest row to. :return: Returns row that is closest to the value of the selected column of the dataframe """ sort = dataframe.iloc[(dataframe[column]-value).abs().argsort()[:1]] return sort
"""IO subpackage. Modules and functions for input / output file and data processing """
# # PySNMP MIB module ACMEPACKET-ENVMON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ACMEPACKET-ENVMON-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:13:15 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) # acmepacketMgmt, = mibBuilder.importSymbols("ACMEPACKET-SMI", "acmepacketMgmt") ApRedundancyState, ApHardwareModuleFamily, ApPhyPortType, ApPresence = mibBuilder.importSymbols("ACMEPACKET-TC", "ApRedundancyState", "ApHardwareModuleFamily", "ApPhyPortType", "ApPresence") ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") TimeTicks, Gauge32, Unsigned32, ObjectIdentity, Integer32, Counter64, NotificationType, IpAddress, Bits, iso, Counter32, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Gauge32", "Unsigned32", "ObjectIdentity", "Integer32", "Counter64", "NotificationType", "IpAddress", "Bits", "iso", "Counter32", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier") DisplayString, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "TruthValue") apEnvMonModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 9148, 3, 3)) if mibBuilder.loadTexts: apEnvMonModule.setLastUpdated('200611080000Z') if mibBuilder.loadTexts: apEnvMonModule.setOrganization('Acme Packet, Inc') if mibBuilder.loadTexts: apEnvMonModule.setContactInfo(' Customer Service Postal: Acme Packet, Inc 71 Third Ave Burlington, MA 01803 USA Phone : 1-781-328-4400 E-mail: support@acmepacket.com') if mibBuilder.loadTexts: apEnvMonModule.setDescription('The MIB module to describe the status of the Environmental Monitor on the devices.') class ApEnvMonState(TextualConvention, Integer32): description = 'Represents the state of a device being monitored. Valid values are: initial (1): the environment is at initial state. normal (2) : the environment is good, such as low temperature. minor (3) : the environment is not good, such as: fan speed is more than minor alarm threshold, but less than major alarm threshold. major (4) : the environment is bad, such as: fan speed is more than major alarm threshold, but less than critical alarm threshold. critical(5): the environment is very bad, such as Fan speed is more than critical threshold. shutdown(6): the environment is the worst, the system should be shutdown immediately. notPresent(7): the environmental monitor is not present, such as temperature sensors do not exist. notFunctioning(8): the environmental monitor does not function properly, such as 1. I2C fail 2. a temperature sensor generates a abnormal data like 1000 C. unknown(9) : can not get the information due to internal error. ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9)) namedValues = NamedValues(("initial", 1), ("normal", 2), ("minor", 3), ("major", 4), ("critical", 5), ("shutdown", 6), ("notPresent", 7), ("notFunctioning", 8), ("unknown", 9)) apEnvMonObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1)) apEnvMonI2CState = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 1), ApEnvMonState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonI2CState.setStatus('current') if mibBuilder.loadTexts: apEnvMonI2CState.setDescription('the state of environment monitor located in the chassis.') apEnvMonVoltageObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2)) apEnvMonVoltageStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1), ) if mibBuilder.loadTexts: apEnvMonVoltageStatusTable.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageStatusTable.setDescription('The table of voltage status maintained by the environmental monitor.') apEnvMonVoltageStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1), ).setIndexNames((0, "ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageStatusIndex")) if mibBuilder.loadTexts: apEnvMonVoltageStatusEntry.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageStatusEntry.setDescription('An entry in the voltage status table, representing the status of the associated testpoint maintained by the environmental monitor.') apEnvMonVoltageStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: apEnvMonVoltageStatusIndex.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageStatusIndex.setDescription('Unique index for the testpoint being instrumented. This index is for SNMP purposes only, and has no intrinsic meaning.') apEnvMonVoltageStatusType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("unknown", 0), ("v2p5", 1), ("v3p3", 2), ("v5", 3), ("cpu", 4), ("v1", 5), ("v1p1", 6), ("v1p15", 7), ("v1p2", 8), ("v1p212", 9), ("v1p25", 10), ("v1p3", 11), ("v1p5", 12), ("v1p8", 13), ("v2p6", 14)))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonVoltageStatusType.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageStatusType.setDescription('The entity part type from which the voltage value is from v2p5- 2.5V sensor: L3 cache core voltage; micro-processor and co-processoor I/O voltage; FPGA memories I/O voltage. v3p3 - 3.3V sensor: general TTL supply rail; control logic; micro-processor; micro-processor and co-processor; SDRAM v5 - 5V sensor: Fans; micro-processor core voltage regulator. CPU - CPU voltage micro-processor core voltage.') apEnvMonVoltageStatusDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonVoltageStatusDescr.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageStatusDescr.setDescription('Textual description of the voltage being instrumented. This description is a short textual label, suitable as a human-sensible identification for the rest of the information in the entry.') apEnvMonVoltageStatusValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1, 4), Integer32()).setUnits('millivolts').setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonVoltageStatusValue.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageStatusValue.setDescription('The current measurement of voltage if avaiable. The value is expressed as the integer in millivolts unit.') apEnvMonVoltageState = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1, 5), ApEnvMonState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonVoltageState.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageState.setDescription('The current state of the testpoint being instrumented.') apEnvMonVoltageSlotID = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonVoltageSlotID.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageSlotID.setDescription('The slot this voltage is found on.') apEnvMonVoltageSlotType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 2, 1, 1, 7), ApHardwareModuleFamily()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonVoltageSlotType.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageSlotType.setDescription('The type of module found in this slot.') apEnvMonTemperatureObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3)) apEnvMonTemperatureStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1), ) if mibBuilder.loadTexts: apEnvMonTemperatureStatusTable.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureStatusTable.setDescription('The table of ambient temperature status maintained by the environmental monitor.') apEnvMonTemperatureStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1), ).setIndexNames((0, "ACMEPACKET-ENVMON-MIB", "apEnvMonTemperatureStatusIndex")) if mibBuilder.loadTexts: apEnvMonTemperatureStatusEntry.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureStatusEntry.setDescription('An entry in the ambient temperature status table, representing the status of the associated testpoint maintained by the environmental monitor.') apEnvMonTemperatureStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: apEnvMonTemperatureStatusIndex.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureStatusIndex.setDescription('Unique index for the testpoint being instrumented. This index is for SNMP purposes only, and has no intrinsic meaning.') apEnvMonTemperatureStatusType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("ds1624sMain", 1), ("ds1624sCPU", 2), ("lm84", 3), ("lm75", 4), ("lm75Main", 5), ("lm75Cpu", 6), ("lm75Phy", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonTemperatureStatusType.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureStatusType.setDescription('The entity part type from which the temperature value is from') apEnvMonTemperatureStatusDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonTemperatureStatusDescr.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureStatusDescr.setDescription('Textual description of the temperature being instrumented. This description is a short textual label, suitable as a human-sensible identification for the rest of the information in the entry.') apEnvMonTemperatureStatusValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1, 4), Integer32()).setUnits('degrees Celsius').setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonTemperatureStatusValue.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureStatusValue.setDescription('The current measurement of the testpoint being instrumented.') apEnvMonTemperatureState = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1, 5), ApEnvMonState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonTemperatureState.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureState.setDescription('The current state of the testpoint being instrumented.') apEnvMonTemperatureSlotID = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonTemperatureSlotID.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureSlotID.setDescription('The slot this temperature is found on.') apEnvMonTemperatureSlotType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 3, 1, 1, 7), ApHardwareModuleFamily()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonTemperatureSlotType.setStatus('current') if mibBuilder.loadTexts: apEnvMonTemperatureSlotType.setDescription('The type of module found in this slot.') apEnvMonFanObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4)) apEnvMonFanStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1), ) if mibBuilder.loadTexts: apEnvMonFanStatusTable.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanStatusTable.setDescription('The table of fan status maintained by the environmental monitor.') apEnvMonFanStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1, 1), ).setIndexNames((0, "ACMEPACKET-ENVMON-MIB", "apEnvMonFanStatusIndex")) if mibBuilder.loadTexts: apEnvMonFanStatusEntry.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanStatusEntry.setDescription('An entry in the fan status table, representing the status of the associated fan maintained by the environmental monitor.') apEnvMonFanStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: apEnvMonFanStatusIndex.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanStatusIndex.setDescription('Unique index for the fan being instrumented. This index is for SNMP purposes only.') apEnvMonFanStatusType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("left", 0), ("middle", 1), ("right", 2), ("slot", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonFanStatusType.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanStatusType.setDescription('The entity part type from which the fan value is from. The left and right at the base when one faces the front of the SD. Next-generation products contain replaceable fans contained in chassis slots.') apEnvMonFanStatusDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonFanStatusDescr.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanStatusDescr.setDescription('Textual description of the fan being instrumented. This description is a short textual label, suitable as a human-sensible identification for the rest of the information in the entry.') apEnvMonFanStatusValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1, 1, 4), Gauge32()).setUnits('%').setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonFanStatusValue.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanStatusValue.setDescription('The current percentage measurement of the fan speed.') apEnvMonFanState = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1, 1, 5), ApEnvMonState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonFanState.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanState.setDescription('The current state of the fan being instrumented.') apEnvMonFanSlotID = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 4, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonFanSlotID.setStatus('current') if mibBuilder.loadTexts: apEnvMonFanSlotID.setDescription('The slot this van is found in. zero is returned if this fan is not of apEnvMonFanStatusType slot(3).') apEnvMonPowerSupplyObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 5)) apEnvMonPowerSupplyStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 5, 1), ) if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusTable.setStatus('current') if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusTable.setDescription('The table of power supply status maintained by the environmental monitor card.') apEnvMonPowerSupplyStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 5, 1, 1), ).setIndexNames((0, "ACMEPACKET-ENVMON-MIB", "apEnvMonPowerSupplyStatusIndex")) if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusEntry.setStatus('current') if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusEntry.setDescription('An entry in the power supply status table, representing the status of the associated power supply maintained by the environmental monitor card.') apEnvMonPowerSupplyStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusIndex.setStatus('current') if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusIndex.setDescription('Unique index for the power supply being instrumented. This index is for SNMP purposes only.') apEnvMonPowerSupplyStatusType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 3))).clone(namedValues=NamedValues(("left", 0), ("right", 1), ("slot", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusType.setStatus('current') if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusType.setDescription('The entity part type from which the power status is from. 0=left:power supply A, 1=right:power supply B. 3=slot: power supply is contained in the slot corresponding to apEnvMonPowerSowerSupplyStatusIndex') apEnvMonPowerSupplyStatusDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 5, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusDescr.setStatus('current') if mibBuilder.loadTexts: apEnvMonPowerSupplyStatusDescr.setDescription('Textual description of the power supply being instrumented. This description is a short textual label, suitable as a human-sensible identification for the rest of the information in the entry.') apEnvMonPowerSupplyState = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 5, 1, 1, 4), ApEnvMonState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonPowerSupplyState.setStatus('current') if mibBuilder.loadTexts: apEnvMonPowerSupplyState.setDescription('The current state of the power supply being instrumented: normal or notPresent') apEnvMonPhyCardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 6)) apEnvMonPhyCardStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 6, 1), ) if mibBuilder.loadTexts: apEnvMonPhyCardStatusTable.setStatus('deprecated') if mibBuilder.loadTexts: apEnvMonPhyCardStatusTable.setDescription("THIS TABLE IS BEING DEPRECATED IN FAVOR OF THE MORE GENERIC apEnvMonCardTable. Please Note: in the generic card table, a phy card is referred to as an 'niu' (network interfacing unit). The table of phy card status maintained by the environmental monitor.") apEnvMonPhyCardStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 6, 1, 1), ).setIndexNames((0, "ACMEPACKET-ENVMON-MIB", "apEnvMonPhyCardStatusIndex")) if mibBuilder.loadTexts: apEnvMonPhyCardStatusEntry.setStatus('deprecated') if mibBuilder.loadTexts: apEnvMonPhyCardStatusEntry.setDescription('An entry in the phy status table, representing the status of the associated phy maintained by the environmental monitor.') apEnvMonPhyCardStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: apEnvMonPhyCardStatusIndex.setStatus('deprecated') if mibBuilder.loadTexts: apEnvMonPhyCardStatusIndex.setDescription('Unique index for the phy being instrumented. This index is for SNMP purposes only.') apEnvMonPhyCardStatusType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 3))).clone(namedValues=NamedValues(("left", 0), ("right", 1), ("slot", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonPhyCardStatusType.setStatus('deprecated') if mibBuilder.loadTexts: apEnvMonPhyCardStatusType.setDescription('The entity part type from which the phy card is from. 0=left:card A, 1=right:card B, 3=only card. 3=slot: phyCard is contained in the slot corresponding to apEnvMonPhyCardStatusIndex') apEnvMonPhyCardStatusDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 6, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonPhyCardStatusDescr.setStatus('deprecated') if mibBuilder.loadTexts: apEnvMonPhyCardStatusDescr.setDescription('Textual description of the phy being instrumented. This description is a short textual label, suitable as a human-sensible identification for the rest of the information in the entry.') apEnvMonPhyCardState = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 6, 1, 1, 4), ApEnvMonState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonPhyCardState.setStatus('deprecated') if mibBuilder.loadTexts: apEnvMonPhyCardState.setDescription('The current state of the phy being instrumented: normal or notPresent') apEnvMonCardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7)) apEnvMonCardTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1), ) if mibBuilder.loadTexts: apEnvMonCardTable.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardTable.setDescription('List of Cards in the chassis') apEnvMonCardEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1, 1), ).setIndexNames((0, "ACMEPACKET-ENVMON-MIB", "apEnvMonCardSlot")) if mibBuilder.loadTexts: apEnvMonCardEntry.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardEntry.setDescription('A single card in the chassis') apEnvMonCardSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCardSlot.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardSlot.setDescription('Slot number of this card. Please note that the slot number is zero-based, i.e. they are numbered 0-n.') apEnvMonCardType = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1, 1, 2), ApHardwareModuleFamily()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCardType.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardType.setDescription('The card type') apEnvMonCardDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCardDescr.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardDescr.setDescription('A text description of this card') apEnvMonCardHealthScore = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCardHealthScore.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardHealthScore.setDescription('The health score of this card') apEnvMonCardState = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1, 1, 5), ApEnvMonState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCardState.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardState.setDescription('the current state of this card') apEnvMonCardRedundancy = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 1, 1, 6), ApRedundancyState()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCardRedundancy.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardRedundancy.setDescription('Redundancy state of the card') apEnvMonCpuCoreTable = MibTable((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2), ) if mibBuilder.loadTexts: apEnvMonCpuCoreTable.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreTable.setDescription('List of cores per CPU in the chassis') apEnvMonCpuCoreEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2, 1), ).setIndexNames((0, "ACMEPACKET-ENVMON-MIB", "apEnvMonCardSlot"), (0, "ACMEPACKET-ENVMON-MIB", "apEnvMonCpuCoreIndex")) if mibBuilder.loadTexts: apEnvMonCpuCoreEntry.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreEntry.setDescription('A single CPU core in the chassis') apEnvMonCpuCoreIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCpuCoreIndex.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreIndex.setDescription('the core index on the CPU') apEnvMonCpuCoreDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCpuCoreDescr.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreDescr.setDescription('the cpu core descriptor') apEnvMonCpuCoreUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2, 1, 3), Gauge32()).setUnits('%').setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCpuCoreUsage.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreUsage.setDescription('The current percentage of use for the CPU core.') apEnvMonCpuCoreState = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 101, 102, 201, 202, 203, 204, 205, 206, 207, 208, 209, 401, 402, 403, 404, 405, 406))).clone(namedValues=NamedValues(("unknown", 0), ("present", 1), ("booting", 2), ("registered", 3), ("readywait", 4), ("ready", 5), ("bootTimeout", 6), ("registerTimeout", 7), ("manifestTimeout", 8), ("readyTimeout", 9), ("healthWait", 101), ("healthRcvd", 102), ("becomingActive", 201), ("becomingStandby", 202), ("becomingOOS", 203), ("active", 204), ("standby", 205), ("oos", 206), ("activeTimeout", 207), ("standbyTimeout", 208), ("oosTimeout", 209), ("resetting", 401), ("reset", 402), ("resetTimeout", 403), ("shuttingDown", 404), ("shutOff", 405), ("shutdownTimeout", 406)))).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCpuCoreState.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreState.setDescription('The state of this CPU core.') apEnvMonCpuCoreRamDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCpuCoreRamDescr.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreRamDescr.setDescription('The cpu core RAM descriptor') apEnvMonCpuCoreRamUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 9148, 3, 3, 1, 7, 2, 1, 6), Gauge32()).setUnits('%').setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonCpuCoreRamUsage.setStatus('current') if mibBuilder.loadTexts: apEnvMonCpuCoreRamUsage.setDescription('The current percentage of use for the CPU core RAM.') apEnvMonMIBNotificationEnables = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 2)) apEnvMonEnableStatChangeNotif = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 2, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: apEnvMonEnableStatChangeNotif.setStatus('current') if mibBuilder.loadTexts: apEnvMonEnableStatChangeNotif.setDescription('This variable indicates whether the system produces any of the traps generated by this mib. A false value will prevent them from being generated by this system.') apEnvMonNotificationObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3)) apEnvMonTrapInstance = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 1), ObjectIdentifier()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapInstance.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapInstance.setDescription("The object ID of the item which value is exceeds its monitoring threshold. If the item is within a table, this OID is the instance of this item's index within its table. For exmple, 1. if the state of 2.5v voltage changes, the trap OID is the instance of index OID, which is 1.3.6.1.4.1.9148.3.3.1.2.4.1.1.1 2. if the state of mainboard temperature changes, the trap OID is, 1.3.6.1.4.1.9148.3.3.1.3.4.1.1.1 3. if the state of left fan changes, the trap OID is 1.3.6.1.4.1.9148.3.3.1.4.4.1.1.1 If the item is scalar, the OID is the instance is of this item, For example, If the I2C state changes, the OID is 1.3.6.1.4.1.9148.3.3.1.4.4.1.1.0") apEnvMonTrapPreviousState = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 2), ApEnvMonState()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapPreviousState.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapPreviousState.setDescription('The previous state of the object.') apEnvMonTrapCurrentState = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 3), ApEnvMonState()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapCurrentState.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapCurrentState.setDescription('The current state of the object which causes the trap to occur.') apEnvMonTrapSlotID = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapSlotID.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapSlotID.setDescription('The slotID which causes the trap to occur.') apEnvMonTrapSlotType = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 5), ApHardwareModuleFamily()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapSlotType.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapSlotType.setDescription('The slot type which causes the trap to occur.') apEnvMonTrapPortType = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 6), ApPhyPortType()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapPortType.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapPortType.setDescription('The port type which causes the trap to occur.') apEnvMonTrapPresence = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 7), ApPresence()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapPresence.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapPresence.setDescription('The state which causes the trap to occur.') apEnvMonTrapPortID = MibScalar((1, 3, 6, 1, 4, 1, 9148, 3, 3, 3, 8), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: apEnvMonTrapPortID.setStatus('current') if mibBuilder.loadTexts: apEnvMonTrapPortID.setDescription('The ID of the port which causes the trap to occur.') apEnvMonMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 4)) apEnvMonMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 4, 0)) apEnvMonI2CFailNotification = NotificationType((1, 3, 6, 1, 4, 1, 9148, 3, 3, 4, 0, 1)) if mibBuilder.loadTexts: apEnvMonI2CFailNotification.setStatus('current') if mibBuilder.loadTexts: apEnvMonI2CFailNotification.setDescription('A notification of I2C state turns from normal(1) to notFunctioning(7)') apEnvMonStatusChangeNotification = NotificationType((1, 3, 6, 1, 4, 1, 9148, 3, 3, 4, 0, 2)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapInstance"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapPreviousState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapCurrentState")) if mibBuilder.loadTexts: apEnvMonStatusChangeNotification.setStatus('current') if mibBuilder.loadTexts: apEnvMonStatusChangeNotification.setDescription('A apEnvStatusChangeNotification is sent if any entry of above table change in the state of a device being monitored') apEnvMonTempChangeNotification = NotificationType((1, 3, 6, 1, 4, 1, 9148, 3, 3, 4, 0, 3)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapSlotID"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapSlotType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapPreviousState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapCurrentState")) if mibBuilder.loadTexts: apEnvMonTempChangeNotification.setStatus('current') if mibBuilder.loadTexts: apEnvMonTempChangeNotification.setDescription('A notification is sent if any of the units cross a temperature threshold') apEnvMonVoltageChangeNotification = NotificationType((1, 3, 6, 1, 4, 1, 9148, 3, 3, 4, 0, 4)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapSlotID"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapSlotType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapPreviousState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapCurrentState")) if mibBuilder.loadTexts: apEnvMonVoltageChangeNotification.setStatus('current') if mibBuilder.loadTexts: apEnvMonVoltageChangeNotification.setDescription('A notification is sent if any of the units cross a voltage threshold') apEnvMonPortChangeNotification = NotificationType((1, 3, 6, 1, 4, 1, 9148, 3, 3, 4, 0, 5)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapPortType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapPresence"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapSlotID"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTrapPortID")) if mibBuilder.loadTexts: apEnvMonPortChangeNotification.setStatus('current') if mibBuilder.loadTexts: apEnvMonPortChangeNotification.setDescription(' The trap will be generated if a physical port is inserted/present or removed/not present. ') apEnvMonMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5)) apEnvMonMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 1)) apEnvMonMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 2)) apEnvMonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 2, 1)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonI2CState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageStatusType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageStatusDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageStatusValue"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTemperatureStatusType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTemperatureStatusDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTemperatureStatusValue"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTemperatureState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonFanStatusType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonFanStatusDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonFanStatusValue"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonFanState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonPowerSupplyStatusType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonPowerSupplyStatusDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonPowerSupplyState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonPhyCardStatusType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonPhyCardStatusDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonPhyCardState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonEnableStatChangeNotif")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): apEnvMonGroup = apEnvMonGroup.setStatus('current') if mibBuilder.loadTexts: apEnvMonGroup.setDescription('A collection of objects providing environmental monitoring capability to an Acme Packet chassis.') apEnvMonNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 2, 3)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonStatusChangeNotification"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonI2CFailNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): apEnvMonNotifyGroup = apEnvMonNotifyGroup.setStatus('current') if mibBuilder.loadTexts: apEnvMonNotifyGroup.setDescription('A collection of notifications providing the status change for environmental monitoring.') apEnvMonExtGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 2, 4)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageSlotID"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageSlotType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTemperatureSlotID"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonTemperatureSlotType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonFanSlotID")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): apEnvMonExtGroup = apEnvMonExtGroup.setStatus('current') if mibBuilder.loadTexts: apEnvMonExtGroup.setDescription('Additional objects providing environmental monitoring capability to an Acme Packet chassis.') apEnvMonCardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 2, 5)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonCardSlot"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCardType"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCardDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCardHealthScore"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCardState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCardRedundancy"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCpuCoreIndex"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCpuCoreDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCpuCoreUsage"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCpuCoreState"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCpuCoreRamDescr"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonCpuCoreRamUsage")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): apEnvMonCardGroup = apEnvMonCardGroup.setStatus('current') if mibBuilder.loadTexts: apEnvMonCardGroup.setDescription('A collection of objects providing environmental monitoring capability to card-based Acme Packet products.') apEnvMonExtNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 2, 6)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonTempChangeNotification"), ("ACMEPACKET-ENVMON-MIB", "apEnvMonVoltageChangeNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): apEnvMonExtNotifyGroup = apEnvMonExtNotifyGroup.setStatus('current') if mibBuilder.loadTexts: apEnvMonExtNotifyGroup.setDescription('Additional collection of notifications providing the status change for environmental monitoring.') apEnvMonPortNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9148, 3, 3, 5, 2, 7)).setObjects(("ACMEPACKET-ENVMON-MIB", "apEnvMonPortChangeNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): apEnvMonPortNotifyGroup = apEnvMonPortNotifyGroup.setStatus('current') if mibBuilder.loadTexts: apEnvMonPortNotifyGroup.setDescription('Notifications to indicate physical port changes.') mibBuilder.exportSymbols("ACMEPACKET-ENVMON-MIB", apEnvMonTemperatureStatusDescr=apEnvMonTemperatureStatusDescr, apEnvMonTrapPortType=apEnvMonTrapPortType, apEnvMonPhyCardObjects=apEnvMonPhyCardObjects, apEnvMonPhyCardState=apEnvMonPhyCardState, apEnvMonGroup=apEnvMonGroup, apEnvMonMIBConformance=apEnvMonMIBConformance, apEnvMonVoltageStatusValue=apEnvMonVoltageStatusValue, apEnvMonVoltageObjects=apEnvMonVoltageObjects, apEnvMonI2CFailNotification=apEnvMonI2CFailNotification, apEnvMonCardSlot=apEnvMonCardSlot, apEnvMonPowerSupplyState=apEnvMonPowerSupplyState, apEnvMonMIBGroups=apEnvMonMIBGroups, apEnvMonFanStatusIndex=apEnvMonFanStatusIndex, apEnvMonPowerSupplyStatusIndex=apEnvMonPowerSupplyStatusIndex, apEnvMonCardEntry=apEnvMonCardEntry, apEnvMonModule=apEnvMonModule, apEnvMonCpuCoreRamUsage=apEnvMonCpuCoreRamUsage, apEnvMonVoltageStatusDescr=apEnvMonVoltageStatusDescr, apEnvMonVoltageStatusEntry=apEnvMonVoltageStatusEntry, apEnvMonCardHealthScore=apEnvMonCardHealthScore, apEnvMonI2CState=apEnvMonI2CState, apEnvMonPortChangeNotification=apEnvMonPortChangeNotification, apEnvMonTrapSlotID=apEnvMonTrapSlotID, apEnvMonTrapPortID=apEnvMonTrapPortID, apEnvMonVoltageStatusType=apEnvMonVoltageStatusType, apEnvMonCardGroup=apEnvMonCardGroup, apEnvMonTrapPreviousState=apEnvMonTrapPreviousState, apEnvMonMIBCompliances=apEnvMonMIBCompliances, apEnvMonCpuCoreRamDescr=apEnvMonCpuCoreRamDescr, apEnvMonFanStatusDescr=apEnvMonFanStatusDescr, apEnvMonTemperatureStatusType=apEnvMonTemperatureStatusType, apEnvMonTemperatureStatusIndex=apEnvMonTemperatureStatusIndex, apEnvMonMIBNotifications=apEnvMonMIBNotifications, apEnvMonPowerSupplyStatusTable=apEnvMonPowerSupplyStatusTable, apEnvMonObjects=apEnvMonObjects, apEnvMonTemperatureSlotType=apEnvMonTemperatureSlotType, apEnvMonVoltageSlotType=apEnvMonVoltageSlotType, apEnvMonStatusChangeNotification=apEnvMonStatusChangeNotification, apEnvMonVoltageStatusTable=apEnvMonVoltageStatusTable, apEnvMonMIBNotificationPrefix=apEnvMonMIBNotificationPrefix, apEnvMonTrapPresence=apEnvMonTrapPresence, apEnvMonPowerSupplyObjects=apEnvMonPowerSupplyObjects, apEnvMonFanStatusEntry=apEnvMonFanStatusEntry, apEnvMonTemperatureStatusValue=apEnvMonTemperatureStatusValue, apEnvMonFanObjects=apEnvMonFanObjects, apEnvMonPortNotifyGroup=apEnvMonPortNotifyGroup, apEnvMonVoltageStatusIndex=apEnvMonVoltageStatusIndex, apEnvMonPhyCardStatusTable=apEnvMonPhyCardStatusTable, apEnvMonPhyCardStatusEntry=apEnvMonPhyCardStatusEntry, apEnvMonFanSlotID=apEnvMonFanSlotID, apEnvMonFanStatusType=apEnvMonFanStatusType, apEnvMonCardState=apEnvMonCardState, apEnvMonExtNotifyGroup=apEnvMonExtNotifyGroup, apEnvMonFanState=apEnvMonFanState, apEnvMonPowerSupplyStatusType=apEnvMonPowerSupplyStatusType, apEnvMonVoltageState=apEnvMonVoltageState, apEnvMonTempChangeNotification=apEnvMonTempChangeNotification, apEnvMonExtGroup=apEnvMonExtGroup, apEnvMonVoltageSlotID=apEnvMonVoltageSlotID, apEnvMonCpuCoreState=apEnvMonCpuCoreState, apEnvMonCpuCoreUsage=apEnvMonCpuCoreUsage, apEnvMonPhyCardStatusIndex=apEnvMonPhyCardStatusIndex, apEnvMonFanStatusValue=apEnvMonFanStatusValue, apEnvMonTemperatureStatusTable=apEnvMonTemperatureStatusTable, apEnvMonTemperatureStatusEntry=apEnvMonTemperatureStatusEntry, apEnvMonPowerSupplyStatusEntry=apEnvMonPowerSupplyStatusEntry, apEnvMonCpuCoreIndex=apEnvMonCpuCoreIndex, apEnvMonNotificationObjects=apEnvMonNotificationObjects, apEnvMonTemperatureObjects=apEnvMonTemperatureObjects, apEnvMonVoltageChangeNotification=apEnvMonVoltageChangeNotification, apEnvMonCpuCoreDescr=apEnvMonCpuCoreDescr, apEnvMonEnableStatChangeNotif=apEnvMonEnableStatChangeNotif, apEnvMonTemperatureSlotID=apEnvMonTemperatureSlotID, apEnvMonPhyCardStatusDescr=apEnvMonPhyCardStatusDescr, apEnvMonMIBNotificationEnables=apEnvMonMIBNotificationEnables, ApEnvMonState=ApEnvMonState, apEnvMonNotifyGroup=apEnvMonNotifyGroup, apEnvMonCardType=apEnvMonCardType, apEnvMonCardRedundancy=apEnvMonCardRedundancy, apEnvMonTrapSlotType=apEnvMonTrapSlotType, apEnvMonCpuCoreTable=apEnvMonCpuCoreTable, apEnvMonCpuCoreEntry=apEnvMonCpuCoreEntry, apEnvMonCardObjects=apEnvMonCardObjects, apEnvMonTemperatureState=apEnvMonTemperatureState, apEnvMonCardTable=apEnvMonCardTable, apEnvMonFanStatusTable=apEnvMonFanStatusTable, PYSNMP_MODULE_ID=apEnvMonModule, apEnvMonPowerSupplyStatusDescr=apEnvMonPowerSupplyStatusDescr, apEnvMonPhyCardStatusType=apEnvMonPhyCardStatusType, apEnvMonTrapInstance=apEnvMonTrapInstance, apEnvMonTrapCurrentState=apEnvMonTrapCurrentState, apEnvMonCardDescr=apEnvMonCardDescr)
# # PySNMP MIB module M2000-V1 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/M2000-V1 # Produced by pysmi-0.3.4 at Mon Apr 29 19:59:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, enterprises, NotificationType, Bits, Counter64, Unsigned32, IpAddress, Counter32, NotificationType, ObjectIdentity, TimeTicks, MibIdentifier, ModuleIdentity, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "enterprises", "NotificationType", "Bits", "Counter64", "Unsigned32", "IpAddress", "Counter32", "NotificationType", "ObjectIdentity", "TimeTicks", "MibIdentifier", "ModuleIdentity", "iso") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") iMAP = MibIdentifier((1, 3, 6, 1, 4, 1, 2011)) products = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2)) iMAPNetManagement = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15)) iMAPNorthbound = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2)) iMAPNorthboundCommon = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1)) iMAPNorthboundEventMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2)) iMAPNorthboundNotificationReport = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1)) iMAPNorthboundNotificationCommon = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1, 1)) iMAPNorthboundHeartbeatNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1, 1, 1)) iMAPNorthboundHeartbeatNotificationV2 = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1, 1, 1, 0)) iMAPNorthboundHeartbeatSystemLabel = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1, 1, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundHeartbeatSystemLabel.setStatus('mandatory') iMAPNorthboundHeartbeatPeriod = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundHeartbeatPeriod.setStatus('mandatory') iMAPNorthboundHeartbeatTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1, 1, 1, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundHeartbeatTimeStamp.setStatus('mandatory') iMAPNorthboundCommuLinkMonitor = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 3)) iMAPNorthboundHeartbeatSvc = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 3, 1)) iMAPNorthboundHeartbeatSvcReportInterval = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 3, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: iMAPNorthboundHeartbeatSvcReportInterval.setStatus('mandatory') iMAPNorthboundFault = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4)) iMAPNorthboundFaultQuery = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 1)) iMAPNorthboundAlarmQuery = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 1, 5), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: iMAPNorthboundAlarmQuery.setStatus('mandatory') iMAPNorthboundFaultNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3)) iMAPNorthboundFaultAlarmNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3)) iMAPNorthboundFaultAlarmNotificationV2 = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 0)) iMAPNorthboundAlarmCSN = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmCSN.setStatus('mandatory') iMAPNorthboundAlarmCategory = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 2), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmCategory.setStatus('mandatory') iMAPNorthboundAlarmOccurTime = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 3), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmOccurTime.setStatus('mandatory') iMAPNorthboundAlarmMOName = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmMOName.setStatus('mandatory') iMAPNorthboundAlarmProductID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("transmission", 1), ("mobile", 2), ("fixedNetworkNarrow", 3), ("bandFixedBand", 4), ("intelligence", 5), ("omc", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmProductID.setStatus('mandatory') iMAPNorthboundAlarmNEType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmNEType.setStatus('mandatory') iMAPNorthboundAlarmNEDevID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 7), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmNEDevID.setStatus('mandatory') iMAPNorthboundAlarmDevCsn = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 8), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmDevCsn.setStatus('mandatory') iMAPNorthboundAlarmID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmID.setStatus('mandatory') iMAPNorthboundAlarmType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmType.setStatus('mandatory') iMAPNorthboundAlarmLevel = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 6))).clone(namedValues=NamedValues(("critical", 1), ("major", 2), ("minor", 3), ("warning", 4), ("cleared", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmLevel.setStatus('mandatory') iMAPNorthboundAlarmRestore = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cleared", 1), ("uncleared", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmRestore.setStatus('mandatory') iMAPNorthboundAlarmConfirm = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("acknowledged", 1), ("unacknowledged", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmConfirm.setStatus('mandatory') iMAPNorthboundAlarmAckTime = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 14), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmAckTime.setStatus('mandatory') iMAPNorthboundAlarmRestoreTime = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 15), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmRestoreTime.setStatus('mandatory') iMAPNorthboundAlarmOperator = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 16), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmOperator.setStatus('mandatory') iMAPNorthboundAlarmParas1 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas1.setStatus('mandatory') iMAPNorthboundAlarmParas2 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas2.setStatus('mandatory') iMAPNorthboundAlarmParas3 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas3.setStatus('mandatory') iMAPNorthboundAlarmParas4 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas4.setStatus('mandatory') iMAPNorthboundAlarmParas5 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas5.setStatus('mandatory') iMAPNorthboundAlarmParas6 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas6.setStatus('mandatory') iMAPNorthboundAlarmParas7 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 23), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas7.setStatus('mandatory') iMAPNorthboundAlarmParas8 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas8.setStatus('mandatory') iMAPNorthboundAlarmParas9 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas9.setStatus('mandatory') iMAPNorthboundAlarmParas10 = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmParas10.setStatus('mandatory') iMAPNorthboundAlarmExtendInfo = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 27), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmExtendInfo.setStatus('mandatory') iMAPNorthboundAlarmProbablecause = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 28), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmProbablecause.setStatus('mandatory') iMAPNorthboundAlarmProposedrepairactions = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 29), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmProposedrepairactions.setStatus('mandatory') iMAPNorthboundAlarmSpecificproblems = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 30), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmSpecificproblems.setStatus('mandatory') iMAPNorthboundAlarmClearOperator = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 46), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmClearOperator.setStatus('mandatory') iMAPNorthboundAlarmObjectInstanceType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 47), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmObjectInstanceType.setStatus('mandatory') iMAPNorthboundAlarmClearCategory = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 48), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmClearCategory.setStatus('mandatory') iMAPNorthboundAlarmClearType = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 49), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmClearType.setStatus('mandatory') iMAPNorthboundAlarmServiceAffectFlag = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 50), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmServiceAffectFlag.setStatus('mandatory') iMAPNorthboundAlarmAdditionalInfo = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3, 51), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 250))).setMaxAccess("readonly") if mibBuilder.loadTexts: iMAPNorthboundAlarmAdditionalInfo.setStatus('mandatory') iMAPNorthboundFaultAcknowledge = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 4)) iMAPNorthboundAlarmAcknowledge = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 4, 1), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: iMAPNorthboundAlarmAcknowledge.setStatus('mandatory') iMAPNorthboundFaultUnAcknowledge = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 5)) iMAPNorthboundAlarmUnAcknowledge = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 5, 1), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: iMAPNorthboundAlarmUnAcknowledge.setStatus('mandatory') iMAPNorthboundFaultClear = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 6)) iMAPNorthboundAlarmClear = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 6, 1), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: iMAPNorthboundAlarmClear.setStatus('mandatory') iMAPConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 3)) iMAPGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 3, 1)) currentObjectGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 3, 1, 1)) currentNotificationGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 3, 1, 2)) iMAPCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 3, 2)) basicCompliance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 3, 2, 1)) iMAPNorthboundFaultAlarmReportNotificationType = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3) + (0,1)).setObjects(("M2000-V1", "iMAPNorthboundAlarmCSN"), ("M2000-V1", "iMAPNorthboundAlarmCategory"), ("M2000-V1", "iMAPNorthboundAlarmOccurTime"), ("M2000-V1", "iMAPNorthboundAlarmMOName"), ("M2000-V1", "iMAPNorthboundAlarmProductID"), ("M2000-V1", "iMAPNorthboundAlarmNEType"), ("M2000-V1", "iMAPNorthboundAlarmNEDevID"), ("M2000-V1", "iMAPNorthboundAlarmDevCsn"), ("M2000-V1", "iMAPNorthboundAlarmID"), ("M2000-V1", "iMAPNorthboundAlarmType"), ("M2000-V1", "iMAPNorthboundAlarmLevel"), ("M2000-V1", "iMAPNorthboundAlarmRestore"), ("M2000-V1", "iMAPNorthboundAlarmConfirm"), ("M2000-V1", "iMAPNorthboundAlarmAckTime"), ("M2000-V1", "iMAPNorthboundAlarmRestoreTime"), ("M2000-V1", "iMAPNorthboundAlarmOperator"), ("M2000-V1", "iMAPNorthboundAlarmParas1"), ("M2000-V1", "iMAPNorthboundAlarmParas2"), ("M2000-V1", "iMAPNorthboundAlarmParas3"), ("M2000-V1", "iMAPNorthboundAlarmParas4"), ("M2000-V1", "iMAPNorthboundAlarmParas5"), ("M2000-V1", "iMAPNorthboundAlarmParas6"), ("M2000-V1", "iMAPNorthboundAlarmParas7"), ("M2000-V1", "iMAPNorthboundAlarmParas8"), ("M2000-V1", "iMAPNorthboundAlarmParas9"), ("M2000-V1", "iMAPNorthboundAlarmParas10"), ("M2000-V1", "iMAPNorthboundAlarmExtendInfo"), ("M2000-V1", "iMAPNorthboundAlarmProbablecause"), ("M2000-V1", "iMAPNorthboundAlarmProposedrepairactions"), ("M2000-V1", "iMAPNorthboundAlarmSpecificproblems"), ("M2000-V1", "iMAPNorthboundAlarmClearOperator"), ("M2000-V1", "iMAPNorthboundAlarmAdditionalInfo"), ("M2000-V1", "iMAPNorthboundAlarmClearType"), ("M2000-V1", "iMAPNorthboundAlarmClearCategory"), ("M2000-V1", "iMAPNorthboundAlarmServiceAffectFlag"), ("M2000-V1", "iMAPNorthboundAlarmObjectInstanceType")) iMAPNorthboundFaultAlarmQueryBeginNotificationType = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3) + (0,2)) iMAPNorthboundFaultAlarmQueryNotificationType = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3) + (0,3)).setObjects(("M2000-V1", "iMAPNorthboundAlarmCSN"), ("M2000-V1", "iMAPNorthboundAlarmCategory"), ("M2000-V1", "iMAPNorthboundAlarmOccurTime"), ("M2000-V1", "iMAPNorthboundAlarmMOName"), ("M2000-V1", "iMAPNorthboundAlarmProductID"), ("M2000-V1", "iMAPNorthboundAlarmNEType"), ("M2000-V1", "iMAPNorthboundAlarmNEDevID"), ("M2000-V1", "iMAPNorthboundAlarmDevCsn"), ("M2000-V1", "iMAPNorthboundAlarmID"), ("M2000-V1", "iMAPNorthboundAlarmType"), ("M2000-V1", "iMAPNorthboundAlarmLevel"), ("M2000-V1", "iMAPNorthboundAlarmRestore"), ("M2000-V1", "iMAPNorthboundAlarmConfirm"), ("M2000-V1", "iMAPNorthboundAlarmAckTime"), ("M2000-V1", "iMAPNorthboundAlarmRestoreTime"), ("M2000-V1", "iMAPNorthboundAlarmOperator"), ("M2000-V1", "iMAPNorthboundAlarmParas1"), ("M2000-V1", "iMAPNorthboundAlarmParas2"), ("M2000-V1", "iMAPNorthboundAlarmParas3"), ("M2000-V1", "iMAPNorthboundAlarmParas4"), ("M2000-V1", "iMAPNorthboundAlarmParas5"), ("M2000-V1", "iMAPNorthboundAlarmParas6"), ("M2000-V1", "iMAPNorthboundAlarmParas7"), ("M2000-V1", "iMAPNorthboundAlarmParas8"), ("M2000-V1", "iMAPNorthboundAlarmParas9"), ("M2000-V1", "iMAPNorthboundAlarmParas10"), ("M2000-V1", "iMAPNorthboundAlarmExtendInfo"), ("M2000-V1", "iMAPNorthboundAlarmProbablecause"), ("M2000-V1", "iMAPNorthboundAlarmProposedrepairactions"), ("M2000-V1", "iMAPNorthboundAlarmSpecificproblems"), ("M2000-V1", "iMAPNorthboundAlarmClearOperator"), ("M2000-V1", "iMAPNorthboundAlarmAdditionalInfo"), ("M2000-V1", "iMAPNorthboundAlarmServiceAffectFlag"), ("M2000-V1", "iMAPNorthboundAlarmClearType"), ("M2000-V1", "iMAPNorthboundAlarmClearCategory"), ("M2000-V1", "iMAPNorthboundAlarmObjectInstanceType")) iMAPNorthboundFaultAlarmQueryEndNotificationType = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 4, 3, 3) + (0,4)) iMAPNorthboundHeartbeatNotificationType = NotificationType((1, 3, 6, 1, 4, 1, 2011, 2, 15, 2, 1, 2, 1, 1, 1) + (0,5)).setObjects(("M2000-V1", "iMAPNorthboundHeartbeatSystemLabel"), ("M2000-V1", "iMAPNorthboundHeartbeatPeriod"), ("M2000-V1", "iMAPNorthboundHeartbeatTimeStamp")) mibBuilder.exportSymbols("M2000-V1", iMAPNorthboundEventMgmt=iMAPNorthboundEventMgmt, basicCompliance=basicCompliance, iMAPNorthboundFaultAlarmQueryEndNotificationType=iMAPNorthboundFaultAlarmQueryEndNotificationType, iMAPNorthboundCommon=iMAPNorthboundCommon, iMAPNorthboundAlarmObjectInstanceType=iMAPNorthboundAlarmObjectInstanceType, iMAPNorthboundHeartbeatSystemLabel=iMAPNorthboundHeartbeatSystemLabel, iMAPNorthboundFault=iMAPNorthboundFault, iMAPNorthboundAlarmNEType=iMAPNorthboundAlarmNEType, iMAP=iMAP, iMAPNorthboundAlarmParas3=iMAPNorthboundAlarmParas3, iMAPNorthboundFaultAcknowledge=iMAPNorthboundFaultAcknowledge, iMAPNorthboundAlarmParas8=iMAPNorthboundAlarmParas8, iMAPNorthboundAlarmAckTime=iMAPNorthboundAlarmAckTime, iMAPNorthboundAlarmServiceAffectFlag=iMAPNorthboundAlarmServiceAffectFlag, iMAPNorthboundAlarmProposedrepairactions=iMAPNorthboundAlarmProposedrepairactions, iMAPNorthboundFaultUnAcknowledge=iMAPNorthboundFaultUnAcknowledge, iMAPNorthboundFaultAlarmQueryNotificationType=iMAPNorthboundFaultAlarmQueryNotificationType, iMAPNorthboundAlarmQuery=iMAPNorthboundAlarmQuery, iMAPNorthboundHeartbeatNotification=iMAPNorthboundHeartbeatNotification, iMAPNorthboundAlarmRestoreTime=iMAPNorthboundAlarmRestoreTime, iMAPNorthboundAlarmCSN=iMAPNorthboundAlarmCSN, iMAPNorthboundAlarmUnAcknowledge=iMAPNorthboundAlarmUnAcknowledge, iMAPNorthboundAlarmClear=iMAPNorthboundAlarmClear, iMAPNorthboundAlarmParas2=iMAPNorthboundAlarmParas2, iMAPNorthboundAlarmClearOperator=iMAPNorthboundAlarmClearOperator, iMAPNorthboundHeartbeatPeriod=iMAPNorthboundHeartbeatPeriod, iMAPNorthboundAlarmParas1=iMAPNorthboundAlarmParas1, iMAPNorthboundAlarmParas10=iMAPNorthboundAlarmParas10, iMAPNorthboundHeartbeatSvcReportInterval=iMAPNorthboundHeartbeatSvcReportInterval, iMAPNorthboundAlarmClearType=iMAPNorthboundAlarmClearType, iMAPNorthboundFaultAlarmReportNotificationType=iMAPNorthboundFaultAlarmReportNotificationType, iMAPNorthboundAlarmRestore=iMAPNorthboundAlarmRestore, iMAPNorthboundFaultClear=iMAPNorthboundFaultClear, iMAPNorthboundAlarmExtendInfo=iMAPNorthboundAlarmExtendInfo, iMAPNorthboundFaultAlarmQueryBeginNotificationType=iMAPNorthboundFaultAlarmQueryBeginNotificationType, iMAPNorthboundAlarmParas9=iMAPNorthboundAlarmParas9, iMAPNorthboundAlarmProductID=iMAPNorthboundAlarmProductID, iMAPNorthboundAlarmLevel=iMAPNorthboundAlarmLevel, products=products, iMAPNorthboundFaultAlarmNotificationV2=iMAPNorthboundFaultAlarmNotificationV2, iMAPNorthboundAlarmMOName=iMAPNorthboundAlarmMOName, iMAPNorthboundHeartbeatSvc=iMAPNorthboundHeartbeatSvc, iMAPNorthboundAlarmOperator=iMAPNorthboundAlarmOperator, iMAPNorthboundAlarmParas4=iMAPNorthboundAlarmParas4, iMAPNorthboundHeartbeatNotificationV2=iMAPNorthboundHeartbeatNotificationV2, iMAPNorthboundAlarmParas6=iMAPNorthboundAlarmParas6, iMAPNorthboundAlarmSpecificproblems=iMAPNorthboundAlarmSpecificproblems, iMAPNorthboundAlarmClearCategory=iMAPNorthboundAlarmClearCategory, iMAPConformance=iMAPConformance, iMAPNetManagement=iMAPNetManagement, iMAPNorthboundAlarmType=iMAPNorthboundAlarmType, iMAPNorthboundHeartbeatTimeStamp=iMAPNorthboundHeartbeatTimeStamp, iMAPNorthboundFaultNotification=iMAPNorthboundFaultNotification, iMAPNorthboundFaultAlarmNotification=iMAPNorthboundFaultAlarmNotification, iMAPNorthboundAlarmConfirm=iMAPNorthboundAlarmConfirm, iMAPNorthbound=iMAPNorthbound, iMAPNorthboundAlarmDevCsn=iMAPNorthboundAlarmDevCsn, iMAPGroups=iMAPGroups, currentNotificationGroup=currentNotificationGroup, iMAPNorthboundAlarmNEDevID=iMAPNorthboundAlarmNEDevID, iMAPNorthboundAlarmAdditionalInfo=iMAPNorthboundAlarmAdditionalInfo, iMAPNorthboundCommuLinkMonitor=iMAPNorthboundCommuLinkMonitor, iMAPNorthboundAlarmOccurTime=iMAPNorthboundAlarmOccurTime, iMAPNorthboundFaultQuery=iMAPNorthboundFaultQuery, iMAPNorthboundAlarmID=iMAPNorthboundAlarmID, iMAPNorthboundAlarmParas5=iMAPNorthboundAlarmParas5, iMAPNorthboundHeartbeatNotificationType=iMAPNorthboundHeartbeatNotificationType, iMAPNorthboundAlarmParas7=iMAPNorthboundAlarmParas7, currentObjectGroup=currentObjectGroup, iMAPNorthboundAlarmProbablecause=iMAPNorthboundAlarmProbablecause, iMAPNorthboundNotificationReport=iMAPNorthboundNotificationReport, iMAPNorthboundAlarmAcknowledge=iMAPNorthboundAlarmAcknowledge, iMAPNorthboundNotificationCommon=iMAPNorthboundNotificationCommon, iMAPCompliances=iMAPCompliances, iMAPNorthboundAlarmCategory=iMAPNorthboundAlarmCategory)
Experiment(description='More kernels but no RQ', data_dir='../data/tsdl/', max_depth=8, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, max_jobs=400, verbose=False, make_predictions=False, skip_complete=True, results_dir='../results/2013-08-14-no-rq/', iters=500, base_kernels='IBM,IBMLin,SE,Per,Lin,Const,PP1,PP2,PP3,MT3,MT5', zero_mean=True, random_seed=0, period_heuristic=5)
""" ############################################################################ ## High Altitude Balloon Club ############################################################################ """
class Solution: def deleteDuplicates(self, head): if head: p = head.next while p and p.val == head.val: p = p.next head.next = self.deleteDuplicates(p) return head
# getting these names wrong on the mocks will result in always passing tests # instead of calling methods on the mock, call these (where typos will fail) def assert_called_once_with(mock, *args, **kwargs): mock.assert_called_once_with(*args, **kwargs) def assert_called_with(mock, *args, **kwargs): mock.assert_called_with(*args, **kwargs) def assert_has_calls(mock, *args, **kwargs): mock.assert_has_calls(*args, **kwargs)
# EJERCICIO 1: Imprimir en una lista los números del 1 al 20 lista=[] for i in range(1,21): lista.append(i) print(lista) # EJERCICIO 2: Imprimir en una lista la tabla de multiplicar hasta el 10 del número que se ingresa por consola """n = int(input("Por favor ingrese un número: ")) lista=[] for i in range(1,11): n1=n*i lista.append(n*i) print(lista)""" # EJERCICIO 3: Imprimir por consola una lista con las letras de la palabra que se ingrese por consola """string = str(input("Ingrese una palabra: ")) n = len(string) lista=[] for i in range(0,n): p1=string[i] lista.append(p1) print(lista)"""
# # PySNMP MIB module CTRON-SSR-HARDWARE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-SSR-HARDWARE-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:31:24 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion") ssrMibs, = mibBuilder.importSymbols("CTRON-SSR-SMI-MIB", "ssrMibs") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, TimeTicks, ModuleIdentity, Bits, Unsigned32, Integer32, NotificationType, IpAddress, ObjectIdentity, MibIdentifier, iso, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "TimeTicks", "ModuleIdentity", "Bits", "Unsigned32", "Integer32", "NotificationType", "IpAddress", "ObjectIdentity", "MibIdentifier", "iso", "Counter32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") hardwareMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200)) hardwareMIB.setRevisions(('2000-07-17 00:00', '2000-07-15 00:00', '2000-05-31 00:00', '2000-03-20 00:00', '1999-12-30 00:00', '1999-01-20 00:00', '1998-08-04 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hardwareMIB.setRevisionsDescriptions(('Add support for the Smart Switch 6000 2 Port Gigabit Backplane module to the SSRModuleType for the Enterasys SSR product line', 'Update contact information. This mib is found on Riverstone Networks RS product line as well as Enterasys SSR product line', 'Modify SSRPortConnectorType for GBIC connector in 4.0 and update sysHwModuleService by appending the board serial number for 4.0 for RS-32000.', 'Add Firmware 4.0 support. 3200 series modules, gigabit modules with GBIC support.', 'Add Firmware 3.1 support. 16 port 10/100 TX, Gigabit over Copper, ATM OC-3, POS OC3/12.', 'Add Firmware 3.0 support. Add Backup control module status and last Hotswap event.', 'First Revision of SSR Hardware mib. ',)) if mibBuilder.loadTexts: hardwareMIB.setLastUpdated('200007170000Z') if mibBuilder.loadTexts: hardwareMIB.setOrganization('Cabletron Systems, Inc.') if mibBuilder.loadTexts: hardwareMIB.setContactInfo('Enterasys Networks 35 Industrial Way, P.O. Box 5005 Rochester, NH 03867-0505 (603) 332-9400 support@enterasys.com http://www.enterasys.com') if mibBuilder.loadTexts: hardwareMIB.setDescription('This module defines a schema to access SSR hardware configuration.') class SSRInterfaceIndex(TextualConvention, Integer32): description = "A unique value, greater than zero, for each interface or interface sub-layer in the managed system. It is recommended that values are assigned contiguously starting from 1. The value for each interface sub- layer must remain constant at least from one re- initialization of the entity's network management system to the next re-initialization." status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 65535) class SSRModuleType(TextualConvention, Integer32): description = 'A unique value, greater than zero, for each module type supported by the SSR series of products.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 503, 504, 505, 506, 507)) namedValues = NamedValues(("controlModule", 1), ("ether100TX", 2), ("ether100FX", 3), ("gigabitSX", 4), ("gigabitLX", 5), ("serial4port", 6), ("hssi", 7), ("unknown", 8), ("gigabitLLX", 9), ("none", 10), ("controlModule2", 11), ("gigabitLLX2P", 12), ("serial2port", 13), ("cmts1x4port", 15), ("fddi2port", 16), ("controlModule3", 17), ("serial4portCE", 20), ("ether100TX16port", 21), ("gigabitTX", 22), ("atm155", 24), ("sonet4PortOc3", 25), ("sonet2PortOc12", 26), ("gigabitFX4P", 27), ("gigabitFX4PGBIC", 28), ("gigabitFX2PGBIC", 29), ("gigabit6K2PBP", 30), ("rbGigabit8PGBIC", 503), ("rbGigabit4PGBIC", 504), ("rbEther100TX24P", 505), ("rbEther100TC32P", 506), ("rbControlModule", 507)) class SSRModuleStatus(TextualConvention, Integer32): description = 'Current state of module. online indicates the normal state. Offline indicates a powered off or failed module. Modules may be powered off prior to hot swap.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("online", 1), ("offline", 2)) class SSRPortType(TextualConvention, Integer32): description = 'A unique value, greater than zero, for each physical port type supported by the SSR series of products.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)) namedValues = NamedValues(("etherFast", 1), ("gigEther", 2), ("hssi", 3), ("serial", 4), ("unknown", 5), ("sonet", 6), ("ds1", 7), ("ds3", 8), ("cmt", 9), ("e1", 10), ("e3", 11), ("fddi", 12)) class SSRPortConnectorType(TextualConvention, Integer32): description = 'A unique value, greater than zero, for each physical port type supported by the SSR series of products' status = 'current' subtypeSpec = Integer32.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)) namedValues = NamedValues(("empty", 0), ("db9m", 1), ("db9f", 2), ("db15m", 3), ("db15f", 4), ("db25m", 5), ("db25f", 6), ("rj11", 7), ("rj45", 8), ("aui", 9), ("ftypef", 10), ("fiberScMM", 11), ("v35", 12), ("eia530", 13), ("rs44x", 14), ("x21", 15), ("hssi", 16), ("unknown", 17), ("fiberScSM", 18), ("fiberMTRjMM", 19), ("fiberMTRjSM", 20), ("bncf", 21), ("bncm", 22), ("rj21", 23), ("fiberScSMLH", 24)) class SSRserviceType(TextualConvention, OctetString): description = 'A string that is unique to a module in production. This string is used by Cabletron Service and Manufacturing as to identify shipped inventory.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 7) class SSRmemorySize(TextualConvention, Integer32): description = 'An integer that represents the size of memory in Megabytes. -1 represents not-available or not-applicable value.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-1, 2147483647) class SSRSwitchingFabricInfo(TextualConvention, Integer32): description = 'A bit string that represents the status of Switching Fabric in the shelf/chassis. Switching Fabric #1 is first 2 bits 0-1, #2 is 2-3. For example, given a 16 slot SSR 8600 which has one Switching Fabric in Switching Fabric Slot #1 (lowest full length midplane slot) the integer value 0x00000007 translates into (bits): 0 0 0 0 0 1 1 1 | | | | | | | +--- switching fabric #1 is present | | +----- switching fabric is primary | + ------ switching fabric #2 is present +--------- switching fabric is standby' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 63) class SSRCmLedState(TextualConvention, Integer32): description = 'A bit string that represents the status of the active Control Module. Each LED occupies a bit. The value 1 indicates LED is on, 0 is off. The integer value 0x00000015 translates into (bits): 0 0 0 0 1 1 1 1 | | | | | | | +- System OK -- SYS OK | | +--- Heartbeat -- HB | +----- Error -- ERR + ------ Diagnostic -- Diag' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 15) class SSRBackupCMState(TextualConvention, Integer32): description = "A enumeration that represents the state of the backup control module. A backup control module prom will boot the system firmware to an intermediate state and begins sending hello messages to the main cpu and assume the monitor(3) state. If the prom does not boot the backup control module, the active control module will report the status as inactive(2). inactive(2) indicates a failed state as it means the backup control module can not take over for the active control module. If the main cpu fails to respond to the backup control module's periodic status checks and the backup control module is in the standby(3) state, the backup control module will reset the active control module, then reset all line cards and then finish a normal boot sequence so that it becomes the master. At this point, the value of this object is active(5). Flows in the hardware must be reprogrammed and all control protocols will have to reestablish. An enterprise trap may also be sent. Normally, slot: CM will be the primary control module. CM/1 is the slot for the backup control module. If some other line card exists in slot CM/1 or no card exists, the state of this object is notInstalled(4)." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("unknown", 1), ("inactive", 2), ("standby", 3), ("notInstalled", 4), ("active", 5)) sysHwGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1)) sysHwNumSlots = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwNumSlots.setStatus('current') if mibBuilder.loadTexts: sysHwNumSlots.setDescription('The number of slots present in the Shelf/Chassis.') sysHwModuleTable = MibTable((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2), ) if mibBuilder.loadTexts: sysHwModuleTable.setStatus('current') if mibBuilder.loadTexts: sysHwModuleTable.setDescription('A list of module entries.') sysHwModuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1), ).setIndexNames((0, "CTRON-SSR-HARDWARE-MIB", "sysHwModuleSlotNumber")) if mibBuilder.loadTexts: sysHwModuleEntry.setStatus('current') if mibBuilder.loadTexts: sysHwModuleEntry.setDescription('An entry containing management information applicable to a particular module.') sysHwModuleSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleSlotNumber.setStatus('current') if mibBuilder.loadTexts: sysHwModuleSlotNumber.setDescription('The physical slot number of the module in the Shelf/Chassis.') sysHwModuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 2), SSRModuleType()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleType.setStatus('current') if mibBuilder.loadTexts: sysHwModuleType.setDescription('The physical module type.') sysHwModuleDesc = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleDesc.setStatus('current') if mibBuilder.loadTexts: sysHwModuleDesc.setDescription("The description of the module with it's version number etc. For the Control Module it should have the software version, the amount of dynamic RAM, flash RAM.") sysHwModuleNumPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleNumPorts.setStatus('current') if mibBuilder.loadTexts: sysHwModuleNumPorts.setDescription('The number of physical ports on this Card/Module.') sysHwModuleVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleVersion.setStatus('current') if mibBuilder.loadTexts: sysHwModuleVersion.setDescription('The alpha-numeric version string for this Card/Module.') sysHwModuleMemory = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 6), SSRmemorySize()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleMemory.setStatus('current') if mibBuilder.loadTexts: sysHwModuleMemory.setDescription('System Memory size available on the Module. Reports -1 if no memory exists on this module, such as power supplies.') sysHwModuleService = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 8), SSRserviceType()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleService.setStatus('current') if mibBuilder.loadTexts: sysHwModuleService.setDescription('The Cabletron service identifier string for this Card/Module.The board serial number is appended to the string too.') sysHwModuleStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 2, 1, 9), SSRModuleStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwModuleStatus.setStatus('current') if mibBuilder.loadTexts: sysHwModuleStatus.setDescription('The current status of this module, online or offline.') sysHwPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 3), ) if mibBuilder.loadTexts: sysHwPortTable.setStatus('current') if mibBuilder.loadTexts: sysHwPortTable.setDescription('A list of module entries.') sysHwPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 3, 1), ).setIndexNames((0, "CTRON-SSR-HARDWARE-MIB", "sysHwPortSlotNumber"), (0, "CTRON-SSR-HARDWARE-MIB", "sysHwPortNumber")) if mibBuilder.loadTexts: sysHwPortEntry.setStatus('current') if mibBuilder.loadTexts: sysHwPortEntry.setDescription('An entry containing management information applicable to a particular module.') sysHwPortSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwPortSlotNumber.setStatus('current') if mibBuilder.loadTexts: sysHwPortSlotNumber.setDescription('The physical slot number of the module in the Chassis.') sysHwPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwPortNumber.setStatus('current') if mibBuilder.loadTexts: sysHwPortNumber.setDescription('The port number of the physical port in the Card/Module.') sysHwPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 3, 1, 3), SSRPortType()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwPortType.setStatus('current') if mibBuilder.loadTexts: sysHwPortType.setDescription('The physical port type.') sysHwPortConnectorType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 3, 1, 4), SSRPortConnectorType()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwPortConnectorType.setStatus('current') if mibBuilder.loadTexts: sysHwPortConnectorType.setDescription('The physical port connector type.') sysHwPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 3, 1, 5), SSRInterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwPortIfIndex.setStatus('current') if mibBuilder.loadTexts: sysHwPortIfIndex.setDescription('The value of ifIndex used to access this port in the Interface MIB.') class PowerSupplyBits(TextualConvention, Integer32): description = "The encoding of the bits are as follows : Each power supply in the system is represented by two bits. The lower bit reflecting the presence of the power supply and the higher bit representing it's state. A 1 reflects a properly working power supply a 0 one which is down. This encoding allows for a maximum of 16 power supplies. For example : The integer value 0x00000007 translates into 0 0 0 0 0 1 1 1 in bits | | | | | | | +- power supply 1 is present | | +--- power supply 1 is working normally | +----- power supply 2 is present +------- power supply 2 is down" status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255) sysHwPowerSupply = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 4), PowerSupplyBits()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwPowerSupply.setStatus('current') if mibBuilder.loadTexts: sysHwPowerSupply.setDescription('The number and status of power supplies powering the Shelf/Chassis.') sysHwFan = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("working", 1), ("notWorking", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwFan.setStatus('current') if mibBuilder.loadTexts: sysHwFan.setDescription('The current state of the fans located inside the Shelf/Chassis.') sysHwTemperature = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("normal", 1), ("outOfRange", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwTemperature.setStatus('current') if mibBuilder.loadTexts: sysHwTemperature.setDescription('The current temperature status of the Shelf/Chassis.') sysHwChassisId = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwChassisId.setStatus('current') if mibBuilder.loadTexts: sysHwChassisId.setDescription('Operator defined serial number for this particular chassis/shelf.') sysHwSwitchingFabric = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 19), SSRSwitchingFabricInfo()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwSwitchingFabric.setStatus('current') if mibBuilder.loadTexts: sysHwSwitchingFabric.setDescription('Status of Switching Fabric in shelf/chassis.') sysHwControlModuleLED = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 20), SSRCmLedState()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwControlModuleLED.setStatus('current') if mibBuilder.loadTexts: sysHwControlModuleLED.setDescription("Status of the shelf/chassis Active Control Module's four LED displays.") sysHwControlModuleBackupState = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 21), SSRBackupCMState()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwControlModuleBackupState.setStatus('current') if mibBuilder.loadTexts: sysHwControlModuleBackupState.setDescription('Status of the the backup Control Module as interpreted from the active control module. CLI: system show hardware will present the following data: Redundant CPU slot : Not present') sysHwLastHotSwapEvent = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 22), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwLastHotSwapEvent.setStatus('current') if mibBuilder.loadTexts: sysHwLastHotSwapEvent.setDescription('The value of sysUpTime when the last hotswap of a physical module event occured.') sysHwTotalInOctets = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwTotalInOctets.setStatus('deprecated') if mibBuilder.loadTexts: sysHwTotalInOctets.setDescription('The total number of octets into the switch.') sysHwTotalOutOctets = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwTotalOutOctets.setStatus('deprecated') if mibBuilder.loadTexts: sysHwTotalOutOctets.setDescription('The total number of octets out of the switch.') sysHwTotalInFrames = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwTotalInFrames.setStatus('deprecated') if mibBuilder.loadTexts: sysHwTotalInFrames.setDescription('The total number of frames into the switch.') sysHwTotalOutFrames = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwTotalOutFrames.setStatus('deprecated') if mibBuilder.loadTexts: sysHwTotalOutFrames.setDescription('The total number of frames out of the switch.') sysHwTotalL2SwitchedFrames = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwTotalL2SwitchedFrames.setStatus('deprecated') if mibBuilder.loadTexts: sysHwTotalL2SwitchedFrames.setDescription('The current number of frames switched at Layer 2 (transport).') sysHwTotalL3SwitchedFrames = MibScalar((1, 3, 6, 1, 4, 1, 52, 2501, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: sysHwTotalL3SwitchedFrames.setStatus('deprecated') if mibBuilder.loadTexts: sysHwTotalL3SwitchedFrames.setDescription('The current number of frames switched at IETF Layers 3 (transport) and 4 (application).') hwConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2)) hwCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 1)) hwGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2)) hwComplianceV10 = ModuleCompliance((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 1, 1)).setObjects(("CTRON-SSR-HARDWARE-MIB", "hwConfGroupV10")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwComplianceV10 = hwComplianceV10.setStatus('deprecated') if mibBuilder.loadTexts: hwComplianceV10.setDescription('The compliance statement for the SSR-HARDWARE-MIB.') hwComplianceV11 = ModuleCompliance((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 2, 2)).setObjects(("CTRON-SSR-HARDWARE-MIB", "hwConfGroupV11")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwComplianceV11 = hwComplianceV11.setStatus('deprecated') if mibBuilder.loadTexts: hwComplianceV11.setDescription('The compliance statement for the SSR-HARDWARE-MIB.') hwComplianceV12 = ModuleCompliance((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 2, 3)).setObjects(("CTRON-SSR-HARDWARE-MIB", "hwConfGroupV11")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwComplianceV12 = hwComplianceV12.setStatus('deprecated') if mibBuilder.loadTexts: hwComplianceV12.setDescription('The compliance statement for the SSR-HARDWARE-MIB.') hwComplianceV30 = ModuleCompliance((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 2, 4)).setObjects(("CTRON-SSR-HARDWARE-MIB", "hwConfGroupV30")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwComplianceV30 = hwComplianceV30.setStatus('current') if mibBuilder.loadTexts: hwComplianceV30.setDescription('The compliance statement for the SSR-HARDWARE-MIB.') hwConfGroupV10 = ObjectGroup((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 1)).setObjects(("CTRON-SSR-HARDWARE-MIB", "sysHwNumSlots"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleDesc"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleNumPorts"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleVersion"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortConnectorType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortIfIndex"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPowerSupply"), ("CTRON-SSR-HARDWARE-MIB", "sysHwFan"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTemperature"), ("CTRON-SSR-HARDWARE-MIB", "sysHwChassisId"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTotalInOctets"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTotalOutOctets"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTotalInFrames"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTotalOutFrames"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTotalL2SwitchedFrames"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTotalL3SwitchedFrames")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwConfGroupV10 = hwConfGroupV10.setStatus('deprecated') if mibBuilder.loadTexts: hwConfGroupV10.setDescription('A set of managed objects that make up version 1.0 of the SSR Hardware mib.') hwConfGroupV11 = ObjectGroup((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 2)).setObjects(("CTRON-SSR-HARDWARE-MIB", "sysHwNumSlots"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleDesc"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleNumPorts"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleVersion"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleMemory"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleService"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortConnectorType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortIfIndex"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPowerSupply"), ("CTRON-SSR-HARDWARE-MIB", "sysHwFan"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTemperature"), ("CTRON-SSR-HARDWARE-MIB", "sysHwChassisId"), ("CTRON-SSR-HARDWARE-MIB", "sysHwSwitchingFabric"), ("CTRON-SSR-HARDWARE-MIB", "sysHwControlModuleLED")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwConfGroupV11 = hwConfGroupV11.setStatus('deprecated') if mibBuilder.loadTexts: hwConfGroupV11.setDescription('A set of managed objects that make up version 1.1 of the SSR Hardware mib.') hwConfGroupV12 = ObjectGroup((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 3)).setObjects(("CTRON-SSR-HARDWARE-MIB", "sysHwNumSlots"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleDesc"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleNumPorts"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleVersion"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleMemory"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleService"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleStatus"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortConnectorType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortIfIndex"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPowerSupply"), ("CTRON-SSR-HARDWARE-MIB", "sysHwFan"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTemperature"), ("CTRON-SSR-HARDWARE-MIB", "sysHwChassisId"), ("CTRON-SSR-HARDWARE-MIB", "sysHwSwitchingFabric"), ("CTRON-SSR-HARDWARE-MIB", "sysHwControlModuleLED")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwConfGroupV12 = hwConfGroupV12.setStatus('deprecated') if mibBuilder.loadTexts: hwConfGroupV12.setDescription('A set of managed objects that make up version 1.2 of the SSR Hardware mib.') hwConfGroupV30 = ObjectGroup((1, 3, 6, 1, 4, 1, 52, 2501, 1, 200, 2, 2, 4)).setObjects(("CTRON-SSR-HARDWARE-MIB", "sysHwNumSlots"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleDesc"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleNumPorts"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleVersion"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleMemory"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleService"), ("CTRON-SSR-HARDWARE-MIB", "sysHwModuleStatus"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortSlotNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortNumber"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortConnectorType"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPortIfIndex"), ("CTRON-SSR-HARDWARE-MIB", "sysHwPowerSupply"), ("CTRON-SSR-HARDWARE-MIB", "sysHwFan"), ("CTRON-SSR-HARDWARE-MIB", "sysHwTemperature"), ("CTRON-SSR-HARDWARE-MIB", "sysHwChassisId"), ("CTRON-SSR-HARDWARE-MIB", "sysHwSwitchingFabric"), ("CTRON-SSR-HARDWARE-MIB", "sysHwControlModuleLED"), ("CTRON-SSR-HARDWARE-MIB", "sysHwControlModuleBackupState"), ("CTRON-SSR-HARDWARE-MIB", "sysHwLastHotSwapEvent")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwConfGroupV30 = hwConfGroupV30.setStatus('current') if mibBuilder.loadTexts: hwConfGroupV30.setDescription('A set of managed objects that make up version 3.0 of the SSR Hardware mib.') mibBuilder.exportSymbols("CTRON-SSR-HARDWARE-MIB", sysHwPortSlotNumber=sysHwPortSlotNumber, sysHwPortEntry=sysHwPortEntry, SSRModuleStatus=SSRModuleStatus, hwGroups=hwGroups, PYSNMP_MODULE_ID=hardwareMIB, sysHwTotalOutFrames=sysHwTotalOutFrames, sysHwModuleType=sysHwModuleType, sysHwModuleMemory=sysHwModuleMemory, sysHwModuleTable=sysHwModuleTable, sysHwTotalInOctets=sysHwTotalInOctets, sysHwModuleSlotNumber=sysHwModuleSlotNumber, sysHwModuleStatus=sysHwModuleStatus, PowerSupplyBits=PowerSupplyBits, hardwareMIB=hardwareMIB, hwComplianceV12=hwComplianceV12, hwConfGroupV12=hwConfGroupV12, sysHwChassisId=sysHwChassisId, sysHwTotalOutOctets=sysHwTotalOutOctets, sysHwPortConnectorType=sysHwPortConnectorType, sysHwGroup=sysHwGroup, SSRInterfaceIndex=SSRInterfaceIndex, hwConfGroupV11=hwConfGroupV11, sysHwPortType=sysHwPortType, SSRCmLedState=SSRCmLedState, hwComplianceV11=hwComplianceV11, sysHwPowerSupply=sysHwPowerSupply, sysHwPortNumber=sysHwPortNumber, sysHwTotalL3SwitchedFrames=sysHwTotalL3SwitchedFrames, SSRSwitchingFabricInfo=SSRSwitchingFabricInfo, sysHwModuleVersion=sysHwModuleVersion, sysHwModuleService=sysHwModuleService, sysHwPortTable=sysHwPortTable, sysHwTotalL2SwitchedFrames=sysHwTotalL2SwitchedFrames, hwComplianceV10=hwComplianceV10, sysHwTemperature=sysHwTemperature, sysHwControlModuleLED=sysHwControlModuleLED, sysHwNumSlots=sysHwNumSlots, sysHwTotalInFrames=sysHwTotalInFrames, sysHwModuleEntry=sysHwModuleEntry, hwConformance=hwConformance, sysHwControlModuleBackupState=sysHwControlModuleBackupState, sysHwSwitchingFabric=sysHwSwitchingFabric, sysHwModuleDesc=sysHwModuleDesc, hwConfGroupV10=hwConfGroupV10, SSRBackupCMState=SSRBackupCMState, hwComplianceV30=hwComplianceV30, SSRModuleType=SSRModuleType, SSRPortType=SSRPortType, hwConfGroupV30=hwConfGroupV30, SSRmemorySize=SSRmemorySize, SSRPortConnectorType=SSRPortConnectorType, SSRserviceType=SSRserviceType, sysHwFan=sysHwFan, hwCompliances=hwCompliances, sysHwModuleNumPorts=sysHwModuleNumPorts, sysHwPortIfIndex=sysHwPortIfIndex, sysHwLastHotSwapEvent=sysHwLastHotSwapEvent)
# Area and perimeter of a rectangle in the plane # A rectangle is given by the coordinates of two of its opposite angles (x1, y1) - (x2, y2). # Calculate its area and perimeter . The input is read from the console. The numbers x1, y1, x2 and y2 are given one per line. # The output is displayed on the console and must contain two rows with one number on each of them - the area and the perimeter. x1 = float(input()) y1 = float(input()) x2 = float(input()) y2 = float(input()) side_1 = abs(x2 - x1) side_2 = abs(y2 - y1) area = side_1 * side_2 perimeter = 2 * (side_1 + side_2) print(area) print(perimeter)
categories = [["Δημητριακά","Φρυγανίες", "Ζαχαρί", "Ρύζια","Αλευρια & Ειδη Ζαχαροπλαστικής","Ψωμί", "Ζυμαρικά" ,"Όσπρια", "Παντοπολείο", "Αλλαντικά", "Κρέας κά", "Προιόντα Ζύμης", "Κατεψυγμένα Λαχανικά", "Φρέσκα Φρούτα & Λαχανικά", "Ψάρια & Θαλάσσινά"], ["Γάλα", "Γιαούρτια & Επιδόρπια", "Κρέμες γάλακτος & Βούτυρα", "Παγωτά", "Τυριά", "Αλλα είδη Γάλακτος"], ["Μπύρες", "Κρασιά","Ποτά" , "Νερά", "Φρεσκοι χυμοί" ,"Χυμοί εκτος ψυγείου & Αναψυκτικά","Μπισκότα", "Ξηροί καρποί","Σοκολάτες", "Αλλα Σνακς", "Καφές & Ροφήματα"], ["Γυναικεία Περιποίηση", "Ανδρική περιποίηση", "Καθαριότητα & Προσωπική Υγειίνή", "Απορρυπαντικά","Περιποίηση Μαλλιών", "Στοματική Υγιεινή", "Ένδυση & Υπόδηση","Προιόντα Περιποιήσης"], ["Κουζίνα & Μπάνιο","Καθαριστικά Σπιτιού", "Ρούχα", "Εξοπλισμός Σπιτιού"], ["Βρεφική περιποίηση", "Βρεφικές κρέμες", "Πάνες & Μωρομάντηλα", "Βρεφικά Απορρυπαντικά", "Αξεσουάρ για το μωρό"], ["Προϊόντα για κατοικίδια", "Βιολογικά Προϊόντα","Άλλα προιόντα"]] correct_list = ["Ψωμί","Φρέσκα Φρούτα & Λαχανικά", "Ψάρια & Θαλάσσινά","Δημητριακά","Φρεσκοι χυμοί", "Γάλα", "Γιαούρτια & Επιδόρπια", "Κρέμες γάλακτος & Βούτυρα", "Καφές & Ροφήματα", "Μπισκότα", "Σοκολάτες", "Ξηροί καρποί", "Κρέας κά", "Τυριά", "Αλλαντικά", "Κρασιά" , "Μπύρες", "Αλλα Σνακς", "Φρυγανίες", "Ζαχαρί" , "Αλλα είδη Γάλακτος", "Αλευρια & Ειδη Ζαχαροπλαστικής", "Ρύζια", "Όσπρια", "Ζυμαρικά" , "Παντοπολείο","Ποτά" ,"Νερά", "Χυμοί εκτος ψυγείου & Αναψυκτικά","Προιόντα Ζύμης", "Κατεψυγμένα Λαχανικά","Παγωτά", "Κουζίνα & Μπάνιο","Καθαριστικά Σπιτιού", "Προϊόντα για κατοικίδια", "Απορρυπαντικά", "Βρεφικά Απορρυπαντικά", "Βιολογικά Προϊόντα", "Ρούχα", "Εξοπλισμός Σπιτιού", "Γυναικεία Περιποίηση", "Ανδρική περιποίηση", "Καθαριότητα & Προσωπική Υγειίνή", "Περιποίηση Μαλλιών", "Στοματική Υγιεινή", "Ένδυση & Υπόδηση","Προιόντα Περιποιήσης", "Βρεφική περιποίηση", "Βρεφικές κρέμες", "Πάνες & Μωρομάντηλα", "Αξεσουάρ για το μωρό", "Άλλα προιόντα"] for item in categories : if(item not in categories): print(item)
def fuel(x): tot = 0 while True: f = x//3 - 2 if f <= 0: break x = f tot += f return tot input = """ 123265 68442 94896 94670 145483 93807 88703 139755 53652 52754 128052 81533 56602 96476 87674 102510 95735 69174 136331 51266 148009 72417 52577 86813 60803 149232 115843 138175 94723 85623 97925 141772 63662 107293 130779 147027 88003 77238 53184 149255 71921 139799 84851 104899 92290 74438 55631 58655 140496 110176 138718 104768 93177 53212 129572 69877 139944 116062 51362 135245 59682 128705 98105 69172 89244 109048 88690 62124 53981 71885 59216 107718 146343 138788 73588 51648 122227 54507 59283 101230 93080 123120 148248 102909 91199 105704 113956 120368 75020 103734 81791 87323 77278 123013 58901 136351 121295 132994 84039 76813 """ if __name__ == '__main__': vals = list(map(int, input.strip().split())) print(sum([i//3 - 2 for i in vals])) print(sum([fuel(i) for i in vals]))
#LA SETENCIA FOR (PARA) # Puede hacer recorridos mas eficientes en codigo de listas. #Ejemplo de Comparación con while. numeros = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] indice = 0 while(indice < len(numeros)): print(numeros[indice]) indice += 1 #Ahora con FOR for numero in numeros: print(numero) #EJEMPLO indice = 0 numeros = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for numero in numeros: numeros[indice] *= 3 indice += 1 print(numeros) # EJEMPLO MEJORANDO EL ANTERIOR numeros = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for indice, numero in enumerate(numeros): numeros[indice] *= 4 print(numeros) # Otra forma de usar el for for i in range(10): print(i)
# # PySNMP MIB module CPQSTSYS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CPQSTSYS-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:27:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion") compaq, cpqHoTrapFlags = mibBuilder.importSymbols("CPQHOST-MIB", "compaq", "cpqHoTrapFlags") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") sysName, = mibBuilder.importSymbols("SNMPv2-MIB", "sysName") MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, IpAddress, Counter32, Counter64, Bits, iso, ModuleIdentity, TimeTicks, Unsigned32, ObjectIdentity, MibIdentifier, NotificationType, Integer32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "IpAddress", "Counter32", "Counter64", "Bits", "iso", "ModuleIdentity", "TimeTicks", "Unsigned32", "ObjectIdentity", "MibIdentifier", "NotificationType", "Integer32", "NotificationType") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") cpqSsStorageSys = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 8)) cpqSsMibRev = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 8, 1)) cpqSsDrvBox = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 8, 2)) cpqSsTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 8, 3)) cpqSsRaidSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 8, 4)) cpqSsBoxExtended = MibIdentifier((1, 3, 6, 1, 4, 1, 232, 8, 2, 2)) cpqSsMibRevMajor = MibScalar((1, 3, 6, 1, 4, 1, 232, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsMibRevMajor.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsMibRevMajor.setDescription('The Major Revision level. A change in the major revision level represents a major change in the architecture of the MIB. A change in the major revision level may indicate a significant change in the information supported and/or the meaning of the supported information, correct interpretation of data may require a MIB document with the same major revision level.') cpqSsMibRevMinor = MibScalar((1, 3, 6, 1, 4, 1, 232, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsMibRevMinor.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsMibRevMinor.setDescription('The Minor Revision level. A change in the minor revision level may represent some minor additional support; no changes to any pre-existing information has occurred.') cpqSsMibCondition = MibScalar((1, 3, 6, 1, 4, 1, 232, 8, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsMibCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsMibCondition.setDescription('The overall condition (status) of the system represented by this MIB.') cpqSsDrvBoxTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 1), ) if mibBuilder.loadTexts: cpqSsDrvBoxTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxTable.setDescription('Drive Box Table.') cpqSsDrvBoxEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsBoxCntlrIndex"), (0, "CPQSTSYS-MIB", "cpqSsBoxBusIndex")) if mibBuilder.loadTexts: cpqSsDrvBoxEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxEntry.setDescription('Drive Box Entry.') cpqSsBoxCntlrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxCntlrIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxCntlrIndex.setDescription('Drive Box Controller Index. The controller index indicates to which adapter card instance this table entry belongs.') cpqSsBoxBusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxBusIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxBusIndex.setDescription('Drive Box Bus Index. The bus index indicates to which bus instance on an adapter card this table entry belongs.') cpqSsBoxType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("proLiant", 2), ("proLiant2", 3), ("proLiant2Internal", 4), ("proLiant2DuplexTop", 5), ("proLiant2DuplexBottom", 6), ("proLiant2InternalDuplexTop", 7), ("proLiant2InternalDuplexBottom", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxType.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsBoxType.setDescription('Drive Box Type. This is the type of drive box. The following types are defined: other(1) The agent does not recognize this drive storage system. proLiant(2) This is a ProLiant Storage System. proLiant2(3) This is a ProLiant-2 Storage System. proLiant2Internal(4) This is an internal ProLiant-2 Storage System that is found in some servers. proLiant2DuplexTop(5) This is the top portion of a ProLiant-2 Storage System that has dual SCSI busses which are duplexed. proLiant2DuplexBottom(6) This is the bottom portion of a ProLiant-2 Storage System that has dual SCSI busses which are duplexed. proLiant2InternalDuplexTop(7) This is the top portion of a ProLiant Server into which the internal SCSI busses are duplexed. proLiant2InternalDuplexBottom(8) This is the bottom portion of a ProLiant Server into which the internal SCSI busses are duplexed.') cpqSsBoxModel = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 17))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxModel.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxModel.setDescription("Drive Box Model. This is a description of the drive box's model. This can be used for identification purposes.") cpqSsBoxFWRev = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxFWRev.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxFWRev.setDescription('Drive Box Firmware Revision. This is the revision level of the drive box. This can be used for identification purposes.') cpqSsBoxVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxVendor.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxVendor.setDescription("Drive Box Vendor This is the drive box's vendor name. This can be used for identification purposes.") cpqSsBoxFanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("failed", 3), ("noFan", 4), ("degraded", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxFanStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxFanStatus.setDescription('Drive Box Fan Status. This is the current status of the fans in the drive box. This value will be one of the following: other(1) Fan monitoring is not supported by this system or it is not supported by the driver. ok(2) All fans are working normally. failed(3) One or more storage system fans have failed. The fan(s) should be replaced immediately to avoid hardware damage. noFan(4) This unit does not support fan monitoring. degraded(5) At least one storage system fan has failed, but there is still sufficient cooling capacity to allow the system to continue. The fan should be replaced.') cpqSsBoxCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxCondition.setDescription('SCSI Drive Box Condition. This is the overall condition of the drive box. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The storage system is operating normally. No user action is required. degraded(3) The storage system is degraded. You need to check the temperature status or power supply status of this storage system. Additionally, if the side panel for the storage system is removed, the air flow changes could result in improper cooling of the drives and affect the temperature status. failed(4) The storage system has failed.') cpqSsBoxTempStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4), ("noTemp", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxTempStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxTempStatus.setDescription('The temperature of the drive system. This value will be one of the following: other(1) Temperature monitoring is not supported by this system or it is not supported by the driver. ok(2) The temperature is within normal operating range. degraded(3) The temperature is outside of normal operating range. failed(4) The temperature could permanently damage the system. The storage system will automatically shutdown if this condition is detected. noTemp(5) This unit does not support temperature monitoring.') cpqSsBoxSidePanelStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("sidePanelInPlace", 2), ("sidePanelRemoved", 3), ("noSidePanelStatus", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxSidePanelStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxSidePanelStatus.setDescription('Drive Box Side Panel Status. This value will be one of the following: other(1) The agent does not recognize the status. You may need to upgrade your software. sidePanelInPlace(2) The side panel is properly installed on the storage system. sidePanelRemoved(3) The side panel is not properly installed on the storage system. noSidePanelStatus(4) This unit does not support side panel status monitoring.') cpqSsBoxFltTolPwrSupplyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4), ("noFltTolPower", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxFltTolPwrSupplyStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxFltTolPwrSupplyStatus.setDescription('This value specifies the overall status of the fault tolerant power supply sub-system in a drive box. This value will be one of the following: other(1) The power supply status cannot be determined. ok(2) There are no detected power supply failures. degraded(3) One of the power supply units in a fault tolerant power supply has failed. failed(4) No failure conditions can currently be determined. noFltTolPower(5) This unit does not support fault tolerant power supply monitoring.') cpqSsBoxBackPlaneVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("proLiant", 2), ("proLiant2", 3), ("proLiant3", 4), ("proLiant4", 5), ("proLiant5", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxBackPlaneVersion.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxBackPlaneVersion.setDescription('Drive Box Back Plane Version. This is the version of the drive box back plane. The following types are defined: other(1) The agent does not recognize this drive storage system back plane. proLiant(2) This is a ProLiant Storage System. proLiant2(3) This is a ProLiant-2 Storage System. proLiant3(4) This is a ProLiant-3 Storage System. proLiant4(5) This is a 4th generation Proliant Storage System. proLiant5(6) This is a 5th generation ProLiant Storage System.') cpqSsBoxTotalBays = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxTotalBays.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxTotalBays.setDescription('Drive Box Total Bays. This is the total number of bays in this storage system.') cpqSsBoxPlacement = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("internal", 2), ("external", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxPlacement.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxPlacement.setDescription('Drive Box Placement. The following values are defined: other(1) The agent is unable to determine if this storage system is located internal or external to the system chassis. internal(2) The storage system is located in the system chassis. external(3) The storage system is located outside the system chassis in an expansion box.') cpqSsBoxDuplexOption = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("notDuplexed", 2), ("duplexTop", 3), ("duplexBottom", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxDuplexOption.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxDuplexOption.setDescription('Drive Box Duplex Option. The following values are defined: other(1) The agent is unable to determine if this storage system is duplexed. notDuplexed(2) This storage system is not duplexed. duplexTop(3) This is the top portion of a duplexed storage system. duplexBottom(4) This is the bottom portion of a duplexed storage system.') cpqSsBoxBoardRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxBoardRevision.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxBoardRevision.setDescription('Drive Box Board Revision. This is the board revision of this storage system backplane.') cpqSsBoxSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxSerialNumber.setDescription("Drive Box Serial Number. This is the drive box's serial number which is normally display on the front panel. This can be used for identification purposes.") cpqSsBoxCntlrHwLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxCntlrHwLocation.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxCntlrHwLocation.setDescription('A text description of the hardware location of the controller to which this box is attached. A NULL string indicates that the hardware location could not be determined or is irrelevant.') cpqSsBoxBackplaneSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ultra3", 2), ("ultra320", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxBackplaneSpeed.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxBackplaneSpeed.setDescription('Drive Box Backplane Speed. The following values are defined: other(1) The agent is unable to determine the backplane speed for this storage system. ultra3(2) This storage system is capable of Ultra3 speeds. ultra320(3) This storage system is capable of Ultra320 speeds.') cpqSsBoxConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("scsiAttached", 2), ("sasAttached", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxConnectionType.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxConnectionType.setDescription('Drive Box Connection Type. The following values are defined: other(1) The agent is unable to determine the type of connection to this storage system. scsiAttached(2) This storage system is attached to the host via SCSI. sasAttached(3) This storage system is attached to the host via SAS.') cpqSsBoxHostConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxHostConnector.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxHostConnector.setDescription('Drive Box Host Connector. This is the host connector to which the drive box is attached. If the host connector cannot be determined, the agent will return a NULL string.') cpqSsBoxBoxOnConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxBoxOnConnector.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxBoxOnConnector.setDescription('Drive Box, Box on Connector. The box on connector indicates which box instance this table entry belongs. The instances start at one and increment for each box attached to a connector. If the value cannot be determined or does not apply, -1 is returned.') cpqSsBoxLocationString = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 1, 1, 23), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBoxLocationString.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBoxLocationString.setDescription('Drive Box Location String. This string describes the location of the drive box in relation to the controller to which it is attached. If the location string cannot be determined, the agent will return a NULL string.') cpqSsChassisTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1), ) if mibBuilder.loadTexts: cpqSsChassisTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisTable.setDescription('Storage System Chassis Table.') cpqSsChassisEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsChassisIndex")) if mibBuilder.loadTexts: cpqSsChassisEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisEntry.setDescription('Storage System Chassis Entry.') cpqSsChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisIndex.setDescription('Storage System Chassis Index. The chassis index uniquely identifies a storage system chassis.') cpqSsChassisConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("fibreAttached", 2), ("scsiAttached", 3), ("iScsiAttached", 4), ("sasAttached", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisConnectionType.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisConnectionType.setDescription('Storage System Chassis Connection Type. The following values are defined: other(1) The agent is unable to determine the type of connection to this chassis. fibreAttached(2) This chassis is attached to the server via Fibre Channel. scsiAttached(3) This chassis is attached to the server via SCSI. iScsiAttached(4) This chassis is attached to the server via iSCSI. sasAttached(5) This chassis is attached to the server via SAS.') cpqSsChassisSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisSerialNumber.setDescription("Storage System Chassis Serial Number. This is the storage system chassis's serial number which is normally displayed on the front panel. This can be used for identification purposes.") cpqSsChassisName = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisName.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisName.setDescription('Storage System Chassis Name. This is a user defined name for this storage system chassis.') cpqSsChassisSystemBoardSerNum = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisSystemBoardSerNum.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisSystemBoardSerNum.setDescription("Storage System Chassis System Controller Board Serial Number. This is the system controller board's serial number. This can be used for identification purposes.") cpqSsChassisSystemBoardRev = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisSystemBoardRev.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisSystemBoardRev.setDescription('Storage System Chassis System Controller Board Revision. This is the system controller board revision.') cpqSsChassisPowerBoardSerNum = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisPowerBoardSerNum.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisPowerBoardSerNum.setDescription("Storage System Chassis Power Backplane Board Serial Number. This is the power backplane board's serial number. This can be used for identification purposes.") cpqSsChassisPowerBoardRev = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisPowerBoardRev.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisPowerBoardRev.setDescription('Storage System Chassis Power Backplane Board Revision. This is the power backplane board revision.') cpqSsChassisScsiBoardSerNum = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisScsiBoardSerNum.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisScsiBoardSerNum.setDescription("Storage System Chassis SCSI Drive Backplane Board Serial Number. This is the SCSI drive backplane board's serial number. This can be used for identification purposes.") cpqSsChassisScsiBoardRev = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisScsiBoardRev.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisScsiBoardRev.setDescription('Storage System Chassis SCSI Drive Backplane Board Revision. This is the SCSI drive backplane board revision.') cpqSsChassisOverallCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisOverallCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisOverallCondition.setDescription('Storage System Chassis Overall Condition. This is the condition of the storage system chassis and all of its components. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The storage system is operating normally. No user action is required. degraded(3) The storage system chassis is degraded. failed(4) The storage system chassis is failed.') cpqSsChassisPowerSupplyCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisPowerSupplyCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisPowerSupplyCondition.setDescription('Storage System Power Supply Condition. This is the aggregate condition of all power supplies in the storage system chassis. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) All power supplies are operating normally. degraded(3) At least one power supply is degraded or failed. failed(4) All power supplies are failed.') cpqSsChassisFanCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisFanCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisFanCondition.setDescription('Storage System Fan Condition. This is the aggregate condition of all fan modules in the storage system chassis. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) All fan modules are operating normally. degraded(3) At least one fan module is degraded. failed(4) At least one fan module is failed.') cpqSsChassisTemperatureCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisTemperatureCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisTemperatureCondition.setDescription('Storage System Temperature Condition. This is the aggregate condition of all the temperatur sensors in the storage system chassis. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) All temperature sensors are reading within normal limits. degraded(3) At least one temperature sensor is reading degraded. failed(4) At least one temperature sensor is reading failed.') cpqSsChassisFcaCntlrCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisFcaCntlrCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisFcaCntlrCondition.setDescription('Storage System Fibre Channel Array Controller Condition. This is the aggregate condition of all Fibre Channel Array controllers in the storage system chassis. The following values are defined: other(1) The condition cannot be determined or is not supported on this storage system. ok(2) All Fibre Channel Array Controllers are operating normally. degraded(3) At least one Fibre Channel Array Controller is degraded or failed. failed(4) All Fibre Channel Array Controllers are failed.') cpqSsChassisFcaLogicalDriveCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisFcaLogicalDriveCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisFcaLogicalDriveCondition.setDescription('Storage System Fibre Channel Array Logical Drive Condition. This is the aggregate condition of all Fibre Channel Array Logical Drives in this storage system chassis. The following values are defined: other(1) The condition cannot be determined or is not supported on this storage system. ok(2) All Fibre Channel Array Controllers Logical Drives are operating normally. degraded(3) At least one Fibre Channel Array Controller Logical Drive is degraded. failed(4) At least one Fibre Channel Array Controller Logical Drive is failed.') cpqSsChassisFcaPhysDrvCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisFcaPhysDrvCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisFcaPhysDrvCondition.setDescription('Storage System Fibre Channel Array Physical Drive Condition. This is the aggregate condition of all Fibre Channel Array Physical Drives in this storage system chassis. The following values are defined: other(1) The condition cannot be determined or is not supported on this storage system. ok(2) All Fibre Channel Array Controllers Physical Drives are operating normally. degraded(3) At least one Fibre Channel Array Controller Physical Drive is degraded. failed(4) At least one Fibre Channel Array Controller Physical Drive is failed.') cpqSsChassisTime = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisTime.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisTime.setDescription("Storage System Chassis Time. This is the storage system chassis's time in tenths of seconds. If the chassis time is not supported, the agent will return 0.") cpqSsChassisModel = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("other", 1), ("ra4x00", 2), ("msa1000", 3), ("smartArrayClusterStorage", 4), ("enterpriseModularArray", 5), ("enterpriseVirtualArray", 6), ("msa500G2", 7), ("msa20", 8), ("msa1500cs", 9), ("msa1510i", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisModel.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisModel.setDescription('Storage System Chassis Model. The following values are defined: other(1) The agent is unable to determine the model of this chassis. ra4x00(2) Compaq StorageWorks RAID Array 4000/4100. msa1000(3) Compaq StorageWorks Modular Smart Array 1000. smartArrayClusterStorage(4) HP StorageWorks Modular Smart Array 500 (Formerly Smart Array Cluster Storage). enterpriseModularArray(5) Compaq StorageWorks Enterprise/Modular RAID Array. enterpriseVirtualArray(6) Compaq StorageWorks Enterprise Virtual Array. msa500G2(7) HP StorageWorks Modular Smart Array 500 G2. msa20(8) HP StorageWorks Modular Smart Array 20. msa1500cs(9) HP StorageWorks Modular Smart Array 1500 CS. msa1510i(10) HP StorageWorks Modular Smart Array 1510i. Reserved(11) Reserved(12)') cpqSsChassisBackplaneCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisBackplaneCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisBackplaneCondition.setDescription('Storage System Backplane Condition. This is the aggregate condition of all the backplanes for the storage system chassis. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) All backplanes are operating normally. degraded(3) At least one storage system is degraded. failed(4) At least one storage system is failed.') cpqSsChassisFcaTapeDrvCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisFcaTapeDrvCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisFcaTapeDrvCondition.setDescription('Storage System Array Tape Drive Condition. This is the aggregate condition of all tape drives in this storage system chassis. The following values are defined: other(1) The condition cannot be determined or is not supported on this storage system. ok(2) All tape drives are operating normally. degraded(3) At least one tape drive is degraded. failed(4) At least one tape drive is failed.') cpqSsChassisRsoStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))).clone(namedValues=NamedValues(("other", 1), ("notSupported", 2), ("notConfigured", 3), ("disabled", 4), ("daemonDownDisabled", 5), ("ok", 6), ("daemonDownActive", 7), ("noSecondary", 8), ("daemonDownNoSecondary", 9), ("linkDown", 10), ("daemonDownLinkDown", 11), ("secondaryRunningAuto", 12), ("secondaryRunningUser", 13), ("evTimeoutError", 14)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisRsoStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisRsoStatus.setDescription('Storage System Chassis Recovery Server Option Status. The following values are defined: other(1) The recovery server option status cannot be determined for this storage system. notSupported(2) The recovery server option is not supported for this storage system. notConfigured(3) The recovery server option is supported, but is not configured on this storage system. disabled(4) The recovery server option is configured as primary, but has been disabled by software. daemonDownDisabled(5) The recovery server option operating system daemon is no longer running. The last status of RSO was disabled(4). ok(6) The recovery server option is configured as primary and everything is working correctly. daemonDownActive(7) The recovery server option operating system daemon is no longer running. The last status of RSO was ok(6). noSecondary(8) The recovery server option is configured as primary, but communication with the standby server has not been established. daemonDownNoSecondary(9) The recovery server option operating system daemon is no longer running. The last status of RSO was noSecondary(8). linkDown(10) The recovery server option is configured as primary, but communication with the standby server has failed. daemonDownLinkDown(11) The recovery server option operating system daemon is no longer running. The last status of RSO was linkDown(10). secondaryRunningAuto(12) The recovery server option is configured and the standby server is running. The secondary server assumed control after communication with the primary server failed. secondaryRunningUser(13) The recovery server option is configured and the standby server is running. A user forced the secondary server to assume control. evTimeoutError(14) The recovery server option environment variable cannot be accessed.') cpqSsChassisRsoCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisRsoCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisRsoCondition.setDescription('Storage System Chassis Recovery Server Option Condition. This is the condition of the recovery server option. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The recovery server option is operating normally. No user action is required. degraded(3) The recovery server option is degraded. failed(4) The recovery server option is failed.') cpqSsChassisScsiIoModuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("io2port", 2), ("io4portUpgradeFirmware", 3), ("io4port", 4), ("io2port320", 5), ("io4port320", 6), ("io1port320", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisScsiIoModuleType.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisScsiIoModuleType.setDescription('Storage System Chassis SCSI I/O Module Type. The following values are defined: other(1) The agent does not recognize SCSI I/O module type. You may need to upgrade your software. io2port(2) A 2-Port Ultra3 SCSI I/O Module is installed. io4portUpgradeFirmware(3) A 4-Port Shared Storage Module for Smart Array Cluster Storage is installed, but the current controller firmware does not support it. Upgrade your controller firmware. io4port(4) A 4-Port Shared Storage Module for Smart Array Cluster Storage is installed. io2port320(5) A 2-Port Ultra320 SCSI I/O Module is installed. io4port320(6) A 4-Port Ultra320 SCSI I/O Module is installed. io1port320(7) A 1-Port Ultra320 SCSI I/O Module is installed.') cpqSsChassisPreferredPathMode = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("notActiveActive", 2), ("automatic", 3), ("manual", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisPreferredPathMode.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisPreferredPathMode.setDescription('Array Controller Preferred Path Mode. This is the storage system active/active preferred path mode. The following values are valid: other (1) Indicates that the agent does not recognize the preferred path mode of the storage system. You may need to upgrade the agent. notActiveActive (2) The storage system is not configured as active/active. automatic (3) The storage system automatically selects the preferred path for each logical drive based on host I/O patterns. manual (4) The preferred path for each logical drive is manually configured by the storage system administrator.') cpqSsChassisProductId = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 1, 1, 26), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsChassisProductId.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsChassisProductId.setDescription("Storage System Chassis Product Identifier. This is the storage system chassis's product identifier. This can be used for identification purposes. If the product identifier can not be determined, the agent will return a NULL string.") cpqSsIoSlotTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 2), ) if mibBuilder.loadTexts: cpqSsIoSlotTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsIoSlotTable.setDescription('Storage System I/O Slot Table.') cpqSsIoSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 2, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsIoSlotChassisIndex"), (0, "CPQSTSYS-MIB", "cpqSsIoSlotIndex")) if mibBuilder.loadTexts: cpqSsIoSlotEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsIoSlotEntry.setDescription('Storage System I/O Slot Entry.') cpqSsIoSlotChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsIoSlotChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsIoSlotChassisIndex.setDescription('Storage System I/O Slot Chassis Index. The chassis index uniquely identifies a storage system chassis.') cpqSsIoSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsIoSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsIoSlotIndex.setDescription('Storage System I/O Slot Index. This index uniquely identifies a storage system I/O Slot.') cpqSsIoSlotControllerType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("notInstalled", 2), ("unknownBoard", 3), ("fibreArray", 4), ("scsiArray", 5), ("noSlot", 6), ("iScsiArray", 7), ("sasArray", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsIoSlotControllerType.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsIoSlotControllerType.setDescription('Storage System I/O Slot Controller Type. The following values are defined: other(1) The agent is unable to determine if anything is installed in this storage system I/O slot. notInstalled(2) Nothing is installed in this storage system I/O slot. unknownBoardInstalled(3) An unknown controller is installed in this storage system I/O slot. fibreArray(4) A Fibre Channel Array controller is installed in this storage system I/O slot. scsiArray(5) A SCSI Array controller is installed in this storage system I/O slot. noSlot(6) The slot does not exist on this chassis. iScsiArray(7) An iSCSI Array controller is installed in this storage system I/O slot. sasArray(8) A SAS Array controller is installed in this storage system I/O slot.') cpqSsPowerSupplyTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3), ) if mibBuilder.loadTexts: cpqSsPowerSupplyTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyTable.setDescription('Storage System Power Supply Table.') cpqSsPowerSupplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsPowerSupplyChassisIndex"), (0, "CPQSTSYS-MIB", "cpqSsPowerSupplyIndex")) if mibBuilder.loadTexts: cpqSsPowerSupplyEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyEntry.setDescription('Storage System Power Supply Entry.') cpqSsPowerSupplyChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyChassisIndex.setDescription('Storage System Power Supply Chassis Index. The chassis index uniquely identifies a storage system chassis.') cpqSsPowerSupplyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyIndex.setDescription('Storage System Power Supply Bay. This index uniquely identifies a power supply bay.') cpqSsPowerSupplyBay = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("powerBay1", 2), ("powerBay2", 3), ("composite", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyBay.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyBay.setDescription('Storage System Power Supply Bay. The following values are defined: other(1) The agent does not recognize the bay. You may need to upgrade your software. powerBay1(2) The power supply is installed in the first power supply bay. powerBay2(3) The power supply is installed in the second power supply bay. composite(4) The power supply information is a composite of all power supplies in the storage system.') cpqSsPowerSupplyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("notInstalled", 2), ("ok", 3), ("failed", 4), ("degraded", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyStatus.setDescription('Storage System Power Supply Status. The following values are defined: other(1) The agent is unable to determine if this storage system power supply bay is occupied. notInstalled(2) Nothing is installed in this power supply bay. ok(3) A power supply is installed and operating normally. failed(4) A power supply is installed and is no longer operating. Replace the power supply. degraded(5) For composite power supplies, this indicates that at least one power supply has failed or lost power.') cpqSsPowerSupplyUpsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("noUps", 2), ("ok", 3), ("powerFailed", 4), ("batteryLow", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyUpsStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyUpsStatus.setDescription('Storage System Power Supply Uninterruptible Power Supply (UPS) Status. The following values are defined: other(1) The agent is unable to determine if this power supply is attached to an Uninterruptible Power Supply (UPS). noUps(2) No UPS is attached to the power supply. ok(3) A UPS is attached to the power supply and is operating normally. powerFailed(4) A UPS is attached to the power supply and the AC power has failed. batteryLow(5) A UPS is attached to the power supply, the AC power has failed and the UPS battery is low.') cpqSsPowerSupplyCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyCondition.setDescription('Storage System Power Supply Condition. This is the condition of the storage system chassis and all of its components. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The power supply is operating normally. No user action is required. degraded(3) The power supply is degraded. You need to check the power supply or its attached UPS for problems. failed(4) The power supply has failed.') cpqSsPowerSupplySerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplySerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplySerialNumber.setDescription("Storage System Power Supply Serial Number. This is the power supply's serial number. This can be used for identification purposes. If the serial number is not supported, the agent will return a NULL string.") cpqSsPowerSupplyBoardRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyBoardRevision.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyBoardRevision.setDescription('Storage System Power Supply Board Revision. This is the power supply board revision. If the board revision is not supported, the agent will return a NULL string.') cpqSsPowerSupplyFirmwareRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 3, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsPowerSupplyFirmwareRevision.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsPowerSupplyFirmwareRevision.setDescription('Storage System Power Supply Firmware Revision. This is the power supply firmware revision. If the firmware revision is not supported, the agent will return a NULL string.') cpqSsFanModuleTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4), ) if mibBuilder.loadTexts: cpqSsFanModuleTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleTable.setDescription('Storage System Fan Module Table.') cpqSsFanModuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsFanModuleChassisIndex"), (0, "CPQSTSYS-MIB", "cpqSsFanModuleIndex")) if mibBuilder.loadTexts: cpqSsFanModuleEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleEntry.setDescription('Storage System Fan Module Entry.') cpqSsFanModuleChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFanModuleChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleChassisIndex.setDescription('Storage System Fan Module Chassis Index. The chassis index uniquely identifies a storage system chassis.') cpqSsFanModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFanModuleIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleIndex.setDescription('Storage System Fan Module Index. This index uniquely identifies a storage system fan module.') cpqSsFanModuleStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("notInstalled", 2), ("ok", 3), ("degraded", 4), ("failed", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFanModuleStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleStatus.setDescription('Storage System Fan Module Status. The following values are defined: other(1) The agent is unable to determine if this storage system fan module is installed. notInstalled(3) The fan module is not installed. ok(2) The fan module is installed and operating normally. degraded(4) The fan module degraded. failed(5) The fan module is failed. Replace the fan module.') cpqSsFanModuleCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFanModuleCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleCondition.setDescription('Storage System Fan Module Condition. This is the condition of the storage system fan module. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The fan module is operating normally. No user action is required. degraded(3) The fan module is degraded. You need to check the fan module for problems. failed(4) The fan module has failed. Replace the fan module.') cpqSsFanModuleLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("fanBay", 2), ("composite", 3), ("fanBay2", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFanModuleLocation.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleLocation.setDescription('Storage System Fan Module Location. The following values are defined: other(1) The agent is unable to determine the location of this storage system fan module. fanBay(2) This fan module is installed in the first fan bay. composite(3) The fan information is a composite of all fans in the storage system. fanBay2(4) This fan module is installed in the second fan bay.') cpqSsFanModuleSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFanModuleSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleSerialNumber.setDescription("Storage System Fan Module Serial Number. This is the fan module's serial number. This can be used for identification purposes.") cpqSsFanModuleBoardRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 4, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFanModuleBoardRevision.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFanModuleBoardRevision.setDescription('Storage System Fan Module Board Revision. This is the fan module board revision.') cpqSsTempSensorTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5), ) if mibBuilder.loadTexts: cpqSsTempSensorTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorTable.setDescription('Storage System Temperature Sensor Table.') cpqSsTempSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsTempSensorChassisIndex"), (0, "CPQSTSYS-MIB", "cpqSsTempSensorIndex")) if mibBuilder.loadTexts: cpqSsTempSensorEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorEntry.setDescription('Storage System Temperature Sensor Entry.') cpqSsTempSensorChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorChassisIndex.setDescription('Storage System Temperature Sensor Chassis Index. The chassis index uniquely identifies a storage system chassis.') cpqSsTempSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorIndex.setDescription('Storage System Temperature Sensor Index. This index uniquely identifies a temperature sensor.') cpqSsTempSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorStatus.setDescription('Storage System Temperature Sensor Status. The following values are defined: other(1) The agent is unable to determine if the storage system temperature sensor status. ok(2) The temperature is OK. degraded(3) The temperature is degraded. failed(4) The temperature is failed.') cpqSsTempSensorCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorCondition.setDescription('Storage System Fan Module Condition. This is the condition of the storage system temperature sensor. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The temperature is within normal operating range. No user action is required. degraded(3) The temperature is outside of normal operating range. failed(4) The temperature could permanently damage the system. The storage system will automatically shutdown if this condition is detected.') cpqSsTempSensorLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("fanBay", 2), ("backplane", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorLocation.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorLocation.setDescription('Storage System Fan Module Location. The following values are defined: other(1) The agent is unable to determine the location of this storage system temperature sensor. fanBay(2) This temperature sensor is located on the fan module in the fan bay. backplane(3) This temperature is located on the SCSI drive backplane.') cpqSsTempSensorCurrentValue = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorCurrentValue.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorCurrentValue.setDescription('Storage System Temperature Sensor Current Value. The current value of the temperature sensor in degrees Celsius.') cpqSsTempSensorLimitValue = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorLimitValue.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorLimitValue.setDescription('Storage System Temperature Sensor Limit Value. The limit value of the temperature sensor in degrees Celsius.') cpqSsTempSensorHysteresisValue = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 5, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTempSensorHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsTempSensorHysteresisValue.setDescription('Storage System Temperature Sensor Hysteresis Value. The hysteresis value of the temperature sensor in degrees Celsius.') cpqSsBackplaneTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6), ) if mibBuilder.loadTexts: cpqSsBackplaneTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneTable.setDescription('Storage System SCSI Backplane Table.') cpqSsBackplaneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsBackplaneChassisIndex"), (0, "CPQSTSYS-MIB", "cpqSsBackplaneIndex")) if mibBuilder.loadTexts: cpqSsBackplaneEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneEntry.setDescription('Storage System SCSI Backplane Entry.') cpqSsBackplaneChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneChassisIndex.setDescription('Storage System Backplane Chassis Index. The chassis index uniquely identifies a storage system chassis.') cpqSsBackplaneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneIndex.setDescription('Storage System Backplane Index. This index uniquely identifies a storage system backplane.') cpqSsBackplaneFWRev = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneFWRev.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneFWRev.setDescription('Storage System Backplane Firmware Revision. This is the revision level of storage system backplane.') cpqSsBackplaneDriveBays = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneDriveBays.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneDriveBays.setDescription('Storage System Backplane Drive Bays. This is the number of bays on this storage system backplane.') cpqSsBackplaneDuplexOption = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("notDuplexed", 2), ("duplexTop", 3), ("duplexBottom", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneDuplexOption.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneDuplexOption.setDescription('Storage System Backplane Duplex Option. The following values are defined: other (1) The agent is unable to determine if this storage system is duplexed. notDuplexed(2) This storage system is not duplexed. duplexTop(3) This is the top portion of a duplexed storage system. duplexBottom(4) This is the bottom portion of a duplexed storage system.') cpqSsBackplaneCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneCondition.setDescription('Storage System Backplane Condition. This is the overall condition of the backplane. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The storage system is operating normally. No user action is required. degraded(3) The storage system is degraded. You need to check the temperature status or power supply status of this storage system. failed(4) The storage system has failed.') cpqSsBackplaneVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneVersion.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneVersion.setDescription('Storage System Backplane Version. This is the version of the drive box back plane.') cpqSsBackplaneVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneVendor.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneVendor.setDescription("Storage System Backplane Vendor This is the storage box's vendor name. This can be used for identification purposes.") cpqSsBackplaneModel = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 17))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneModel.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneModel.setDescription("Storage System Backplane Model. This is a description of the storage system's model. This can be used for identification purposes.") cpqSsBackplaneFanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("notInstalled", 2), ("ok", 3), ("degraded", 4), ("failed", 5), ("notSupported", 6), ("degraded-Fan1Failed", 7), ("degraded-Fan2Failed", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneFanStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneFanStatus.setDescription('Storage System Backplane Fan Status. This is the current status of the fans in the storage system. This value will be one of the following: other(1) The agent is unable to determine if this storage system has fan monitoring. notInstalled(2) This unit does not support fan monitoring. ok(3) All fans are working normally. degraded(4) At least one storage system fan has failed, but there is still sufficient cooling capacity to allow the system to continue. The fan should be replaced. failed(5) One or more storage system fans have failed. The fan(s) should be replaced immediately to avoid hardware damage. notSupported(6) The storage system does not support reporting fan status through this backplane. The fan status is reported through the first backplane on this storage system. degraded-Fan1Failed(7) Fan 1 has failed, but there is still sufficient cooling capacity to allow the system to continue. The fan should be replaced. degraded-Fan2Failed(8) Fan 2 has failed, but there is still sufficient cooling capacity to allow the system to continue. The fan should be replaced.') cpqSsBackplaneTempStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("noTemp", 2), ("ok", 3), ("degraded", 4), ("failed", 5), ("notSupported", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneTempStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneTempStatus.setDescription('Storage System Backplane Fan Status. This value will be one of the following: other(1) The agent is unable to determine if this storage system has temperature monitoring. noTemp(2) This unit does not support temperature monitoring. ok(3) The temperature is within normal operating range. degraded(4) The temperature is outside of normal operating range. failed(5) The temperature could permanently damage the system. notSupported(6) The storage system does not support reporting temperature status through this backplane. The temperature status is reported through the first backplane on this storage system.') cpqSsBackplaneFtpsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("noFltTolPower", 2), ("ok", 3), ("degraded", 4), ("failed", 5), ("notSupported", 6), ("noFltTolPower-Bay1Missing", 7), ("noFltTolPower-Bay2Missing", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneFtpsStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneFtpsStatus.setDescription('Storage System Backplane Fault Tolerant Power Supply Status. This value specifies the overall status of the redundant power supply in a drive box. This value will be one of the following: other(1) The agent is unable to determine if this storage system has redundant power supplies. noFltTolPower(2) This unit does not have a redundant supply. ok(3) There are no detected power supply failures. degraded(4) One of the power supply units has failed. failed(5) All of the power supplies have failed. A status of failed can not currently be determined. notSupported(6) The storage system does not support reporting fault tolerant power supply status through this backplane. The fault tolerant power supply status is reported through the first backplane on this storage system. noFltTolPower-Bay1Missing(7), This unit does not have a redundant supply. The power supply in bay 1 is missing. noFltTolPower-Bay2Missing(8) This unit does not have a redundant supply. The power supply in bay 2 is missing.') cpqSsBackplaneSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneSerialNumber.setDescription('Storage System Backplane Serial Number. This is the storage system backplane serial number which is normally displayed on the front bezel. This can be used for identification purposes.') cpqSsBackplanePlacement = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("internal", 2), ("external", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplanePlacement.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplanePlacement.setDescription('Storage System Backplane Placement. The following values are defined: other(1) The agent is unable to determine if this storage system is located internal or external to the system chassis. internal(2) The storage system is located in the system chassis. external(3) The storage system is located outside the system chassis in an expansion box.') cpqSsBackplaneBoardRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneBoardRevision.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneBoardRevision.setDescription('Storage System Backplane Board Revision. This is the board revision of this storage system backplane.') cpqSsBackplaneSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ultra3", 2), ("ultra320", 3), ("sata", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneSpeed.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneSpeed.setDescription('Storage System Backplane Speed. The following values are defined: other(1) The agent is unable to determine the backplane speed for this storage system. ultra3(2) This storage system is capable of Ultra3 speeds. ultra320(3) This storage system is capable of Ultra320 speeds. sata(4) This storage system is capable of SATA speeds.') cpqSsBackplaneConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("scsiAttached", 2), ("sasAttached", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneConnectionType.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneConnectionType.setDescription('Backlane Box Connection Type. The following values are defined: other(1) The agent is unable to determine the type of connection to this backplane. scsiAttached(2) This backplane is attached to the host via SCSI. sasAttached(3) This backplane is attached to the host via SAS.') cpqSsBackplaneConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneConnector.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneConnector.setDescription('Backplane Connector. This is the connector to which the backplane is attached. If the backplane connector cannot be determined, the agent will return a NULL string.') cpqSsBackplaneOnConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneOnConnector.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneOnConnector.setDescription('Backplane on Connector. The backplane on connector indicates to which backplane instance this table entry belongs. The instances start at one and increment for each backplane attached to a connector.') cpqSsBackplaneLocationString = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 6, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsBackplaneLocationString.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsBackplaneLocationString.setDescription('Backplane Location String. This string describes the location of the backplane in relation to the controller to which it is attached. If the location string cannot be determined, the agent will return a NULL string.') cpqSsFibreAttachmentTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7), ) if mibBuilder.loadTexts: cpqSsFibreAttachmentTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentTable.setDescription('Storage System Fibre Attachment Table.') cpqSsFibreAttachmentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsFibreAttachmentIndex")) if mibBuilder.loadTexts: cpqSsFibreAttachmentEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentEntry.setDescription('Storage System Fibre Attachment Entry.') cpqSsFibreAttachmentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFibreAttachmentIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentIndex.setDescription('Storage System Fibre Attachment Index. The index uniquely identifies a Fibre Attachment association entry.') cpqSsFibreAttachmentHostControllerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFibreAttachmentHostControllerIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentHostControllerIndex.setDescription('Storage System Fibre Attachment Host Controller Index. The host controller index indicates which host controller is associated with this entry. This is equal to cpqFcaHostCntlrIndex, from the Fibre Channel Host Controller Table.') cpqSsFibreAttachmentHostControllerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFibreAttachmentHostControllerPort.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentHostControllerPort.setDescription('Storage System Fibre Attachment Host Controller Port. This is the Fibre port number of the host controller. For each host controller, the port number starts at 1 and increments for each port. This is currently set to 1.') cpqSsFibreAttachmentDeviceType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("storageBox", 2), ("tapeController", 3), ("fibreChannelSwitch", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFibreAttachmentDeviceType.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentDeviceType.setDescription('Storage System Fibre Attachment Device Type. This is the type of device associated with this entry. The following values are defined: other(1) The agent is unable to determine if the type of this device. storageBox(2) The device is a Fibre attached storage system. tapeController(3) The device is a Fibre attached tape controller. fibreChannelSwitch(4) The device is a Fibre channel switch.') cpqSsFibreAttachmentDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFibreAttachmentDeviceIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentDeviceIndex.setDescription('Storage System Fibre Attachment Device Index. The is the index for the Fibre attached device. For a Fibre attached storage system, this is equal to cpqSsChassisIndex from the Storage System Chassis Table. For a Fibre attached tape controller, this is equal to cpqFcTapeCntlrIndex from the Fibre Channel Tape Controller Table. For a Fibre channel switch, this is equal to cpqFcSwitchIndex from the Fibre Channel Switch Table.') cpqSsFibreAttachmentDevicePort = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 7, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsFibreAttachmentDevicePort.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsFibreAttachmentDevicePort.setDescription('Storage System Fibre Attachment Device Port. This is the Fibre port on a device. For a Fibre attached storage system, this is equal to cpqFcaCntlrBoxIoSlot from the Fibre Channel Array Controller Table. For a Fibre attached tape controller, this is currently set to 1. For a Fibre channel switch, this is currently set to 1.') cpqSsScsiAttachmentTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8), ) if mibBuilder.loadTexts: cpqSsScsiAttachmentTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentTable.setDescription('Storage System SCSI Attachment Table.') cpqSsScsiAttachmentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsScsiAttachmentIndex")) if mibBuilder.loadTexts: cpqSsScsiAttachmentEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentEntry.setDescription('Storage System SCSI Attachment Entry.') cpqSsScsiAttachmentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentIndex.setDescription('Storage System SCSI Attachment Index. The index uniquely identifies a SCSI Attachment association entry.') cpqSsScsiAttachmentControllerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerIndex.setDescription('Storage System SCSI Attachment Controller Index. The controller index indicates which internal array controller is associated with this entry. This is equal to cpqDaCntlrIndex, from the Array Controller Table.') cpqSsScsiAttachmentControllerPort = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerPort.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerPort.setDescription('Storage System SCSI Attachment Controller Port. The controller port indicates which SCSI port of an internal controller is associated with this entry.') cpqSsScsiAttachmentControllerTarget = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerTarget.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerTarget.setDescription('Storage System SCSI Attachment Controller Target. The controller target indicates which SCSI target is associated with this entry.') cpqSsScsiAttachmentControllerLun = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerLun.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentControllerLun.setDescription('Storage System SCSI Attachment Controller Lun. The controller Lun indicates which SCSI Lun is associated with this entry.') cpqSsScsiAttachmentChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentChassisIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentChassisIndex.setDescription('Storage System SCSI Attachment Chassis Index. The is the index for the SCSI attached storage system. This is equal to cpqSsChassisIndex from the Storage System Chassis Table.') cpqSsScsiAttachmentChassisIoSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentChassisIoSlot.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentChassisIoSlot.setDescription('Storage System SCSI Attachment Chassis I/O Slot. This is the I/O slot in the SCSI attached storage system. This is equal to cpqFcaCntlrBoxIoSlot from the Fibre Channel Array Controller Table.') cpqSsScsiAttachmentPathStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("offline", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentPathStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentPathStatus.setDescription('Storage System SCSI Attachment Path Status. This is the status of this path to the chassis. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The path is operating normally. offline(3) The path is offline.') cpqSsScsiAttachmentPathCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 2, 8, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsScsiAttachmentPathCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsScsiAttachmentPathCondition.setDescription('Storage System SCSI Attachment Path Condition. This is the condition of this path to the chassis.') cpqSsDrvBoxPathTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 2, 3), ) if mibBuilder.loadTexts: cpqSsDrvBoxPathTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathTable.setDescription('Drive Box Access Path Table.') cpqSsDrvBoxPathEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsDrvBoxPathCntlrIndex"), (0, "CPQSTSYS-MIB", "cpqSsDrvBoxPathBoxIndex"), (0, "CPQSTSYS-MIB", "cpqSsDrvBoxPathIndex")) if mibBuilder.loadTexts: cpqSsDrvBoxPathEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathEntry.setDescription('Drive Box Access Path Entry.') cpqSsDrvBoxPathCntlrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathCntlrIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathCntlrIndex.setDescription('Drive Box Access Path Controller Index. The controller index indicates to which adapter card instance this table entry belongs.') cpqSsDrvBoxPathBoxIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathBoxIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathBoxIndex.setDescription('Drive Box Access Path Box Index. The box index indicates to which box instance on an adapter card this table entry belongs. The value of this index is the same as cpqSsDrvBoxBusIndex used under the drive box table.') cpqSsDrvBoxPathIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathIndex.setDescription('Drive Box Access Path Index. This path index keeps track of multiple instances of access paths from a controller to a storage box. This number, along with the cpqSsDrvBoxPathCntlrIndex and cpqSsDrvBoxPathDrvIndex uniquely identify a specific storage box access path') cpqSsDrvBoxPathStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("linkDown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathStatus.setDescription('Drive Box Access Path Status. This shows the status of the drive box access path. The following values are valid: Other (1) Indicates that the instrument agent can not determine the status of this access path. OK (2) Indicates the access path is functioning properly. Link Down (3) Indicates that the controller can no longer access the drive box through this path.') cpqSsDrvBoxPathCurrentRole = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("active", 2), ("alternate", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathCurrentRole.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathCurrentRole.setDescription('Drive Box Access Path Current Role. This shows the current role of drive box acess path. The following values are valid: Other (1) Indicates that the instrument agent does not recognize the role of this access path. Active (2) Indicates that this path is currently the default active I/O path to access the drive box from the controller. Alternate (3) Indicates that this path is currently the alternate I/O path to access the physical drive from the controller.') cpqSsDrvBoxPathHostConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathHostConnector.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathHostConnector.setDescription('Drive Box Access Path Host Connector. This is the host connector to which the access path is ultimately attached. If the host connector cannot be determined, the agent will return a NULL string.') cpqSsDrvBoxPathBoxOnConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathBoxOnConnector.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathBoxOnConnector.setDescription('Drive Box Access Path Box on Connector. The box on connector indicates to which box instance this access path belongs.') cpqSsDrvBoxPathLocationString = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 2, 3, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsDrvBoxPathLocationString.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsDrvBoxPathLocationString.setDescription('Drive Box Access Path Location String. This string describes drive box access path in relation to the controller to which it is attached. If the location string cannot be determined, the agent will return a NULL string.') cpqSsTrapPkts = MibScalar((1, 3, 6, 1, 4, 1, 232, 8, 3, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTrapPkts.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsTrapPkts.setDescription('The total number of trap packets issued by the enterprise since the instrument agent was loaded.') cpqSsTrapLogMaxSize = MibScalar((1, 3, 6, 1, 4, 1, 232, 8, 3, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTrapLogMaxSize.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsTrapLogMaxSize.setDescription('The maximum number of entries that will currently be kept in the trap log. If the maximum size has been reached and a new trap occurs the oldest trap will be removed.') cpqSsTrapLogTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 3, 3), ) if mibBuilder.loadTexts: cpqSsTrapLogTable.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsTrapLogTable.setDescription('An ordered list of trap log entries (conceptually a queue). The trap log entries will be kept in the order in which they were generated with the most recent trap at index 1 and the oldest trap entry at index trapLogMaxSize. If the maximum number size has been reached and a new trap occurs the oldest trap will be removed when the new trap is added so the trapMaxLogSize is not exceeded.') cpqSsTrapLogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 3, 3, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsTrapLogIndex")) if mibBuilder.loadTexts: cpqSsTrapLogEntry.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsTrapLogEntry.setDescription('A description of a trap event.') cpqSsTrapLogIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTrapLogIndex.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsTrapLogIndex.setDescription("The value of this object uniquely identifies this trapLogEntry at this time. The most recent trap will have an index of 1 and the oldest trap will have an index of trapLogMaxSize. Because of the queue-like nature of the trapLog this particular trap event's index will change as new traps are issued.") cpqSsTrapType = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 8001, 8002, 8003, 8004, 8005, 8006))).clone(namedValues=NamedValues(("cpqSsFanStatusChange", 1), ("cpqSs2FanStatusChange", 8001), ("cpqSsTempFailed", 8002), ("cpqSsTempDegraded", 8003), ("cpqSsTempOk", 8004), ("cpqSsSidePanelInPlace", 8005), ("cpqSsSidePanelRemoved", 8006)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTrapType.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsTrapType.setDescription('The type of the trap event that this entry describes. This number refers to an entry in a list of traps enumerating the possible traps the agent may issue.') cpqSsTrapTime = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 3, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsTrapTime.setStatus('deprecated') if mibBuilder.loadTexts: cpqSsTrapTime.setDescription('The time of the trap event that this entry describes. The time is given in year (first octet), month, day of month, hour, minute, second (last octet) order. Each octet gives the value in BCD.') cpqSsRaidSystemTable = MibTable((1, 3, 6, 1, 4, 1, 232, 8, 4, 1), ) if mibBuilder.loadTexts: cpqSsRaidSystemTable.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemTable.setDescription('RAID Storage System Table.') cpqSsRaidSystemEntry = MibTableRow((1, 3, 6, 1, 4, 1, 232, 8, 4, 1, 1), ).setIndexNames((0, "CPQSTSYS-MIB", "cpqSsRaidSystemIndex")) if mibBuilder.loadTexts: cpqSsRaidSystemEntry.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemEntry.setDescription('RAID Storage System Entry.') cpqSsRaidSystemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsRaidSystemIndex.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemIndex.setDescription('RAID Storage System Index. The RAID Storage System index indicates to which storage system instance this table entry belongs.') cpqSsRaidSystemName = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 4, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsRaidSystemName.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemName.setDescription("RAID Storage System Name. This is a description of the RAID Storage System's name. This can be used for identification purposes.") cpqSsRaidSystemStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("agentNotRunning", 2), ("good", 3), ("warning", 4), ("communicationLoss", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsRaidSystemStatus.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemStatus.setDescription('RAID Storage System Status. This is the current status of the RAID Storage System. This value will be one of the following: other(1) Indicates that the agent does not recognize the state of the RAID Storage System. You may need to upgrade the agent. agentNotRunning(2) Indicates that the Storage Work agent is not running. You need to restart the Storage Work agent. good(3) Indicates that the system is operating properly. warning(4) At least one component of the system failed. communicationLoss(5) The RAID Storage System has a cable or communication problem. Please check all cable connects to the host server.') cpqSsRaidSystemCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("ok", 2), ("degraded", 3), ("failed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsRaidSystemCondition.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemCondition.setDescription('RAID Storage System Condition. This is the overall condition of the storage system. The following values are defined: other(1) The agent does not recognize the status. You may need to upgrade your software. ok(2) The storage system is operating normally. No user action is required. degraded(3) The storage system is degraded. At least one component of the storage system failed. failed(4) The storage system has failed.') cpqSsRaidSystemCntlr1SerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 4, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsRaidSystemCntlr1SerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemCntlr1SerialNumber.setDescription("RAID Storage System Controller 1 Serial Number. This is the controller number 1's serial number which is normally display on the front panel. This can be used for identification purposes.") cpqSsRaidSystemCntlr2SerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 232, 8, 4, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpqSsRaidSystemCntlr2SerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: cpqSsRaidSystemCntlr2SerialNumber.setDescription("RAID Storage System Controller 2 Serial Number. This is the controller number 2's serial number which is normally display on the front panel. This can be used for identification purposes.") cpqSsFanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232, 8) + (0,1)).setObjects(("CPQSTSYS-MIB", "cpqSsBoxFanStatus")) if mibBuilder.loadTexts: cpqSsFanStatusChange.setDescription('Storage System fan status change. The agent has detected a change in the Fan Status of a storage system. The variable cpqSsBoxFanStatus indicates the current fan status.') cpqSs2FanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8001)).setObjects(("CPQSTSYS-MIB", "cpqSsBoxFanStatus")) if mibBuilder.loadTexts: cpqSs2FanStatusChange.setDescription('Storage System fan status change. The agent has detected a change in the Fan Status of a storage system. The variable cpqSsBoxFanStatus indicates the current fan status.') cpqSsTempFailed = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8002)).setObjects(("CPQSTSYS-MIB", "cpqSsBoxTempStatus")) if mibBuilder.loadTexts: cpqSsTempFailed.setDescription('Storage System temperature failure. The agent has detected that a temperature status has been set to failed. The storage system will be shutdown.') cpqSsTempDegraded = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8003)).setObjects(("CPQSTSYS-MIB", "cpqSsBoxTempStatus")) if mibBuilder.loadTexts: cpqSsTempDegraded.setDescription("Storage System temperature degraded. The agent has detected a temperature status that has been set to degraded. The storage system's temperature is outside of the normal operating range.") cpqSsTempOk = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8004)).setObjects(("CPQSTSYS-MIB", "cpqSsBoxTempStatus")) if mibBuilder.loadTexts: cpqSsTempOk.setDescription("Storage System temperature ok. The temperature status has been set to OK. The storage system's temperature has returned to normal operating range. It may be reactivated by the administrator.") cpqSsSidePanelInPlace = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8005)).setObjects(("CPQSTSYS-MIB", "cpqSsBoxSidePanelStatus")) if mibBuilder.loadTexts: cpqSsSidePanelInPlace.setDescription("Storage System side panel is in place. The side panel status has been set to in place. The storage system's side panel has returned to a properly installed state.") cpqSsSidePanelRemoved = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8006)).setObjects(("CPQSTSYS-MIB", "cpqSsBoxSidePanelStatus")) if mibBuilder.loadTexts: cpqSsSidePanelRemoved.setDescription("Storage System side panel is removed. The side panel status has been set to removed. The storage system's side panel is not in a properly installed state. This situation may result in improper cooling of the drives in the storage system due to air flow changes caused by the missing side panel.") cpqSsPwrSupplyDegraded = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8007)) if mibBuilder.loadTexts: cpqSsPwrSupplyDegraded.setDescription('A storage system power supply status has been set to degraded.') cpqSs3FanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8008)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxFanStatus")) if mibBuilder.loadTexts: cpqSs3FanStatusChange.setDescription('Storage System fan status change. The agent has detected a change in the Fan Status of a storage system. The variable cpqSsBoxFanStatus indicates the current fan status. User Action: If the fan status is degraded or failed, replace any failed fans.') cpqSs3TempFailed = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8009)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxTempStatus")) if mibBuilder.loadTexts: cpqSs3TempFailed.setDescription('Storage System temperature failure. The agent has detected that a temperature status has been set to failed. The storage system will be shutdown. User Action: Shutdown the storage system as soon as possible. Insure that the storage system environment is being cooled properly and that no components are overheated.') cpqSs3TempDegraded = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8010)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxTempStatus")) if mibBuilder.loadTexts: cpqSs3TempDegraded.setDescription("Storage System temperature degraded. The agent has detected a temperature status that has been set to degraded. The storage system's temperature is outside of the normal operating range. User Action: Shutdown the storage system as soon as possible. Insure that the storage system environment is being cooled properly and that no components are overheated.") cpqSs3TempOk = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8011)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxTempStatus")) if mibBuilder.loadTexts: cpqSs3TempOk.setDescription("Storage System temperature ok. The temperature status has been set to OK. The storage system's temperature has returned to normal operating range. It may be reactivated by the administrator. User Action: None.") cpqSs3SidePanelInPlace = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8012)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxSidePanelStatus")) if mibBuilder.loadTexts: cpqSs3SidePanelInPlace.setDescription("Storage System side panel is in place. The side panel status has been set to in place. The storage system's side panel has returned to a properly installed state. User Action: None.") cpqSs3SidePanelRemoved = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8013)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxSidePanelStatus")) if mibBuilder.loadTexts: cpqSs3SidePanelRemoved.setDescription("Storage System side panel is removed. The side panel status has been set to removed. The storage system's side panel is not in a properly installed state. This situation may result in improper cooling of the drives in the storage system due to air flow changes caused by the missing side panel. User Action: Replace the storage system side panel.") cpqSs3PwrSupplyDegraded = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8014)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags")) if mibBuilder.loadTexts: cpqSs3PwrSupplyDegraded.setDescription('A storage system power supply status has been set to degraded.') cpqSs4PwrSupplyDegraded = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8015)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxFltTolPwrSupplyStatus")) if mibBuilder.loadTexts: cpqSs4PwrSupplyDegraded.setDescription('A storage system power supply status has been set to degraded. User Action: Take action to restore power or replace any failed storage system power supply.') cpqSsExFanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8016)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsFanModuleLocation"), ("CPQSTSYS-MIB", "cpqSsFanModuleStatus")) if mibBuilder.loadTexts: cpqSsExFanStatusChange.setDescription('Storage system fan status change. The agent has detected a change in the Fan Module Status of a storage system. The variable cpqSsFanModuleStatus indicates the current fan status. User Action: If the fan status is degraded or failed, replace any failed fans.') cpqSsExPowerSupplyStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8017)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyBay"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyStatus")) if mibBuilder.loadTexts: cpqSsExPowerSupplyStatusChange.setDescription('Storage system power supply status change. The agent has detected a change in the power supply status of a storage system. The variable cpqSsPowerSupplyStatus indicates the current status. User Action: If the power supply status is failed, take action to restore power or replace the failed power supply.') cpqSsExPowerSupplyUpsStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8018)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyBay"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyUpsStatus")) if mibBuilder.loadTexts: cpqSsExPowerSupplyUpsStatusChange.setDescription('Storage system power supply UPS status change. The agent has detected a change status of a UPS attached to a storage system power supply. The variable cpqSsPowerSupplyUpsStatus indicates the current status. User Action: If the UPS status is powerFailed(4) or batteryLow(5), take action to restore power to the UPS.') cpqSsExTempSensorStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8019)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsTempSensorLocation"), ("CPQSTSYS-MIB", "cpqSsTempSensorStatus"), ("CPQSTSYS-MIB", "cpqSsTempSensorCurrentValue")) if mibBuilder.loadTexts: cpqSsExTempSensorStatusChange.setDescription('Storage system temperature sensor status change. The agent has detected a change in the status of a storage system temperature sensor. The variable cpqSsTempSensorStatus indicates the current status. User Action: If the temperature status is degraded or failed, shutdown the storage system as soon as possible. Insure that the storage system environment is being cooled properly and that no components are overheated.') cpqSsEx2FanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8020)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsFanModuleLocation"), ("CPQSTSYS-MIB", "cpqSsFanModuleStatus"), ("CPQSTSYS-MIB", "cpqSsFanModuleSerialNumber"), ("CPQSTSYS-MIB", "cpqSsFanModuleBoardRevision")) if mibBuilder.loadTexts: cpqSsEx2FanStatusChange.setDescription('Storage system fan status change. The agent has detected a change in the fan module status of a storage system. The variable cpqSsFanModuleStatus indicates the current fan status. User Action: If the fan status is degraded or failed, replace any failed fans.') cpqSsEx2PowerSupplyStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8021)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyBay"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyStatus"), ("CPQSTSYS-MIB", "cpqSsPowerSupplySerialNumber"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyBoardRevision"), ("CPQSTSYS-MIB", "cpqSsPowerSupplyFirmwareRevision")) if mibBuilder.loadTexts: cpqSsEx2PowerSupplyStatusChange.setDescription('Storage system power supply status change. The agent has detected a change in the power supply status of a storage system. The variable cpqSsPowerSupplyStatus indicates the current status. User Action: If the power supply status is failed, take action to restore power or replace the failed power supply.') cpqSsExBackplaneFanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8022)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsBackplaneIndex"), ("CPQSTSYS-MIB", "cpqSsBackplaneVendor"), ("CPQSTSYS-MIB", "cpqSsBackplaneModel"), ("CPQSTSYS-MIB", "cpqSsBackplaneSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBackplaneFanStatus")) if mibBuilder.loadTexts: cpqSsExBackplaneFanStatusChange.setDescription('Storage system fan status change. The agent has detected a change in the fan status of a storage system. The variable cpqSsBackplaneFanStatus indicates the current fan status. User Action: If the fan status is degraded or failed, replace any failed fans.') cpqSsExBackplaneTempStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8023)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsBackplaneIndex"), ("CPQSTSYS-MIB", "cpqSsBackplaneVendor"), ("CPQSTSYS-MIB", "cpqSsBackplaneModel"), ("CPQSTSYS-MIB", "cpqSsBackplaneSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBackplaneTempStatus")) if mibBuilder.loadTexts: cpqSsExBackplaneTempStatusChange.setDescription('Storage system temperature status change. The agent has detected a change in the status of the temperature in a storage system. The variable cpqSsBackplaneTempStatus indicates the current status. User Action: If the temperature status is degraded or failed, shutdown the storage system as soon as possible. Insure that the storage system environment is being cooled properly and that no components are overheated.') cpqSsExBackplanePowerSupplyStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8024)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsBackplaneIndex"), ("CPQSTSYS-MIB", "cpqSsBackplaneVendor"), ("CPQSTSYS-MIB", "cpqSsBackplaneModel"), ("CPQSTSYS-MIB", "cpqSsBackplaneSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBackplaneFtpsStatus")) if mibBuilder.loadTexts: cpqSsExBackplanePowerSupplyStatusChange.setDescription('Storage system power supply status change. The agent has detected a change in the power supply status of a storage system. The variable cpqSsBackplaneFtpsStatus indicates the current status. User Action: If the power supply status is degraded, take action to restore power or replace the failed power supply.') cpqSsExRecoveryServerStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8025)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsChassisName"), ("CPQSTSYS-MIB", "cpqSsChassisTime"), ("CPQSTSYS-MIB", "cpqSsChassisRsoStatus"), ("CPQSTSYS-MIB", "cpqSsChassisIndex")) if mibBuilder.loadTexts: cpqSsExRecoveryServerStatusChange.setDescription('Storage system recovery server option status change. The agent has detected a change in the recovery server option status of a storage system. The variable cpqSsChassisRsoStatus indicates the current status. User Action: If the RSO status is noSecondary(6) or linkDown(7), insure the secondary server is operational and all cables are connected properly. If the RSO status is secondaryRunningAuto(8) or secondaryRunningUser(9), examine the the primary server for failed components.') cpqSs5FanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8026)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrHwLocation"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrIndex"), ("CPQSTSYS-MIB", "cpqSsBoxBusIndex"), ("CPQSTSYS-MIB", "cpqSsBoxVendor"), ("CPQSTSYS-MIB", "cpqSsBoxModel"), ("CPQSTSYS-MIB", "cpqSsBoxSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBoxFanStatus")) if mibBuilder.loadTexts: cpqSs5FanStatusChange.setDescription('Storage System fan status change. The agent has detected a change in the Fan Status of a storage system. The variable cpqSsBoxFanStatus indicates the current fan status. User Action: If the fan status is degraded or failed, replace any failed fans.') cpqSs5TempStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8027)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrHwLocation"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrIndex"), ("CPQSTSYS-MIB", "cpqSsBoxBusIndex"), ("CPQSTSYS-MIB", "cpqSsBoxVendor"), ("CPQSTSYS-MIB", "cpqSsBoxModel"), ("CPQSTSYS-MIB", "cpqSsBoxSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBoxTempStatus")) if mibBuilder.loadTexts: cpqSs5TempStatusChange.setDescription('Storage System temperature status change. The agent has detected a change in the temperature status of a storage system. The variable cpqSsBoxTempStatus indicates the current temperature status. User Action: If the temperature status is degraded or failed, shutdown the storage system as soon as possible. Insure that the storage system environment is being cooled properly and that no components are overheated.') cpqSs5PwrSupplyStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8028)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrHwLocation"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrIndex"), ("CPQSTSYS-MIB", "cpqSsBoxBusIndex"), ("CPQSTSYS-MIB", "cpqSsBoxVendor"), ("CPQSTSYS-MIB", "cpqSsBoxModel"), ("CPQSTSYS-MIB", "cpqSsBoxSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBoxFltTolPwrSupplyStatus")) if mibBuilder.loadTexts: cpqSs5PwrSupplyStatusChange.setDescription('Storage system power supply status change. The agent has detected a change in the power supply status of a storage system. The variable cpqSsBoxFltTolPwrSupplyStatus indicates the current power supply status. User Action: If the power supply status is degraded, take action to restore power or replace the failed power supply.') cpqSs6FanStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8029)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrHwLocation"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrIndex"), ("CPQSTSYS-MIB", "cpqSsBoxBusIndex"), ("CPQSTSYS-MIB", "cpqSsBoxVendor"), ("CPQSTSYS-MIB", "cpqSsBoxModel"), ("CPQSTSYS-MIB", "cpqSsBoxSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBoxFanStatus"), ("CPQSTSYS-MIB", "cpqSsBoxLocationString")) if mibBuilder.loadTexts: cpqSs6FanStatusChange.setDescription('Storage System fan status change. The agent has detected a change in the Fan Status of a storage system. The variable cpqSsBoxFanStatus indicates the current fan status. User Action: If the fan status is degraded or failed, replace any failed fans.') cpqSs6TempStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8030)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrHwLocation"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrIndex"), ("CPQSTSYS-MIB", "cpqSsBoxBusIndex"), ("CPQSTSYS-MIB", "cpqSsBoxVendor"), ("CPQSTSYS-MIB", "cpqSsBoxModel"), ("CPQSTSYS-MIB", "cpqSsBoxSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBoxTempStatus"), ("CPQSTSYS-MIB", "cpqSsBoxLocationString")) if mibBuilder.loadTexts: cpqSs6TempStatusChange.setDescription('Storage System temperature status change. The agent has detected a change in the temperature status of a storage system. The variable cpqSsBoxTempStatus indicates the current temperature status. User Action: If the temperature status is degraded or failed, shutdown the storage system as soon as possible. Insure that the storage system environment is being cooled properly and that no components are overheated.') cpqSs6PwrSupplyStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 232) + (0,8031)).setObjects(("SNMPv2-MIB", "sysName"), ("CPQHOST-MIB", "cpqHoTrapFlags"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrHwLocation"), ("CPQSTSYS-MIB", "cpqSsBoxCntlrIndex"), ("CPQSTSYS-MIB", "cpqSsBoxBusIndex"), ("CPQSTSYS-MIB", "cpqSsBoxVendor"), ("CPQSTSYS-MIB", "cpqSsBoxModel"), ("CPQSTSYS-MIB", "cpqSsBoxSerialNumber"), ("CPQSTSYS-MIB", "cpqSsBoxFltTolPwrSupplyStatus"), ("CPQSTSYS-MIB", "cpqSsBoxLocationString")) if mibBuilder.loadTexts: cpqSs6PwrSupplyStatusChange.setDescription('Storage system power supply status change. The agent has detected a change in the power supply status of a storage system. The variable cpqSsBoxFltTolPwrSupplyStatus indicates the current power supply status. User Action: If the power supply status is degraded, take action to restore power or replace the failed power supply.') mibBuilder.exportSymbols("CPQSTSYS-MIB", cpqSsBackplaneVersion=cpqSsBackplaneVersion, cpqSsIoSlotControllerType=cpqSsIoSlotControllerType, cpqSsBoxFltTolPwrSupplyStatus=cpqSsBoxFltTolPwrSupplyStatus, cpqSsExRecoveryServerStatusChange=cpqSsExRecoveryServerStatusChange, cpqSsIoSlotIndex=cpqSsIoSlotIndex, cpqSsChassisPowerBoardRev=cpqSsChassisPowerBoardRev, cpqSsTempSensorLocation=cpqSsTempSensorLocation, cpqSsPowerSupplyCondition=cpqSsPowerSupplyCondition, cpqSsChassisScsiBoardRev=cpqSsChassisScsiBoardRev, cpqSsPowerSupplyChassisIndex=cpqSsPowerSupplyChassisIndex, cpqSsRaidSystemCondition=cpqSsRaidSystemCondition, cpqSsDrvBoxPathBoxOnConnector=cpqSsDrvBoxPathBoxOnConnector, cpqSsBoxSidePanelStatus=cpqSsBoxSidePanelStatus, cpqSsExTempSensorStatusChange=cpqSsExTempSensorStatusChange, cpqSsChassisOverallCondition=cpqSsChassisOverallCondition, cpqSsBoxPlacement=cpqSsBoxPlacement, cpqSsTrapTime=cpqSsTrapTime, cpqSsBackplaneConnectionType=cpqSsBackplaneConnectionType, cpqSs5TempStatusChange=cpqSs5TempStatusChange, cpqSsChassisPowerBoardSerNum=cpqSsChassisPowerBoardSerNum, cpqSsTrapLogTable=cpqSsTrapLogTable, cpqSs4PwrSupplyDegraded=cpqSs4PwrSupplyDegraded, cpqSsBackplaneIndex=cpqSsBackplaneIndex, cpqSs3SidePanelInPlace=cpqSs3SidePanelInPlace, cpqSsFanModuleSerialNumber=cpqSsFanModuleSerialNumber, cpqSsPowerSupplyTable=cpqSsPowerSupplyTable, cpqSsScsiAttachmentPathStatus=cpqSsScsiAttachmentPathStatus, cpqSsTempSensorStatus=cpqSsTempSensorStatus, cpqSsTempSensorEntry=cpqSsTempSensorEntry, cpqSsDrvBoxPathStatus=cpqSsDrvBoxPathStatus, cpqSsBoxBusIndex=cpqSsBoxBusIndex, cpqSsDrvBoxPathLocationString=cpqSsDrvBoxPathLocationString, cpqSsPwrSupplyDegraded=cpqSsPwrSupplyDegraded, cpqSsBackplaneSerialNumber=cpqSsBackplaneSerialNumber, cpqSsFibreAttachmentHostControllerPort=cpqSsFibreAttachmentHostControllerPort, cpqSsChassisProductId=cpqSsChassisProductId, cpqSsBoxType=cpqSsBoxType, cpqSsBoxCondition=cpqSsBoxCondition, cpqSsBackplaneVendor=cpqSsBackplaneVendor, cpqSsBackplaneOnConnector=cpqSsBackplaneOnConnector, cpqSsIoSlotEntry=cpqSsIoSlotEntry, cpqSsBoxCntlrHwLocation=cpqSsBoxCntlrHwLocation, cpqSsDrvBoxEntry=cpqSsDrvBoxEntry, cpqSsFibreAttachmentDevicePort=cpqSsFibreAttachmentDevicePort, cpqSsFanModuleEntry=cpqSsFanModuleEntry, cpqSsDrvBoxPathCurrentRole=cpqSsDrvBoxPathCurrentRole, cpqSsFanModuleCondition=cpqSsFanModuleCondition, cpqSsChassisRsoCondition=cpqSsChassisRsoCondition, cpqSsPowerSupplySerialNumber=cpqSsPowerSupplySerialNumber, cpqSsFanModuleStatus=cpqSsFanModuleStatus, cpqSsBoxModel=cpqSsBoxModel, cpqSsEx2FanStatusChange=cpqSsEx2FanStatusChange, cpqSsBackplaneCondition=cpqSsBackplaneCondition, cpqSsBoxBackplaneSpeed=cpqSsBoxBackplaneSpeed, cpqSsBackplaneConnector=cpqSsBackplaneConnector, cpqSsFibreAttachmentDeviceIndex=cpqSsFibreAttachmentDeviceIndex, cpqSsScsiAttachmentPathCondition=cpqSsScsiAttachmentPathCondition, cpqSsBoxExtended=cpqSsBoxExtended, cpqSsChassisPreferredPathMode=cpqSsChassisPreferredPathMode, cpqSsChassisSystemBoardRev=cpqSsChassisSystemBoardRev, cpqSsTempSensorHysteresisValue=cpqSsTempSensorHysteresisValue, cpqSsFibreAttachmentTable=cpqSsFibreAttachmentTable, cpqSsRaidSystemIndex=cpqSsRaidSystemIndex, cpqSsChassisFcaLogicalDriveCondition=cpqSsChassisFcaLogicalDriveCondition, cpqSsChassisEntry=cpqSsChassisEntry, cpqSsChassisBackplaneCondition=cpqSsChassisBackplaneCondition, cpqSsMibCondition=cpqSsMibCondition, cpqSsBackplaneSpeed=cpqSsBackplaneSpeed, cpqSsDrvBoxPathIndex=cpqSsDrvBoxPathIndex, cpqSsChassisFcaPhysDrvCondition=cpqSsChassisFcaPhysDrvCondition, cpqSsChassisFanCondition=cpqSsChassisFanCondition, cpqSsMibRevMajor=cpqSsMibRevMajor, cpqSsChassisScsiIoModuleType=cpqSsChassisScsiIoModuleType, cpqSsDrvBoxPathTable=cpqSsDrvBoxPathTable, cpqSsChassisIndex=cpqSsChassisIndex, cpqSsChassisFcaTapeDrvCondition=cpqSsChassisFcaTapeDrvCondition, cpqSsBackplaneChassisIndex=cpqSsBackplaneChassisIndex, cpqSsFanModuleLocation=cpqSsFanModuleLocation, cpqSsBackplaneFWRev=cpqSsBackplaneFWRev, cpqSsBoxTempStatus=cpqSsBoxTempStatus, cpqSsPowerSupplyFirmwareRevision=cpqSsPowerSupplyFirmwareRevision, cpqSsBackplanePlacement=cpqSsBackplanePlacement, cpqSsBoxCntlrIndex=cpqSsBoxCntlrIndex, cpqSsTempSensorChassisIndex=cpqSsTempSensorChassisIndex, cpqSsBoxFanStatus=cpqSsBoxFanStatus, cpqSsChassisTable=cpqSsChassisTable, cpqSsExPowerSupplyStatusChange=cpqSsExPowerSupplyStatusChange, cpqSsExPowerSupplyUpsStatusChange=cpqSsExPowerSupplyUpsStatusChange, cpqSsChassisSystemBoardSerNum=cpqSsChassisSystemBoardSerNum, cpqSsChassisRsoStatus=cpqSsChassisRsoStatus, cpqSs5PwrSupplyStatusChange=cpqSs5PwrSupplyStatusChange, cpqSsTrapLogIndex=cpqSsTrapLogIndex, cpqSsBoxBoardRevision=cpqSsBoxBoardRevision, cpqSsStorageSys=cpqSsStorageSys, cpqSsBackplaneModel=cpqSsBackplaneModel, cpqSsBackplaneFanStatus=cpqSsBackplaneFanStatus, cpqSsChassisTime=cpqSsChassisTime, cpqSsRaidSystemStatus=cpqSsRaidSystemStatus, cpqSsExBackplaneTempStatusChange=cpqSsExBackplaneTempStatusChange, cpqSsChassisFcaCntlrCondition=cpqSsChassisFcaCntlrCondition, cpqSsTempSensorLimitValue=cpqSsTempSensorLimitValue, cpqSsExBackplaneFanStatusChange=cpqSsExBackplaneFanStatusChange, cpqSsTempSensorCondition=cpqSsTempSensorCondition, cpqSsFanModuleBoardRevision=cpqSsFanModuleBoardRevision, cpqSsRaidSystemCntlr2SerialNumber=cpqSsRaidSystemCntlr2SerialNumber, cpqSsChassisSerialNumber=cpqSsChassisSerialNumber, cpqSsFanModuleChassisIndex=cpqSsFanModuleChassisIndex, cpqSsBackplaneTempStatus=cpqSsBackplaneTempStatus, cpqSsBoxBackPlaneVersion=cpqSsBoxBackPlaneVersion, cpqSsBackplaneFtpsStatus=cpqSsBackplaneFtpsStatus, cpqSsPowerSupplyUpsStatus=cpqSsPowerSupplyUpsStatus, cpqSsRaidSystemName=cpqSsRaidSystemName, cpqSs3TempDegraded=cpqSs3TempDegraded, cpqSs6PwrSupplyStatusChange=cpqSs6PwrSupplyStatusChange, cpqSs5FanStatusChange=cpqSs5FanStatusChange, cpqSsBackplaneTable=cpqSsBackplaneTable, cpqSsBoxLocationString=cpqSsBoxLocationString, cpqSsBackplaneDriveBays=cpqSsBackplaneDriveBays, cpqSsMibRevMinor=cpqSsMibRevMinor, cpqSs3FanStatusChange=cpqSs3FanStatusChange, cpqSs6FanStatusChange=cpqSs6FanStatusChange, cpqSsBackplaneEntry=cpqSsBackplaneEntry, cpqSsPowerSupplyIndex=cpqSsPowerSupplyIndex, cpqSsScsiAttachmentControllerIndex=cpqSsScsiAttachmentControllerIndex, cpqSsChassisPowerSupplyCondition=cpqSsChassisPowerSupplyCondition, cpqSsDrvBoxPathHostConnector=cpqSsDrvBoxPathHostConnector, cpqSsTrapLogEntry=cpqSsTrapLogEntry, cpqSsTempDegraded=cpqSsTempDegraded, cpqSs3TempOk=cpqSs3TempOk, cpqSsExBackplanePowerSupplyStatusChange=cpqSsExBackplanePowerSupplyStatusChange, cpqSsFibreAttachmentDeviceType=cpqSsFibreAttachmentDeviceType, cpqSsBoxSerialNumber=cpqSsBoxSerialNumber, cpqSsTrap=cpqSsTrap, cpqSsBoxBoxOnConnector=cpqSsBoxBoxOnConnector, cpqSsPowerSupplyBoardRevision=cpqSsPowerSupplyBoardRevision, cpqSsFibreAttachmentIndex=cpqSsFibreAttachmentIndex, cpqSsScsiAttachmentChassisIoSlot=cpqSsScsiAttachmentChassisIoSlot, cpqSsDrvBoxPathCntlrIndex=cpqSsDrvBoxPathCntlrIndex, cpqSsScsiAttachmentEntry=cpqSsScsiAttachmentEntry, cpqSsRaidSystemTable=cpqSsRaidSystemTable, cpqSsScsiAttachmentChassisIndex=cpqSsScsiAttachmentChassisIndex, cpqSsPowerSupplyStatus=cpqSsPowerSupplyStatus, cpqSsFibreAttachmentHostControllerIndex=cpqSsFibreAttachmentHostControllerIndex, cpqSsFanModuleTable=cpqSsFanModuleTable, cpqSsScsiAttachmentControllerTarget=cpqSsScsiAttachmentControllerTarget, cpqSsChassisModel=cpqSsChassisModel, cpqSsBackplaneLocationString=cpqSsBackplaneLocationString, cpqSsDrvBoxPathBoxIndex=cpqSsDrvBoxPathBoxIndex, cpqSsDrvBox=cpqSsDrvBox, cpqSsTempFailed=cpqSsTempFailed, cpqSsScsiAttachmentTable=cpqSsScsiAttachmentTable, cpqSsRaidSystemCntlr1SerialNumber=cpqSsRaidSystemCntlr1SerialNumber, cpqSsChassisTemperatureCondition=cpqSsChassisTemperatureCondition, cpqSs3SidePanelRemoved=cpqSs3SidePanelRemoved, cpqSsDrvBoxTable=cpqSsDrvBoxTable, cpqSsFanModuleIndex=cpqSsFanModuleIndex, cpqSsFibreAttachmentEntry=cpqSsFibreAttachmentEntry, cpqSsDrvBoxPathEntry=cpqSsDrvBoxPathEntry, cpqSsMibRev=cpqSsMibRev, cpqSs3TempFailed=cpqSs3TempFailed, cpqSsBoxTotalBays=cpqSsBoxTotalBays, cpqSsTrapLogMaxSize=cpqSsTrapLogMaxSize, cpqSsBoxDuplexOption=cpqSsBoxDuplexOption, cpqSsIoSlotTable=cpqSsIoSlotTable, cpqSsTrapPkts=cpqSsTrapPkts, cpqSsIoSlotChassisIndex=cpqSsIoSlotChassisIndex, cpqSsBackplaneDuplexOption=cpqSsBackplaneDuplexOption, cpqSsChassisConnectionType=cpqSsChassisConnectionType, cpqSsRaidSystem=cpqSsRaidSystem, cpqSsFanStatusChange=cpqSsFanStatusChange, cpqSsSidePanelRemoved=cpqSsSidePanelRemoved, cpqSs2FanStatusChange=cpqSs2FanStatusChange, cpqSsRaidSystemEntry=cpqSsRaidSystemEntry, cpqSsBoxVendor=cpqSsBoxVendor, cpqSsScsiAttachmentIndex=cpqSsScsiAttachmentIndex, cpqSsTempSensorIndex=cpqSsTempSensorIndex, cpqSsTempOk=cpqSsTempOk, cpqSsBoxConnectionType=cpqSsBoxConnectionType, cpqSsChassisScsiBoardSerNum=cpqSsChassisScsiBoardSerNum, cpqSsBoxFWRev=cpqSsBoxFWRev, cpqSsTrapType=cpqSsTrapType, cpqSs6TempStatusChange=cpqSs6TempStatusChange, cpqSsBoxHostConnector=cpqSsBoxHostConnector, cpqSsChassisName=cpqSsChassisName, cpqSsBackplaneBoardRevision=cpqSsBackplaneBoardRevision, cpqSs3PwrSupplyDegraded=cpqSs3PwrSupplyDegraded, cpqSsScsiAttachmentControllerPort=cpqSsScsiAttachmentControllerPort, cpqSsPowerSupplyEntry=cpqSsPowerSupplyEntry, cpqSsSidePanelInPlace=cpqSsSidePanelInPlace, cpqSsTempSensorCurrentValue=cpqSsTempSensorCurrentValue, cpqSsTempSensorTable=cpqSsTempSensorTable, cpqSsExFanStatusChange=cpqSsExFanStatusChange, cpqSsScsiAttachmentControllerLun=cpqSsScsiAttachmentControllerLun, cpqSsPowerSupplyBay=cpqSsPowerSupplyBay, cpqSsEx2PowerSupplyStatusChange=cpqSsEx2PowerSupplyStatusChange)
def encoded_from_base10(number, base, digit_map): ''' This function returns a string encoding in the "base" for the the "number" using the "digit_map" Conditions that this function must satisfy: - 2 <= base <= 36 else raise ValueError - invalid base ValueError must have relevant information - digit_map must have sufficient length to represent the base - must return proper encoding for all base ranges between 2 to 36 (including) - must return proper encoding for all negative "numbers" (hint: this is equal to encoding for +ve number, but with - sign added) - the digit_map must not have any repeated character, else ValueError - the repeating character ValueError message must be relevant - you cannot use any in-built functions in the MATH module ''' return '123ABC' def float_equality_testing(a, b): ''' This function emulates the ISCLOSE method from the MATH module, but you can't use this function We are going to assume: - rel_tol = 1e-12 - abs_tol = 1e-05 ''' return a == b def manual_truncation_function(f_num): ''' This function emulates python's MATH.TRUNC method. It ignores everything after the decimal point. It must check whether f_num is of correct type before proceed. You can use inbuilt constructors like int, float, etc ''' return f_num def manual_rounding_function(f_num): ''' This function emulates python's inbuild ROUND function. You are not allowed to use ROUND function, but expected to write your one manually. ''' return f_num def rounding_away_from_zero(f_num): ''' This function implements rounding away from zero as covered in the class Desperately need to use INT constructor? Well you can't. Hint: use FRACTIONS and extract numerator. ''' return 3.0
""" Configuration file for Greedy Schedule Algorithm global variables """ FILE_TO_READ = "test_input.csv" OUTPUT_FILE = "output.csv" # Allowable overlap time in minutes ALLOWABLE_OVERLAP = 23 # The limit of the total value number in hours TOTAL_VALUE_LIMIT = 13 # List of column headers of columns with datetimes to parse PARSE_DATES = ["Start", "End"]
#config.py #Enable Flask"s debugging features. should be False in production DEBUG = True
# Problem Statement: https://www.hackerrank.com/challenges/ginorts/problem S = ''.join(sorted(input(), key=lambda x: (not x.islower(), not x.isupper(), not x in '13579', x))) print(S)
class InitCommands(object): COPY = 'copy' CREATE = 'create' DELETE = 'delete' @classmethod def is_copy(cls, command): return command == cls.COPY @classmethod def is_create(cls, command): return command == cls.CREATE @classmethod def is_delete(cls, command): return command == cls.DELETE def get_output_args(command, outputs_path, original_outputs_path=None): get_or_create = 'if [ ! -d "{dir}" ]; then mkdir -p {dir}; fi;'.format(dir=outputs_path) delete_dir = ('if [ -d {path} ] && [ "$(ls -A {path})" ]; ' 'then rm -r {path}/*; fi;'.format(path=outputs_path)) cp_file_if_exist = 'if [ -f {original_path} ]; then cp {original_path} {path}; fi;'.format( original_path=original_outputs_path, path=outputs_path) cp_dir_if_exist = 'if [ -d {original_path} ]; then cp -r {original_path}/* {path}; fi;'.format( original_path=original_outputs_path, path=outputs_path) if InitCommands.is_create(command=command): return '{} {}'.format(get_or_create, delete_dir) if InitCommands.is_copy(command=command): return '{} {} {} {}'.format( get_or_create, delete_dir, cp_dir_if_exist, cp_file_if_exist) if InitCommands.is_delete(command=command): return '{}'.format(delete_dir) def get_auth_context_args(entity: str, entity_name: str): return "python3 -u init/auth.py --entity={} --entity_name={}".format(entity, entity_name)
hm_epoch = 5 # Number of epoch in training lag_range = 1 # Lag range lag_epoch_num = 1 # Number of epoch while finding lag learning_rate = 0.001 # Default learning rate
# # PySNMP MIB module NOKIA-HWM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NOKIA-HWM-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:23:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint") entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex") ntcHWMibs, ntcHWReqs, ntcCommonModules = mibBuilder.importSymbols("NOKIA-COMMON-MIB-OID-REGISTRATION-MIB", "ntcHWMibs", "ntcHWReqs", "ntcCommonModules") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") ObjectIdentity, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Integer32, IpAddress, TimeTicks, ModuleIdentity, MibIdentifier, Unsigned32, Counter32, NotificationType, iso, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Integer32", "IpAddress", "TimeTicks", "ModuleIdentity", "MibIdentifier", "Unsigned32", "Counter32", "NotificationType", "iso", "Bits") AutonomousType, TextualConvention, TimeStamp, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "AutonomousType", "TextualConvention", "TimeStamp", "DisplayString") ntcHWModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 94, 1, 16, 5, 1)) ntcHWModule.setRevisions(('1998-08-24 00:00', '1998-09-03 00:00', '1998-09-24 00:00', '1998-10-04 00:00', '1999-01-08 00:00', '1999-08-05 00:00', '1999-10-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ntcHWModule.setRevisionsDescriptions(('Rev 0.1 August 24, 1998 Initial version - ready for review', 'Rev 0.2 September 3, 1998 Initial review by Tero Soukko whose comments have been incorporated.', 'Rev 0.3 September 24, 1998 ready for initial review.', 'Rev 0.4 Updated anchors to use values registered by Mika Kiikkila.', 'Rev 1.0 Syntax of ntcHWLastChangedTime changed from DateAndTime to TimeStamp. Traps commented out because they are part of Nokia Common Alarm MIB.', 'Rev 1.01 Those IMPORTS which are not used are removed. Groups ntcHWSlots and ntcHWEventGroup which are not defined in this module are removed. The name NokiaHwmSlotEntry is changed to NtcHWSlotEntry on account of convenience. All notification definions before out-commented removed. Some esthetic modifications made.', "Comment 'The NMS is not allowed to set the value of ntcHWAdminstate to missing.' added to the ntcHWAdminstate's description.",)) if mibBuilder.loadTexts: ntcHWModule.setLastUpdated('9901080000Z') if mibBuilder.loadTexts: ntcHWModule.setOrganization('Nokia') if mibBuilder.loadTexts: ntcHWModule.setContactInfo('Anna-Kaisa Lindfors Nokia Telecommunications Oy Hiomotie 5, FIN-00380 Helsinki +358-9-51121 anna-kaisa.lindfors@nokia.com') if mibBuilder.loadTexts: ntcHWModule.setDescription('The MIB module that is used to control the Hardware Management information.') ntcHWObjs = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1)) ntcHWEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 2, 0)) ntcHWGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 1, 1)) ntcHWCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 1, 2)) ntcHWUnitTable = MibTable((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1), ) if mibBuilder.loadTexts: ntcHWUnitTable.setStatus('current') if mibBuilder.loadTexts: ntcHWUnitTable.setDescription("A table which contains an entry for each pluggable circuit board (in this MIB a 'unit' is the same as a pluggable circuit board.) Entries of this table are automatically created by the hardware management software.") ntcHWUnitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: ntcHWUnitEntry.setStatus('current') if mibBuilder.loadTexts: ntcHWUnitEntry.setDescription('A conceptual row in the ntcHWUnitTable. Rows are created automatically by the Hardware Management software.') ntcHWAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("inService", 1), ("outOfService", 2), ("inTest", 3), ("missing", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntcHWAdminState.setStatus('current') if mibBuilder.loadTexts: ntcHWAdminState.setDescription('Represents the desired state of the unit. inService indicates that the unit is intended to be operating normally. outOfService indicates that the unit should be taken out of normal operating mode and no data traffic should appear in this unit. inTest indicates that the unit should be placed into a selftest mode. missing indicates that the unit is expected to be present but has been detected as not being physically present. The NMS is not allowed to set the value of ntcHWAdminstate to missing.') ntcHWOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("down", 1), ("up", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcHWOperState.setStatus('current') if mibBuilder.loadTexts: ntcHWOperState.setDescription('Indicates the current state of the unit. down indicates that the unit is in a non-functional state. up indicates that the unit is functioning normally.') ntcHWAvailabilityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("inCharge", 1), ("applicationStarting", 2), ("applicationShutdown", 3), ("platformStarting", 4), ("resetting", 5), ("separated", 6), ("unconfigured", 7), ("testing", 8), ("standby", 9), ("dormant", 10), ("unavailable", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcHWAvailabilityStatus.setStatus('current') if mibBuilder.loadTexts: ntcHWAvailabilityStatus.setDescription("Provides more specific information on the state of the unit in this conceptual row. The status column has eleven defined values: inCharge = the unit is fully operational and ready to perform its desired tasks; applicationStarting = the application software is starting up; applicationShutdown = the application software is shutting down; platformStarting = Basic platform software is starting up; resetting = the disk files are closed and hardware reset is forced; separated = Only basic OS software is running. The unit can start application software on request; unconfigured = The administrative state of the unit is 'missing', disk files are closed and only basic OS software is running. The unit refuses to start application software; testing = Selftests can be performed, only basic OS are running; standby = The unit is redundant and is fully operational but not in charge of operations. It is ready to move to 'inCharge' state when necessary; dormant = All connections are physically inactive to enable removal of the unit without electric disturbance in the backplane. Only watchdog software is running for a short duration of time; unavailable = The unit is not physically present or cannot be contacted.") ntcHWRestart = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("reset", 1), ("hotRestart", 2), ("detach", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntcHWRestart.setStatus('current') if mibBuilder.loadTexts: ntcHWRestart.setDescription('Provides the ability to reset or perform a hot restart the unit represented by this conceptual row. reset = the Unit is shutdown in an orderly manner and restarted again via hardware reset; hotRestart = only the software in a unit is restarted, a hardware reset is not initiated; detach = all electrical connections of the unit are forced to an inactive state to enable removal of the unit without electrical disturbance in the backplane.') ntcHWLedState = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("red", 1), ("yellow", 2), ("black", 3), ("green", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcHWLedState.setStatus('current') if mibBuilder.loadTexts: ntcHWLedState.setDescription('Indicates the current LED color of the unit represented by this conceptual row.') ntcHWSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcHWSerialNumber.setStatus('current') if mibBuilder.loadTexts: ntcHWSerialNumber.setDescription('The units serial number in displayable format.') ntcHWProductionDate = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcHWProductionDate.setStatus('current') if mibBuilder.loadTexts: ntcHWProductionDate.setDescription('The units production date in displayable format.') ntcHWUnitEntryChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 1, 1, 8), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcHWUnitEntryChanged.setStatus('current') if mibBuilder.loadTexts: ntcHWUnitEntryChanged.setDescription('Represents the value of sysUpTime at the instant that this conceptual row entry has changed.') ntcHWSlotTable = MibTable((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 2), ) if mibBuilder.loadTexts: ntcHWSlotTable.setStatus('current') if mibBuilder.loadTexts: ntcHWSlotTable.setDescription('Table whose entries represent the expected circuit board type. The entries are created automatically by the hardware management software.') ntcHWSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: ntcHWSlotEntry.setStatus('current') if mibBuilder.loadTexts: ntcHWSlotEntry.setDescription('The logical row describing the expected circiut board type of a slot.') ntcHWDesiredUnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 2, 1, 2), AutonomousType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntcHWDesiredUnitType.setStatus('current') if mibBuilder.loadTexts: ntcHWDesiredUnitType.setDescription("The unit type which is expected to be inserted or present in the current slot. An indication of the vendor-specific hardware type of the HWM entity. Note that this is different from the definition of MIB-II's sysObjectID. An agent should set this object to a enterprise-specific registration identifier value indicating the specific equipment type in detail. If no vendor-specific registration identifier exists for this entity, or the value is unknown by this agent, then the value { 0 0 } is returned.") ntcHWLastChangedTime = MibScalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntcHWLastChangedTime.setStatus('current') if mibBuilder.loadTexts: ntcHWLastChangedTime.setDescription('The value of sysUpTime at the time any of these events occur: * any instance in the following object changes value: - hwmUnitEntryChanged This object shall be set to value 0 in startup.') ntcHWLoadInventoryContainer = MibScalar((1, 3, 6, 1, 4, 1, 94, 1, 16, 7, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntcHWLoadInventoryContainer.setStatus('current') if mibBuilder.loadTexts: ntcHWLoadInventoryContainer.setDescription('Writing any value to this object will cause the hardware management software to reread its configuration file from disk.') ntcHWUnits = ObjectGroup((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 1, 1, 1)).setObjects(("NOKIA-HWM-MIB", "ntcHWAdminState"), ("NOKIA-HWM-MIB", "ntcHWOperState"), ("NOKIA-HWM-MIB", "ntcHWAvailabilityStatus"), ("NOKIA-HWM-MIB", "ntcHWRestart"), ("NOKIA-HWM-MIB", "ntcHWLedState"), ("NOKIA-HWM-MIB", "ntcHWSerialNumber"), ("NOKIA-HWM-MIB", "ntcHWProductionDate"), ("NOKIA-HWM-MIB", "ntcHWUnitEntryChanged")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntcHWUnits = ntcHWUnits.setStatus('current') if mibBuilder.loadTexts: ntcHWUnits.setDescription('A collection of objects representing the status of a unit.') ntcHWCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 94, 1, 16, 8, 1, 2, 1)).setObjects(("ENTITY-MIB", "entityPhysicalGroup"), ("NOKIA-HWM-MIB", "ntcHWUnits")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntcHWCompliance = ntcHWCompliance.setStatus('current') if mibBuilder.loadTexts: ntcHWCompliance.setDescription('The compliance statement Hardware Management.') mibBuilder.exportSymbols("NOKIA-HWM-MIB", ntcHWCompliance=ntcHWCompliance, ntcHWLedState=ntcHWLedState, ntcHWDesiredUnitType=ntcHWDesiredUnitType, ntcHWLastChangedTime=ntcHWLastChangedTime, ntcHWSlotEntry=ntcHWSlotEntry, ntcHWUnits=ntcHWUnits, ntcHWUnitEntry=ntcHWUnitEntry, ntcHWUnitEntryChanged=ntcHWUnitEntryChanged, ntcHWUnitTable=ntcHWUnitTable, ntcHWProductionDate=ntcHWProductionDate, ntcHWLoadInventoryContainer=ntcHWLoadInventoryContainer, ntcHWGroups=ntcHWGroups, ntcHWCompliances=ntcHWCompliances, ntcHWModule=ntcHWModule, ntcHWOperState=ntcHWOperState, ntcHWRestart=ntcHWRestart, ntcHWEvents=ntcHWEvents, ntcHWAvailabilityStatus=ntcHWAvailabilityStatus, ntcHWAdminState=ntcHWAdminState, ntcHWSlotTable=ntcHWSlotTable, ntcHWSerialNumber=ntcHWSerialNumber, ntcHWObjs=ntcHWObjs, PYSNMP_MODULE_ID=ntcHWModule)
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non-U.S. persons whether in the United States or abroad requires # an export license or other authorization. # # Contractor Name: Raytheon Company # Contractor Address: 6825 Pine Street, Suite 340 # Mail Stop B8 # Omaha, NE 68106 # 402.291.0100 # # See the AWIPS II Master Rights File ("Master Rights File.pdf") for # further licensing information. ## ######################################################################## # FirePeriodTable # # Type: table # Edit Areas: solicited from user # Weather Elements: You must have these Weather elements defined in # your server: Sky, LAL, RelHum, MaxT, MinT, FreeWind, # Haines, TransWind, MixHgt(ft AGL) # To Run: # Set GFE Time Range # Products-->Generate Products # Choose Edit Areas # Select OK # ######################################################################## ## EXAMPLE OUTPUT (Scarce Data) ## Fire Period Table for Feb 29 00 17:00:00 GMT - Mar 01 00 11:00:00 GMT. ## Edit Area Sky (%) LAL RelHum (%) MaxT MinT FreeWind(mph) Haines TransWind(mph) MixHgt(ft AGL) ## COAdams 36-23 46 26 ## COArapahoe 34-24 46 26 ## COBoulder 31-52 34 18 ## COClearCreek 16-57 26 12 ## CODenver 37-40 43 25 ## CODouglas 24-47 40 21 ## COElbert 31-22 46 25 ######################################################################## Definition = { "type": "table", "displayName": "TEST_Fire Period Table", # for Product Generation Menu # Output file for product results "outputFile": "./FirePeriodTable.txt", # default output file "constantVariable": "TimePeriod", "rowVariable": "EditArea", "columnVariable": "WeatherElement", "beginningText": "Fire Period Table for %TimePeriod. \n\n", "endingText": "", # Edit Areas "defaultEditAreas" : [("area1","Area 1"),("area2","Area 2")], "runTimeEditAreas": "yes", "areaType" : "Edit Area", # E.g. City, County, Basin, etc. # Time Ranges "defaultRanges": ["Today"], "runTimeRanges" : "no", # if yes, ask user at run time "elementList": [ ("Sky", "Sky (%)", "minMax", "range2Value", "Scalar", 1, None), ("LAL","LAL", "minMax", "range2Value", "Scalar",1,None), ("MaxT","MaxT", "avg", "singleValue", "Scalar", 1, None), ("MinT","MinT", "avg", "singleValue", "Scalar", 1, None), ("FreeWind","FreeWind(mph)", "vectorRange", "range2Value", "Vector", 1, "ktToMph"), ("Haines","Haines", "minMax", "range2Value", "Scalar",1,None), ("TransWind","TransWind(mph)", "vectorRange", "range2Value", "Vector", 1, "ktToMph"), ("MixHgt", "MixHgt(ft AGL)", "minMax", "range2Value", "Scalar",10,None), ], }
# 20 num = 1 for i in range(100): num *= i + 1 print(sum(int(n) for n in str(num)))
# # PySNMP MIB module ADIC-INTELLIGENT-STORAGE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADIC-INTELLIGENT-STORAGE-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:13:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") NotificationType, NotificationType, iso, Counter64, ObjectIdentity, Counter32, Integer32, Unsigned32, enterprises, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, ModuleIdentity, MibIdentifier, Gauge32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "NotificationType", "iso", "Counter64", "ObjectIdentity", "Counter32", "Integer32", "Unsigned32", "enterprises", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "ModuleIdentity", "MibIdentifier", "Gauge32", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") adic = MibIdentifier((1, 3, 6, 1, 4, 1, 3764)) storage = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1)) intelligent = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1)) productAgentInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10)) globalData = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20)) components = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30)) software = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 100)) hardware = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200)) powerAndCooling = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200)) sml = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 300)) network = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 400)) notification = MibIdentifier((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500)) class Boolean(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("true", 1), ("false", 2)) class AdicMibVersion(DisplayString): pass class AdicREDIdentifier(Counter32): pass class AdicEnable(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("enabled", 1), ("disabled", 2)) class AdicAgentStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("other", 1), ("unknown", 2), ("ok", 3), ("non-critical", 4), ("critical", 5), ("non-recoverable", 6)) class AdicOnlineStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("online", 1), ("offline", 2), ("shutdown", 3)) class AdicGlobalId(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class AdicComponentType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8)) namedValues = NamedValues(("mcb", 1), ("cmb", 2), ("ioBlade", 3), ("rcu", 4), ("networkChasis", 5), ("controlModule", 6), ("expansionModule", 7), ("powerSupply", 8)) class AdicInterfaceType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("scsi", 1), ("fibreChannel", 2)) class AdicSensorStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("nominal", 1), ("warningLow", 2), ("warningHigh", 3), ("alarmLow", 4), ("alarmHigh", 5), ("notInstalled", 6), ("noData", 7)) class AdicVoltageType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("dc", 1), ("ac", 2)) class AdicDateAndTime(OctetString): subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(8, 8), ValueSizeConstraint(11, 11), ) class AdicTrapSeverity(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("emergency", 1), ("alarm", 2), ("warning", 3), ("notice", 4), ("informational", 5)) class AdicDoorStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("open", 1), ("closed", 2), ("closedAndLocked", 3), ("closedAndUnlocked", 4), ("contollerFailed", 5), ("notInstalled", 6), ("noData", 7)) class AdicDriveStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("idle", 1), ("loading", 2), ("ejecting", 3), ("inserted", 4), ("removed", 5), ("notInstalled", 6), ("noData", 7)) class RowStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)) productMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 1), AdicMibVersion()).setMaxAccess("readonly") if mibBuilder.loadTexts: productMibVersion.setStatus('mandatory') if mibBuilder.loadTexts: productMibVersion.setDescription('MIB version identifier.') productSnmpAgentVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productSnmpAgentVersion.setStatus('mandatory') if mibBuilder.loadTexts: productSnmpAgentVersion.setDescription('SNMP agent version identifier.') productName = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productName.setStatus('mandatory') if mibBuilder.loadTexts: productName.setDescription('Name of ADIC branded product. Uniquely identifies the product, independent of OEM.') productDisplayName = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productDisplayName.setStatus('mandatory') if mibBuilder.loadTexts: productDisplayName.setDescription('Name of this agent for display purposes. May be customized for OEM.') productDescription = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productDescription.setStatus('mandatory') if mibBuilder.loadTexts: productDescription.setDescription('A short description of this SNMP agent.') productVendor = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productVendor.setStatus('mandatory') if mibBuilder.loadTexts: productVendor.setDescription('Name of the product vendor or OEM.') productVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productVersion.setStatus('mandatory') if mibBuilder.loadTexts: productVersion.setDescription('String Format: MNNO.TVBBBPP Examples 1. 091a.TR054 Version 0.91, build 54 of the RCS test code for ADIC 2. 100A.GM052 Version 1.00, build 52 of the MCB GA candidate code for ADIC M Major version number NN Minor version number O OEM (Uppercase when release candidate, otherwise lowercase) A/a - ADIC Others - Reserved) T Target G - GA Candidate Release (labeled build that is a release candidate) T - Test build (labeled build used for formal testing) D - Dev build (labeled build used for unit testing) (lower case) - specifies developer of a local build V Variant S - System R - RCS M - MCB BBB Build number (3 digit sequential number specifying exact build) PP Patch Number (Optional alphanumeric characters denoting patch level of this build if necessary)') productDisplayVersion = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productDisplayVersion.setStatus('mandatory') if mibBuilder.loadTexts: productDisplayVersion.setDescription('The version identifier according to the vendor or OEM.') productLibraryClass = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 10))).clone(namedValues=NamedValues(("basic", 1), ("intelligent", 2), ("virtual", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: productLibraryClass.setStatus('mandatory') if mibBuilder.loadTexts: productLibraryClass.setDescription('Basic library includes minimal connectivity hardware. Intelligent library includes SAN appliances and value-added features.') productSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 10, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: productSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: productSerialNumber.setDescription('The serial number of the entire library.') agentGlobalStatus = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 1), AdicAgentStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentGlobalStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentGlobalStatus.setDescription('Current overall status of the agent.') agentLastGlobalStatus = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 2), AdicAgentStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentLastGlobalStatus.setStatus('mandatory') if mibBuilder.loadTexts: agentLastGlobalStatus.setDescription('The status before the current status which induced an initiative to issue a global status change trap.') agentTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentTimeStamp.setStatus('mandatory') if mibBuilder.loadTexts: agentTimeStamp.setDescription('The last time that the agent values have been updated. Universal time in seconds since UTC 1/1/70.') agentGetTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentGetTimeOut.setStatus('mandatory') if mibBuilder.loadTexts: agentGetTimeOut.setDescription('Suggested time out in milliseconds for how long an SNMP management application should wait while attempting to poll the SNMP agent.') agentModifiers = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentModifiers.setStatus('mandatory') if mibBuilder.loadTexts: agentModifiers.setDescription('Agent functional modifiers, when set the modifier is active. ----------------------------------------------------- Bit 3 => Agent in debug mode. ----------------------------------------------------- All other bits are product specific.') agentRefreshRate = MibScalar((1, 3, 6, 1, 4, 1, 3764, 1, 1, 20, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentRefreshRate.setStatus('mandatory') if mibBuilder.loadTexts: agentRefreshRate.setDescription('Rate in seconds at which the agent cached data is being updated.') componentTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10), ) if mibBuilder.loadTexts: componentTable.setStatus('mandatory') if mibBuilder.loadTexts: componentTable.setDescription("General information about the system's components, including the unique identifiers. The structure this table is based on the Fibre Alliance MIB connUnitEntry.") componentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId")) if mibBuilder.loadTexts: componentEntry.setStatus('mandatory') if mibBuilder.loadTexts: componentEntry.setDescription('A component entry containing objects for a particular component.') componentId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 1), AdicGlobalId()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentId.setStatus('mandatory') if mibBuilder.loadTexts: componentId.setDescription('The unique identification for this component among those within this proxy domain.') componentType = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 2), AdicComponentType()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentType.setStatus('mandatory') if mibBuilder.loadTexts: componentType.setDescription('The type of this component.') componentDisplayName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentDisplayName.setStatus('mandatory') if mibBuilder.loadTexts: componentDisplayName.setDescription('Name of this component for display purposes. Different OEMs may have different display names for the same ADIC product.') componentInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: componentInfo.setStatus('mandatory') if mibBuilder.loadTexts: componentInfo.setDescription('A display string containing information about this component.') componentLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentLocation.setStatus('mandatory') if mibBuilder.loadTexts: componentLocation.setDescription('Location information for this component.') componentVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentVendor.setStatus('mandatory') if mibBuilder.loadTexts: componentVendor.setDescription('Name vendor of this component.') componentSn = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentSn.setStatus('mandatory') if mibBuilder.loadTexts: componentSn.setDescription('The serial number for this component.') componentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("unused", 2), ("ok", 3), ("warning", 4), ("failed", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: componentStatus.setStatus('mandatory') if mibBuilder.loadTexts: componentStatus.setDescription('Overall status of the component.') componentControl = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("resetColdStart", 1), ("resetWarmStart", 2), ("offline", 3), ("online", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: componentControl.setStatus('mandatory') if mibBuilder.loadTexts: componentControl.setDescription("This object is used to control the addressed connUnit. NOTE: 'Cold Start' and 'Warm Start' are as defined in MIB II and are not meant to be a factory reset. resetColdStart: the addressed unit performs a 'Cold Start' reset. resetWarmStart: the addressed unit performs a 'Warm Start' reset. offline: the addressed unit puts itself into an implementation dependant 'offline' state. online: the addressed unit puts itself into an implementation dependant 'online' state.") componentREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 10), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentREDId.setStatus('mandatory') if mibBuilder.loadTexts: componentREDId.setDescription('Runtime Error Detection identifier for this power supply.') componentFirmwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentFirmwareVersion.setStatus('mandatory') if mibBuilder.loadTexts: componentFirmwareVersion.setDescription('Firmware version (or level) for this component.') componentGeoAddrAisle = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrAisle.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrAisle.setDescription('The aisle number where this component is located. A negative value indicates that an aisle number is not applicable to this component.') componentGeoAddrFrame = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrFrame.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrFrame.setDescription('The frame number where this component is located. A negative value indicates that a frame number is not applicable to this component.') componentGeoAddrRack = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrRack.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrRack.setDescription('The rack number where this component is located. A negative value indicates that a rack number is not applicable to this component.') componentGeoAddrChassis = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrChassis.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrChassis.setDescription('The chassis number where this component is located. A negative value indicates that a chassis number is not applicable to this component.') componentGeoAddrBlade = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentGeoAddrBlade.setStatus('mandatory') if mibBuilder.loadTexts: componentGeoAddrBlade.setDescription('The blade number within the network chasis where this component is located. A negative value indicates that a blade number is not applicable to this component.') componentIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 30, 10, 1, 17), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: componentIpAddress.setStatus('mandatory') if mibBuilder.loadTexts: componentIpAddress.setDescription('IP address of this component. If the component has no IP address, this object returns 0.0.0.0. The address may refer to an internal network not accessible to an external management application.') powerSupplyTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10), ) if mibBuilder.loadTexts: powerSupplyTable.setStatus('optional') if mibBuilder.loadTexts: powerSupplyTable.setDescription('** This table is optional ** Table of the power supplies.') powerSupplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "powerSupplyIndex")) if mibBuilder.loadTexts: powerSupplyEntry.setStatus('optional') if mibBuilder.loadTexts: powerSupplyEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific power supply.') powerSupplyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyIndex.setStatus('optional') if mibBuilder.loadTexts: powerSupplyIndex.setDescription('** This object is optional ** Index of this power supply within the component specified by componentId.') powerSupplyName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyName.setStatus('optional') if mibBuilder.loadTexts: powerSupplyName.setDescription('** This object is optional ** Display name of this power supply.') powerSupplyWattage = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyWattage.setStatus('optional') if mibBuilder.loadTexts: powerSupplyWattage.setDescription('** This object is optional ** What is maximum power output of this power supply. Units are Watts.') powerSupplyType = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 4), AdicVoltageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyType.setStatus('optional') if mibBuilder.loadTexts: powerSupplyType.setDescription('** This object is optional ** DC or AC power supply?') powerSupplyREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 5), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyREDId.setStatus('optional') if mibBuilder.loadTexts: powerSupplyREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this power supply.') powerSupplyRatedVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyRatedVoltage.setStatus('optional') if mibBuilder.loadTexts: powerSupplyRatedVoltage.setDescription('** This object is optional ** Rated output voltage in millivolts of this power supply.') powerSupplyLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 10, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyLocation.setStatus('optional') if mibBuilder.loadTexts: powerSupplyLocation.setDescription('** This object is optional ** Physical location of this power supply.') voltageSensorTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20), ) if mibBuilder.loadTexts: voltageSensorTable.setStatus('optional') if mibBuilder.loadTexts: voltageSensorTable.setDescription('** This table is optional ** Table of the voltage sensors.') voltageSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "powerSupplyIndex"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "voltageSensorIndex")) if mibBuilder.loadTexts: voltageSensorEntry.setStatus('optional') if mibBuilder.loadTexts: voltageSensorEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific voltage sensor.') voltageSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorIndex.setStatus('optional') if mibBuilder.loadTexts: voltageSensorIndex.setDescription('** This object is optional ** Index of this voltage sensor within the component specified by componentId.') voltageSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorName.setStatus('optional') if mibBuilder.loadTexts: voltageSensorName.setDescription('** This object is optional ** Display name of this voltage sensor.') voltageSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 3), AdicSensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorStatus.setStatus('optional') if mibBuilder.loadTexts: voltageSensorStatus.setDescription('** This object is optional ** What is the state of this voltage sensor? Is the voltage in the nominal, warning or alarm region?') voltageSensorMillivolts = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorMillivolts.setStatus('optional') if mibBuilder.loadTexts: voltageSensorMillivolts.setDescription('** This object is optional ** What is the voltage in millivolts of this voltage sensor?') voltageSensorType = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 5), AdicVoltageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorType.setStatus('optional') if mibBuilder.loadTexts: voltageSensorType.setDescription('** This object is optional ** DC or AC voltage sensor?') voltageSensorNominalLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorNominalLo.setStatus('optional') if mibBuilder.loadTexts: voltageSensorNominalLo.setDescription('** This object is optional ** Lower voltage limit of the nominal state for this voltage sensor. Unit are millivolts.') voltageSensorNominalHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorNominalHi.setStatus('optional') if mibBuilder.loadTexts: voltageSensorNominalHi.setDescription('** This object is optional ** Upper voltage limit of the nominal state for this voltage sensor. Unit are millivolts.') voltageSensorWarningLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorWarningLo.setStatus('optional') if mibBuilder.loadTexts: voltageSensorWarningLo.setDescription('** This object is optional ** Lower voltage limit of the warning state for this voltage sensor. Unit are millivolts. If the voltage falls below this limit, the sensor enters the alarm state.') voltageSensorWarningHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorWarningHi.setStatus('optional') if mibBuilder.loadTexts: voltageSensorWarningHi.setDescription('** This object is optional ** Upper voltage limit of the warning state for this voltage sensor. Unit are millivolts. If the voltage rises above this limit, the sensor enters the alarm state.') voltageSensorLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorLocation.setStatus('optional') if mibBuilder.loadTexts: voltageSensorLocation.setDescription('** This object is optional ** Physical location of the voltage sensor.') voltageSensorREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 20, 1, 11), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensorREDId.setStatus('optional') if mibBuilder.loadTexts: voltageSensorREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this voltage sensor.') temperatureSensorTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30), ) if mibBuilder.loadTexts: temperatureSensorTable.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorTable.setDescription('** This table is optional ** Table of the temperature sensors in each component.') temperatureSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "temperatureSensorIndex")) if mibBuilder.loadTexts: temperatureSensorEntry.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific sensor.') temperatureSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorIndex.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorIndex.setDescription('** This object is optional ** Index of this temperatureSensor within the component specified by componentId.') temperatureSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorName.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorName.setDescription('** This object is optional ** Display name of this temperatureSensor.') temperatureSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 3), AdicSensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorStatus.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorStatus.setDescription('** This object is optional ** What is the state of this temperatureSensor? Is the temperature in the nominal, warning or alarm region?') temperatureSensorDegreesCelsius = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorDegreesCelsius.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorDegreesCelsius.setDescription('** This object is optional ** The temperature in degrees Celsuis for this temperature sensor.') temperatureSensorNominalLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorNominalLo.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorNominalLo.setDescription('** This object is optional ** Lower temperature limit of the nominal state for this temperature sensor. Unit are degrees Celsius.') temperatureSensorNominalHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorNominalHi.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorNominalHi.setDescription('** This object is optional ** Upper temperature limit of the nominal state for this temperature sensor. Unit are degrees Celsius.') temperatureSensorWarningLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorWarningLo.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorWarningLo.setDescription('** This object is optional ** Lower temperature limit of the warning state for this temperature sensor. Unit are degrees Celsius. If the temperature falls below this limit, the sensor enters the alarm state.') temperatureSensorWarningHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorWarningHi.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorWarningHi.setDescription('** This object is optional ** Upper temperature limit of the warning state for this temperature sensor. Unit are degrees Celsius. If the temperature rises above this limit, the sensor enters the alarm state.') temperatureSensorLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorLocation.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorLocation.setDescription('** This object is optional ** Physical location of this temperature sensor.') temperatureSensorREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 30, 1, 10), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureSensorREDId.setStatus('optional') if mibBuilder.loadTexts: temperatureSensorREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this temperature sensor.') coolingFanTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40), ) if mibBuilder.loadTexts: coolingFanTable.setStatus('optional') if mibBuilder.loadTexts: coolingFanTable.setDescription('** This table is optional ** Table of cooling fans in the library.') coolingFanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), (0, "ADIC-INTELLIGENT-STORAGE-MIB", "coolingFanIndex")) if mibBuilder.loadTexts: coolingFanEntry.setStatus('optional') if mibBuilder.loadTexts: coolingFanEntry.setDescription('** This entry object is optional ** Each entry contains the information for a specific cooling fan.') coolingFanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanIndex.setStatus('optional') if mibBuilder.loadTexts: coolingFanIndex.setDescription('** This object is optional ** Index of this cooling fan within the component specified by componentId.') coolingFanName = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanName.setStatus('optional') if mibBuilder.loadTexts: coolingFanName.setDescription('** This object is optional ** Display name of this coolingFan.') coolingFanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 3), AdicSensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanStatus.setStatus('optional') if mibBuilder.loadTexts: coolingFanStatus.setDescription('** This object is optional ** Is the fan speed in the nominal, warning or alarm region?') coolingFanRPM = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanRPM.setStatus('optional') if mibBuilder.loadTexts: coolingFanRPM.setDescription('** This object is optional ** The fan speed in revolutions per minute.') coolingFanNominalLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanNominalLo.setStatus('optional') if mibBuilder.loadTexts: coolingFanNominalLo.setDescription('** This object is optional ** Lower fan speed limit of the nominal state for this fan. Units are RPM.') coolingFanNominalHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanNominalHi.setStatus('optional') if mibBuilder.loadTexts: coolingFanNominalHi.setDescription('** This object is optional ** Upper fan speed limit of the nominal state for this fan. Units are RPM.') coolingFanWarningLo = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanWarningLo.setStatus('optional') if mibBuilder.loadTexts: coolingFanWarningLo.setDescription('** This object is optional ** Lower fan speed limit of the warning state for this fan. Units are RPM. If the speed falls below this limit, the fan enters the alarmLow state.') coolingFanWarningHi = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanWarningHi.setStatus('optional') if mibBuilder.loadTexts: coolingFanWarningHi.setDescription('** This object is optional ** Upper fan speed limit of the warning state for this fan. Units are RPM. If the speed rises above this limit, the fan enters the alarmHigh state.') coolingFanLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanLocation.setStatus('optional') if mibBuilder.loadTexts: coolingFanLocation.setDescription('** This object is optional ** Physical location of this fan.') coolingFanREDId = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 200, 200, 40, 1, 10), AdicREDIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: coolingFanREDId.setStatus('optional') if mibBuilder.loadTexts: coolingFanREDId.setDescription('** This object is optional ** Runtime Error Detection identifier for this fan.') trapPayloadTable = MibTable((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10), ) if mibBuilder.loadTexts: trapPayloadTable.setStatus('mandatory') if mibBuilder.loadTexts: trapPayloadTable.setDescription('Defines objects common to all trap payloads.') trapPayloadEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1), ).setIndexNames((0, "ADIC-INTELLIGENT-STORAGE-MIB", "trapSequenceNumber")) if mibBuilder.loadTexts: trapPayloadEntry.setStatus('mandatory') if mibBuilder.loadTexts: trapPayloadEntry.setDescription('Each entry contains the information for a specific cooling fan.') trapSequenceNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trapSequenceNumber.setStatus('mandatory') if mibBuilder.loadTexts: trapSequenceNumber.setDescription('') trapSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trapSeverity.setStatus('mandatory') if mibBuilder.loadTexts: trapSeverity.setDescription('') trapSummaryText = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: trapSummaryText.setStatus('mandatory') if mibBuilder.loadTexts: trapSummaryText.setDescription('') trapIntendedUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 3764, 1, 1, 500, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("public", 1), ("triggerRefresh", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapIntendedUsage.setStatus('mandatory') if mibBuilder.loadTexts: trapIntendedUsage.setDescription("The value of this qualifier aids the management application in determining how to respond to the trap. If the value is public(1), the information is intended to be propagated to external observers, such as sending email. If the value is triggerRefresh(2), the information is intended to update the management application's data model, but not necessarily propagated to external observers.") startupSequenceComplete = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,500)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "trapSummaryText")) if mibBuilder.loadTexts: startupSequenceComplete.setDescription('The component indicated by the value of componentId has successfully completed its startup sequence.') shutdownSequenceInitiated = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,501)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "trapSummaryText")) if mibBuilder.loadTexts: shutdownSequenceInitiated.setDescription('The component indicated by the value of componentId has initiated its shutdown sequence.') componentAdded = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,502)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "componentType")) if mibBuilder.loadTexts: componentAdded.setDescription('The component indicated by the value of componentId has been added to the library.') componentRemoved = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,503)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "componentId"), ("ADIC-INTELLIGENT-STORAGE-MIB", "componentType")) if mibBuilder.loadTexts: componentRemoved.setDescription('The component indicated by the value of componentId has been removed from the library.') productLibraryClassChange = NotificationType((1, 3, 6, 1, 4, 1, 3764, 1, 1) + (0,504)).setObjects(("ADIC-INTELLIGENT-STORAGE-MIB", "productLibraryClass"), ("ADIC-INTELLIGENT-STORAGE-MIB", "productLibraryClass")) if mibBuilder.loadTexts: productLibraryClassChange.setDescription('The product library class has changed. This occurs when connectivity hardware is added or removed. The payload contains the productLibraryClass before and after the change.') mibBuilder.exportSymbols("ADIC-INTELLIGENT-STORAGE-MIB", powerSupplyTable=powerSupplyTable, powerSupplyEntry=powerSupplyEntry, sml=sml, powerSupplyREDId=powerSupplyREDId, temperatureSensorEntry=temperatureSensorEntry, componentLocation=componentLocation, voltageSensorNominalLo=voltageSensorNominalLo, temperatureSensorWarningHi=temperatureSensorWarningHi, intelligent=intelligent, RowStatus=RowStatus, AdicVoltageType=AdicVoltageType, software=software, agentModifiers=agentModifiers, shutdownSequenceInitiated=shutdownSequenceInitiated, coolingFanName=coolingFanName, voltageSensorTable=voltageSensorTable, trapSequenceNumber=trapSequenceNumber, trapIntendedUsage=trapIntendedUsage, componentIpAddress=componentIpAddress, globalData=globalData, temperatureSensorNominalHi=temperatureSensorNominalHi, productName=productName, powerSupplyRatedVoltage=powerSupplyRatedVoltage, AdicAgentStatus=AdicAgentStatus, voltageSensorWarningLo=voltageSensorWarningLo, agentGetTimeOut=agentGetTimeOut, coolingFanLocation=coolingFanLocation, AdicGlobalId=AdicGlobalId, voltageSensorStatus=voltageSensorStatus, AdicMibVersion=AdicMibVersion, powerSupplyLocation=powerSupplyLocation, productLibraryClassChange=productLibraryClassChange, AdicTrapSeverity=AdicTrapSeverity, storage=storage, componentEntry=componentEntry, coolingFanIndex=coolingFanIndex, temperatureSensorDegreesCelsius=temperatureSensorDegreesCelsius, voltageSensorLocation=voltageSensorLocation, agentRefreshRate=agentRefreshRate, coolingFanNominalHi=coolingFanNominalHi, AdicInterfaceType=AdicInterfaceType, componentId=componentId, temperatureSensorIndex=temperatureSensorIndex, coolingFanStatus=coolingFanStatus, AdicDriveStatus=AdicDriveStatus, coolingFanREDId=coolingFanREDId, trapPayloadEntry=trapPayloadEntry, agentTimeStamp=agentTimeStamp, componentREDId=componentREDId, powerAndCooling=powerAndCooling, voltageSensorEntry=voltageSensorEntry, coolingFanWarningHi=coolingFanWarningHi, AdicDateAndTime=AdicDateAndTime, componentGeoAddrBlade=componentGeoAddrBlade, notification=notification, productDisplayVersion=productDisplayVersion, componentControl=componentControl, AdicDoorStatus=AdicDoorStatus, componentGeoAddrChassis=componentGeoAddrChassis, productSnmpAgentVersion=productSnmpAgentVersion, components=components, agentLastGlobalStatus=agentLastGlobalStatus, temperatureSensorNominalLo=temperatureSensorNominalLo, voltageSensorType=voltageSensorType, componentGeoAddrAisle=componentGeoAddrAisle, network=network, componentDisplayName=componentDisplayName, temperatureSensorTable=temperatureSensorTable, powerSupplyType=powerSupplyType, temperatureSensorStatus=temperatureSensorStatus, AdicREDIdentifier=AdicREDIdentifier, voltageSensorIndex=voltageSensorIndex, componentTable=componentTable, componentStatus=componentStatus, powerSupplyIndex=powerSupplyIndex, AdicSensorStatus=AdicSensorStatus, agentGlobalStatus=agentGlobalStatus, componentVendor=componentVendor, AdicComponentType=AdicComponentType, componentFirmwareVersion=componentFirmwareVersion, coolingFanNominalLo=coolingFanNominalLo, coolingFanTable=coolingFanTable, temperatureSensorREDId=temperatureSensorREDId, coolingFanWarningLo=coolingFanWarningLo, powerSupplyName=powerSupplyName, hardware=hardware, voltageSensorName=voltageSensorName, productAgentInfo=productAgentInfo, Boolean=Boolean, voltageSensorNominalHi=voltageSensorNominalHi, temperatureSensorName=temperatureSensorName, componentSn=componentSn, powerSupplyWattage=powerSupplyWattage, voltageSensorMillivolts=voltageSensorMillivolts, voltageSensorWarningHi=voltageSensorWarningHi, startupSequenceComplete=startupSequenceComplete, productDisplayName=productDisplayName, productLibraryClass=productLibraryClass, componentGeoAddrRack=componentGeoAddrRack, productSerialNumber=productSerialNumber, adic=adic, coolingFanEntry=coolingFanEntry, AdicEnable=AdicEnable, temperatureSensorWarningLo=temperatureSensorWarningLo, componentType=componentType, componentAdded=componentAdded, productVendor=productVendor, componentRemoved=componentRemoved, productVersion=productVersion, voltageSensorREDId=voltageSensorREDId, productMibVersion=productMibVersion, componentGeoAddrFrame=componentGeoAddrFrame, temperatureSensorLocation=temperatureSensorLocation, trapPayloadTable=trapPayloadTable, trapSummaryText=trapSummaryText, AdicOnlineStatus=AdicOnlineStatus, trapSeverity=trapSeverity, componentInfo=componentInfo, coolingFanRPM=coolingFanRPM, productDescription=productDescription)
description = 'Q range displaying devices' group = 'lowlevel' includes = ['detector', 'det1', 'sans1_det', 'alias_lambda'] devices = dict( QRange = device('nicos_mlz.sans1.devices.resolution.Resolution', description = 'Current q range', detector = 'det1', beamstop = 'bs1', wavelength = 'wl', detpos = 'det1_z', ), )
pkgname = "gsettings-desktop-schemas" pkgver = "42.0" pkgrel = 0 build_style = "meson" configure_args = ["-Dintrospection=true"] hostmakedepends = [ "meson", "pkgconf", "glib-devel", "gobject-introspection" ] makedepends = ["libglib-devel"] depends = [ "fonts-cantarell-otf", "fonts-source-code-pro-otf", "adwaita-icon-theme" ] pkgdesc = "Collection of GSettings schemas" maintainer = "q66 <q66@chimera-linux.org>" license = "LGPL-2.1-or-later" url = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas" source = f"$(GNOME_SITE)/{pkgname}/{pkgver[:-2]}/{pkgname}-{pkgver}.tar.xz" sha256 = "6686335a9ed623f7ae2276fefa50a410d4e71d4231880824714070cb317323d2" options = ["!cross"] @subpackage("gsettings-desktop-schemas-devel") def _devel(self): self.depends += [f"{pkgname}={pkgver}-r{pkgrel}"] return self.default_devel()
#! /usr/bin/python # -*- coding: utf-8 -*- class GpioData: _count = 0 _modNum = 8 _specMap = {} _freqMap = {} _mapList = [] _modeMap = {} _smtMap = {} _map_table = {} def __init__(self): self.__defMode = 0 self.__eintMode = False self.__modeVec = ['0', '0', '0', '0', '0', '0', '0', '0'] self.__inPullEn = True self.__inPullSelHigh = False self.__defDirInt = 0 self.__defDir = 'IN' self.__inEn = True self.__outEn = False self.__outHigh = False self.__varNames = [] self.__smtNum = -1 self.__smtEn = False self.__iesEn = True self.__drvCur = "" def get_defMode(self): return self.__defMode def set_defMode(self, mode): self.__defMode = mode def get_eintMode(self): return self.__eintMode def set_eintMode(self, flag): self.__eintMode = flag def get_modeVec(self): return self.__modeVec def set_modeVec(self, vec): self.__modeVec = vec def get_inPullEn(self): return self.__inPullEn def set_inpullEn(self, flag): self.__inPullEn = flag def get_inPullSelHigh(self): return self.__inPullSelHigh def set_inpullSelHigh(self, flag): self.__inPullSelHigh = flag def get_defDir(self): return self.__defDir def set_defDir(self, dir): self.__defDir = dir def get_inEn(self): return self.__inEn def set_inEn(self, flag): self.__inEn = flag def get_outEn(self): return self.__outEn def set_outEn(self, flag): self.__outEn = flag def get_outHigh(self): return self.__outHigh def set_outHigh(self, outHigh): self.__outHigh = outHigh def get_varNames(self): return self.__varNames def set_varNames(self, names): self.__varNames = names def set_smtEn(self, flag): self.__smtEn = flag def get_smtEn(self): return self.__smtEn def get_iesEn(self): return self.__iesEn def set_iesEn(self, flag): self.__iesEn = flag def set_drvCur(self, val): self.__drvCur = val def get_drvCur(self): return self.__drvCur def set_smtNum(self, num): self.__smtNum = num def get_smtNum(self): return self.__smtNum def ge_defDirInt(self): if self.__defDir == 'IN': return 0 else: return 1 @staticmethod def set_eint_map_table(map_table): GpioData._map_table = map_table @staticmethod def get_modeName(key, idx): if key in GpioData._modeMap.keys(): value = GpioData._modeMap[key] return value[idx]
class Solution: def smallestRepunitDivByK(self, k: int) -> int: if k % 2 == 0 or k % 5 == 0: return -1 if k == 1: return 1 count = 1 n = 1 while (n % k > 0): n = (n % k) * 10 + 1 count += 1 return count
"""Exceptions for ocean_utils """ # Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 class OceanInvalidContractAddress(Exception): """Raised when an invalid address is passed to the contract loader.""" class OceanDIDUnknownValueType(Exception): """Raised when a requested DID or a DID in the chain cannot be found.""" class OceanDIDAlreadyExist(Exception): """Raised when a requested DID is already published in OceanDB.""" class OceanInvalidMetadata(Exception): """Raised when some value in the metadata is invalid.""" class OceanInvalidServiceAgreementSignature(Exception): """Raised when the SLA signature is not valid.""" class OceanServiceAgreementExists(Exception): """Raised when the SLA already exists.""" class OceanInitializeServiceAgreementError(Exception): """Error on invoking purchase endpoint""" class OceanEncryptAssetUrlsError(Exception): """Error invoking the encrypt endpoint""" class OceanServiceConsumeError(Exception): """ Error invoking a purchase endpoint""" class OceanInvalidAgreementTemplate(Exception): """ Error when agreement template is not valid or not approved"""
class PiggyBank: # create __init__ and add_money methods def __init__(self, dollars, cents): self.dollars = dollars self.cents = cents def add_money(self, deposit_dollars, deposit_cents): self.dollars += deposit_dollars self.cents += deposit_cents if self.cents >= 100: to_dollar = int(self.cents / 100) self.dollars += to_dollar self.cents -= to_dollar * 100
class Solution: def countAndSay(self, n: int) -> str: s = '1' for _ in range(1, n): nextS = '' countC = 1 for i in range(1, len(s) + 1): if i == len(s) or s[i] != s[i - 1]: nextS += str(countC) + s[i - 1] countC = 1 else: countC += 1 s = nextS return s
def area(larg, comp): area = larg * comp print(f'A área de um terreno {larg:.2f}x{comp:.2f} é de {area} m^2') print('Controle de Terrenos') print('-' * 20) larg = float(input('LARGURA (m): ')) comp = float(input('COMPRIMENTO (m): ')) area(larg, comp)
############################################################################### # Auto-generated by `jupyter-book config` # If you wish to continue using _config.yml, make edits to that file and # re-generate this one. ############################################################################### author = 'The Jupyter Book Community' bibtex_bibfiles = ['references.bib'] bibtex_reference_style = 'author_year' comments_config = {'hypothesis': False, 'utterances': False} copyright = '2021' exclude_patterns = ['**.ipynb_checkpoints', '.DS_Store', 'Thumbs.db', '_build', 'file-types/include-rst.rst'] execution_allow_errors = False execution_excludepatterns = [] execution_in_temp = False execution_timeout = 30 extensions = ['sphinx_togglebutton', 'sphinx_copybutton', 'myst_nb', 'jupyter_book', 'sphinx_thebe', 'sphinx_comments', 'sphinx_external_toc', 'sphinx.ext.intersphinx', 'sphinx_panels', 'sphinx_book_theme', 'sphinx_click.ext', 'sphinx_inline_tabs', 'sphinxext.rediraffe', 'sphinx_proof', 'sphinxcontrib.bibtex', 'sphinx_jupyterbook_latex'] external_toc_exclude_missing = False external_toc_path = '_toc.yml' html_baseurl = 'https://jupyterbook.org/' html_extra_path = ['images/badge.svg'] html_favicon = 'images/favicon.ico' html_logo = 'images/logo-wide.svg' html_sourcelink_suffix = '' html_static_path = ['_static'] html_theme = 'sphinx_book_theme' html_theme_options = {'search_bar_text': 'Search this book...', 'launch_buttons': {'notebook_interface': 'classic', 'binderhub_url': 'https://mybinder.org', 'jupyterhub_url': '', 'thebe': True, 'colab_url': 'https://colab.research.google.com'}, 'path_to_docs': 'docs', 'repository_url': 'https://github.com/executablebooks/jupyter-book', 'repository_branch': 'master', 'google_analytics_id': 'UA-52617120-7', 'extra_navbar': 'Powered by <a href="https://jupyterbook.org">Jupyter Book</a>', 'extra_footer': '', 'home_page_in_toc': False, 'announcement': '⚠️The latest release refactored our HTML, so double-check your custom CSS rules!⚠️', 'use_repository_button': True, 'use_edit_page_button': True, 'use_issues_button': True} html_title = '' intersphinx_mapping = {'ebp': ['https://executablebooks.org/en/latest/', None], 'myst-parser': ['https://myst-parser.readthedocs.io/en/latest/', None], 'myst-nb': ['https://myst-nb.readthedocs.io/en/latest/', None], 'sphinx': ['https://www.sphinx-doc.org/en/master', None], 'nbformat': ['https://nbformat.readthedocs.io/en/latest', None], 'sphinx-panels': ['https://sphinx-panels.readthedocs.io/en/sphinx-book-theme/', None]} jupyter_cache = '' jupyter_execute_notebooks = 'cache' language = 'en' latex_elements = {'preamble': '\\newcommand\\N{\\mathbb{N}}\n\\newcommand\\floor[1]{\\lfloor#1\\rfloor}\n\\newcommand{\\bmat}{\\left[\\begin{array}}\n\\newcommand{\\emat}{\\end{array}\\right]}\n'} latex_engine = 'xelatex' mathjax3_config = {'TeX': {'Macros': {'N': '\\mathbb{N}', 'floor': ['\\lfloor#1\\rfloor', 1], 'bmat': ['\\left[\\begin{array}'], 'emat': ['\\end{array}\\right]']}}} myst_enable_extensions = ['amsmath', 'colon_fence', 'deflist', 'dollarmath', 'html_admonition', 'html_image', 'linkify', 'replacements', 'smartquotes', 'substitution'] myst_substitutions = {'sub3': 'My _global_ value!'} myst_url_schemes = ['mailto', 'http', 'https'] nb_custom_formats = {'.Rmd': ['jupytext.reads', {'fmt': 'Rmd'}]} nb_output_stderr = 'show' numfig = True panels_add_bootstrap_css = False pygments_style = 'sphinx' rediraffe_branch = 'master' rediraffe_redirects = {'content-types/index.md': 'file-types/index.md', 'content-types/markdown.md': 'file-types/markdown.md', 'content-types/notebooks.ipynb': 'file-types/notebooks.ipynb', 'content-types/myst-notebooks.md': 'file-types/myst-notebooks.md', 'content-types/jupytext.md': 'file-types/jupytext.Rmd', 'content-types/restructuredtext.md': 'file-types/restructuredtext.md', 'customize/toc.md': 'structure/toc.md'} suppress_warnings = ['myst.domains'] use_jupyterbook_latex = True use_multitoc_numbering = True
def convert_to_int(integer_string_with_commas): comma_separated_parts = integer_string_with_commas.split(",") for i in range(len(comma_separated_parts)): if len(comma_separated_parts[i]) > 3: return None if i != 0 and len(comma_separated_parts[i]) != 3: return None integer_string_without_commas = "".join(comma_separated_parts) try: return int(integer_string_without_commas) except ValueError: return None def row_to_list(row): row = row.rstrip("\n") separated_entries = row.split("\t") if len(separated_entries) == 2 and "" not in separated_entries: return separated_entries return None def preprocess(raw_data_file_path, clean_data_file_path): with open(raw_data_file_path, "r") as input_file: rows = input_file.readlines() with open(clean_data_file_path, "w") as output_file: for row in rows: row_as_list = row_to_list(row) if row_as_list is None: continue area = convert_to_int(row_as_list[0]) price = convert_to_int(row_as_list[1]) if area is None or price is None: continue output_file.write("{0}\t{1}\n".format(area, price))
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """USB constant definitions. """ class DescriptorType(object): """Descriptor Types. See Universal Serial Bus Specification Revision 2.0 Table 9-5. """ DEVICE = 1 CONFIGURATION = 2 STRING = 3 INTERFACE = 4 ENDPOINT = 5 QUALIFIER = 6 OTHER_SPEED_CONFIGURATION = 7 class DeviceClass(object): """Class code. See http://www.usb.org/developers/defined_class. """ PER_INTERFACE = 0 AUDIO = 1 COMM = 2 HID = 3 PHYSICAL = 5 STILL_IMAGE = 6 PRINTER = 7 MASS_STORAGE = 8 HUB = 9 CDC_DATA = 10 CSCID = 11 CONTENT_SEC = 13 VIDEO = 14 VENDOR = 0xFF class DeviceSubClass(object): """Subclass code. See http://www.usb.org/developers/defined_class. """ PER_INTERFACE = 0 VENDOR = 0xFF class DeviceProtocol(object): """Protocol code. See http://www.usb.org/developers/defined_class. """ PER_INTERFACE = 0 VENDOR = 0xFF class InterfaceClass(object): """Class code. See http://www.usb.org/developers/defined_class. """ VENDOR = 0xFF class InterfaceSubClass(object): """Subclass code. See http://www.usb.org/developers/defined_class. """ VENDOR = 0xFF class InterfaceProtocol(object): """Protocol code. See http://www.usb.org/developers/defined_class. """ VENDOR = 0xFF class TransferType(object): """Transfer Type. See http://www.usb.org/developers/defined_class. """ MASK = 3 CONTROL = 0 ISOCHRONOUS = 1 BULK = 2 INTERRUPT = 3 class Dir(object): """Data transfer direction. See Universal Serial Bus Specification Revision 2.0 Table 9-2. """ OUT = 0 IN = 0x80 class Type(object): """Request Type. See Universal Serial Bus Specification Revision 2.0 Table 9-2. """ MASK = 0x60 STANDARD = 0x00 CLASS = 0x20 VENDOR = 0x40 RESERVED = 0x60 class Recipient(object): """Request Recipient. See Universal Serial Bus Specification Revision 2.0 Table 9-2. """ MASK = 0x1f DEVICE = 0 INTERFACE = 1 ENDPOINT = 2 OTHER = 3 class Request(object): """Standard Request Codes. See Universal Serial Bus Specification Revision 2.0 Table 9-4. """ GET_STATUS = 0x00 CLEAR_FEATURE = 0x01 SET_FEATURE = 0x03 SET_ADDRESS = 0x05 GET_DESCRIPTOR = 0x06 SET_DESCRIPTOR = 0x07 GET_CONFIGURATION = 0x08 SET_CONFIGURATION = 0x09 GET_INTERFACE = 0x0A SET_INTERFACE = 0x0B SYNCH_FRAME = 0x0C SET_SEL = 0x30 SET_ISOCH_DELAY = 0x31 class Speed(object): UNKNOWN = 0 LOW = 1 FULL = 2 HIGH = 3 WIRELESS = 4 SUPER = 5 class VendorID(object): GOOGLE = 0x18D1 class ProductID(object): GOOGLE_TEST_GADGET = 0x58F0 GOOGLE_KEYBOARD_GADGET = 0x58F1 GOOGLE_MOUSE_GADGET = 0x58F2 GOOGLE_HID_ECHO_GADGET = 0x58F3
class Component: def update(self): return self def print_to(self, x, y, media): return media
#encoding=utf-8 ######################################################################## def checkIndex(key): """ 所给的键是能接受的索引吗? 为了能被接受,键应该是一个非负的整数。如果它不是一个整数,会引发TypeError; 如果它是负数,则会引发IndexError(因为序列是无限长的) """ if not isinstance(key, (int)): raise TypeError if key < 0: raise IndexError class ArithmeticSequence: """""" #---------------------------------------------------------------------- def __init__(self, start = 0, step = 0): """ 初始化算术序列 起始值------序列中的第一值 步长-----两个相邻值之间的差别 改变-----用户修改的值的字典 """ self.start = start self.step = step self.changed = {} def __getitem__(self, key): """ Get an item from the arithmetic sequence. """ checkIndex(key) try: return self.changed[key] #修改了吗? except KeyError: #否则... return self.start + key*self.step #.......计算值 def __setitem__(self, key, value): """ 修改算术序列中的一个项 """ checkIndex(key) self.changed[key] = value # Test method def test_ArithmeticSequence(): s = ArithmeticSequence(1,2) print(s[4]) s[4] = 2 print(s[4]) print(s[5]) del s[4] s["four"] s[-3] # Do test if __name__ == "__main__": test_ArithmeticSequence()
n = int(input('Numero de notas: ')) notas = 0 i=0 while i<n: notas += float(input("nota: ")) i+=1 print('a media das notas é {:.1f}'.format(notas/n))
""" Python program for implementation of Quicksort Sort This function takes last element as pivot, places the pivot element at its correct position in sorted array, and places all smaller (smaller than pivot) to left of pivot and all greater elements to right of pivot""" def partition(arr, low, high): i = (low-1) # index of smaller element pivot = arr[high] # pivot for j in range(low, high): # If current element is smaller than or # equal to pivot if arr[j] <= pivot: # increment index of smaller element i = i+1 arr[i], arr[j] = arr[j], arr[i] arr[i+1], arr[high] = arr[high], arr[i+1] return (i+1) # a[] is the array to be sorted, # low is the Starting index, # high is the Ending index # Function to do Quick sort def quickSort(a, low, high): if len(a) == 1: return a if low < high: # pi is partitioning index pi = partition(a, low, high) quickSort(a, low, pi-1)#this is partition on left side quickSort(a, pi+1, high)#this is partition on right side n=int(input('enter the length of array ')) print('enter the elements of the array ') a=[]# a new dynamic array for i in range(n): a.append(int(input())) print('unsorted array is') print(a) quickSort(a, 0,len(a)-1) print("Sorted array is:") print(a) """ Input/Output enter the length of array 5 enter the elements of the array 10 6 8 2 4 unsorted array is [10, 6, 8, 2, 4] Sorted array is: [2, 4, 6, 8, 10] SPACE COMPLEXITY: Solution: Quicksort has a space complexity of O(logn), even in the worst case. TIME COMPLEXITY time complexity in worst case is O(n^2). """
# CAPWATCH downloader config variables ## Copyright 2017 Marshall E. Giguere ## ## 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. # ID for eServices account Login UID = '' # eServices password PASSWD = '' # Unit default UNIT = 'NER-NH-001' # Fully qualified path name for downloaded CAPWATCH zipfile DL_FILEPATH = '' # Timeout value for download - how long to wait for file exsits TIMEOUT = 5 # How long to wait for an HTML DOM element to appear in webdriver DOM_TIMEOUT = 50 # If you are running on Linux and have installed the xvfb, pyvirtdisplay # packages you can run capwatch.py in the background wo/display. Otherwise # webdriver requires a display to render the DOM on. BATCH = False
class FakeCustomerRepository: def __init__(self): self.customers = [] def get_by_id(self, customer_id): return next( (customer for customer in self.customers if customer.id == customer_id), None, ) def get_by_email(self, email): return next( (customer for customer in self.customers if customer.email == email), None ) def has_customer_with_email(self, email, customer_id=None): if customer_id: return any( customer for customer in self.customers if customer.email == email and customer.id != customer_id ) return any(customer for customer in self.customers if customer.email == email) def save(self, customer): self.customers = [other for other in self.customers if other.id != customer.id] self.customers.append(customer) def delete(self, customer): self.customers.remove(customer)
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # class RuntimeConfig(object): WORK_MODE = None JOB_QUEUE = None USE_LOCAL_DATABASE = False @staticmethod def init_config(**kwargs): for k, v in kwargs.items(): if hasattr(RuntimeConfig, k): setattr(RuntimeConfig, k, v)
# # PySNMP MIB module CISCO-ENTITY-SENSOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ENTITY-SENSOR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:39:57 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") EntPhysicalIndexOrZero, = mibBuilder.importSymbols("CISCO-TC", "EntPhysicalIndexOrZero") entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") Counter32, iso, Bits, IpAddress, ObjectIdentity, Counter64, Gauge32, ModuleIdentity, MibIdentifier, NotificationType, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "iso", "Bits", "IpAddress", "ObjectIdentity", "Counter64", "Gauge32", "ModuleIdentity", "MibIdentifier", "NotificationType", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Unsigned32") TimeStamp, TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "TruthValue", "DisplayString", "TextualConvention") ciscoEntitySensorMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 91)) ciscoEntitySensorMIB.setRevisions(('2017-01-19 00:00', '2015-01-15 00:00', '2013-09-21 00:00', '2007-11-12 00:00', '2006-01-01 00:00', '2005-09-08 00:00', '2003-01-07 00:00', '2002-10-16 00:00', '2000-06-20 00:00',)) if mibBuilder.loadTexts: ciscoEntitySensorMIB.setLastUpdated('201701190000Z') if mibBuilder.loadTexts: ciscoEntitySensorMIB.setOrganization('Cisco Systems, Inc.') entitySensorMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1)) entitySensorMIBNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 2)) entitySensorMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3)) class SensorDataType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) namedValues = NamedValues(("other", 1), ("unknown", 2), ("voltsAC", 3), ("voltsDC", 4), ("amperes", 5), ("watts", 6), ("hertz", 7), ("celsius", 8), ("percentRH", 9), ("rpm", 10), ("cmm", 11), ("truthvalue", 12), ("specialEnum", 13), ("dBm", 14), ("dB", 15)) class SensorDataScale(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)) namedValues = NamedValues(("yocto", 1), ("zepto", 2), ("atto", 3), ("femto", 4), ("pico", 5), ("nano", 6), ("micro", 7), ("milli", 8), ("units", 9), ("kilo", 10), ("mega", 11), ("giga", 12), ("tera", 13), ("exa", 14), ("peta", 15), ("zetta", 16), ("yotta", 17)) class SensorPrecision(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-8, 9) class SensorValue(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-1000000000, 1000000000) class SensorStatus(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("ok", 1), ("unavailable", 2), ("nonoperational", 3)) class SensorValueUpdateRate(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 999999999) class SensorThresholdSeverity(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 10, 20, 30)) namedValues = NamedValues(("other", 1), ("minor", 10), ("major", 20), ("critical", 30)) class SensorThresholdRelation(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("lessThan", 1), ("lessOrEqual", 2), ("greaterThan", 3), ("greaterOrEqual", 4), ("equalTo", 5), ("notEqualTo", 6)) entSensorValues = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1)) entSensorThresholds = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2)) entSensorGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 3)) entSensorValueTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1), ) if mibBuilder.loadTexts: entSensorValueTable.setStatus('current') entSensorValueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: entSensorValueEntry.setStatus('current') entSensorType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 1), SensorDataType()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorType.setStatus('current') entSensorScale = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 2), SensorDataScale()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorScale.setStatus('current') entSensorPrecision = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 3), SensorPrecision()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorPrecision.setStatus('current') entSensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 4), SensorValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorValue.setStatus('current') entSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 5), SensorStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorStatus.setStatus('current') entSensorValueTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 6), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorValueTimeStamp.setStatus('current') entSensorValueUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 7), SensorValueUpdateRate()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorValueUpdateRate.setStatus('current') entSensorMeasuredEntity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 1, 1, 1, 8), EntPhysicalIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorMeasuredEntity.setStatus('current') entSensorThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1), ) if mibBuilder.loadTexts: entSensorThresholdTable.setStatus('current') entSensorThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex"), (0, "CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdIndex")) if mibBuilder.loadTexts: entSensorThresholdEntry.setStatus('current') entSensorThresholdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99999999))) if mibBuilder.loadTexts: entSensorThresholdIndex.setStatus('current') entSensorThresholdSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 2), SensorThresholdSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdSeverity.setStatus('current') entSensorThresholdRelation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 3), SensorThresholdRelation()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdRelation.setStatus('current') entSensorThresholdValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 4), SensorValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdValue.setStatus('current') entSensorThresholdEvaluation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: entSensorThresholdEvaluation.setStatus('current') entSensorThresholdNotificationEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 2, 1, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThresholdNotificationEnable.setStatus('current') entSensorThreshNotifGlobalEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 91, 1, 3, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: entSensorThreshNotifGlobalEnable.setStatus('current') entitySensorMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0)) entSensorThresholdNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0, 1)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdSeverity")) if mibBuilder.loadTexts: entSensorThresholdNotification.setStatus('current') entSensorThresholdRecoveryNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 91, 2, 0, 2)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdSeverity"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdValue")) if mibBuilder.loadTexts: entSensorThresholdRecoveryNotification.setStatus('current') entitySensorMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1)) entitySensorMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2)) entitySensorMIBComplianceV01 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 1)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV01 = entitySensorMIBComplianceV01.setStatus('deprecated') entitySensorMIBComplianceV02 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 2)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV02 = entitySensorMIBComplianceV02.setStatus('deprecated') entitySensorMIBComplianceV03 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 3)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroupSup1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV03 = entitySensorMIBComplianceV03.setStatus('deprecated') entitySensorMIBComplianceV04 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 4)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdNotificationGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroupSup1"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorNotifCtrlGlobalGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV04 = entitySensorMIBComplianceV04.setStatus('deprecated') entitySensorMIBComplianceV05 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 1, 5)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entitySensorThresholdGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorValueGroupSup1"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorNotifCtrlGlobalGroup"), ("CISCO-ENTITY-SENSOR-MIB", "entitySensorNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorMIBComplianceV05 = entitySensorMIBComplianceV05.setStatus('current') entitySensorValueGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 1)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorType"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorScale"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorPrecision"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorStatus"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValueTimeStamp"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorValueUpdateRate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorValueGroup = entitySensorValueGroup.setStatus('current') entitySensorThresholdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 2)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdSeverity"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdRelation"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdValue"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdEvaluation"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdNotificationEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorThresholdGroup = entitySensorThresholdGroup.setStatus('current') entitySensorThresholdNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 3)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorThresholdNotificationGroup = entitySensorThresholdNotificationGroup.setStatus('deprecated') entitySensorValueGroupSup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 4)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorMeasuredEntity")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorValueGroupSup1 = entitySensorValueGroupSup1.setStatus('current') entitySensorNotifCtrlGlobalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 5)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThreshNotifGlobalEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorNotifCtrlGlobalGroup = entitySensorNotifCtrlGlobalGroup.setStatus('current') entitySensorNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 91, 3, 2, 6)).setObjects(("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdNotification"), ("CISCO-ENTITY-SENSOR-MIB", "entSensorThresholdRecoveryNotification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): entitySensorNotificationGroup = entitySensorNotificationGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-ENTITY-SENSOR-MIB", entSensorThresholdSeverity=entSensorThresholdSeverity, SensorStatus=SensorStatus, entitySensorValueGroup=entitySensorValueGroup, entSensorThresholdRecoveryNotification=entSensorThresholdRecoveryNotification, entSensorThresholds=entSensorThresholds, entitySensorMIBObjects=entitySensorMIBObjects, entSensorValueTable=entSensorValueTable, SensorPrecision=SensorPrecision, entSensorThresholdValue=entSensorThresholdValue, entSensorThresholdEvaluation=entSensorThresholdEvaluation, entSensorThreshNotifGlobalEnable=entSensorThreshNotifGlobalEnable, entitySensorMIBComplianceV04=entitySensorMIBComplianceV04, entSensorStatus=entSensorStatus, entitySensorMIBNotificationPrefix=entitySensorMIBNotificationPrefix, ciscoEntitySensorMIB=ciscoEntitySensorMIB, entSensorThresholdNotificationEnable=entSensorThresholdNotificationEnable, entSensorThresholdRelation=entSensorThresholdRelation, SensorValue=SensorValue, entSensorType=entSensorType, entSensorThresholdEntry=entSensorThresholdEntry, entitySensorMIBNotifications=entitySensorMIBNotifications, entitySensorNotifCtrlGlobalGroup=entitySensorNotifCtrlGlobalGroup, entSensorThresholdNotification=entSensorThresholdNotification, SensorValueUpdateRate=SensorValueUpdateRate, PYSNMP_MODULE_ID=ciscoEntitySensorMIB, entSensorThresholdTable=entSensorThresholdTable, entSensorValues=entSensorValues, SensorThresholdRelation=SensorThresholdRelation, entitySensorMIBComplianceV03=entitySensorMIBComplianceV03, SensorDataScale=SensorDataScale, entSensorValueEntry=entSensorValueEntry, entSensorScale=entSensorScale, entitySensorMIBComplianceV05=entitySensorMIBComplianceV05, entitySensorThresholdNotificationGroup=entitySensorThresholdNotificationGroup, entitySensorMIBConformance=entitySensorMIBConformance, entSensorValue=entSensorValue, entSensorGlobalObjects=entSensorGlobalObjects, entitySensorMIBComplianceV02=entitySensorMIBComplianceV02, entitySensorThresholdGroup=entitySensorThresholdGroup, entitySensorNotificationGroup=entitySensorNotificationGroup, entSensorPrecision=entSensorPrecision, entSensorValueTimeStamp=entSensorValueTimeStamp, entitySensorValueGroupSup1=entitySensorValueGroupSup1, entitySensorMIBCompliances=entitySensorMIBCompliances, entitySensorMIBGroups=entitySensorMIBGroups, entSensorThresholdIndex=entSensorThresholdIndex, SensorDataType=SensorDataType, SensorThresholdSeverity=SensorThresholdSeverity, entSensorMeasuredEntity=entSensorMeasuredEntity, entSensorValueUpdateRate=entSensorValueUpdateRate, entitySensorMIBComplianceV01=entitySensorMIBComplianceV01)
INSTALLED_APPS += ( 'social_auth', ) AUTHENTICATION_BACKENDS = ( 'social_auth.backends.twitter.TwitterBackend', 'social_auth.backends.facebook.FacebookBackend', 'django.contrib.auth.backends.ModelBackend', ) TEMPLATE_CONTEXT_PROCESSORS += ( 'social_auth.context_processors.social_auth_backends', 'social_auth.context_processors.social_auth_login_redirect', ) TWITTER_CONSUMER_KEY = 'YOUR KEY HERE ' TWITTER_CONSUMER_SECRET = 'YOUR SECRET HERE ' FACEBOOK_APP_ID = '299553123569374' FACEBOOK_API_SECRET = '83a6bc215286c8c0429d134a2db38d0d'
num_waves = 4 num_eqn = 5 # Conserved quantities density = 0 x_momentum = 1 y_momentum = 2 energy = 3 tracer = 4
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Napisz funkcję big_no zwracającej tzw. "Big 'NO!'" (zob. http://tvtropes.org/pmwiki/pmwiki.php/Main/BigNo) dla zadanej liczby tj. napis typu "NOOOOOOOOOOOOO!", gdzie liczba 'O' ma być równa podanemu argumentem, przy czym jeśli argument jest mniejszy niż 5, ma być zwracany napis "It's not a Big 'No!'". """ def big_no(n): if n < 5: print("It's not a Big 'No!'") else: print('N'+'O' * n + '!') pass big_no(100) input = 2 output = "It's not a Big 'No!'"
class Solution: def circularArrayLoop(self, nums: List[int]) -> bool: N = len(nums) for i, num in enumerate(nums): if num == 0: continue cur = i flag = num / abs(num) seen = set() while nums[cur] * flag > 0: nx = (cur + nums[cur]) % N nums[cur] = 0 seen.add(cur) if nx in seen and cur != nx: return True cur = nx return False
N, M = map(int, input().split()) for i in range(1, N, 2): print(''.join(['.|.'] * i).center(M, '-')) print("WELCOME".center(M, '-')) for i in range(N-2, -1, -2): print(''.join(['.|.'] * i).center(M, '-'))
class SVGFilterInputs: SourceGraphic = 'SourceGraphic' SourceAlpha = 'SourceAlpha' BackgroundImage = 'BackgroundImage' BackgroundAlpha = 'BackgroundAlpha' FillPaint = 'FillPaint' StrokePaint = 'StrokePaint' class SVGFilter: def __init__(self, svg): self.svg = svg def render(self, renderfn): # do some setup renderfn() # undo some setup
#coding:utf-8 bind = 'unix:/var/run/gunicorn.sock' workers = 4 # you should change this user = 'root' # maybe you like error loglevel = 'warning' errorlog = '-' secure_scheme_headers = { 'X-SCHEME': 'https', } x_forwarded_for_header = 'X-FORWARDED-FOR' ### gunicorn -c settings.py -b 0.0.0.0:9000 wsgi:app
def get_count_A_C_G_and_T_in_string(dna_string): ''' Create a function named get_count_A_C_G_and_T_in_string with a parameter named dna_string. :param dna_string: a DNA string :return: the count of As, Cs, Gs, and Ts in the dna_string ''' A_count=0 C_count=0 G_count=0 T_count=0 for ch in dna_string.upper(): if ch == 'A': A_count += 1 for ch in dna_string.upper(): if ch == 'C': C_count += 1 for ch in dna_string.upper(): if ch == 'G': G_count += 1 for ch in dna_string.upper(): if ch == 'T': T_count += 1 return A_count, C_count, G_count, T_count
for i in range(10): a = i print(a)
# LeetCode 897. Increasing Order Search Tree `E` # 1sk | 89% | 19' # A~0v10 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def increasingBST(self, root: TreeNode) -> TreeNode: ans = self.tree = TreeNode(None) self.inorder(root) return ans.right def inorder(self, node): if not node: return self.inorder(node.left) node.left = None self.tree.right = node self.tree = node self.inorder(node.right)
# -*- coding: utf-8 -*- class Saludo(object): """docstring for Saludo""" def __init__(self): super(Saludo, self).__init__() print('\n Estoy saludando ..') Saludo()
# Python program to print positive Numbers in a List # list of numbers list1 = [10, -21, 4, -45, -66, -93] # using list comprehension positive_nos = [num for num in list1 if num <= 0] print("positive numbers in the list: ", positive_nos) # Remove multiple elements from list l = [3, 5, 7, 4, 8, 4, 3] l.sort() print("l=", l) # Find the reverse of given list. l = [1, 2, 3, 4] l.reverse() print(l)
# nested try's try: print("try 1") try: print("try 2") foo() except: print("except 2") bar() except: print("except 1") try: print("try 1") try: print("try 2") foo() except TypeError: print("except 2") bar() except NameError: print("except 1") # Check that exceptions across function boundaries work as expected def func1(): try: print("try func1") func2() except NameError: print("except func1") def func2(): try: print("try func2") foo() except TypeError: print("except func2") func1()
__all__ = [ 'fullname', 'starts_with' ] # https://stackoverflow.com/questions/2020014/get-fully-qualified-class-name-of-an-object-in-python def fullname(o): if o is None: return None module = o.__class__.__module__ if module is None or module == str.__class__.__module__: return o.__class__.__name__ else: return module + '.' + o.__class__.__name__ def starts_with(collection, text): if text is None or collection is None: return False for item in collection: if text.startswith(item): return True return False
config_prefix = '=' config_description = 'Use =help to get started!' config_owner_id = 311661241406062592 config_bot_log_channel = 741486105173688351 config_command_log_channel = 741486105173688351 config_error_log_channel = 741486105173688351 config_guild_log_channel = 741486105173688351
#Number analysis program NUMBER_SERIES = 20 def main(): #here is the mathematical algorithm/code numbers = get_numbers() total = calculate_total(numbers) average = total / len(numbers) highest_number = max(numbers) lowest_number = min(numbers) print() print_details(numbers,total,average,highest_number,lowest_number) def get_numbers(): number_list = [0] * NUMBER_SERIES print('Enter a series of numbers.') print() for index in range(len(number_list)): number_list[index] = float(input('Enter a number: ')) return number_list def calculate_total(numbers): total = 0 #intiating accumulator for values in numbers: total += values return total def print_details(numbers,total,average,highest_number,lowest_number): print(numbers,'\nThe total =',total,'\nThe average =',average,\ '\nThe highest number =',highest_number,'\nThe lowest number'\ ' =',lowest_number) main()
def eastern_boundaries(lon,lat): m = Basemap(projection='cyl') boundaries = [] last_l_is_land = m.is_land(lon[0],lat) for l in lon[1:]: current_l_is_land = m.is_land(l,lat) if last_l_is_land and not current_l_is_land: boundaries.append(l) last_l_is_land = current_l_is_land return boundaries def calculate_coefficients(z,lon,lats,target_lat,dt,c1,c2,c3,c4,c5,c6,c7): # Constants, defined as in CCSM EARTH_RADIUS = 6370.0E3 OMEGA = 7.292123625E-5 PI = 4*math.atan(1) lat_i = find_nearest(lats, target_lat) lat = lats[lat_i] dlon = np.abs(lon[1] - lon[0]) dx = dlon * EARTH_RADIUS / 180 * PI * math.cos(lat / 180 * PI) try: dlat = np.diff(lats)[lat_i] except IndexError: dlat = np.diff(lats)[-1] dy = dlat * EARTH_RADIUS / 180 * PI phip = PI * min(np.abs(lat),c7) / c7 ASGS = c6 BSGS = c1*(1+c2*(1-math.cos(phip))) if np.abs(lat) < 30: VS = 0.425 * np.cos(lat*PI/30) + 0.575 else: VS = 0.15 #AGRe = 0.5 * VS * np.exp(-z/1000) * dx AGRe = 0 p = [] boundaries = eastern_boundaries(lon,lat) for x in lon: boundary_distance = np.Inf in_boundary_layer = False for boundary in boundaries: if (x - c5*dlon <= boundary) & (x >= boundary): p_x = 0 in_boundary_layer = True elif x >= boundary: boundary_distance = min(np.abs(x - boundary - c5*dlon),boundary_distance) if not in_boundary_layer: p_x = boundary_distance * c4 * EARTH_RADIUS / 180 * PI * math.cos(lat / 180 * PI) p.append(p_x) beta = 2 * OMEGA / EARTH_RADIUS * math.cos(lat * PI / 180) BMUNK = c3 * beta * dx**3 * np.exp(-np.asarray(p)**2) ANoise = [max(AGRe,x) for x in BMUNK] BNoise = ANoise Ap = [max(ASGS,x) for x in ANoise] Bp = [max(BSGS,x) for x in BNoise] AVCFL = 0.125 / (dt * (1/dx/dx + 1/dy/dy)) BVCFL = AVCFL A = [min(AVCFL,x) for x in Ap] B = [min(BVCFL,x) for x in Bp] return np.asarray(A)/1E3, np.asarray(B)/1E3