repo_name
stringlengths 5
92
| path
stringlengths 4
221
| copies
stringclasses 19
values | size
stringlengths 4
6
| content
stringlengths 766
896k
| license
stringclasses 15
values | hash
int64 -9,223,277,421,539,062,000
9,223,102,107B
| line_mean
float64 6.51
99.9
| line_max
int64 32
997
| alpha_frac
float64 0.25
0.96
| autogenerated
bool 1
class | ratio
float64 1.5
13.6
| config_test
bool 2
classes | has_no_keywords
bool 2
classes | few_assignments
bool 1
class |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
suizokukan/dchars-fe | kshortcuts.py | 1 | 2929 | #!./python_link
# -*- coding: utf-8 -*-
################################################################################
# DChars-FE Copyright (C) 2008 Xavier Faure
# Contact: faure dot epistulam dot mihi dot scripsisti at orange dot fr
#
# This file is part of DChars-FE.
# DChars-FE is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# DChars-FE is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DChars-FE. If not, see <http://www.gnu.org/licenses/>.
################################################################################
"""
❏DChars-FE❏ kshortcuts.py
(keyboard) shortcuts
"""
################################################################################
class KeyboardShortcut(object):
"""
class KeyboardShortcut
Use this class to store two representations of shortcuts : the Qt one
and the "human readable" one.
"""
#///////////////////////////////////////////////////////////////////////////
def __init__(self, qstring, human_readeable_string):
"""
KeyboardShortcut.__init__
"""
self.qstring = qstring
self.human_readeable_string = human_readeable_string
KSHORTCUTS = {
"open" : \
KeyboardShortcut( qstring = "CTRL+O",
human_readeable_string = "CTRL+O" ),
"save as" : \
KeyboardShortcut( qstring = "CTRL+S",
human_readeable_string = "CTRL+S" ),
"exit" : \
KeyboardShortcut( qstring = "CTRL+Q",
human_readeable_string = "CTRL+Q" ),
"display help chars" : \
KeyboardShortcut( qstring = "CTRL+H",
human_readeable_string = "CTRL+H" ),
"apply" : \
KeyboardShortcut( qstring = "CTRL+SPACE",
human_readeable_string = "CTRL+SPACE" ),
"add trans" : \
KeyboardShortcut( qstring = "CTRL++",
human_readeable_string = "CTRL + '+'" ),
"sub trans" : \
KeyboardShortcut( qstring = "CTRL+-",
human_readeable_string = "CTRL + '-'" ),
}
| gpl-3.0 | -7,099,916,806,350,500,000 | 38.527027 | 82 | 0.454701 | false | 4.695024 | false | false | false |
immanetize/nikola | nikola/filters.py | 1 | 7187 | # -*- coding: utf-8 -*-
# Copyright © 2012-2015 Roberto Alsina and others.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the
# Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice
# shall be included in all copies or substantial portions of
# the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
# PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""Utility functions to help you run filters on files."""
from .utils import req_missing
from functools import wraps
import os
import io
import shutil
import subprocess
import tempfile
import shlex
try:
import typogrify.filters as typo
except ImportError:
typo = None # NOQA
def apply_to_binary_file(f):
"""Take a function f that transforms a data argument, and returns
a function that takes a filename and applies f to the contents,
in place. Reads files in binary mode."""
@wraps(f)
def f_in_file(fname):
with open(fname, 'rb') as inf:
data = inf.read()
data = f(data)
with open(fname, 'wb+') as outf:
outf.write(data)
return f_in_file
def apply_to_text_file(f):
"""Take a function f that transforms a data argument, and returns
a function that takes a filename and applies f to the contents,
in place. Reads files in UTF-8."""
@wraps(f)
def f_in_file(fname):
with io.open(fname, 'r', encoding='utf-8') as inf:
data = inf.read()
data = f(data)
with io.open(fname, 'w+', encoding='utf-8') as outf:
outf.write(data)
return f_in_file
def list_replace(the_list, find, replacement):
"Replace all occurrences of ``find`` with ``replacement`` in ``the_list``"
for i, v in enumerate(the_list):
if v == find:
the_list[i] = replacement
def runinplace(command, infile):
"""Run a command in-place on a file.
command is a string of the form: "commandname %1 %2" and
it will be execed with infile as %1 and a temporary file
as %2. Then, that temporary file will be moved over %1.
Example usage:
runinplace("yui-compressor %1 -o %2", "myfile.css")
That will replace myfile.css with a minified version.
You can also supply command as a list.
"""
if not isinstance(command, list):
command = shlex.split(command)
tmpdir = None
if "%2" in command:
tmpdir = tempfile.mkdtemp(prefix="nikola")
tmpfname = os.path.join(tmpdir, os.path.basename(infile))
try:
list_replace(command, "%1", infile)
if tmpdir:
list_replace(command, "%2", tmpfname)
subprocess.check_call(command)
if tmpdir:
shutil.move(tmpfname, infile)
finally:
if tmpdir:
shutil.rmtree(tmpdir)
def yui_compressor(infile):
yuicompressor = False
try:
subprocess.call('yui-compressor', stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w'))
yuicompressor = 'yui-compressor'
except Exception:
pass
if not yuicompressor:
try:
subprocess.call('yuicompressor', stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w'))
yuicompressor = 'yuicompressor'
except:
raise Exception("yui-compressor is not installed.")
return False
return runinplace(r'{} --nomunge %1 -o %2'.format(yuicompressor), infile)
def closure_compiler(infile):
return runinplace(r'closure-compiler --warning_level QUIET --js %1 --js_output_file %2', infile)
def optipng(infile):
return runinplace(r"optipng -preserve -o2 -quiet %1", infile)
def jpegoptim(infile):
return runinplace(r"jpegoptim -p --strip-all -q %1", infile)
def html_tidy_nowrap(infile):
return _html_tidy_runner(infile, r"-quiet --show-info no --show-warnings no -utf8 -indent --indent-attributes no --sort-attributes alpha --wrap 0 --wrap-sections no --tidy-mark no -modify %1")
def html_tidy_wrap(infile):
return _html_tidy_runner(infile, r"-quiet --show-info no --show-warnings no -utf8 -indent --indent-attributes no --sort-attributes alpha --wrap 80 --wrap-sections no --tidy-mark no -modify %1")
def html_tidy_wrap_attr(infile):
return _html_tidy_runner(infile, r"-quiet --show-info no --show-warnings no -utf8 -indent --indent-attributes yes --sort-attributes alpha --wrap 80 --wrap-sections no --tidy-mark no -modify %1")
def html_tidy_mini(infile):
return _html_tidy_runner(infile, r"-quiet --show-info no --show-warnings no -utf8 --indent-attributes no --sort-attributes alpha --wrap 0 --wrap-sections no --tidy-mark no -modify %1")
def _html_tidy_runner(infile, options):
""" Warnings (returncode 1) are not critical, and *everything* is a warning """
try:
status = runinplace(r"tidy5 " + options, infile)
except subprocess.CalledProcessError as err:
status = 0 if err.returncode == 1 else err.returncode
return status
@apply_to_text_file
def minify_lines(data):
return data
@apply_to_text_file
def typogrify(data):
if typo is None:
req_missing(['typogrify'], 'use the typogrify filter')
data = typo.amp(data)
data = typo.widont(data)
data = typo.smartypants(data)
# Disabled because of typogrify bug where it breaks <title>
# data = typo.caps(data)
data = typo.initial_quotes(data)
return data
@apply_to_text_file
def typogrify_sans_widont(data):
# typogrify with widont disabled because it caused broken headline
# wrapping, see issue #1465
if typo is None:
req_missing(['typogrify'], 'use the typogrify_sans_widont filter')
data = typo.amp(data)
data = typo.smartypants(data)
# Disabled because of typogrify bug where it breaks <title>
# data = typo.caps(data)
data = typo.initial_quotes(data)
return data
@apply_to_text_file
def php_template_injection(data):
import re
template = re.search('<\!-- __NIKOLA_PHP_TEMPLATE_INJECTION source\:(.*) checksum\:(.*)__ -->', data)
if template:
source = template.group(1)
with io.open(source, "r", encoding="utf-8") as in_file:
phpdata = in_file.read()
_META_SEPARATOR = '(' + os.linesep * 2 + '|' + ('\n' * 2) + '|' + ("\r\n" * 2) + ')'
phpdata = re.split(_META_SEPARATOR, phpdata, maxsplit=1)[-1]
phpdata = re.sub(template.group(0), phpdata, data)
return phpdata
else:
return data
| mit | -9,010,117,883,076,772,000 | 31.369369 | 198 | 0.660868 | false | 3.594797 | false | false | false |
Arzaroth/python_rapidxml | tests/test_basic.py | 1 | 5638 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: simple.py
# by Arzaroth Lekva
# [email protected]
#
import os
import rapidxml
def test_unparse(init_rapidxml):
assert init_rapidxml.unparse() == ('<root><test attr1="one" attr2="two" attr3="three"/>'
'<test2><node id="1"/><node id="2"/><node id="3"/></test2>'
'<test>some text</test></root>')
assert init_rapidxml.unparse() == repr(init_rapidxml)
assert init_rapidxml.unparse(False, False) == repr(init_rapidxml)
assert init_rapidxml.unparse(raw=False) == repr(init_rapidxml)
assert init_rapidxml.unparse(pretty=False) == repr(init_rapidxml)
assert init_rapidxml.unparse(pretty=False, raw=False) == repr(init_rapidxml)
assert init_rapidxml.unparse(True) == str(init_rapidxml)
assert init_rapidxml.unparse(True, False) == str(init_rapidxml)
assert init_rapidxml.unparse(pretty=True) == str(init_rapidxml)
assert init_rapidxml.unparse(pretty=True, raw=False) == str(init_rapidxml)
assert init_rapidxml.unparse(True, raw=False) == str(init_rapidxml)
def test_parse(init_rapidxml):
r = rapidxml.RapidXml()
try:
data = init_rapidxml.unparse().encode('utf-8')
except UnicodeDecodeError:
data = init_rapidxml.unparse()
r.parse(data)
assert str(r) == str(init_rapidxml)
def test_parse_from_file(init_rapidxml, tmpdir):
f = tmpdir.join("dump.xml")
f.write(init_rapidxml.unparse())
r = rapidxml.RapidXml(str(f), from_file=True)
assert str(r) == str(init_rapidxml)
def test_equals(init_rapidxml):
assert init_rapidxml == init_rapidxml
root = init_rapidxml.first_node()
assert root == root
assert root == init_rapidxml.first_node()
assert root.first_node() != root.first_node("test2")
assert (root != root) == (not (root == root))
def test_parent(init_rapidxml):
assert init_rapidxml.parent is None
assert init_rapidxml.first_node().parent == init_rapidxml
def test_assign(init_rapidxml):
root = init_rapidxml.first_node()
root.name = "new_root"
assert root.name == "new_root"
test = root.first_node()
test.name = "new_test"
test.first_attribute().name = "new_attr1"
test.first_attribute().next_attribute().value = "new_two"
test = root.first_node("test")
test.value = "some new text"
assert test.value == "some new text"
assert init_rapidxml.unparse() == ('<new_root><new_test new_attr1="one" attr2="new_two" attr3="three"/>'
'<test2><node id="1"/><node id="2"/><node id="3"/></test2>'
'<test>some new text</test></new_root>')
def test_init_cdata(init_rapidxml_with_CDADA):
datra_str =('<root><test attr1="one" attr2="two" attr3="three"/>'
'<test2><node id="1"/><node id="2"/><node id="3"/></test2>'
'<test>some text</test>'
"<ns2:AdditionalData><ns2:Data TID=\"AD_1\">"
"<![CDATA[{\"Cart\":{\"expirationTime\":\"2017-04-22T09:40\","
"\"id\":\"b469df3b-f626-4fe3-898c-825373e546a2\",\"products\":[\"1223\"],"
"\"creationTime\":\"2017-04-21T09:40\",\"totalPrice\":"
"{\"currencyCode\":\"EUR\",\"amount\":\"138.000\"}}}]]>"
"</ns2:Data></ns2:AdditionalData></root>")
assert init_rapidxml_with_CDADA.unparse() == rapidxml.RapidXml(datra_str,
from_file=False,
attribute_prefix='@',
cdata_key='#text',
always_aslist=False,
parse_cdata=True).unparse()
assert init_rapidxml_with_CDADA.unparse() == repr(init_rapidxml_with_CDADA)
assert init_rapidxml_with_CDADA.unparse(True) == str(init_rapidxml_with_CDADA)
def test_parse_cdata(init_rapidxml_with_CDADA):
r = rapidxml.RapidXml()
try:
data = init_rapidxml_with_CDADA.unparse().encode('utf-8')
except UnicodeDecodeError:
data = init_rapidxml_with_CDADA.unparse()
r.parse(data, from_file=False, parse_cdata=True)
assert str(r) == str(init_rapidxml_with_CDADA)
def test_parse_from_file_cdata(init_rapidxml_with_CDADA, tmpdir):
f = tmpdir.join("dump.xml")
f.write(init_rapidxml_with_CDADA.unparse())
r = rapidxml.RapidXml(str(f), from_file=True, parse_cdata=True)
assert str(r) == str(init_rapidxml_with_CDADA)
def test_equals_cdata(init_rapidxml_with_CDADA):
assert init_rapidxml_with_CDADA == init_rapidxml_with_CDADA
root = init_rapidxml_with_CDADA.first_node()
assert root == root
assert root == init_rapidxml_with_CDADA.first_node()
assert root.first_node() != root.first_node("test2")
assert (root != root) == (not (root == root))
def test_parent_cdata(init_rapidxml_with_CDADA):
assert init_rapidxml_with_CDADA.parent is None
assert init_rapidxml_with_CDADA.first_node().parent == init_rapidxml_with_CDADA
def test_assign_cdata(init_rapidxml_with_CDADA):
root = init_rapidxml_with_CDADA.first_node()
root.name = "new_root"
assert root.name == "new_root"
test = root.first_node()
test.name = "new_test"
test.first_attribute().name = "new_attr1"
test.first_attribute().next_attribute().value = "new_two"
test = root.first_node("test")
test.value = "some new text"
assert test.value == "some new text"
| mit | 6,300,679,868,644,704,000 | 44.104 | 108 | 0.595956 | false | 3.130483 | true | false | false |
OpenNetworkingFoundation/PIF-Open-Intermediate-Representation | pif_ir/bir/tests/test_common.py | 1 | 1166 | # single BIRStruct description
yaml_eth_struct_dict = {
'type' : 'struct',
'fields' : [
{'dst' : 48},
{'src' : 48},
{'type_' : 16}
]
}
yaml_udp_struct_dict = {
'type' : 'struct',
'fields' : [
{'sport' : 16},
{'dport' : 16},
{'len' : 16},
{'chksum' : 16}
]
}
yaml_req_struct_dict = {
'type' : 'struct',
'fields' : [
{'type_' : 16}
]
}
yaml_resp_struct_dict = {
'type' : 'struct',
'fields' : [
{'hit' : 1},
{'p4_action' : 2},
{'action_0_arg0' : 16},
{'action_1_arg0' : 16}
]
}
# single MetadataInstance description
yaml_eth_meta_dict = {
'type' : 'metadata',
'values' : 'eth_t',
'visibility' : 'inout'
}
yaml_req_meta_dict = {
'type' : 'metadata',
'values' : 'req_t',
'visibility' : 'inout'
}
yaml_resp_meta_dict = {
'type' : 'metadata',
'values' : 'resp_t',
'visibility' : 'inout'
}
# single Table description
yaml_table_dict = {
'type' : 'table',
'match_type' : 'ternary',
'depth' : 64,
'request' : 'req_t',
'response' : 'resp_t',
'operations' : None
}
| apache-2.0 | -2,003,529,813,339,534,800 | 17.21875 | 37 | 0.465695 | false | 2.823245 | false | true | false |
specter119/custodian | custodian/feff/handlers.py | 1 | 4398 | # coding: utf-8
from __future__ import unicode_literals, division
from custodian.custodian import ErrorHandler
import re
from custodian.utils import backup
from pymatgen.io.feff.sets import FEFFDictSet
from custodian.feff.interpreter import FeffModder
import logging
""" This module implements specific error handler for FEFF runs. """
__author__ = "Chen Zheng"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Chen Zheng"
__email__ = "[email protected]"
__date__ = "Oct 18, 2017"
FEFF_BACKUP_FILES = ["ATOMS", "HEADER", "PARAMETERS", "POTENTIALS", "feff.inp", "*.cif", "pot.bin"]
logger = logging.getLogger(__name__)
class UnconvergedErrorHandler(ErrorHandler):
"""
Correct the unconverged error of FEFF's SCF calculation.
"""
is_monitor = False
def __init__(self, output_filename='log1.dat'):
"""
Initializes the handler with the output file to check
Args:
output_filename (str): Filename for the log1.dat file. log1.dat file
contains the SCF calculation convergence information. Change this only
if it is different from the default (unlikely).
"""
self.output_filename = output_filename
def check(self):
"""
If the FEFF run does not converge, the check will return
"TRUE"
"""
return self._notconverge_check()
def _notconverge_check(self):
# Process the output file and get converge information
not_converge_pattern = re.compile("Convergence not reached.*")
converge_pattern = re.compile('Convergence reached.*')
for _, line in enumerate(open(self.output_filename)):
if len(not_converge_pattern.findall(line)) > 0:
return True
elif len(converge_pattern.findall(line)) > 0:
return False
def correct(self):
backup(FEFF_BACKUP_FILES)
feff_input = FEFFDictSet.from_directory(".")
scf_values = feff_input.tags.get("SCF")
nscmt = scf_values[2]
ca = scf_values[3]
nmix = scf_values[4]
actions = []
#Add RESTART card to PARAMETERS
if not "RESTART" in feff_input.tags:
actions.append({"dict": "PARAMETERS",
"action": {"_set": {"RESTART": []}}})
if nscmt < 100 and ca == 0.2:
scf_values[2] = 100
scf_values[4] = 3 # Set nmix = 3
actions.append({"dict": "PARAMETERS",
"action": {"_set": {"SCF": scf_values}}})
FeffModder().apply_actions(actions)
return {"errors": ["Non-converging job"], "actions": actions}
elif nscmt == 100 and nmix == 3 and ca > 0.01:
# Reduce the convergence accelerator factor
scf_values[3] = round(ca / 2, 2)
actions.append({"dict": "PARAMETERS",
"action": {"_set": {"SCF": scf_values}}})
FeffModder().apply_actions(actions)
return {"errors": ["Non-converging job"], "actions": actions}
elif nmix == 3 and ca == 0.01:
# Set ca = 0.05 and set nmix
scf_values[3] = 0.05
scf_values[4] = 5
actions.append({"dict": "PARAMETERS",
"action": {"_set": {"SCF": scf_values}}})
FeffModder().apply_actions(actions)
return {"errors": ["Non-converging job"], "actions": actions}
elif nmix == 5 and ca == 0.05:
# Set ca = 0.05 and set nmix
scf_values[3] = 0.05
scf_values[4] = 10
actions.append({"dict": "PARAMETERS",
"action": {"_set": {"SCF": scf_values}}})
FeffModder().apply_actions(actions)
return {"errors": ["Non-converging job"], "actions": actions}
elif nmix == 10 and ca < 0.2:
# loop through ca with nmix = 10
scf_values[3] = round(ca * 2, 2)
actions.append({"dict": "PARAMETERS",
"action": {"_set": {"SCF": scf_values}}})
FeffModder().apply_actions(actions)
return {"errors": ["Non-converging job"], "actions": actions}
# Unfixable error. Just return None for actions.
else:
return {"errors": ["Non-converging job"], "actions": None}
| mit | -3,734,159,296,317,997,000 | 35.65 | 99 | 0.555707 | false | 3.775107 | false | false | false |
ActiveState/code | recipes/Python/271607_fiber_scheduler/recipe-271607.py | 1 | 5269 | import sys, select, time, socket, traceback
class SEND:
def __init__( self, sock, timeout ):
self.fileno = sock.fileno()
self.expire = time.time() + timeout
def __str__( self ):
return 'SEND(%i,%s)' % ( self.fileno, time.strftime( '%H:%M:%S', time.localtime( self.expire ) ) )
class RECV:
def __init__( self, sock, timeout ):
self.fileno = sock.fileno()
self.expire = time.time() + timeout
def __str__( self ):
return 'RECV(%i,%s)' % ( self.fileno, time.strftime( '%H:%M:%S', time.localtime( self.expire ) ) )
class WAIT:
def __init__( self, timeout = None ):
self.expire = timeout and time.time() + timeout or None
def __str__( self ):
return 'WAIT(%s)' % ( self.expire and time.strftime( '%H:%M:%S', time.localtime( self.expire ) ) )
class Fiber:
def __init__( self, generator ):
self.__generator = generator
self.state = WAIT()
def step( self, throw=None ):
self.state = None
try:
if throw:
assert hasattr( self.__generator, 'throw' ), throw
self.__generator.throw( AssertionError, throw )
state = self.__generator.next()
assert isinstance( state, (SEND, RECV, WAIT) ), 'invalid waiting state %r' % state
self.state = state
except KeyboardInterrupt:
raise
except StopIteration:
del self.__generator
pass
except AssertionError, msg:
print 'Error:', msg
except:
traceback.print_exc()
def __repr__( self ):
return '%i: %s' % ( self.__generator.gi_frame.f_lineno, self.state )
class GatherFiber( Fiber ):
def __init__( self, generator ):
Fiber.__init__( self, generator )
self.__chunks = [ '[ 0.00 ] %s\n' % time.ctime() ]
self.__start = time.time()
self.__newline = True
def step( self, throw=None ):
stdout = sys.stdout
stderr = sys.stderr
try:
sys.stdout = sys.stderr = self
Fiber.step( self, throw )
finally:
sys.stdout = stdout
sys.stderr = stderr
def write( self, string ):
if self.__newline:
self.__chunks.append( '%6.2f ' % ( time.time() - self.__start ) )
self.__chunks.append( string )
self.__newline = string.endswith( '\n' )
def __del__( self ):
sys.stdout.writelines( self.__chunks )
if not self.__newline:
sys.stdout.write( '\n' )
class DebugFiber( Fiber ):
id = 0
def __init__( self, generator ):
Fiber.__init__( self, generator )
self.__id = DebugFiber.id
sys.stdout.write( '[ %04X ] %s\n' % ( self.__id, time.ctime() ) )
self.__newline = True
self.__stdout = sys.stdout
DebugFiber.id = ( self.id + 1 ) % 65535
def step( self, throw=None ):
stdout = sys.stdout
stderr = sys.stderr
try:
sys.stdout = sys.stderr = self
Fiber.step( self, throw )
if self.state:
print 'Waiting at', self
finally:
sys.stdout = stdout
sys.stderr = stderr
def write( self, string ):
if self.__newline:
self.__stdout.write( ' %04X ' % self.__id )
self.__stdout.write( string )
self.__newline = string.endswith( '\n' )
def spawn( generator, port, debug ):
try:
listener = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
listener.setblocking( 0 )
listener.setsockopt( socket.SOL_SOCKET, socket.SO_REUSEADDR, listener.getsockopt( socket.SOL_SOCKET, socket.SO_REUSEADDR ) | 1 )
listener.bind( ( '', port ) )
listener.listen( 5 )
except Exception, e:
print 'error: failed to create socket:', e
return False
if debug:
myFiber = DebugFiber
else:
myFiber = GatherFiber
print ' .... Server started'
try:
fibers = []
while True:
tryrecv = { listener.fileno(): None }
trysend = {}
expire = None
now = time.time()
i = len( fibers )
while i:
i -= 1
state = fibers[ i ].state
if state and now > state.expire:
if isinstance( state, WAIT ):
fibers[ i ].step()
else:
fibers[ i ].step( throw='connection timed out' )
state = fibers[ i ].state
if not state:
del fibers[ i ]
continue
if isinstance( state, RECV ):
tryrecv[ state.fileno ] = fibers[ i ]
elif isinstance( state, SEND ):
trysend[ state.fileno ] = fibers[ i ]
elif state.expire is None:
continue
if state.expire < expire or expire is None:
expire = state.expire
if expire is None:
print '[ IDLE ]', time.ctime()
sys.stdout.flush()
canrecv, cansend, dummy = select.select( tryrecv, trysend, [] )
print '[ BUSY ]', time.ctime()
sys.stdout.flush()
else:
canrecv, cansend, dummy = select.select( tryrecv, trysend, [], max( expire - now, 0 ) )
for fileno in canrecv:
if fileno is listener.fileno():
fibers.append( myFiber( generator( *listener.accept() ) ) )
else:
tryrecv[ fileno ].step()
for fileno in cansend:
trysend[ fileno ].step()
except KeyboardInterrupt:
print ' .... Server terminated'
return True
except:
print ' .... Server crashed'
traceback.print_exc( file=sys.stdout )
return False
| mit | -389,809,782,214,965,100 | 23.281106 | 132 | 0.571076 | false | 3.621306 | false | false | false |
DeanThompson/pyelong | pyelong/request.py | 1 | 6017 | # -*- coding: utf-8 -*-
import hashlib
import json
import time
import urllib
import requests
from requests import RequestException, ConnectionError, Timeout
from tornado import gen
from tornado.httpclient import AsyncHTTPClient
from .api import ApiSpec
from .exceptions import ElongException, ElongAPIError, \
RetryableException, RetryableAPIError
from .response import RequestsResponse, TornadoResponse, logger
from .util.retry import retry_on_error, is_retryable
class Request(object):
def __init__(self, client,
host=ApiSpec.host,
version=ApiSpec.version,
local=ApiSpec.local):
self.client = client
self.verify_ssl = self.client.cert is not None
self.host = host
self.version = version
self.local = local
def do(self, api, params, https, raw=False):
raise NotImplementedError()
def prepare(self, api, params, https, raw):
timestamp = str(int(time.time()))
data = self.build_data(params, raw)
scheme = 'https' if https else 'http'
url = "%s://%s" % (scheme, self.host)
params = {
'method': api,
'user': self.client.user,
'timestamp': timestamp,
'data': data,
'signature': self.signature(data, timestamp),
'format': 'json'
}
return url, params
def build_data(self, params, raw=False):
if not raw:
data = {
'Version': self.version,
'Local': self.local,
'Request': params
}
else:
data = params
return json.dumps(data, separators=(',', ':'))
def signature(self, data, timestamp):
s = self._md5(data + self.client.app_key)
return self._md5("%s%s%s" % (timestamp, s, self.client.secret_key))
@staticmethod
def _md5(data):
return hashlib.md5(data.encode('utf-8')).hexdigest()
def check_response(self, resp):
if not resp.ok and self.client.raise_api_error:
# logger.error('pyelong calling api failed, url: %s', resp.url)
if is_retryable(resp.code):
raise RetryableAPIError(resp.code, resp.error)
raise ElongAPIError(resp.code, resp.error)
return resp
def timing(self, api, delta):
if self.client.statsd_client and \
hasattr(self.client.statsd_client, 'timing'):
self.client.statsd_client.timing(api, delta)
class SyncRequest(Request):
@property
def session(self):
if not hasattr(self, '_session') or not self._session:
self._session = requests.Session()
if self.client.proxy_host and self.client.proxy_port:
p = '%s:%s' % (self.client.proxy_host, self.client.proxy_port)
self._session.proxies = {'http': p, 'https': p}
return self._session
@retry_on_error(retry_api_error=True)
def do(self, api, params, https, raw=False):
url, params = self.prepare(api, params, https, raw)
try:
result = self.session.get(url=url,
params=params,
verify=self.verify_ssl,
cert=self.client.cert)
except (ConnectionError, Timeout) as e:
logger.exception('pyelong catches ConnectionError or Timeout, '
'url: %s, params: %s', url, params)
raise RetryableException('ConnectionError or Timeout: %s' % e)
except RequestException as e:
logger.exception('pyelong catches RequestException, url: %s,'
' params: %s', url, params)
raise ElongException('RequestException: %s' % e)
except Exception as e:
logger.exception('pyelong catches unknown exception, url: %s, '
'params: %s', url, params)
raise ElongException('unknown exception: %s' % e)
resp = RequestsResponse(result)
self.timing(api, resp.request_time)
return self.check_response(resp)
class AsyncRequest(Request):
@property
def proxy_config(self):
if not getattr(self, '_proxy_config', None):
if self.client.proxy_host and self.client.proxy_port:
self._proxy_config = {
'proxy_host': self.client.proxy_host,
'proxy_port': self.client.proxy_port
}
else:
self._proxy_config = {}
return self._proxy_config
@staticmethod
def _encode_params(data):
"""
:param dict data: params
Taken from requests.models.RequestEncodingMixin._encode_params
"""
result = []
for k, vs in data.iteritems():
if isinstance(vs, basestring) or not hasattr(vs, '__iter__'):
vs = [vs]
for v in vs:
if v is not None:
result.append(
(k.encode('utf-8') if isinstance(k, str) else k,
v.encode('utf-8') if isinstance(v, str) else v))
return urllib.urlencode(result, doseq=True)
def _prepare_url(self, url, params):
if url.endswith('/'):
url = url.strip('/')
return '%s?%s' % (url, self._encode_params(params))
@gen.coroutine
def do(self, api, params, https, raw=False):
url, params = self.prepare(api, params, https, raw)
# use the default SimpleAsyncHTTPClient
resp = yield AsyncHTTPClient().fetch(self._prepare_url(url, params),
validate_cert=self.verify_ssl,
ca_certs=self.client.cert,
**self.proxy_config)
resp = TornadoResponse(resp)
self.timing(api, resp.request_time)
raise gen.Return(self.check_response(resp))
| mit | -2,665,918,147,271,490,000 | 35.466667 | 78 | 0.553266 | false | 4.172677 | true | false | false |
lordmos/blink | Source/bindings/scripts/unstable/idl_compiler.py | 1 | 5668 | #!/usr/bin/python
# Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Compile an .idl file to Blink V8 bindings (.h and .cpp files).
FIXME: Not currently used in build.
This is a rewrite of the Perl IDL compiler in Python, but is not complete.
Once it is complete, we will switch all IDL files over to Python at once.
Until then, please work on the Perl IDL compiler.
For details, see bug http://crbug.com/239771
"""
import optparse
import os
import pickle
import posixpath
import shlex
import sys
import code_generator_v8
import idl_reader
module_path, _ = os.path.split(__file__)
source_path = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir, os.pardir))
def parse_options():
parser = optparse.OptionParser()
parser.add_option('--additional-idl-files')
# FIXME: The --dump-json-and-pickle option is only for debugging and will
# be removed once we complete migrating all IDL files from the Perl flow to
# the Python flow.
parser.add_option('--dump-json-and-pickle', action='store_true', default=False)
parser.add_option('--idl-attributes-file')
parser.add_option('--include', dest='idl_directories', action='append')
parser.add_option('--output-directory')
parser.add_option('--interface-dependencies-file')
parser.add_option('--verbose', action='store_true', default=False)
parser.add_option('--write-file-only-if-changed', type='int')
# ensure output comes last, so command line easy to parse via regexes
parser.disable_interspersed_args()
options, args = parser.parse_args()
if options.output_directory is None:
parser.error('Must specify output directory using --output-directory.')
if options.additional_idl_files is None:
options.additional_idl_files = []
else:
# additional_idl_files is passed as a string with varied (shell-style)
# quoting, hence needs parsing.
options.additional_idl_files = shlex.split(options.additional_idl_files)
if len(args) != 1:
parser.error('Must specify exactly 1 input file as argument, but %d given.' % len(args))
options.idl_filename = os.path.realpath(args[0])
return options
def get_relative_dir_posix(filename):
"""Returns directory of a local file relative to Source, in POSIX format."""
relative_path_local = os.path.relpath(filename, source_path)
relative_dir_local = os.path.dirname(relative_path_local)
return relative_dir_local.replace(os.path.sep, posixpath.sep)
def write_json_and_pickle(definitions, interface_name, output_directory):
json_string = definitions.to_json()
json_basename = interface_name + '.json'
json_filename = os.path.join(output_directory, json_basename)
with open(json_filename, 'w') as json_file:
json_file.write(json_string)
pickle_basename = interface_name + '.pkl'
pickle_filename = os.path.join(output_directory, pickle_basename)
with open(pickle_filename, 'wb') as pickle_file:
pickle.dump(definitions, pickle_file)
def main():
options = parse_options()
idl_filename = options.idl_filename
basename = os.path.basename(idl_filename)
interface_name, _ = os.path.splitext(basename)
output_directory = options.output_directory
verbose = options.verbose
if verbose:
print idl_filename
relative_dir_posix = get_relative_dir_posix(idl_filename)
reader = idl_reader.IdlReader(options.interface_dependencies_file, options.additional_idl_files, options.idl_attributes_file, output_directory, verbose)
definitions = reader.read_idl_definitions(idl_filename)
code_generator = code_generator_v8.CodeGeneratorV8(definitions, interface_name, options.output_directory, relative_dir_posix, options.idl_directories, verbose)
if not definitions:
# We generate dummy .h and .cpp files just to tell build scripts
# that outputs have been created.
code_generator.write_dummy_header_and_cpp()
return
if options.dump_json_and_pickle:
write_json_and_pickle(definitions, interface_name, output_directory)
return
code_generator.write_header_and_cpp()
if __name__ == '__main__':
sys.exit(main())
| mit | 4,028,016,241,521,882,600 | 42.937984 | 163 | 0.728652 | false | 3.971969 | false | false | false |
zhlinh/leetcode | 0173.Binary Search Tree Iterator/test.py | 1 | 1230 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from solution import TreeNode
from solution import BSTIterator
def constructOne(s):
s = s.strip()
if s == '#':
return None
else:
return TreeNode(int(s))
def createTree(tree):
q = []
tree = tree.split(",")
root = constructOne(tree[0]);
q.append(root);
idx = 1;
while q:
tn = q.pop(0)
if not tn:
continue
if idx == len(tree):
break
left = constructOne(tree[idx])
tn.left = left
q.append(left)
idx += 1
if idx == len(tree):
break
right = constructOne(tree[idx])
idx += 1
tn.right = right
q.append(right)
return root
def printNode(tn, indent):
sb = ""
for i in range(indent):
sb += "\t"
sb += str(tn.val)
print(sb)
def printTree(root, indent):
if not root:
return
printTree(root.right, indent + 1)
printNode(root, indent)
printTree(root.left, indent + 1)
# root = createTree("1, 2, 5, 3, 4, #, 6")
root = createTree("4, 3, 5, 2, #, #, 7")
i, v = BSTIterator(root), []
while i.hasNext():
v.append(i.next())
for node in v:
print(node.val)
| apache-2.0 | -6,259,950,088,596,226,000 | 20.206897 | 43 | 0.523577 | false | 3.245383 | false | false | false |
spl0k/supysonic | tests/base/test_cache.py | 1 | 8007 | # This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API.
#
# Copyright (C) 2018 Alban 'spl0k' Féron
# 2018-2019 Carey 'pR0Ps' Metcalfe
#
# Distributed under terms of the GNU AGPLv3 license.
import os
import unittest
import shutil
import time
import tempfile
from supysonic.cache import Cache, CacheMiss, ProtectedError
class CacheTestCase(unittest.TestCase):
def setUp(self):
self.__dir = tempfile.mkdtemp()
def tearDown(self):
shutil.rmtree(self.__dir)
def test_existing_files_order(self):
cache = Cache(self.__dir, 30)
val = b"0123456789"
cache.set("key1", val)
cache.set("key2", val)
cache.set("key3", val)
self.assertEqual(cache.size, 30)
# file mtime is accurate to the second
time.sleep(1)
cache.get_value("key1")
cache = Cache(self.__dir, 30, min_time=0)
self.assertEqual(cache.size, 30)
self.assertTrue(cache.has("key1"))
self.assertTrue(cache.has("key2"))
self.assertTrue(cache.has("key3"))
cache.set("key4", val)
self.assertEqual(cache.size, 30)
self.assertTrue(cache.has("key1"))
self.assertFalse(cache.has("key2"))
self.assertTrue(cache.has("key3"))
self.assertTrue(cache.has("key4"))
def test_missing(self):
cache = Cache(self.__dir, 10)
self.assertFalse(cache.has("missing"))
with self.assertRaises(CacheMiss):
cache.get_value("missing")
def test_delete_missing(self):
cache = Cache(self.__dir, 0, min_time=0)
cache.delete("missing1")
cache.delete("missing2")
def test_store_literal(self):
cache = Cache(self.__dir, 10)
val = b"0123456789"
cache.set("key", val)
self.assertEqual(cache.size, 10)
self.assertTrue(cache.has("key"))
self.assertEqual(cache.get_value("key"), val)
def test_store_generated(self):
cache = Cache(self.__dir, 10)
val = [b"0", b"12", b"345", b"6789"]
def gen():
yield from val
t = []
for x in cache.set_generated("key", gen):
t.append(x)
self.assertEqual(cache.size, 0)
self.assertFalse(cache.has("key"))
self.assertEqual(t, val)
self.assertEqual(cache.size, 10)
self.assertEqual(cache.get_value("key"), b"".join(val))
def test_store_to_fp(self):
cache = Cache(self.__dir, 10)
val = b"0123456789"
with cache.set_fileobj("key") as fp:
fp.write(val)
self.assertEqual(cache.size, 0)
self.assertEqual(cache.size, 10)
self.assertEqual(cache.get_value("key"), val)
def test_access_data(self):
cache = Cache(self.__dir, 25, min_time=0)
val = b"0123456789"
cache.set("key", val)
self.assertEqual(cache.get_value("key"), val)
with cache.get_fileobj("key") as f:
self.assertEqual(f.read(), val)
with open(cache.get("key"), "rb") as f:
self.assertEqual(f.read(), val)
def test_accessing_preserves(self):
cache = Cache(self.__dir, 25, min_time=0)
val = b"0123456789"
cache.set("key1", val)
cache.set("key2", val)
self.assertEqual(cache.size, 20)
cache.get_value("key1")
cache.set("key3", val)
self.assertEqual(cache.size, 20)
self.assertTrue(cache.has("key1"))
self.assertFalse(cache.has("key2"))
self.assertTrue(cache.has("key3"))
def test_automatic_delete_oldest(self):
cache = Cache(self.__dir, 25, min_time=0)
val = b"0123456789"
cache.set("key1", val)
self.assertTrue(cache.has("key1"))
self.assertEqual(cache.size, 10)
cache.set("key2", val)
self.assertEqual(cache.size, 20)
self.assertTrue(cache.has("key1"))
self.assertTrue(cache.has("key2"))
cache.set("key3", val)
self.assertEqual(cache.size, 20)
self.assertFalse(cache.has("key1"))
self.assertTrue(cache.has("key2"))
self.assertTrue(cache.has("key3"))
def test_delete(self):
cache = Cache(self.__dir, 25, min_time=0)
val = b"0123456789"
cache.set("key1", val)
self.assertTrue(cache.has("key1"))
self.assertEqual(cache.size, 10)
cache.delete("key1")
self.assertFalse(cache.has("key1"))
self.assertEqual(cache.size, 0)
def test_cleanup_on_error(self):
cache = Cache(self.__dir, 10)
def gen():
# Cause a TypeError halfway through
yield from [b"0", b"12", object(), b"345", b"6789"]
with self.assertRaises(TypeError):
for x in cache.set_generated("key", gen):
pass
# Make sure no partial files are left after the error
self.assertEqual(list(os.listdir(self.__dir)), list())
def test_parallel_generation(self):
cache = Cache(self.__dir, 20)
def gen():
yield from [b"0", b"12", b"345", b"6789"]
g1 = cache.set_generated("key", gen)
g2 = cache.set_generated("key", gen)
next(g1)
files = os.listdir(self.__dir)
self.assertEqual(len(files), 1)
for x in files:
self.assertTrue(x.endswith(".part"))
next(g2)
files = os.listdir(self.__dir)
self.assertEqual(len(files), 2)
for x in files:
self.assertTrue(x.endswith(".part"))
self.assertEqual(cache.size, 0)
for x in g1:
pass
self.assertEqual(cache.size, 10)
self.assertTrue(cache.has("key"))
# Replace the file - size should stay the same
for x in g2:
pass
self.assertEqual(cache.size, 10)
self.assertTrue(cache.has("key"))
# Only a single file
self.assertEqual(len(os.listdir(self.__dir)), 1)
def test_replace(self):
cache = Cache(self.__dir, 20)
val_small = b"0"
val_big = b"0123456789"
cache.set("key", val_small)
self.assertEqual(cache.size, 1)
cache.set("key", val_big)
self.assertEqual(cache.size, 10)
cache.set("key", val_small)
self.assertEqual(cache.size, 1)
def test_no_auto_prune(self):
cache = Cache(self.__dir, 10, min_time=0, auto_prune=False)
val = b"0123456789"
cache.set("key1", val)
cache.set("key2", val)
cache.set("key3", val)
cache.set("key4", val)
self.assertEqual(cache.size, 40)
cache.prune()
self.assertEqual(cache.size, 10)
def test_min_time_clear(self):
cache = Cache(self.__dir, 40, min_time=1)
val = b"0123456789"
cache.set("key1", val)
cache.set("key2", val)
time.sleep(1)
cache.set("key3", val)
cache.set("key4", val)
self.assertEqual(cache.size, 40)
cache.clear()
self.assertEqual(cache.size, 20)
time.sleep(1)
cache.clear()
self.assertEqual(cache.size, 0)
def test_not_expired(self):
cache = Cache(self.__dir, 40, min_time=1)
val = b"0123456789"
cache.set("key1", val)
with self.assertRaises(ProtectedError):
cache.delete("key1")
time.sleep(1)
cache.delete("key1")
self.assertEqual(cache.size, 0)
def test_missing_cache_file(self):
cache = Cache(self.__dir, 10, min_time=0)
val = b"0123456789"
os.remove(cache.set("key", val))
self.assertEqual(cache.size, 10)
self.assertFalse(cache.has("key"))
self.assertEqual(cache.size, 0)
os.remove(cache.set("key", val))
self.assertEqual(cache.size, 10)
with self.assertRaises(CacheMiss):
cache.get("key")
self.assertEqual(cache.size, 0)
if __name__ == "__main__":
unittest.main()
| agpl-3.0 | 539,294,049,317,192,400 | 28.112727 | 67 | 0.569323 | false | 3.558222 | true | false | false |
cpn18/track-chart | desktop/gps_smoothing.py | 1 | 1313 | import sys
import json
import math
THRESHOLD = 10
data = []
with open(sys.argv[1], "r") as f:
used = count = 0
for line in f:
if line[0] == "#":
continue
items = line.split()
if items[1] == "TPV":
obj = json.loads(" ".join(items[2:-1]))
obj['used'] = used
obj['count'] = count
elif items[1] == "SKY":
obj = json.loads(" ".join(items[2:-1]))
used = 0
count = len(obj['satellites'])
for i in range(0, count):
if obj['satellites'][i]['used']:
used += 1
continue
else:
continue
if used >= THRESHOLD and 'lon' in obj and 'lat' in obj:
data.append(obj)
print("Longitude Latitude dx epx dy epy used count")
for i in range(1, len(data)):
dx = abs((data[i]['lon'] - data[i-1]['lon']) * 111120 * math.cos(math.radians(data[i]['lat'])))
dy = abs((data[i]['lat'] - data[i-1]['lat']) * 111128) # degrees to meters
try:
if dx > 3*data[i]['epx'] or dy > 3*data[i]['epy']:
continue
print("%f %f %f %f %f %f %d %d" % (data[i]['lon'], data[i]['lat'], dx, data[i]['epx'], dy, data[i]['epy'], data[i]['used'], data[i]['count']))
except KeyError:
pass
| gpl-3.0 | -8,348,637,999,380,964,000 | 29.534884 | 150 | 0.476009 | false | 3.241975 | false | false | false |
kgori/treeCl | treeCl/parutils.py | 1 | 9550 | from abc import ABCMeta, abstractmethod
from .constants import PARALLEL_PROFILE
from .utils import setup_progressbar, grouper, flatten_list
import logging
import multiprocessing
import sys
logger = logging.getLogger(__name__)
__author__ = 'kgori'
"""
Introduced this workaround for a bug in multiprocessing where
errors are thrown for an EINTR interrupt.
Workaround taken from http://stackoverflow.com/a/5395277 - but
changed because can't subclass from multiprocessing.Queue (it's
a factory method)
"""
import errno
def retry_on_eintr(function, *args, **kw):
while True:
try:
return function(*args, **kw)
except IOError as e:
if e.errno == errno.EINTR:
continue
else:
raise
def get_from_queue(queue, block=True, timeout=None):
return retry_on_eintr(queue.get, block, timeout)
"""
End of workaround
"""
def fun(f, q_in, q_out):
while True:
(i, x) = get_from_queue(q_in)
if i is None:
break
q_out.put((i, f(*x)))
def async_avail():
from IPython import parallel
try:
client = parallel.Client(PARALLEL_PROFILE)
return len(client) > 0
except IOError:
return False
except Exception:
return False
def get_client():
from IPython import parallel
try:
client = parallel.Client(profile=PARALLEL_PROFILE)
return client if len(client) > 0 else None
except IOError:
return None
except Exception:
return None
def tupleise(args):
for a in args:
if isinstance(a, (tuple, list)):
yield a
else:
yield (a,)
def get_njobs(nargs, args):
if nargs is not None:
njobs = nargs
elif isinstance(args, (tuple, list)):
njobs = len(args)
else:
njobs = int(sys.maxsize / 1000000) # sys.maxsize is too large for progressbar to display ETA (datetime issue)
return njobs
def parallel_map(client, task, args, message, batchsize=1, background=False, nargs=None):
"""
Helper to map a function over a sequence of inputs, in parallel, with progress meter.
:param client: IPython.parallel.Client instance
:param task: Function
:param args: Must be a list of tuples of arguments that the task function will be mapped onto.
If the function takes a single argument, it still must be a 1-tuple.
:param message: String for progress bar
:param batchsize: Jobs are shipped in batches of this size. Higher numbers mean less network traffic,
but longer execution time per job.
:return: IPython.parallel.AsyncMapResult
"""
show_progress = bool(message)
njobs = get_njobs(nargs, args)
nproc = len(client)
logger.debug('parallel_map: len(client) = {}'.format(len(client)))
view = client.load_balanced_view()
if show_progress:
message += ' (IP:{}w:{}b)'.format(nproc, batchsize)
pbar = setup_progressbar(message, njobs, simple_progress=True)
if not background:
pbar.start()
map_result = view.map(task, *list(zip(*args)), chunksize=batchsize)
if background:
return map_result, client
while not map_result.ready():
map_result.wait(1)
if show_progress:
pbar.update(min(njobs, map_result.progress * batchsize))
if show_progress:
pbar.finish()
return map_result
def sequential_map(task, args, message, nargs=None):
"""
Helper to map a function over a sequence of inputs, sequentially, with progress meter.
:param client: IPython.parallel.Client instance
:param task: Function
:param args: Must be a list of tuples of arguments that the task function will be mapped onto.
If the function takes a single argument, it still must be a 1-tuple.
:param message: String for progress bar
:param batchsize: Jobs are shipped in batches of this size. Higher numbers mean less network traffic,
but longer execution time per job.
:return: IPython.parallel.AsyncMapResult
"""
njobs = get_njobs(nargs, args)
show_progress = bool(message)
if show_progress:
pbar = setup_progressbar(message, njobs, simple_progress=True)
pbar.start()
map_result = []
for (i, arglist) in enumerate(tupleise(args), start=1):
map_result.append(task(*arglist))
if show_progress:
pbar.update(i)
if show_progress:
pbar.finish()
return map_result
def threadpool_map(task, args, message, concurrency, batchsize=1, nargs=None):
"""
Helper to map a function over a range of inputs, using a threadpool, with a progress meter
"""
import concurrent.futures
njobs = get_njobs(nargs, args)
show_progress = bool(message)
batches = grouper(batchsize, tupleise(args))
batched_task = lambda batch: [task(*job) for job in batch]
if show_progress:
message += ' (TP:{}w:{}b)'.format(concurrency, batchsize)
pbar = setup_progressbar(message, njobs, simple_progress=True)
pbar.start()
with concurrent.futures.ThreadPoolExecutor(max_workers=concurrency) as executor:
futures = []
completed_count = 0
for batch in batches:
futures.append(executor.submit(batched_task, batch))
if show_progress:
for i, fut in enumerate(concurrent.futures.as_completed(futures), start=1):
completed_count += len(fut.result())
pbar.update(completed_count)
else:
concurrent.futures.wait(futures)
if show_progress:
pbar.finish()
return flatten_list([fut.result() for fut in futures])
def processpool_map(task, args, message, concurrency, batchsize=1, nargs=None):
"""
See http://stackoverflow.com/a/16071616
"""
njobs = get_njobs(nargs, args)
show_progress = bool(message)
batches = grouper(batchsize, tupleise(args))
def batched_task(*batch):
return [task(*job) for job in batch]
if show_progress:
message += ' (PP:{}w:{}b)'.format(concurrency, batchsize)
pbar = setup_progressbar(message, njobs, simple_progress=True)
pbar.start()
q_in = multiprocessing.Queue() # Should I limit either queue size? Limiting in-queue
q_out = multiprocessing.Queue() # increases time taken to send jobs, makes pbar less useful
proc = [multiprocessing.Process(target=fun, args=(batched_task, q_in, q_out)) for _ in range(concurrency)]
for p in proc:
p.daemon = True
p.start()
sent = [q_in.put((i, x)) for (i, x) in enumerate(batches)]
[q_in.put((None, None)) for _ in range(concurrency)]
res = []
completed_count = 0
for _ in range(len(sent)):
result = get_from_queue(q_out)
res.append(result)
completed_count += len(result[1])
if show_progress:
pbar.update(completed_count)
[p.join() for p in proc]
if show_progress:
pbar.finish()
return flatten_list([x for (i, x) in sorted(res)])
class JobHandler(object):
"""
Base class to provide uniform interface for all job handlers
"""
metaclass = ABCMeta
@abstractmethod
def __call__(self, task, args, message, batchsize):
""" If you define a message, then progress will be written to stderr """
pass
class SequentialJobHandler(JobHandler):
"""
Jobs are handled using a simple map
"""
def __call__(self, task, args, message, batchsize, nargs=None):
if batchsize > 1:
logger.warn("Setting batchsize > 1 has no effect when using a SequentialJobHandler")
return sequential_map(task, args, message, nargs)
class ThreadpoolJobHandler(JobHandler):
"""
Jobs are handled by a threadpool using concurrent.futures
"""
def __init__(self, concurrency):
self.concurrency = concurrency
def __call__(self, task, args, message, batchsize, nargs=None):
return threadpool_map(task, args, message, self.concurrency, batchsize, nargs)
class ProcesspoolJobHandler(JobHandler):
"""
Jobs are handled by a threadpool using concurrent.futures
"""
def __init__(self, concurrency):
self.concurrency = concurrency
def __call__(self, task, args, message, batchsize, nargs=None):
return processpool_map(task, args, message, self.concurrency, batchsize, nargs)
class IPythonJobHandler(JobHandler):
"""
Jobs are handled using an IPython.parallel.Client
"""
def __init__(self, profile=None):
"""
Initialise the IPythonJobHandler using the given ipython profile.
Parameters
----------
profile: string
The ipython profile to connect to - this should already be running an ipcluster
If the connection fails it raises a RuntimeError
"""
import IPython.parallel
try:
self.client=IPython.parallel.Client(profile=profile)
logger.debug('__init__: len(client) = {}'.format(len(self.client)))
except (IOError, IPython.parallel.TimeoutError):
msg = 'Could not obtain an IPython parallel Client using profile "{}"'.format(profile)
logger.error(msg)
raise RuntimeError(msg)
def __call__(self, task, args, message, batchsize):
logger.debug('__call__: len(client) = {}'.format(len(self.client)))
return list(parallel_map(self.client, task, args, message, batchsize))
| mit | 559,474,478,483,958,140 | 32.745583 | 118 | 0.638325 | false | 3.926809 | false | false | false |
anbangr/trusted-juju | juju/unit/tests/test_charm.py | 1 | 5922 | from functools import partial
import os
import shutil
from twisted.internet.defer import inlineCallbacks, returnValue, succeed, fail
from twisted.web.error import Error
from twisted.web.client import downloadPage
from juju.charm import get_charm_from_path
from juju.charm.bundle import CharmBundle
from juju.charm.publisher import CharmPublisher
from juju.charm.tests import local_charm_id
from juju.charm.tests.test_directory import sample_directory
from juju.errors import FileNotFound
from juju.lib import under
from juju.state.errors import CharmStateNotFound
from juju.state.tests.common import StateTestBase
from juju.unit.charm import download_charm
from juju.lib.mocker import MATCH
class CharmPublisherTestBase(StateTestBase):
@inlineCallbacks
def setUp(self):
yield super(CharmPublisherTestBase, self).setUp()
yield self.push_default_config()
self.provider = self.config.get_default().get_machine_provider()
self.storage = self.provider.get_file_storage()
@inlineCallbacks
def publish_charm(self, charm_path=sample_directory):
charm = get_charm_from_path(charm_path)
publisher = CharmPublisher(self.client, self.storage)
yield publisher.add_charm(local_charm_id(charm), charm)
charm_states = yield publisher.publish()
returnValue((charm, charm_states[0]))
class DownloadTestCase(CharmPublisherTestBase):
@inlineCallbacks
def test_charm_download_file(self):
"""Downloading a charm should store the charm locally.
"""
charm, charm_state = yield self.publish_charm()
charm_directory = self.makeDir()
# Download the charm
yield download_charm(
self.client, charm_state.id, charm_directory)
# Verify the downloaded copy
checksum = charm.get_sha256()
charm_id = local_charm_id(charm)
charm_key = under.quote("%s:%s" % (charm_id, checksum))
charm_path = os.path.join(charm_directory, charm_key)
self.assertTrue(os.path.exists(charm_path))
bundle = CharmBundle(charm_path)
self.assertEquals(bundle.get_revision(), charm.get_revision())
self.assertEqual(checksum, bundle.get_sha256())
@inlineCallbacks
def test_charm_missing_download_file(self):
"""Downloading a file that doesn't exist raises FileNotFound.
"""
charm, charm_state = yield self.publish_charm()
charm_directory = self.makeDir()
# Delete the file
file_path = charm_state.bundle_url[len("file://"):]
os.remove(file_path)
# Download the charm
yield self.assertFailure(
download_charm(self.client, charm_state.id, charm_directory),
FileNotFound)
@inlineCallbacks
def test_charm_download_http(self):
"""Downloading a charm should store the charm locally.
"""
mock_storage = self.mocker.patch(self.storage)
def match_string(expected, value):
self.assertTrue(isinstance(value, basestring))
self.assertIn(expected, value)
return True
mock_storage.get_url(MATCH(
partial(match_string, "local_3a_series_2f_dummy-1")))
self.mocker.result("http://example.com/foobar.zip")
download_page = self.mocker.replace(downloadPage)
download_page(
MATCH(partial(match_string, "http://example.com/foobar.zip")),
MATCH(partial(match_string, "local_3a_series_2f_dummy-1")))
def bundle_in_place(url, local_path):
# must keep ref to charm else temp file goes out of scope.
charm = get_charm_from_path(sample_directory)
bundle = charm.as_bundle()
shutil.copyfile(bundle.path, local_path)
self.mocker.call(bundle_in_place)
self.mocker.result(succeed(True))
self.mocker.replay()
charm, charm_state = yield self.publish_charm()
charm_directory = self.makeDir()
self.assertEqual(
charm_state.bundle_url, "http://example.com/foobar.zip")
# Download the charm
yield download_charm(
self.client, charm_state.id, charm_directory)
@inlineCallbacks
def test_charm_download_http_error(self):
"""Errors in donwloading a charm are reported as charm not found.
"""
def match_string(expected, value):
self.assertTrue(isinstance(value, basestring))
self.assertIn(expected, value)
return True
mock_storage = self.mocker.patch(self.storage)
mock_storage.get_url(
MATCH(partial(match_string, "local_3a_series_2f_dummy-1")))
remote_url = "http://example.com/foobar.zip"
self.mocker.result(remote_url)
download_page = self.mocker.replace(downloadPage)
download_page(
MATCH(partial(match_string, "http://example.com/foobar.zip")),
MATCH(partial(match_string, "local_3a_series_2f_dummy-1")))
self.mocker.result(fail(Error("400", "Bad Stuff", "")))
self.mocker.replay()
charm, charm_state = yield self.publish_charm()
charm_directory = self.makeDir()
self.assertEqual(charm_state.bundle_url, remote_url)
error = yield self.assertFailure(
download_charm(self.client, charm_state.id, charm_directory),
FileNotFound)
self.assertIn(remote_url, str(error))
@inlineCallbacks
def test_charm_download_not_found(self):
"""An error is raised if trying to download a non existant charm.
"""
charm_directory = self.makeDir()
# Download the charm
error = yield self.assertFailure(
download_charm(
self.client, "local:mickey-21", charm_directory),
CharmStateNotFound)
self.assertEquals(str(error), "Charm 'local:mickey-21' was not found")
| agpl-3.0 | -8,211,216,513,305,947,000 | 34.461078 | 78 | 0.651807 | false | 3.733922 | true | false | false |
bcantoni/ccm | ccmlib/dse_node.py | 1 | 22234 | # ccm node
from __future__ import absolute_import, with_statement
import os
import re
import shutil
import signal
import stat
import subprocess
import time
import yaml
from six import iteritems, print_
from ccmlib import common, extension, repository
from ccmlib.node import (Node, NodeError, ToolError,
handle_external_tool_process)
class DseNode(Node):
"""
Provides interactions to a DSE node.
"""
def __init__(self, name, cluster, auto_bootstrap, thrift_interface, storage_interface, jmx_port, remote_debug_port, initial_token, save=True, binary_interface=None, byteman_port='0', environment_variables=None):
super(DseNode, self).__init__(name, cluster, auto_bootstrap, thrift_interface, storage_interface, jmx_port, remote_debug_port, initial_token, save, binary_interface, byteman_port, environment_variables=environment_variables)
self.get_cassandra_version()
self._dse_config_options = {}
if self.cluster.hasOpscenter():
self._copy_agent()
def get_install_cassandra_root(self):
return os.path.join(self.get_install_dir(), 'resources', 'cassandra')
def get_node_cassandra_root(self):
return os.path.join(self.get_path(), 'resources', 'cassandra')
def get_conf_dir(self):
"""
Returns the path to the directory where Cassandra config are located
"""
return os.path.join(self.get_path(), 'resources', 'cassandra', 'conf')
def get_tool(self, toolname):
return common.join_bin(os.path.join(self.get_install_dir(), 'resources', 'cassandra'), 'bin', toolname)
def get_tool_args(self, toolname):
return [common.join_bin(os.path.join(self.get_install_dir(), 'resources', 'cassandra'), 'bin', 'dse'), toolname]
def get_env(self):
(node_ip, _) = self.network_interfaces['binary']
return common.make_dse_env(self.get_install_dir(), self.get_path(), node_ip)
def get_cassandra_version(self):
return common.get_dse_cassandra_version(self.get_install_dir())
def node_setup(self, version, verbose):
dir, v = repository.setup_dse(version, self.cluster.dse_username, self.cluster.dse_password, verbose=verbose)
return dir
def set_workloads(self, workloads):
self.workloads = workloads
self._update_config()
if 'solr' in self.workloads:
self.__generate_server_xml()
if 'graph' in self.workloads:
(node_ip, _) = self.network_interfaces['binary']
conf_file = os.path.join(self.get_path(), 'resources', 'dse', 'conf', 'dse.yaml')
with open(conf_file, 'r') as f:
data = yaml.load(f)
graph_options = data['graph']
graph_options['gremlin_server']['host'] = node_ip
self.set_dse_configuration_options({'graph': graph_options})
self.__update_gremlin_config_yaml()
if 'dsefs' in self.workloads:
dsefs_options = {'dsefs_options': {'enabled': True,
'work_dir': os.path.join(self.get_path(), 'dsefs'),
'data_directories': [{'dir': os.path.join(self.get_path(), 'dsefs', 'data')}]}}
self.set_dse_configuration_options(dsefs_options)
if 'spark' in self.workloads:
self._update_spark_env()
def set_dse_configuration_options(self, values=None):
if values is not None:
self._dse_config_options = common.merge_configuration(self._dse_config_options, values)
self.import_dse_config_files()
def watch_log_for_alive(self, nodes, from_mark=None, timeout=720, filename='system.log'):
"""
Watch the log of this node until it detects that the provided other
nodes are marked UP. This method works similarly to watch_log_for_death.
We want to provide a higher default timeout when this is called on DSE.
"""
super(DseNode, self).watch_log_for_alive(nodes, from_mark=from_mark, timeout=timeout, filename=filename)
def get_launch_bin(self):
cdir = self.get_install_dir()
launch_bin = common.join_bin(cdir, 'bin', 'dse')
# Copy back the dse scripts since profiling may have modified it the previous time
shutil.copy(launch_bin, self.get_bin_dir())
return common.join_bin(self.get_path(), 'bin', 'dse')
def add_custom_launch_arguments(self, args):
args.append('cassandra')
for workload in self.workloads:
if 'hadoop' in workload:
args.append('-t')
if 'solr' in workload:
args.append('-s')
if 'spark' in workload:
args.append('-k')
if 'cfs' in workload:
args.append('-c')
if 'graph' in workload:
args.append('-g')
def start(self,
join_ring=True,
no_wait=False,
verbose=False,
update_pid=True,
wait_other_notice=True,
replace_token=None,
replace_address=None,
jvm_args=None,
wait_for_binary_proto=False,
profile_options=None,
use_jna=False,
quiet_start=False,
allow_root=False,
set_migration_task=True):
process = super(DseNode, self).start(join_ring, no_wait, verbose, update_pid, wait_other_notice, replace_token,
replace_address, jvm_args, wait_for_binary_proto, profile_options, use_jna,
quiet_start, allow_root, set_migration_task)
if self.cluster.hasOpscenter():
self._start_agent()
def _start_agent(self):
agent_dir = os.path.join(self.get_path(), 'datastax-agent')
if os.path.exists(agent_dir):
self._write_agent_address_yaml(agent_dir)
self._write_agent_log4j_properties(agent_dir)
args = [os.path.join(agent_dir, 'bin', common.platform_binary('datastax-agent'))]
subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def stop(self, wait=True, wait_other_notice=False, signal_event=signal.SIGTERM, **kwargs):
if self.cluster.hasOpscenter():
self._stop_agent()
return super(DseNode, self).stop(wait=wait, wait_other_notice=wait_other_notice, signal_event=signal_event, **kwargs)
def _stop_agent(self):
agent_dir = os.path.join(self.get_path(), 'datastax-agent')
if os.path.exists(agent_dir):
pidfile = os.path.join(agent_dir, 'datastax-agent.pid')
if os.path.exists(pidfile):
with open(pidfile, 'r') as f:
pid = int(f.readline().strip())
f.close()
if pid is not None:
try:
os.kill(pid, signal.SIGKILL)
except OSError:
pass
os.remove(pidfile)
def nodetool(self, cmd, username=None, password=None, capture_output=True, wait=True):
if password is not None:
cmd = '-pw {} '.format(password) + cmd
if username is not None:
cmd = '-u {} '.format(username) + cmd
return super(DseNode, self).nodetool(cmd)
def dsetool(self, cmd):
env = self.get_env()
extension.append_to_client_env(self, env)
node_ip, binary_port = self.network_interfaces['binary']
dsetool = common.join_bin(self.get_install_dir(), 'bin', 'dsetool')
args = [dsetool, '-h', node_ip, '-j', str(self.jmx_port), '-c', str(binary_port)]
args += cmd.split()
p = subprocess.Popen(args, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return handle_external_tool_process(p, args)
def dse(self, dse_options=None):
if dse_options is None:
dse_options = []
env = self.get_env()
extension.append_to_client_env(self, env)
env['JMX_PORT'] = self.jmx_port
dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
args = [dse]
args += dse_options
p = subprocess.Popen(args, env=env) #Don't redirect stdout/stderr, users need to interact with new process
return handle_external_tool_process(p, args)
def hadoop(self, hadoop_options=None):
if hadoop_options is None:
hadoop_options = []
env = self.get_env()
env['JMX_PORT'] = self.jmx_port
dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
args = [dse, 'hadoop']
args += hadoop_options
p = subprocess.Popen(args, env=env) #Don't redirect stdout/stderr, users need to interact with new process
return handle_external_tool_process(p, args)
def hive(self, hive_options=None):
if hive_options is None:
hive_options = []
env = self.get_env()
env['JMX_PORT'] = self.jmx_port
dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
args = [dse, 'hive']
args += hive_options
p = subprocess.Popen(args, env=env) #Don't redirect stdout/stderr, users need to interact with new process
return handle_external_tool_process(p, args)
def pig(self, pig_options=None):
if pig_options is None:
pig_options = []
env = self.get_env()
env['JMX_PORT'] = self.jmx_port
dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
args = [dse, 'pig']
args += pig_options
p = subprocess.Popen(args, env=env) #Don't redirect stdout/stderr, users need to interact with new process
return handle_external_tool_process(p, args)
def sqoop(self, sqoop_options=None):
if sqoop_options is None:
sqoop_options = []
env = self.get_env()
env['JMX_PORT'] = self.jmx_port
dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
args = [dse, 'sqoop']
args += sqoop_options
p = subprocess.Popen(args, env=env) #Don't redirect stdout/stderr, users need to interact with new process
return handle_external_tool_process(p, args)
def spark(self, spark_options=None):
if spark_options is None:
spark_options = []
env = self.get_env()
env['JMX_PORT'] = self.jmx_port
dse = common.join_bin(self.get_install_dir(), 'bin', 'dse')
args = [dse, 'spark']
args += spark_options
p = subprocess.Popen(args, env=env) #Don't redirect stdout/stderr, users need to interact with new process
return handle_external_tool_process(p, args)
def import_dse_config_files(self):
self._update_config()
if not os.path.isdir(os.path.join(self.get_path(), 'resources', 'dse', 'conf')):
os.makedirs(os.path.join(self.get_path(), 'resources', 'dse', 'conf'))
common.copy_directory(os.path.join(self.get_install_dir(), 'resources', 'dse', 'conf'), os.path.join(self.get_path(), 'resources', 'dse', 'conf'))
self.__update_yaml()
def copy_config_files(self):
for product in ['dse', 'cassandra', 'hadoop', 'hadoop2-client', 'sqoop', 'hive', 'tomcat', 'spark', 'shark', 'mahout', 'pig', 'solr', 'graph']:
src_conf = os.path.join(self.get_install_dir(), 'resources', product, 'conf')
dst_conf = os.path.join(self.get_path(), 'resources', product, 'conf')
if not os.path.isdir(src_conf):
continue
if os.path.isdir(dst_conf):
common.rmdirs(dst_conf)
shutil.copytree(src_conf, dst_conf)
if product == 'solr':
src_web = os.path.join(self.get_install_dir(), 'resources', product, 'web')
dst_web = os.path.join(self.get_path(), 'resources', product, 'web')
if os.path.isdir(dst_web):
common.rmdirs(dst_web)
shutil.copytree(src_web, dst_web)
if product == 'tomcat':
src_lib = os.path.join(self.get_install_dir(), 'resources', product, 'lib')
dst_lib = os.path.join(self.get_path(), 'resources', product, 'lib')
if os.path.isdir(dst_lib):
common.rmdirs(dst_lib)
if os.path.exists(src_lib):
shutil.copytree(src_lib, dst_lib)
src_webapps = os.path.join(self.get_install_dir(), 'resources', product, 'webapps')
dst_webapps = os.path.join(self.get_path(), 'resources', product, 'webapps')
if os.path.isdir(dst_webapps):
common.rmdirs(dst_webapps)
shutil.copytree(src_webapps, dst_webapps)
src_lib = os.path.join(self.get_install_dir(), 'resources', product, 'gremlin-console', 'conf')
dst_lib = os.path.join(self.get_path(), 'resources', product, 'gremlin-console', 'conf')
if os.path.isdir(dst_lib):
common.rmdirs(dst_lib)
if os.path.exists(src_lib):
shutil.copytree(src_lib, dst_lib)
def import_bin_files(self):
common.copy_directory(os.path.join(self.get_install_dir(), 'bin'), self.get_bin_dir())
cassandra_bin_dir = os.path.join(self.get_path(), 'resources', 'cassandra', 'bin')
shutil.rmtree(cassandra_bin_dir, ignore_errors=True)
os.makedirs(cassandra_bin_dir)
common.copy_directory(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'bin'), cassandra_bin_dir)
if os.path.exists(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'tools')):
cassandra_tools_dir = os.path.join(self.get_path(), 'resources', 'cassandra', 'tools')
shutil.rmtree(cassandra_tools_dir, ignore_errors=True)
shutil.copytree(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'tools'), cassandra_tools_dir)
self.export_dse_home_in_dse_env_sh()
def export_dse_home_in_dse_env_sh(self):
'''
Due to the way CCM lays out files, separating the repository
from the node(s) confs, the `dse-env.sh` script of each node
needs to have its DSE_HOME var set and exported. Since DSE
4.5.x, the stock `dse-env.sh` file includes a commented-out
place to do exactly this, intended for installers.
Basically: read in the file, write it back out and add the two
lines.
'sstableloader' is an example of a node script that depends on
this, when used in a CCM-built cluster.
'''
with open(self.get_bin_dir() + "/dse-env.sh", "r") as dse_env_sh:
buf = dse_env_sh.readlines()
with open(self.get_bin_dir() + "/dse-env.sh", "w") as out_file:
for line in buf:
out_file.write(line)
if line == "# This is here so the installer can force set DSE_HOME\n":
out_file.write("DSE_HOME=" + self.get_install_dir() + "\nexport DSE_HOME\n")
def _update_log4j(self):
super(DseNode, self)._update_log4j()
conf_file = os.path.join(self.get_conf_dir(), common.LOG4J_CONF)
append_pattern = 'log4j.appender.V.File='
log_file = os.path.join(self.get_path(), 'logs', 'solrvalidation.log')
if common.is_win():
log_file = re.sub("\\\\", "/", log_file)
common.replace_in_file(conf_file, append_pattern, append_pattern + log_file)
append_pattern = 'log4j.appender.A.File='
log_file = os.path.join(self.get_path(), 'logs', 'audit.log')
if common.is_win():
log_file = re.sub("\\\\", "/", log_file)
common.replace_in_file(conf_file, append_pattern, append_pattern + log_file)
append_pattern = 'log4j.appender.B.File='
log_file = os.path.join(self.get_path(), 'logs', 'audit', 'dropped-events.log')
if common.is_win():
log_file = re.sub("\\\\", "/", log_file)
common.replace_in_file(conf_file, append_pattern, append_pattern + log_file)
def __update_yaml(self):
conf_file = os.path.join(self.get_path(), 'resources', 'dse', 'conf', 'dse.yaml')
with open(conf_file, 'r') as f:
data = yaml.load(f)
data['system_key_directory'] = os.path.join(self.get_path(), 'keys')
# Get a map of combined cluster and node configuration with the node
# configuration taking precedence.
full_options = common.merge_configuration(
self.cluster._dse_config_options,
self._dse_config_options, delete_empty=False)
# Merge options with original yaml data.
data = common.merge_configuration(data, full_options)
with open(conf_file, 'w') as f:
yaml.safe_dump(data, f, default_flow_style=False)
def __generate_server_xml(self):
server_xml = os.path.join(self.get_path(), 'resources', 'tomcat', 'conf', 'server.xml')
if os.path.isfile(server_xml):
os.remove(server_xml)
with open(server_xml, 'w+') as f:
f.write('<Server port="8005" shutdown="SHUTDOWN">\n')
f.write(' <Service name="Solr">\n')
f.write(' <Connector port="8983" address="%s" protocol="HTTP/1.1" connectionTimeout="20000" maxThreads = "200" URIEncoding="UTF-8"/>\n' % self.network_interfaces['thrift'][0])
f.write(' <Engine name="Solr" defaultHost="localhost">\n')
f.write(' <Host name="localhost" appBase="../solr/web"\n')
f.write(' unpackWARs="true" autoDeploy="true"\n')
f.write(' xmlValidation="false" xmlNamespaceAware="false">\n')
f.write(' </Host>\n')
f.write(' </Engine>\n')
f.write(' </Service>\n')
f.write('</Server>\n')
f.close()
def __update_gremlin_config_yaml(self):
(node_ip, _) = self.network_interfaces['binary']
conf_file = os.path.join(self.get_path(), 'resources', 'graph', 'gremlin-console', 'conf', 'remote.yaml')
with open(conf_file, 'r') as f:
data = yaml.load(f)
data['hosts'] = [node_ip]
with open(conf_file, 'w') as f:
yaml.safe_dump(data, f, default_flow_style=False)
def _get_directories(self):
dirs = []
for i in ['data', 'commitlogs', 'saved_caches', 'logs', 'bin', 'keys', 'resources', os.path.join('data', 'hints')]:
dirs.append(os.path.join(self.get_path(), i))
return dirs
def _copy_agent(self):
agent_source = os.path.join(self.get_install_dir(), 'datastax-agent')
agent_target = os.path.join(self.get_path(), 'datastax-agent')
if os.path.exists(agent_source) and not os.path.exists(agent_target):
shutil.copytree(agent_source, agent_target)
def _write_agent_address_yaml(self, agent_dir):
address_yaml = os.path.join(agent_dir, 'conf', 'address.yaml')
if not os.path.exists(address_yaml):
with open(address_yaml, 'w+') as f:
(ip, port) = self.network_interfaces['thrift']
jmx = self.jmx_port
f.write('stomp_interface: 127.0.0.1\n')
f.write('local_interface: %s\n' % ip)
f.write('agent_rpc_interface: %s\n' % ip)
f.write('agent_rpc_broadcast_address: %s\n' % ip)
f.write('cassandra_conf: %s\n' % os.path.join(self.get_path(), 'resources', 'cassandra', 'conf', 'cassandra.yaml'))
f.write('cassandra_install: %s\n' % self.get_path())
f.write('cassandra_logs: %s\n' % os.path.join(self.get_path(), 'logs'))
f.write('thrift_port: %s\n' % port)
f.write('jmx_port: %s\n' % jmx)
f.close()
def _write_agent_log4j_properties(self, agent_dir):
log4j_properties = os.path.join(agent_dir, 'conf', 'log4j.properties')
with open(log4j_properties, 'w+') as f:
f.write('log4j.rootLogger=INFO,R\n')
f.write('log4j.logger.org.apache.http=OFF\n')
f.write('log4j.logger.org.eclipse.jetty.util.log=WARN,R\n')
f.write('log4j.appender.R=org.apache.log4j.RollingFileAppender\n')
f.write('log4j.appender.R.maxFileSize=20MB\n')
f.write('log4j.appender.R.maxBackupIndex=5\n')
f.write('log4j.appender.R.layout=org.apache.log4j.PatternLayout\n')
f.write('log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %m%n\n')
f.write('log4j.appender.R.File=./log/agent.log\n')
f.close()
def _update_spark_env(self):
try:
node_num = re.search(u'node(\d+)', self.name).group(1)
except AttributeError:
node_num = 0
conf_file = os.path.join(self.get_path(), 'resources', 'spark', 'conf', 'spark-env.sh')
env = self.get_env()
content = []
with open(conf_file, 'r') as f:
for line in f.readlines():
for spark_var in env.keys():
if line.startswith('export %s=' % spark_var) or line.startswith('export %s=' % spark_var, 2):
line = 'export %s=%s\n' % (spark_var, env[spark_var])
break
content.append(line)
with open(conf_file, 'w') as f:
f.writelines(content)
# set unique spark.shuffle.service.port for each node; this is only needed for DSE 5.0.x;
# starting in 5.1 this setting is no longer needed
if self.cluster.version() > '5.0' and self.cluster.version() < '5.1':
defaults_file = os.path.join(self.get_path(), 'resources', 'spark', 'conf', 'spark-defaults.conf')
with open(defaults_file, 'a') as f:
port_num = 7737 + int(node_num)
f.write("\nspark.shuffle.service.port %s\n" % port_num)
# create Spark working dirs; starting with DSE 5.0.10/5.1.3 these are no longer automatically created
for e in ["SPARK_WORKER_DIR", "SPARK_LOCAL_DIRS"]:
dir = env[e]
if not os.path.exists(dir):
os.makedirs(dir)
| apache-2.0 | -8,702,722,111,606,709,000 | 46.105932 | 232 | 0.580777 | false | 3.44073 | true | false | false |
Microvellum/Fluid-Designer | win64-vc/2.78/Python/bin/2.78/scripts/addons_contrib/mesh_extra_tools/pkhg_faces.py | 1 | 32230 | bl_info = {
"name": "PKHG faces",
"author": " PKHG ",
"version": (0, 0, 5),
"blender": (2, 7, 1),
"location": "View3D > Tools > PKHG (tab)",
"description": "Faces selected will become added faces of different style",
"warning": "not yet finished",
"wiki_url": "",
"category": "Mesh",
}
import bpy
import bmesh
from mathutils import Vector, Matrix
from bpy.props import BoolProperty, StringProperty, IntProperty, FloatProperty, EnumProperty
class AddFaces(bpy.types.Operator):
"""Get parameters and build object with added faces"""
bl_idname = "mesh.add_faces_to_object"
bl_label = "new FACES: add"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
reverse_faces = BoolProperty(name="reverse_faces", default=False,
description="revert the normal of selected faces")
name_source_object = StringProperty(
name="which MESH",
description="lets you chose a mesh",
default="Cube")
remove_start_faces = BoolProperty(name="remove_start_faces", default=True,
description="make a choice, remove or not")
base_height = FloatProperty(name="base_height faces", min=-20,
soft_max=10, max=20, default=0.2,
description="sets general base_height")
use_relative_base_height = BoolProperty(name="rel.base_height", default=False,
description=" reletive or absolute base_height")
relative_base_height = FloatProperty(name="relative_height", min=-5,
soft_max=5, max=20, default=0.2,
description="PKHG>TODO")
relative_width = FloatProperty(name="relative_width", min=-5,
soft_max=5, max=20, default=0.2,
description="PKHG>TODO")
second_height = FloatProperty(name="2. height", min=-5,
soft_max=5, max=20, default=0.2,
description="2. height for this and that")
width = FloatProperty(name="wds.faces", min=-20, max=20, default=0.5,
description="sets general width")
repeat_extrude = IntProperty(name="repeat", min=1,
soft_max=5, max=20,
description="for longer base")
move_inside = FloatProperty(name="move inside", min=0.0,
max=1.0, default=0.5,
description="how much move to inside")
thickness = FloatProperty(name="thickness", soft_min=0.01, min=0,
soft_max=5.0, max=20.0, default=0)
depth = FloatProperty(name="depth", min=-5,
soft_max=5.0, max=20.0, default=0)
collapse_edges = BoolProperty(name="make point", default=False,
description="collapse vertices of edges")
spike_base_width = FloatProperty(name="spike_base_width", default=0.4,
min=-4.0, soft_max=1, max=20,
description="base width of a spike")
base_height_inset = FloatProperty(name="base_height_inset", default=0.0,
min=-5, max=5,
description="to elevate/or neg the ...")
top_spike = FloatProperty(name="top_spike", default=1.0, min=-10.0, max=10.0,
description=" the base_height of a spike")
top_extra_height = FloatProperty(name="top_extra_height", default=0.0, min=-10.0, max=10.0,
description=" add extra height")
step_with_real_spike = BoolProperty(name="step_with_real_spike", default=False,
description=" in stepped a real spike")
use_relative = BoolProperty(name="use_relative", default=False,
description="change size using area, min of max")
face_types = EnumProperty(
description="different types of faces",
default="no",
items=[
('no', 'choose!', 'choose one of the other possibilies'),
('open inset', 'open inset', 'holes'),
('with base', 'with base', 'base and ...'),
('clsd vertical', 'clsd vertical', 'clsd vertical'),
('open vertical', 'open vertical', 'openvertical'),
('spiked', 'spiked', 'spike'),
('stepped', 'stepped', 'stepped'),
('boxed', 'boxed', 'boxed'),
('bar', 'bar', 'bar'),
])
strange_boxed_effect = BoolProperty(name="strange effect", default=False,
description="do not show one extrusion")
use_boundary = BoolProperty(name="use_boundary", default=True)
use_even_offset = BoolProperty(name="even_offset", default=True)
use_relative_offset = BoolProperty(name="relativ_offset", default=True)
use_edge_rail = BoolProperty(name="edge_rail", default=False)
use_outset = BoolProperty(name="outset", default=False)
use_select_inset = BoolProperty(name="inset", default=False)
use_interpolate = BoolProperty(name="interpolate", default=True)
@classmethod
def poll(cls, context):
result = False
active_object = context.active_object
if active_object:
mesh_objects_name = [el.name for el in bpy.data.objects if el.type ==
"MESH"]
if active_object.name in mesh_objects_name:
result = True
return result
def draw(self, context): # PKHG>INFO Add_Faces_To_Object operator GUI
layout = self.layout
col = layout.column()
col.label(text="ACTIVE object used!")
col.prop(self, "face_types")
col.prop(self, "use_relative")
if self.face_types == "open inset":
col.prop(self, "move_inside")
col.prop(self, "base_height")
elif self.face_types == "with base":
col.prop(self, "move_inside")
col.prop(self, "base_height")
col.prop(self, "second_height")
col.prop(self, "width")
elif self.face_types == "clsd vertical":
col.prop(self, "base_height")
elif self.face_types == "open vertical":
col.prop(self, "base_height")
elif self.face_types == "boxed":
col.prop(self, "move_inside")
col.prop(self, "base_height")
col.prop(self, "top_spike")
col.prop(self, "strange_boxed_effect")
elif self.face_types == "spiked":
col.prop(self, "spike_base_width")
col.prop(self, "base_height_inset")
col.prop(self, "top_spike")
elif self.face_types == "bar":
col.prop(self, "spike_base_width")
col.prop(self, "top_spike")
col.prop(self, "top_extra_height")
elif self.face_types == "stepped":
col.prop(self, "spike_base_width")
col.prop(self, "base_height_inset")
col.prop(self, "top_extra_height")
col.prop(self, "second_height")
col.prop(self, "step_with_real_spike")
def execute(self, context):
bpy.context.scene.objects.active
obj_name = self.name_source_object
face_type = self.face_types
if face_type == "spiked":
Spiked(spike_base_width=self.spike_base_width,
base_height_inset=self.base_height_inset,
top_spike=self.top_spike, top_relative=self.use_relative)
elif face_type == "boxed":
startinfo = prepare(self, context, self.remove_start_faces)
bm = startinfo['bm']
top = self.top_spike
obj = startinfo['obj']
obj_matrix_local = obj.matrix_local
distance = None
base_heights = None
t = self.move_inside
areas = startinfo['areas']
base_height = self.base_height
if self.use_relative:
distance = [min(t * area, 1.0) for i, area in enumerate(areas)]
base_heights = [base_height * area for i, area in enumerate(areas)]
else:
distance = [t] * len(areas)
base_heights = [base_height] * len(areas)
rings = startinfo['rings']
centers = startinfo['centers']
normals = startinfo['normals']
for i in range(len(rings)):
make_one_inset(self, context, bm=bm, ringvectors=rings[i],
center=centers[i], normal=normals[i],
t=distance[i], base_height=base_heights[i])
bpy.ops.mesh.select_mode(type="EDGE")
bpy.ops.mesh.select_more()
bpy.ops.mesh.select_more()
bpy.ops.object.mode_set(mode='OBJECT')
# PKHG>INFO base extrusion done and set to the mesh
# PKHG>INFO if the extrusion is NOT done ... it looks straneg soon!
if not self.strange_boxed_effect:
bpy.ops.object.mode_set(mode='EDIT')
obj = context.active_object
bm = bmesh.from_edit_mesh(obj.data)
bmfaces = [face for face in bm.faces if face.select]
res = extrude_faces(self, context, bm=bm, face_l=bmfaces)
ring_edges = [face.edges[:] for face in res]
bpy.ops.object.mode_set(mode='OBJECT')
# PKHG>INFO now the extruded facec have to move in normal direction
bpy.ops.object.mode_set(mode='EDIT')
obj = bpy.context.scene.objects.active
bm = bmesh.from_edit_mesh(obj.data)
todo_faces = [face for face in bm.faces if face.select]
for face in todo_faces:
bmesh.ops.translate(bm, vec=face.normal * top, space=obj_matrix_local,
verts=face.verts)
bpy.ops.object.mode_set(mode='OBJECT')
elif face_type == "stepped":
Stepped(spike_base_width=self.spike_base_width,
base_height_inset=self.base_height_inset,
top_spike=self.second_height,
top_extra_height=self.top_extra_height,
use_relative_offset=self.use_relative, with_spike=self.step_with_real_spike)
elif face_type == "open inset":
startinfo = prepare(self, context, self.remove_start_faces)
bm = startinfo['bm']
# PKHG>INFO adjust for relative, via areas
t = self.move_inside
areas = startinfo['areas']
base_height = self.base_height
base_heights = None
distance = None
if self.use_relative:
distance = [min(t * area, 1.0) for i, area in enumerate(areas)]
base_heights = [base_height * area for i, area in enumerate(areas)]
else:
distance = [t] * len(areas)
base_heights = [base_height] * len(areas)
rings = startinfo['rings']
centers = startinfo['centers']
normals = startinfo['normals']
for i in range(len(rings)):
make_one_inset(self, context, bm=bm, ringvectors=rings[i],
center=centers[i], normal=normals[i],
t=distance[i], base_height=base_heights[i])
bpy.ops.object.mode_set(mode='OBJECT')
elif face_type == "with base":
startinfo = prepare(self, context, self.remove_start_faces)
bm = startinfo['bm']
obj = startinfo['obj']
object_matrix = obj.matrix_local
# PKHG>INFO for relative (using areas)
t = self.move_inside
areas = startinfo['areas']
base_height = self.base_height
distance = None
base_heights = None
if self.use_relative:
distance = [min(t * area, 1.0) for i, area in enumerate(areas)]
base_heights = [base_height * area for i, area in enumerate(areas)]
else:
distance = [t] * len(areas)
base_heights = [base_height] * len(areas)
next_rings = []
rings = startinfo['rings']
centers = startinfo['centers']
normals = startinfo['normals']
for i in range(len(rings)):
next_rings.append(make_one_inset(self, context, bm=bm, ringvectors=rings[i],
center=centers[i], normal=normals[i],
t=distance[i], base_height=base_heights[i]))
prepare_ring = extrude_edges(self, context, bm=bm, edge_l_l=next_rings)
second_height = self.second_height
width = self.width
vectors = [[ele.verts[:] for ele in edge] for edge in prepare_ring]
n_ring_vecs = []
for rings in vectors:
v = []
for edgv in rings:
v.extend(edgv)
# PKHF>INFO no double verts allowed, coming from two adjacents edges!
bm.verts.ensure_lookup_table()
vv = list(set([ele.index for ele in v]))
vvv = [bm.verts[i].co for i in vv]
n_ring_vecs.append(vvv)
for i, ring in enumerate(n_ring_vecs):
make_one_inset(self, context, bm=bm, ringvectors=ring,
center=centers[i], normal=normals[i],
t=width, base_height=base_heights[i] + second_height)
bpy.ops.object.mode_set(mode='OBJECT')
else:
if face_type == "clsd vertical":
obj_name = context.active_object.name
ClosedVertical(name=obj_name, base_height=self.base_height,
use_relative_base_height=self.use_relative)
elif face_type == "open vertical":
obj_name = context.active_object.name
OpenVertical(name=obj_name, base_height=self.base_height,
use_relative_base_height=self.use_relative)
elif face_type == "bar":
startinfo = prepare(self, context, self.remove_start_faces)
result = []
bm = startinfo['bm']
rings = startinfo['rings']
centers = startinfo['centers']
normals = startinfo['normals']
spike_base_width = self.spike_base_width
for i, ring in enumerate(rings):
result.append(make_one_inset(self, context, bm=bm,
ringvectors=ring, center=centers[i],
normal=normals[i], t=spike_base_width))
next_ring_edges_list = extrude_edges(self, context, bm=bm,
edge_l_l=result)
top_spike = self.top_spike
fac = top_spike
object_matrix = startinfo['obj'].matrix_local
for i in range(len(next_ring_edges_list)):
translate_ONE_ring(self, context, bm=bm,
object_matrix=object_matrix,
ring_edges=next_ring_edges_list[i],
normal=normals[i], distance=fac)
next_ring_edges_list_2 = extrude_edges(self, context, bm=bm,
edge_l_l=next_ring_edges_list)
top_extra_height = self.top_extra_height
for i in range(len(next_ring_edges_list_2)):
move_corner_vecs_outside(self, context, bm=bm,
edge_list=next_ring_edges_list_2[i],
center=centers[i], normal=normals[i],
base_height_erlier=fac + top_extra_height,
distance=fac)
bpy.ops.mesh.select_mode(type="VERT")
bpy.ops.mesh.select_more()
bpy.ops.object.mode_set(mode='OBJECT')
return {'FINISHED'}
class ReverseFacesOperator(bpy.types.Operator):
"""Reverse selected Faces"""
bl_idname = "mesh.revers_selected_faces"
bl_label = "reverse normal of selected faces1"
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
reverse_faces = BoolProperty(name="reverse_faces", default=False,
description="revert the normal of selected faces")
def execute(self, context):
name = context.active_object.name
ReverseFaces(name=name)
return {'FINISHED'}
class pkhg_help(bpy.types.Operator):
bl_idname = 'help.pkhg'
bl_label = ''
def draw(self, context):
layout = self.layout
layout.label('To use:')
layout.label('Make a selection or selection of Faces')
layout.label('Extrude, rotate extrusions & more')
layout.label('Toggle edit mode after use')
def invoke(self, context, event):
return context.window_manager.invoke_popup(self, width=300)
class VIEW3D_Faces_Panel(bpy.types.Panel):
bl_label = "Face Extrude"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
bl_category = 'Tools'
bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
result = False
active_object = context.active_object
if active_object:
mesh_objects_name = [el.name for el in bpy.data.objects if el.type ==
"MESH"]
if active_object.name in mesh_objects_name:
if active_object.mode == "OBJECT":
result = True
return result
def draw(self, context):
layout = self.layout
layout.operator(AddFaces.bl_idname, "Selected Faces!")
layout.label("Use this to Extrude")
layout.label("Selected Faces Only")
layout.label("---------------------------------------")
layout.operator(ReverseFacesOperator.bl_idname, "Reverse faceNormals")
layout.label("Only Use This")
layout.label("After Mesh Creation")
layout.label("To Repair Normals")
layout.label("Save File Often")
def find_one_ring(sel_vertices):
ring0 = sel_vertices.pop(0)
to_delete = []
for i, edge in enumerate(sel_vertices):
len_nu = len(ring0)
if len(ring0 - edge) < len_nu:
to_delete.append(i)
ring0 = ring0.union(edge)
to_delete.reverse()
for el in to_delete:
sel_vertices.pop(el)
return (ring0, sel_vertices)
class Stepped:
def __init__(self, spike_base_width=0.5, base_height_inset=0.0, top_spike=0.2, top_relative=False, top_extra_height=0, use_relative_offset=False, with_spike=False):
obj = bpy.context.active_object
bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=False, use_edge_rail=False, thickness=spike_base_width, depth=0, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=use_relative_offset, use_edge_rail=False, thickness=top_extra_height, depth=base_height_inset, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=use_relative_offset, use_edge_rail=False, thickness=spike_base_width, depth=0, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=False, use_edge_rail=False, thickness=0, depth=top_spike, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
if with_spike:
bpy.ops.mesh.merge(type='COLLAPSE')
bpy.ops.object.mode_set(mode='OBJECT')
class Spiked:
def __init__(self, spike_base_width=0.5, base_height_inset=0.0, top_spike=0.2, top_relative=False):
obj = bpy.context.active_object
bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=False, use_edge_rail=False, thickness=spike_base_width, depth=base_height_inset, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=top_relative, use_edge_rail=False, thickness=0, depth=top_spike, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
bm = bmesh.from_edit_mesh(obj.data)
selected_faces = [face for face in bm.faces if face.select]
edges_todo = []
bpy.ops.mesh.merge(type='COLLAPSE')
bpy.ops.object.mode_set(mode='OBJECT')
class ClosedVertical:
def __init__(self, name="Plane", base_height=1, use_relative_base_height=False):
obj = bpy.data.objects[name]
bm = bmesh.new()
bm.from_mesh(obj.data)
# PKHG>INFO deselect chosen faces
sel = [f for f in bm.faces if f.select]
for f in sel:
f.select = False
res = bmesh.ops.extrude_discrete_faces(bm, faces=sel)
# PKHG>INFO select extruded faces
for f in res['faces']:
f.select = True
lood = Vector((0, 0, 1))
# PKHG>INFO adjust extrusion by a vector! test just only lood
factor = base_height
for face in res['faces']:
if use_relative_base_height:
area = face.calc_area()
factor = area * base_height
else:
factor = base_height
for el in face.verts:
tmp = el.co + face.normal * factor
el.co = tmp
me = bpy.data.meshes[name]
bm.to_mesh(me)
bm.free()
class ReverseFaces:
def __init__(self, name="Cube"):
obj = bpy.data.objects[name]
me = obj.data
bpy.ops.object.mode_set(mode='EDIT')
bm = bmesh.new()
bm.from_mesh(me)
bpy.ops.object.mode_set(mode='OBJECT')
sel = [f for f in bm.faces if f.select]
bmesh.ops.reverse_faces(bm, faces=sel)
bm.to_mesh(me)
bm.free()
class OpenVertical:
def __init__(self, name="Plane", base_height=1, use_relative_base_height=False):
obj = bpy.data.objects[name]
bm = bmesh.new()
bm.from_mesh(obj.data)
# PKHG>INFO deselect chosen faces
sel = [f for f in bm.faces if f.select]
for f in sel:
f.select = False
res = bmesh.ops.extrude_discrete_faces(bm, faces=sel)
# PKHG>INFO select extruded faces
for f in res['faces']:
f.select = True
# PKHG>INFO adjust extrusion by a vector! test just only lood
factor = base_height
for face in res['faces']:
if use_relative_base_height:
area = face.calc_area()
factor = area * base_height
else:
factor = base_height
for el in face.verts:
tmp = el.co + face.normal * factor
el.co = tmp
me = bpy.data.meshes[name]
bm.to_mesh(me)
bm.free()
bpy.ops.object.editmode_toggle()
bpy.ops.mesh.delete(type='FACE')
bpy.ops.object.editmode_toggle()
class StripFaces:
def __init__(self, use_boundary=True, use_even_offset=True, use_relative_offset=False, use_edge_rail=True, thickness=0.0, depth=0.0, use_outset=False, use_select_inset=False, use_individual=True, use_interpolate=True):
bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.mesh.inset(use_boundary=use_boundary, use_even_offset=True, use_relative_offset=False, use_edge_rail=True, thickness=thickness, depth=depth, use_outset=use_outset, use_select_inset=use_select_inset, use_individual=use_individual, use_interpolate=use_interpolate)
bpy.ops.object.mode_set(mode='OBJECT')
# PKHG>IMFO only 3 parameters inc execution context supported!!
if False:
bpy.ops.mesh.inset(use_boundary, use_even_offset, use_relative_offset, use_edge_rail, thickness, depth, use_outset, use_select_inset, use_individual, use_interpolate)
elif type == 0:
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=False, use_edge_rail=True, thickness=thickness, depth=depth, use_outset=False, use_select_inset=False, use_individual=True, use_interpolate=True)
elif type == 1:
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=True, use_relative_offset=False, use_edge_rail=True, thickness=thickness, depth=depth, use_outset=False, use_select_inset=False, use_individual=True, use_interpolate=False)
bpy.ops.mesh.delete(type='FACE')
elif type == 2:
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=False, use_relative_offset=True, use_edge_rail=True, thickness=thickness, depth=depth, use_outset=False, use_select_inset=False, use_individual=True, use_interpolate=False)
bpy.ops.mesh.delete(type='FACE')
elif type == 3:
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=False, use_relative_offset=True, use_edge_rail=True, thickness=depth, depth=thickness, use_outset=False, use_select_inset=False, use_individual=True, use_interpolate=True)
bpy.ops.mesh.delete(type='FACE')
elif type == 4:
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=False, use_relative_offset=True, use_edge_rail=True, thickness=thickness, depth=depth, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
bpy.ops.mesh.inset(use_boundary=True, use_even_offset=False, use_relative_offset=True, use_edge_rail=True, thickness=thickness, depth=depth, use_outset=True, use_select_inset=False, use_individual=True, use_interpolate=True)
bpy.ops.mesh.delete(type='FACE')
bpy.ops.object.mode_set(mode='OBJECT')
def prepare(self, context, remove_start_faces=True):
"""Start for a face selected change of faces
select an object of type mesh, with activated severel (all) faces
"""
obj = bpy.context.scene.objects.active
bpy.ops.object.mode_set(mode='OBJECT')
selectedpolygons = [el for el in obj.data.polygons if el.select]
# PKHG>INFO copies of the vectors are needed, otherwise Blender crashes!
centers = [face.center for face in selectedpolygons]
centers_copy = [Vector((el[0], el[1], el[2])) for el in centers]
normals = [face.normal for face in selectedpolygons]
normals_copy = [Vector((el[0], el[1], el[2])) for el in normals]
vertindicesofpolgons = [[vert for vert in face.vertices] for face in selectedpolygons]
vertVectorsOfSelectedFaces = [[obj.data.vertices[ind].co for ind in vertIndiceofface]
for vertIndiceofface in vertindicesofpolgons]
vertVectorsOfSelectedFaces_copy = [[Vector((el[0], el[1], el[2])) for el in listofvecs]
for listofvecs in vertVectorsOfSelectedFaces]
bpy.ops.object.mode_set(mode='EDIT')
bm = bmesh.from_edit_mesh(obj.data)
selected_bm_faces = [ele for ele in bm.faces if ele.select]
selected_edges_per_face_ind = [[ele.index for ele in face.edges] for face in selected_bm_faces]
indices = [el.index for el in selectedpolygons]
selected_faces_areas = [bm.faces[:][i] for i in indices]
tmp_area = [el.calc_area() for el in selected_faces_areas]
# PKHG>INFO, selected faces are removed, only their edges are used!
if remove_start_faces:
bpy.ops.mesh.delete(type='ONLY_FACE')
bpy.ops.object.mode_set(mode='OBJECT')
obj.data.update()
bpy.ops.object.mode_set(mode='EDIT')
bm = bmesh.from_edit_mesh(obj.data)
bm.verts.ensure_lookup_table()
bm.faces.ensure_lookup_table()
start_ring_raw = [[bm.verts[ind].index for ind in vertIndiceofface]
for vertIndiceofface in vertindicesofpolgons]
start_ring = []
for el in start_ring_raw:
start_ring.append(set(el))
bm.edges.ensure_lookup_table()
bm_selected_edges_l_l = [[bm.edges[i] for i in bm_ind_list] for bm_ind_list in selected_edges_per_face_ind]
result = {'obj': obj, 'centers': centers_copy, 'normals': normals_copy,
'rings': vertVectorsOfSelectedFaces_copy, 'bm': bm,
'areas': tmp_area, 'startBMRingVerts': start_ring,
'base_edges': bm_selected_edges_l_l}
return result
def make_one_inset(self, context, bm=None, ringvectors=None, center=None,
normal=None, t=None, base_height=0):
"""a face will get 'inserted' faces to create (normaly)
a hole it t is > 0 and < 1)
"""
tmp = []
for el in ringvectors:
tmp.append((el * (1 - t) + center * t) + normal * base_height)
tmp = [bm.verts.new(v) for v in tmp] # the new corner bmvectors
# PKHG>INFO so to say sentinells, ot use ONE for ...
tmp.append(tmp[0])
vectorsFace_i = [bm.verts.new(v) for v in ringvectors]
vectorsFace_i.append(vectorsFace_i[0])
myres = []
for ii in range(len(vectorsFace_i) - 1):
# PKHG>INFO next line: sequence important! for added edge
bmvecs = [vectorsFace_i[ii], vectorsFace_i[ii + 1], tmp[ii + 1], tmp[ii]]
res = bm.faces.new(bmvecs)
myres.append(res.edges[2])
myres[-1].select = True # PKHG>INFO to be used later selected!
return (myres)
def extrude_faces(self, context, bm=None, face_l=None):
"""
to make a ring extrusion!
"""
all_results = []
res = bmesh.ops.extrude_discrete_faces(bm, faces=face_l)['faces']
for face in res:
face.select = True
return res
def extrude_edges(self, context, bm=None, edge_l_l=None):
"""
to make a ring extrusion!
"""
all_results = []
for edge_l in edge_l_l:
for edge in edge_l:
edge.select = False
res = bmesh.ops.extrude_edge_only(bm, edges=edge_l)
tmp = [ele for ele in res['geom'] if isinstance(ele, bmesh.types.BMEdge)]
for edge in tmp:
edge.select = True
all_results.append(tmp)
return all_results
def translate_ONE_ring(self, context, bm=None, object_matrix=None, ring_edges=None,
normal=(0, 0, 1), distance=0.5):
"""
translate a ring in given (normal?!) direction with given (global) amount
"""
tmp = []
for edge in ring_edges:
tmp.extend(edge.verts[:])
# PKHG>INFO no double vertices allowed by bmesh!
tmp = set(tmp)
tmp = list(tmp)
bmesh.ops.translate(bm, vec=normal * distance, space=object_matrix, verts=tmp)
return ring_edges
# PKHG>INFO relevant edges will stay selected
def move_corner_vecs_outside(self, context, bm=None, edge_list=None, center=None, normal=None,
base_height_erlier=0.5, distance=0.5):
"""
move corners (outside meant mostly) dependent on the parameters
"""
tmp = []
for edge in edge_list:
tmp.extend([ele for ele in edge.verts if isinstance(ele, bmesh.types.BMVert)])
# PKHG>INFO to remove vertices, they are all twices used in the ring!
tmp = set(tmp)
tmp = list(tmp)
for i in range(len(tmp)):
vec = tmp[i].co
direction = vec + (vec - (normal * base_height_erlier + center)) * distance
tmp[i].co = direction
def register():
bpy.utils.register_module(__name__)
def unregister():
bpy.utils.unregister_module(__name__)
if __name__ == "__main__":
register()
| gpl-3.0 | -9,101,845,059,198,115,000 | 42.85034 | 278 | 0.57403 | false | 3.667501 | false | false | false |
laissezfarrell/rl-bitcurator-scripts | python/accession-reporter.py | 1 | 3754 | #!/usr/bin/env python3
#Script (in progress) to report high-level folder information for offices transferring records to the University Archives.
#Dependencies: argparse, pathlib, python3.6 or above, csv, datetime
#Assumptions:
# 1.
import argparse, csv, datetime
from pathlib import Path, PurePath
from datetime import datetime
def walkPath():
startingPath = Path(inputDir) #uncomment when ready for arguments
#csvOut = Path('/home/bcadmin/Desktop/accession-report-test.csv')
#startingPath = Path('/home/bcadmin/Desktop/test-data/objects') #comment when ready for arguments
spChild = [x for x in startingPath.iterdir() if x.is_dir()] #create a list of the children directories in startingPath.
with open (csvOut, 'w') as m:
writer = csv.writer(m)
writer.writerow(['path','foldersize '+ labelUnits,'Earliest Timestamp','Latest Timestamp'])
for i in spChild:
operatingDirectory = Path(i)
print("the next directory to process is ",operatingDirectory)#sanity check
fileList = list(operatingDirectory.glob('**/*'))
#fileList = [x for x in operatingDirectory.iterdir() if x.is_file()]
#print(fileList) #sanity check
folderSize = 0
fModTime = datetime.now()
oldestTime = fModTime
newestTime = datetime.strptime("Jan 01 1950", "%b %d %Y")
for f in fileList:
fSizeBytes = (Path.stat(f).st_size / repUnits)
folderSize = folderSize + fSizeBytes
fModTime = datetime.fromtimestamp(Path.stat(f).st_mtime)
if fModTime >= oldestTime:
pass
else:
oldestTime = fModTime
if fModTime <= newestTime:
pass
else:
newestTime = fModTime
#print(folderSize)
#print(oldestTime)
#print(newestTime)
writer.writerow([i,folderSize,oldestTime,newestTime])
#end of day May 15: above function calculates the size of the files in a folder, as well as the most recent and oldest date modified. Next steps: 1) add arguments back in and test function. Mostly compied/pasted writer stuff from another script, so potentially doesn't work yet.
# Main body to accept arguments and call the three functions.
parser = argparse.ArgumentParser()
parser.add_argument("output", help="Path to and filename for the CSV to create.")
parser.add_argument("input", help="Path to input directory.")
parser.add_argument("-u", "--units", type=str, choices=["b", "kb", "mb", "gb"], help="Unit of measurement for reporting aggregate size")
args = parser.parse_args()
if args.output:
csvOut = args.output
if args.input:
inputDir = args.input
if args.units == "kb":
repUnits = 1024
labelUnits = "(kilobytes)"
print("Reporting sizes in kilobytes")
elif args.units == "mb":
repUnits = 1024*1024
labelUnits = "(megabytes)"
print("Reporting sizes in megabytes")
elif args.units =="gb":
repUnits = 1024*1024*1024
labelUnits = "(gigabytes)"
print("Reporting sizes in gigabytes")
elif args.units == "b":
repUnits = 1
labelUnits = "(bytes)"
print("Reporting sizes in bytes, the purest way to report sizes.")
else:
repUnits = 1
labelUnits = "(bytes)"
print("Your inattentiveness leads Self to default to reporting size in bytes, the purest yet least human readable way to report sizes. Ha ha, puny human. Bow before Self, the mighty computer. 01000100 01000101 01010011 01010100 01010010 01001111 01011001 00100000 01000001 01001100 01001100 00100000 01001000 01010101 01001101 01000001 01001110 01010011 00101110")
walkPath()
| gpl-3.0 | -5,533,678,024,818,261,000 | 43.690476 | 368 | 0.660629 | false | 3.894191 | false | false | false |
alirizakeles/zato | code/zato-server/src/zato/server/service/internal/security/openstack.py | 1 | 6547 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2013 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
from contextlib import closing
from traceback import format_exc
from uuid import uuid4
# Zato
from zato.common import SEC_DEF_TYPE
from zato.common.broker_message import SECURITY
from zato.common.odb.model import Cluster, OpenStackSecurity
from zato.common.odb.query import openstack_security_list
from zato.server.service.internal import AdminService, AdminSIO, ChangePasswordBase, GetListAdminSIO
class GetList(AdminService):
""" Returns a list of OpenStack definitions available.
"""
_filter_by = OpenStackSecurity.name,
class SimpleIO(GetListAdminSIO):
request_elem = 'zato_security_openstack_get_list_request'
response_elem = 'zato_security_openstack_get_list_response'
input_required = ('cluster_id',)
output_required = ('id', 'name', 'is_active', 'username')
def get_data(self, session):
return self._search(openstack_security_list, session, self.request.input.cluster_id, False)
def handle(self):
with closing(self.odb.session()) as session:
self.response.payload[:] = self.get_data(session)
class Create(AdminService):
""" Creates a new OpenStack definition.
"""
class SimpleIO(AdminSIO):
request_elem = 'zato_security_openstack_create_request'
response_elem = 'zato_security_openstack_create_response'
input_required = ('cluster_id', 'name', 'is_active', 'username')
output_required = ('id', 'name')
def handle(self):
input = self.request.input
input.password = uuid4().hex
with closing(self.odb.session()) as session:
try:
cluster = session.query(Cluster).filter_by(id=input.cluster_id).first()
# Let's see if we already have a definition of that name before committing
# any stuff into the database.
existing_one = session.query(OpenStackSecurity).\
filter(Cluster.id==input.cluster_id).\
filter(OpenStackSecurity.name==input.name).first()
if existing_one:
raise Exception('OpenStack definition [{0}] already exists on this cluster'.format(input.name))
auth = OpenStackSecurity(None, input.name, input.is_active, input.username, input.password, cluster)
session.add(auth)
session.commit()
except Exception, e:
msg = 'Could not create an OpenStack definition, e:[{e}]'.format(e=format_exc(e))
self.logger.error(msg)
session.rollback()
raise
else:
input.action = SECURITY.OPENSTACK_CREATE.value
input.sec_type = SEC_DEF_TYPE.OPENSTACK
self.broker_client.publish(input)
self.response.payload.id = auth.id
self.response.payload.name = auth.name
class Edit(AdminService):
""" Updates an OpenStack definition.
"""
class SimpleIO(AdminSIO):
request_elem = 'zato_security_openstack_edit_request'
response_elem = 'zato_security_openstack_edit_response'
input_required = ('id', 'cluster_id', 'name', 'is_active', 'username')
output_required = ('id', 'name')
def handle(self):
input = self.request.input
with closing(self.odb.session()) as session:
try:
existing_one = session.query(OpenStackSecurity).\
filter(Cluster.id==input.cluster_id).\
filter(OpenStackSecurity.name==input.name).\
filter(OpenStackSecurity.id!=input.id).\
first()
if existing_one:
raise Exception('OpenStack definition [{0}] already exists on this cluster'.format(input.name))
definition = session.query(OpenStackSecurity).filter_by(id=input.id).one()
old_name = definition.name
definition.name = input.name
definition.is_active = input.is_active
definition.username = input.username
session.add(definition)
session.commit()
except Exception, e:
msg = 'Could not update the OpenStack definition, e:[{e}]'.format(e=format_exc(e))
self.logger.error(msg)
session.rollback()
raise
else:
input.action = SECURITY.OPENSTACK_EDIT.value
input.old_name = old_name
input.sec_type = SEC_DEF_TYPE.OPENSTACK
self.broker_client.publish(input)
self.response.payload.id = definition.id
self.response.payload.name = definition.name
class ChangePassword(ChangePasswordBase):
""" Changes the password of an OpenStack definition.
"""
password_required = False
class SimpleIO(ChangePasswordBase.SimpleIO):
request_elem = 'zato_security_openstack_change_password_request'
response_elem = 'zato_security_openstack_change_password_response'
def handle(self):
def _auth(instance, password):
instance.password = password
return self._handle(OpenStackSecurity, _auth, SECURITY.OPENSTACK_CHANGE_PASSWORD.value)
class Delete(AdminService):
""" Deletes an OpenStack definition.
"""
class SimpleIO(AdminSIO):
request_elem = 'zato_security_openstack_delete_request'
response_elem = 'zato_security_openstack_delete_response'
input_required = ('id',)
def handle(self):
with closing(self.odb.session()) as session:
try:
auth = session.query(OpenStackSecurity).\
filter(OpenStackSecurity.id==self.request.input.id).\
one()
session.delete(auth)
session.commit()
except Exception, e:
msg = 'Could not delete the OpenStack definition, e:[{e}]'.format(e=format_exc(e))
self.logger.error(msg)
session.rollback()
raise
else:
self.request.input.action = SECURITY.OPENSTACK_DELETE.value
self.request.input.name = auth.name
self.broker_client.publish(self.request.input)
| gpl-3.0 | -7,917,064,679,736,714,000 | 36.626437 | 116 | 0.607148 | false | 4.312912 | false | false | false |
10239847509238470925387z/tmp123 | app.py | 1 | 2195 | #!/usr/bin/env python
import urllib
import json
import os
import constants
import accounts
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
PERSON = constants.TEST_1
@app.route('/webhook', methods=['POST'])
def webhook():
req = request.get_json(silent=True, force=True)
print("Request:")
print(json.dumps(req, indent=4))
res = makeWebhookResult(req)
res = json.dumps(res, indent=4)
print(res)
r = make_response(res)
r.headers['Content-Type'] = 'application/json'
return r
def makeWebhookResult(req):
if req.get("result").get("action") != "account-balance":
return constants.ERR_DICT(req.get("result").get("action"))
result = req.get("result")
parameters = result.get("parameters")
acct = parameters.get("account-type")
acct = acct.strip()
if acct=='401k':
acct='WI'
qual = parameters.get("qualifier")
speech = str(req.get("result").get("action"))
if acct:
if acct in constants.ACCT_TYPES:
speech = "The value of your {ACCT_TYPE} accounts is {VALU} dollars.".format(VALU=accounts.get_balance(PERSON, acct), ACCT_TYPE=acct)
else:
speech = "You don't have any accounts of that type. The total value of your other accounts is {VALU} dollars.".format(
VALU=accounts.get_balance(PERSON))
elif qual:
speech = "The total value of your accounts is {VALU} dollars.".format(VALU=accounts.get_balance(PERSON))
else:
speech = "The total value of your accounts is {VALU} dollars.".format(VALU=accounts.get_balance(PERSON))
# speech = "The cost of shipping to " + zone + " is " + str(cost[zone]) + " euros."
print("Response:")
print(speech)
speech += "\nAnything else I can help you with today?"
return {
"speech": speech,
"displayText": speech,
#"data": {},
# "contextOut": [],
"source": "home"
}
if __name__ == '__main__':
port = int(os.getenv('PORT', 5000))
print "Starting app on port %d" % port
app.run(debug=True, port=port, host='0.0.0.0')
| apache-2.0 | -4,790,441,292,185,734,000 | 26.098765 | 144 | 0.625513 | false | 3.540323 | false | false | false |
Lind-Project/native_client | src/trusted/validator_arm/validation-report.py | 1 | 3575 | #!/usr/bin/python2
#
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
import sys
import textwrap
from subprocess import Popen, PIPE
_OBJDUMP = 'arm-linux-gnueabi-objdump'
def _objdump(binary, vaddr, ctx_before, ctx_after):
args = [
_OBJDUMP,
'-d',
'-G',
binary,
'--start-address=0x%08X' % (vaddr - (4 * ctx_before)),
'--stop-address=0x%08X' % (vaddr + 4 + (4 * ctx_after))]
highlight = ctx_before
lines = 0
for line in Popen(args, stdout=PIPE).stdout.read().split('\n'):
if line.startswith(' '):
if highlight == 0:
print '--> ', line
else:
print ' ', line
highlight -= 1
lines += 1
if not lines:
print ' (not found)'
def _problem_info(code):
return {
'kProblemUnsafe': ['Instruction is unsafe', 0, 0],
'kProblemBranchSplitsPattern': ['The destination of this branch is '
'part of an instruction sequence that must be executed in full, '
'or is inline data',
0, 0],
'kProblemPatternCrossesBundle': ['This instruction is part of a '
'sequence that must execute in full, but it spans a bundle edge '
'-- so an indirect branch may target it',
1, 1],
'kProblemBranchInvalidDest': ['This branch targets a location that is '
'outside of the application\'s executable code, and is not a valid '
'trampoline entry point', 0, 0],
'kProblemUnsafeLoadStore': ['This store instruction is not preceded by '
'a valid address mask instruction', 1, 0],
'kProblemUnsafeBranch': ['This indirect branch instruction is not '
'preceded by a valid address mask instruction', 1, 0],
'kProblemUnsafeDataWrite': ['This instruction affects a register that '
'must contain a valid data-region address, but is not followed by '
'a valid address mask instruction', 0, 1],
'kProblemReadOnlyRegister': ['This instruction changes the contents of '
'a read-only register', 0, 0],
'kProblemMisalignedCall': ['This linking branch instruction is not in '
'the last slot of its bundle, so when its LR result is masked, the '
'caller will not return to the next instruction', 0, 0],
}[code]
def _safety_msg(val):
return {
0: 'UNKNOWN', # Should not appear
1: 'is undefined',
2: 'has unpredictable effects',
3: 'is deprecated',
4: 'is forbidden',
5: 'uses forbidden operands',
}[val]
def _explain_problem(binary, vaddr, safety, code, ref_vaddr):
msg, ctx_before, ctx_after = _problem_info(code)
if safety == 6:
msg = "At %08X: %s:" % (vaddr, msg)
else:
msg = ("At %08X: %s (%s):"
% (vaddr, msg, _safety_msg(safety)))
print '\n'.join(textwrap.wrap(msg, 70, subsequent_indent=' '))
_objdump(binary, vaddr, ctx_before, ctx_after)
if ref_vaddr:
print "Destination address %08X:" % ref_vaddr
_objdump(binary, ref_vaddr, 1, 1)
def _parse_report(line):
vaddr_hex, safety, code, ref_vaddr_hex = line.split()
return (int(vaddr_hex, 16), int(safety), code, int(ref_vaddr_hex, 16))
for line in sys.stdin:
if line.startswith('ncval: '):
line = line[7:].strip()
_explain_problem(sys.argv[1], *_parse_report(line))
| bsd-3-clause | 2,495,468,691,190,867,000 | 36.631579 | 80 | 0.59021 | false | 3.685567 | false | false | false |
core-code/LibVT | Dependencies/Core3D/Preprocessing/generateOctreeFromObj.py | 1 | 10849 | #!/usr/bin/env python
#
# generateOctreeFromObj.py
# Core3D
#
# Created by Julian Mayer on 16.11.07.
# Copyright (c) 2010 A. Julian Mayer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitationthe rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import sys, bz2
from struct import *
from vecmath import *
TEXTURING = 1
GENTEX = 0
MAX_FLOAT = 1e+308
MIN_FLOAT = -1e308
MAX_USHORT = 0xFFFF
MAX_FACES_PER_TREELEAF = 1000
MAX_RECURSION_DEPTH = 10
SCALE = 1.0
vertices = []
faces = []
normals = []
texcoords = []
def faceContent(f, i):
if i == 0:
if f.count("/") == 0: return f
else: return f[:f.find("/")]
elif i == 1:
if f.count("/") == 0 or f.count("//") == 1: return 0
else:
if f.count("/") == 2:
return f[f.find("/")+1:f.rfind("/")]
else:
return f[f.find("/")+1:]
else:
if f.count("/") != 2: return 0
else: return f[f.rfind("/")+1:]
def calculateAABB(faces):
mi = [MAX_FLOAT, MAX_FLOAT,MAX_FLOAT]
ma = [MIN_FLOAT, MIN_FLOAT, MIN_FLOAT]
for face in faces:
for i in range(3):
for v in range(3):
ma[i] = max(ma[i], vertices[face[v]][i])
mi[i] = min(mi[i], vertices[face[v]][i])
return mi,ma
def classifyVertex(vertex, splitpoint): #TODO: do splitting or other funny things
if vertex[0] > splitpoint[0] and vertex[1] > splitpoint[1] and vertex[2] > splitpoint[2]: return 0
if vertex[0] <= splitpoint[0] and vertex[1] > splitpoint[1] and vertex[2] > splitpoint[2]: return 1
if vertex[0] > splitpoint[0] and vertex[1] > splitpoint[1] and vertex[2] <= splitpoint[2]: return 2
if vertex[0] > splitpoint[0] and vertex[1] <= splitpoint[1] and vertex[2] > splitpoint[2]: return 3
if vertex[0] <= splitpoint[0] and vertex[1] > splitpoint[1] and vertex[2] <= splitpoint[2]: return 4
if vertex[0] > splitpoint[0] and vertex[1] <= splitpoint[1] and vertex[2] <= splitpoint[2]: return 5
if vertex[0] <= splitpoint[0] and vertex[1] <= splitpoint[1] and vertex[2] > splitpoint[2]: return 6
if vertex[0] <= splitpoint[0] and vertex[1] <= splitpoint[1] and vertex[2] <= splitpoint[2]:return 7
def classifyFace(face, splitpoint):
return max(classifyVertex(vertices[face[0]], splitpoint), classifyVertex(vertices[face[1]], splitpoint), classifyVertex(vertices[face[2]], splitpoint)) #TODO: random instead of max?
def buildOctree(faces, offset, level):
mi,ma = calculateAABB(faces)
ournum = buildOctree.counter
buildOctree.counter += 1
childoffset = offset
if len(faces) > MAX_FACES_PER_TREELEAF and level < MAX_RECURSION_DEPTH:
splitpoint = [mi[0] + (ma[0] - mi[0])/2, mi[1] + (ma[1] - mi[1])/2, mi[2] + (ma[2] - mi[2])/2]
newfaces = [[],[],[],[],[],[],[],[]]
newnodes = []
childnums = []
for face in faces:
x = classifyFace(face, splitpoint)
newfaces[x].append(face)
for newface in newfaces:
a,b = buildOctree(newface, childoffset, level+1)
childoffset += len(newface)
childnums.append(a)
newnodes.extend(b)
faces[:] = newfaces[0]+newfaces[1]+newfaces[2]+newfaces[3]+newfaces[4]+newfaces[5]+newfaces[6]+newfaces[7]
newnodes.insert(0, [offset, len(faces), mi[0], mi[1], mi[2], ma[0] - mi[0], ma[1] - mi[1], ma[2] - mi[2], childnums[0], childnums[1], childnums[2], childnums[3], childnums[4], childnums[5], childnums[6], childnums[7]])
return ournum, newnodes
else:
return ournum, [[offset, len(faces), mi[0], mi[1], mi[2], ma[0] - mi[0], ma[1] - mi[1], ma[2] - mi[2], MAX_USHORT, MAX_USHORT, MAX_USHORT, MAX_USHORT, MAX_USHORT, MAX_USHORT, MAX_USHORT, MAX_USHORT]]
try:
if (len(sys.argv)) == 1: raise Exception('input', 'error')
f = open(sys.argv[len(sys.argv) - 1], 'r')
of = 0
for i in range(1, len(sys.argv) - 1):
if sys.argv[i].startswith("-s="): SCALE = float(sys.argv[i][3:])
elif sys.argv[i].startswith("-t"): TEXTURING = 0
elif sys.argv[i].startswith("-g="): GENTEX = int(sys.argv[i][3:]); TEXTURING = 0
elif sys.argv[i].startswith("-m="): MAX_FACES_PER_TREELEAF = int(sys.argv[i][3:])
elif sys.argv[i].startswith("-r="): MAX_RECURSION_DEPTH = int(sys.argv[i][3:])
elif sys.argv[i].startswith("-o="): of = open(sys.argv[i][3:], 'w')
else: raise Exception('input', 'error')
if of == 0: of = open(sys.argv[len(sys.argv) - 1][:sys.argv[len(sys.argv) - 1].rfind(".")] + ".octree.bz2", 'w')
except:
print """Usage: generateOctreeFromObj [options] obj_file
Options:
-t Ignore texture coordinates, produce an untextured Octree
-s=<scale> Scale all coordinates by <scale>
-m=<max_faces> Limit faces per leafnode to <max_faces> (Default: 1000)
-r=<max_recursion> Limit tree depth to <max_recursion> (Default: 10)
-o=<octree_file> Place the output octree into <octree_file>
-g=<0,1,2,3,4> Texture coordinate generation:
0 = off, 1 = on, 2 = swap X, 3 = swap Y, 4 = swap XY"""
sys.exit()
print "Info: Reading the OBJ-file"
lines = f.readlines()
for line in lines:
i = line.strip().split(" ")[0]
c = line[2:].strip().split(" ")
if i == "v":
vertices.append([float(c[0]) * SCALE, float(c[1]) * SCALE, float(c[2]) * SCALE])
elif i == "vn":
normals.append(normalize([float(c[0]), float(c[1]), float(c[2])]))
elif i == "vt":
texcoords.append([float(c[0]), float(c[1]), 0.0]) #TODO: if we discard W anyway we shouldnt store it
elif i == "f":
if (len(c) > 4):
print "Error: faces with more than 4 edges not supported"
sys.exit()
elif (len(c) == 4): #triangulate
faces.append([int(faceContent(c[0],0))-1, int(faceContent(c[1],0))-1, int(faceContent(c[2],0))-1, int(faceContent(c[0],2))-1, int(faceContent(c[1],2))-1, int(faceContent(c[2],2))-1, int(faceContent(c[0],1))-1, int(faceContent(c[1],1))-1, int(faceContent(c[2],1))-1])
faces.append([int(faceContent(c[0],0))-1, int(faceContent(c[2],0))-1, int(faceContent(c[3],0))-1, int(faceContent(c[0],2))-1, int(faceContent(c[2],2))-1, int(faceContent(c[3],2))-1, int(faceContent(c[0],1))-1, int(faceContent(c[2],1))-1, int(faceContent(c[3],1))-1])
else:
faces.append([int(faceContent(c[0],0))-1, int(faceContent(c[1],0))-1, int(faceContent(c[2],0))-1, int(faceContent(c[0],2))-1, int(faceContent(c[1],2))-1, int(faceContent(c[2],2))-1, int(faceContent(c[0],1))-1, int(faceContent(c[1],1))-1, int(faceContent(c[2],1))-1])
print "Info: Building the Octree"
buildOctree.counter = 0
a,nodes = buildOctree(faces, 0, 0)
if len(nodes) > MAX_USHORT:
print "Error: too many octree nodes generated, increase MAX_FACES_PER_TREELEAF"
sys.exit()
print "Info: Unifying and Uniquing Vertices, Normals and Texcoords"
normalwarning = 0
newvertices = []
newvertices_dict = {} #it's perhaps not the most intuitive way to have the newvertices stored twice, but it prevents a quadratic runtime
for face in faces:
for i in range(3):
if face[i+3] == -1:
normalwarning += 1
normals.append(normalize(crossProduct(substract(vertices[face[0]],vertices[face[1]]), substract(vertices[face[2]],vertices[face[0]]))))
face[i+3] = len(normals)-1
if TEXTURING and face[i+6] == -1:
print "Warning: some face without a texcoord detected, turning texturing off"
TEXTURING = 0
for i in range(3):
if len(vertices[face[i]]) == 3:
vertices[face[i]].extend(normals[face[i+3]])
if TEXTURING:
vertices[face[i]].extend(texcoords[face[i+6]])
elif vertices[face[i]][3:6] != normals[face[i+3]] or (TEXTURING and vertices[face[i]][6:] != texcoords[face[i+6]]): #if this vertex has a different normal/texcoord we have to duplicate it because opengl has only one index list
sf = face[i]
if TEXTURING:
key = vertices[face[i]][0], vertices[face[i]][1], vertices[face[i]][2], normals[face[i+3]][0], normals[face[i+3]][1], normals[face[i+3]][2], texcoords[face[i+6]][0], texcoords[face[i+6]][1], texcoords[face[i+6]][2]
else:
key = vertices[face[i]][0], vertices[face[i]][1], vertices[face[i]][2], normals[face[i+3]][0], normals[face[i+3]][1], normals[face[i+3]][2]
if newvertices_dict.has_key(key):
face[i] = len(vertices)+newvertices_dict[key]
if sf == face[i]: #or create duplicate
newvertices.append(list(key))
newvertices_dict[key] = len(newvertices)-1
face[i] = len(vertices)+len(newvertices)-1 #don't forget to update the index to the duplicated vertex+normal
vertices.extend(newvertices)
if normalwarning:
print "Warning: some face without a normal detected, calculating it (x" + str(normalwarning) +")"
print "Info: Writing the resulting Octree-file"
dummywarning = 0
out = pack('III', 0xDEADBEEF if (TEXTURING or GENTEX) else 0x6D616C62, len(nodes), len(vertices))
for node in nodes:
out += pack('IIffffffHHHHHHHH', node[0], node[1], node[2], node[3], node[4], node[5], node[6], node[7], node[8], node[9], node[10], node[11], node[12], node[13], node[14], node[15])
for vert in vertices:
try:
if TEXTURING:
out += pack('ffffffff', vert[0], vert[1], vert[2], vert[3], vert[4], vert[5], vert[6], vert[7])
elif GENTEX:
xcoord = (vert[0] - nodes[0][2]) / nodes[0][5]
ycoord = (vert[2] - nodes[0][4]) / nodes[0][7]
out += pack('ffffffff', vert[0], vert[1], vert[2], vert[3], vert[4], vert[5], (1.0 - xcoord) if (GENTEX == 2 or GENTEX == 4) else xcoord, (1.0 - ycoord) if (GENTEX == 3 or GENTEX == 4) else ycoord)
else:
out += pack('ffffff', vert[0], vert[1], vert[2], vert[3], vert[4], vert[5]) #the vertex includes the normal now, if not the vertex is unreferenced and this throws
except:
dummywarning += 1
if TEXTURING:
out += pack('ffffffff', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
else:
out += pack('ffffff', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
if (len(vertices) <= MAX_USHORT): type = 'HHH'
else: type = 'III'
for face in faces:
out += pack(type, face[0], face[1], face[2])
of.write(bz2.compress(out))
if dummywarning:
print "Warning: unreferenced vertex detected, writing dummy vertex (x" + str(dummywarning) +")"
print "\nSUCCESS:\n\nnodes:\t\t", len(nodes), "\nvertices:\t", len(vertices), "\t( duplicatesWithDifferentNormalsOrTexcoords:", len(newvertices), ")", "\nfaces:\t\t", len(faces), "\n"
| mit | 7,716,171,793,022,086,000 | 49.696262 | 462 | 0.660337 | false | 2.678765 | false | false | false |
Effective-Quadratures/Effective-Quadratures | equadratures/scalers.py | 1 | 7167 | """
Classes to scale data.
Some of these classes are called internally by other modules, but they can also be used independently as a pre-processing stage.
Scalers can fit to one set of data, and used to transform other data sets with the same number of dimensions.
Examples
--------
Fitting scaler implicitly during transform
>>> # Define some 1D sample data
>>> X = np.random.RandomState(0).normal(2,0.5,200)
>>> (X.mean(),X.std())
>>> (2.0354552465705806, 0.5107113843479977)
>>>
>>> # Scale to zero mean and unit variance
>>> X = eq.scalers.scaler_meanvar().transform(X)
>>> (X.mean(),X.std())
>>> (2.886579864025407e-17, 1.0)
Using the same scaling to transform train and test data
>>> # Define some 5D example data
>>> X = np.random.RandomState(0).uniform(-10,10,size=(50,5))
>>> y = X[:,0]**2 - X[:,4]
>>> # Split into train/test
>>> X_train, X_test,y_train,y_test = eq.datasets.train_test_split(X,y,train=0.7,random_seed=0)
>>> (X_train.min(),X_train.max())
>>> (-9.906090476149059, 9.767476761184525)
>>>
>>> # Define a scaler and fit to training split
>>> scaler = eq.scalers.scaler_minmax()
>>> scaler.fit(X_train)
>>>
>>> # Transform train and test data with same scaler
>>> X_train = scaler.transform(X_train)
>>> X_test = scaler.transform(X_test)
>>> (X_train.min(),X_train.max())
>>> (-1.0, 1.0)
>>>
>>> # Finally, e.g. of transforming data back again
>>> X_train = scaler.untransform(X_train)
>>> (X_train.min(),X_train.max())
>>> (-9.906090476149059, 9.767476761184525)
"""
import numpy as np
class scaler_minmax(object):
""" Scale the data to have a min/max of -1 to 1. """
def __init__(self):
self.fitted = False
def fit(self,X):
""" Fit scaler to data.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to fit scaler to.
"""
if X.ndim == 1: X = X.reshape(-1,1)
self.Xmin = np.min(X,axis=0)
self.Xmax = np.max(X,axis=0)
self.fitted = True
def transform(self,X):
""" Transforms data. Calls :meth:`~equadratures.scalers.scaler_minmax.fit` fit internally if scaler not already fitted.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to transform.
Returns
-------
numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing transformed data.
"""
if X.ndim == 1: X = X.reshape(-1,1)
if not self.fitted: self.fit(X)
Xtrans = 2.0 * ( (X[:,:]-self.Xmin)/(self.Xmax - self.Xmin) ) - 1.0
return Xtrans
def untransform(self,X):
""" Untransforms data.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to untransform.
Returns
-------
numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing untransformed data.
Raises
------
Exception
scaler has not been fitted
"""
if X.ndim == 1: X = X.reshape(-1,1)
if not self.fitted:
raise Exception('scaler has not been fitted')
Xuntrans = 0.5*(X[:,:]+1)*(self.Xmax - self.Xmin) + self.Xmin
return Xuntrans
class scaler_meanvar(object):
"""
Scale the data to have a mean of 0 and variance of 1.
"""
def __init__(self):
self.fitted = False
def fit(self,X):
""" Fit scaler to data.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to fit scaler to.
"""
if X.ndim == 1: X = X.reshape(-1,1)
self.Xmean = np.mean(X,axis=0)
self.Xstd = np.std(X,axis=0)
self.fitted = True
def transform(self,X):
""" Transforms data. Calls :meth:`~equadratures.scalers.scaler_meanvar.fit` fit internally if scaler not already fitted.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to transform.
Returns
-------
numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing transformed data.
"""
if X.ndim == 1: X = X.reshape(-1,1)
if not self.fitted: self.fit(X)
eps = np.finfo(np.float64).tiny
Xtrans = (X[:,:]-self.Xmean)/(self.Xstd+eps)
return Xtrans
def untransform(self,X):
""" Untransforms data.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to untransform.
Returns
-------
numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing untransformed data.
Raises
------
Exception
scaler has not been fitted
"""
if X.ndim == 1: X = X.reshape(-1,1)
if not self.fitted:
raise Exception('scaler has not been fitted')
eps = np.finfo(np.float64).tiny
Xuntrans = X[:,:]*(self.Xstd+eps) + self.Xmean
return Xuntrans
class scaler_custom(object):
""" Scale the data by the provided offset and divisor.
Parameters
----------
offset : float, numpy.ndarray
Offset to subtract from data. Either a float, or array with shape (number_of_samples, number_of_dimensions).
div : float, numpy.ndarray
Divisor to divide data with. Either a float, or array with shape (number_of_samples, number_of_dimensions).
"""
def __init__(self, offset, div):
self.offset = offset
self.div = div
self.fitted = True
def transform(self,X):
""" Transforms data.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to transform.
Returns
-------
numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing transformed data.
"""
if X.ndim == 1: X = X.reshape(-1,1)
eps = np.finfo(np.float64).tiny
Xtrans = (X - self.offset)/(self.div + eps)
return Xtrans
def untransform(self,X):
""" Untransforms data.
Parameters
----------
X : numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing data to untransform.
Returns
-------
numpy.ndarray
Array with shape (number_of_samples, number_of_dimensions) containing untransformed data.
"""
if X.ndim == 1: X = X.reshape(-1,1)
eps = np.finfo(np.float64).tiny
Xuntrans = X * (self.div + eps) + self.offset
return Xuntrans
| lgpl-2.1 | 3,159,541,299,082,102,300 | 31.425339 | 128 | 0.571588 | false | 3.773565 | true | false | false |
cloudconductor/cloud_conductor_gui | gui_app/views/applicationDeployViews.py | 1 | 8093 | # -*- coding: utf-8 -*-
from django.shortcuts import render, redirect, render_to_response
import ast
from ..forms import selecttForm
from ..forms import applicationForm
from ..utils import ApplicationUtil
from ..utils import ApplicationHistoryUtil
from ..utils import EnvironmentUtil
from ..utils import StringUtil
from ..utils.PathUtil import Path
from ..utils.PathUtil import Html
from ..enum.FunctionCode import FuncCode
from ..enum.ApplicationType import ApplicaionType
from ..enum.ProtocolType import ProtocolType
from ..utils import SessionUtil
from ..utils import SystemUtil
from ..logs import log
def applicationSelect(request):
try:
session = request.session
code = FuncCode.appDep_application.value
token = session.get('auth_token')
project_id = session.get('project_id')
application = ''
list = ''
list = ApplicationUtil.get_application_version(
code, token, project_id)
if request.method == "GET":
application = request.session.get('w_app_select')
return render(request, Html.appdeploy_applicationSelect,
{'list': list, 'application': application,
'message': ''})
elif request.method == "POST":
param = request.POST
# -- Session add
application = selectPut(param)
form = selecttForm(application)
if not form.is_valid():
return render(request, Html.appdeploy_applicationSelect,
{'list': list, 'application': application,
'form': form, 'message': ''})
request.session['w_app_select'] = application
return redirect(Path.appdeploy_environmentSelect)
except Exception as ex:
log.error(FuncCode.appDep_application.value, None, ex)
return render(request, Html.appdeploy_applicationSelect,
{'list': list, 'application': application,
'message': str(ex)})
def applicationCreate(request):
code = FuncCode.applicationCreate.value
apptype = list(ApplicaionType)
protocol = list(ProtocolType)
systems = None
try:
if not SessionUtil.check_login(request):
return redirect(Path.logout)
if not SessionUtil.check_permission(request, 'application', 'create'):
return render_to_response(Html.error_403)
token = request.session['auth_token']
project_id = request.session['project_id']
systems = SystemUtil.get_system_list2(code, token, project_id)
if request.method == "GET":
return render(request, Html.appdeploy_applicationCreate,
{'app': '', 'history': '', 'apptype': apptype,
'protocol': protocol, 'message': '',
'systems': systems, 'save': True})
else:
# -- Get a value from a form
p = request.POST
cpPost = p.copy()
# -- Validate check
form = applicationForm(p)
form.full_clean()
if not form.is_valid():
return render(request, Html.appdeploy_applicationCreate,
{'app': cpPost, 'history': cpPost,
'apptype': apptype,
'protocol': protocol, 'form': form,
'message': '', 'systems': systems,
'save': True})
# -- 1.Create a application, api call
app = ApplicationUtil.create_application(code, token, form.data)
# -- 2.Create a applicationhistory, api call
ApplicationHistoryUtil.create_history(
code, token, app.get('id'), form.data)
request.session['w_app_select'] = {"id": app.get("id"),
"name": app.get("name")}
return redirect(Path.appdeploy_environmentSelect)
except Exception as ex:
log.error(FuncCode.applicationCreate.value, None, ex)
return render(request, Html.appdeploy_applicationCreate,
{'app': request.POST, 'history': request.POST,
'apptype': apptype,
'protocol': protocol, 'form': '',
'systems': systems, 'message': str(ex), 'save': True})
def environmentSelect(request):
list = ''
try:
code = FuncCode.appDep_environment.value
session = request.session
environment = session.get('w_env_select')
token = session['auth_token']
project_id = session['project_id']
app = ApplicationUtil.get_application_detail(
code, token, session.get('w_app_select').get('id'))
list = EnvironmentUtil.get_environment_list_system_id(
code, token, project_id, app.get("system_id"))
if request.method == "GET":
return render(request, Html.appdeploy_environmentSelect,
{"list": list, 'environment': environment,
'message': ''})
elif request.method == "POST":
param = request.POST
environment = selectPut(param)
form = selecttForm(environment)
if not form.is_valid():
return render(request, Html.appdeploy_environmentSelect,
{"list": list, 'environment': environment,
'form': form,
'message': ''})
request.session['w_env_select'] = environment
return redirect(Path.appdeploy_confirm)
except Exception as ex:
log.error(FuncCode.appDep_environment.value, None, ex)
return render(request, Html.appdeploy_environmentSelect,
{"list": '', 'environment': '', 'message': str(ex)})
def confirm(request):
try:
code = FuncCode.appDep_confirm.value
session = request.session
app_session = session.get('w_app_select')
env_session = session.get('w_env_select')
if request.method == "GET":
return render(request, Html.appdeploy_confirm,
{'application': app_session,
'environment': env_session, 'message': ''})
elif request.method == "POST":
session = request.session
code = FuncCode.newapp_confirm.value
token = session.get('auth_token')
env_id = env_session.get('id')
app_id = app_session.get('id')
# -- application deploy
ApplicationUtil.deploy_application(code, token, env_id, app_id)
# -- session delete
sessionDelete(session)
return redirect(Path.top)
except Exception as ex:
log.error(FuncCode.newapp_confirm.value, None, ex)
session = request.session
return render(request, Html.appdeploy_confirm,
{"application": session.get('application'),
'environment': session.get('environment'),
'message': str(ex)})
def selectPut(req):
if StringUtil.isEmpty(req):
return None
select_param = req.get('id', None)
if StringUtil.isNotEmpty(select_param):
select_param = ast.literal_eval(select_param)
param = {
'id': str(select_param.get('id')),
'name': select_param.get('name'),
}
return param
else:
return select_param
def putBlueprint(param):
blueprint = param.get('blueprint', None)
if not (blueprint is None) and not (blueprint == ''):
blueprint = ast.literal_eval(blueprint)
param['blueprint_id'] = blueprint.get('id')
param['version'] = blueprint.get('version')
return param
def sessionDelete(session):
if 'w_env_select' in session:
del session['w_env_select']
if 'w_app_select' in session:
del session['w_app_select']
| apache-2.0 | 7,722,206,676,188,103,000 | 34.034632 | 78 | 0.561596 | false | 4.503617 | false | false | false |
dan-cristian/haiot | gpio/io_common/__init__.py | 1 | 3453 | from common import Constant
from storage.model import m
from main.logger_helper import L
import abc
from common import utils
# update in db (without propagatting the change by default)
def update_custom_relay(pin_code, pin_value, notify=False, ignore_missing=False):
relay = m.ZoneCustomRelay.find_one({m.ZoneCustomRelay.gpio_pin_code: pin_code,
m.ZoneCustomRelay.gpio_host_name: Constant.HOST_NAME})
if relay is not None:
relay.relay_is_on = pin_value
relay.save_changed_fields(broadcast=notify)
L.l.info('Updated relay {} val={}'.format(pin_code, pin_value))
else:
if not ignore_missing:
L.l.warning('Unable to find relay pin {}'.format(pin_code))
# update in db (without propagatting the change by default)
def update_listener_custom_relay(relay, is_on):
relay.relay_is_on = is_on
relay.save_changed_fields(broadcast=True)
L.l.info('Updated listener relay {} val={}'.format(relay, is_on))
class Port:
_port_list = []
type = None
TYPE_GPIO = 'gpio'
TYPE_PIFACE = 'piface'
TYPE_PCF8574 = 'pcf8574'
_types = frozenset([TYPE_GPIO, TYPE_PIFACE, TYPE_PCF8574])
def __init__(self):
pass
class OutputPort(Port):
def __init__(self):
pass
class InputPort(Port):
def __init__(self):
pass
class IOPort(InputPort, OutputPort):
def __init__(self):
pass
class GpioBase:
__metaclass__ = abc.ABCMeta
@staticmethod
@abc.abstractmethod
def get_current_record(record):
return None, None
@staticmethod
@abc.abstractmethod
def get_db_record(key):
return None
def record_update(self, record, changed_fields):
# record = utils.json_to_record(self.obj, json_object)
current_record, key = self.get_current_record(record)
if current_record is not None:
new_record = self.obj()
kwargs = {}
for field in changed_fields:
val = getattr(record, field)
# setattr(new_record, field, val)
kwargs[field] = val
if record.host_name == Constant.HOST_NAME and record.source_host != Constant.HOST_NAME:
# https://stackoverflow.com/questions/1496346/passing-a-list-of-kwargs
self.set(key, **kwargs)
# do nothing, action done already as it was local
# save will be done on model.save
# record.save_changed_fields()
@staticmethod
@abc.abstractmethod
def set(key, values):
pass
@staticmethod
@abc.abstractmethod
def save(key, values):
pass
@staticmethod
@abc.abstractmethod
def get(key):
return None
@staticmethod
@abc.abstractmethod
def sync_to_db(key):
pass
@staticmethod
@abc.abstractmethod
def unload():
pass
def __init__(self, obj):
self.obj = obj
def format_piface_pin_code(board_index, pin_direction, pin_index):
return str(board_index) + ":" + str(pin_direction) + ":" + str(pin_index)
# port format is x:direction:y, e.g. 0:in:3, x=board, direction=in/out, y=pin index (0 based)
def decode_piface_pin(pin_code):
ar = pin_code.split(':')
if len(ar) == 3:
return int(ar[0]), ar[1], int(ar[2])
else:
L.l.error('Invalid piface pin code {}'.format(pin_code))
return None, None, None | gpl-2.0 | 1,524,281,052,770,179,800 | 25.775194 | 99 | 0.609036 | false | 3.638567 | false | false | false |
pimoroni/unicorn-hat-hd | examples/show-png.py | 1 | 1382 | #!/usr/bin/env python
import time
from sys import exit
try:
from PIL import Image
except ImportError:
exit('This script requires the pillow module\nInstall with: sudo pip install pillow')
import unicornhathd
print("""Unicorn HAT HD: Show a PNG image!
This basic example shows use of the Python Pillow library.
The tiny 16x16 bosses in lofi.png are from Oddball:
http://forums.tigsource.com/index.php?topic=8834.0
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0
Unported License.
Press Ctrl+C to exit!
""")
unicornhathd.rotation(0)
unicornhathd.brightness(0.6)
width, height = unicornhathd.get_shape()
img = Image.open('lofi.png')
try:
while True:
for o_x in range(int(img.size[0] / width)):
for o_y in range(int(img.size[1] / height)):
valid = False
for x in range(width):
for y in range(height):
pixel = img.getpixel(((o_x * width) + y, (o_y * height) + x))
r, g, b = int(pixel[0]), int(pixel[1]), int(pixel[2])
if r or g or b:
valid = True
unicornhathd.set_pixel(x, y, r, g, b)
if valid:
unicornhathd.show()
time.sleep(0.5)
except KeyboardInterrupt:
unicornhathd.off()
| mit | -8,984,369,968,961,083,000 | 24.592593 | 89 | 0.583213 | false | 3.30622 | false | false | false |
stuartlangridge/raspi-recorder | listener_daemon.py | 1 | 2508 | import threading, time, subprocess
from bluetooth import *
server_sock=BluetoothSocket( RFCOMM )
server_sock.bind(("",PORT_ANY))
server_sock.listen(1)
port = server_sock.getsockname()[1]
uuid = "c3091f5f-7e2f-4908-b628-18231dfb5034"
advertise_service( server_sock, "PiRecorder",
service_id = uuid,
service_classes = [ uuid, SERIAL_PORT_CLASS ],
profiles = [ SERIAL_PORT_PROFILE ],
)
print "Waiting for connection on RFCOMM channel %d" % port
client_sock, client_info = server_sock.accept()
print "Accepted connection from ", client_info
lock = threading.Lock()
def mainthread(sock):
try:
with lock:
sock.send("\r\nWelcome to recorder. [1] start recording, [2] stop.\r\n\r\n")
while True:
data = sock.recv(1)
if len(data) == 0: break
if data == "1":
with lock:
sock.send("Starting sound recorder\r\n")
os.system("supervisorctl -c ./supervisor.conf start sound_recorder")
elif data == "2":
with lock:
sock.send("Stopping sound recorder\r\n")
os.system("supervisorctl -c ./supervisor.conf stop sound_recorder")
else:
print "received [%s]" % data
with lock:
output = "unrecognised [%s]\r\n" % (data,)
sock.send(output)
except IOError:
print "got io error"
def heartbeat(sock):
while True:
time.sleep(5)
o = subprocess.check_output(["supervisorctl", "-c",
os.path.join(os.path.split(__file__)[0], "supervisor.conf"),
"status"])
procs = {}
for parts in [x.split() for x in o.split("\n")]:
if len(parts) > 1:
procs[parts[0]] = parts[1]
sr = procs.get("sound_recorder", "ABSENT")
svfs = os.statvfs(".")
bytes_remaining = svfs.f_frsize * svfs.f_bavail
bytes_total = svfs.f_frsize * svfs.f_blocks
with lock:
sock.send("heartbeat %s %s %s\r\n" % (
sr, bytes_remaining, bytes_total))
mainthread = threading.Thread(target=mainthread, args=(client_sock,))
mainthread.start()
heartbeatthread = threading.Thread(target=heartbeat, args=(client_sock,))
heartbeatthread.setDaemon(True)
heartbeatthread.start()
mainthread.join()
print "disconnected"
client_sock.close()
server_sock.close()
print "all done"
| mit | 294,923,898,243,346,560 | 33.356164 | 88 | 0.570175 | false | 3.582857 | false | false | false |
Azure/azure-sdk-for-python | sdk/communication/azure-communication-sms/azure/communication/sms/_models/_models.py | 1 | 2064 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import msrest.serialization
class SmsSendResult(msrest.serialization.Model):
"""Response for a single recipient.
All required parameters must be populated in order to send to Azure.
:param to: Required. The recipient's phone number in E.164 format.
:type to: str
:param message_id: The identifier of the outgoing Sms message. Only present if message
processed.
:type message_id: str
:param http_status_code: Required. HTTP Status code.
:type http_status_code: int
:param successful: Required. Indicates if the message is processed successfully or not.
:type successful: bool
:param error_message: Optional error message in case of 4xx/5xx/repeatable errors.
:type error_message: str
"""
_validation = {
'to': {'required': True},
'http_status_code': {'required': True},
'successful': {'required': True},
}
_attribute_map = {
'to': {'key': 'to', 'type': 'str'},
'message_id': {'key': 'messageId', 'type': 'str'},
'http_status_code': {'key': 'httpStatusCode', 'type': 'int'},
'successful': {'key': 'successful', 'type': 'bool'},
'error_message': {'key': 'errorMessage', 'type': 'str'},
}
def __init__(
self,
**kwargs
):
super(SmsSendResult, self).__init__(**kwargs)
self.to = kwargs['to']
self.message_id = kwargs.get('message_id', None)
self.http_status_code = kwargs['http_status_code']
self.successful = kwargs['successful']
self.error_message = kwargs.get('error_message', None)
| mit | 8,139,079,774,969,169,000 | 37.943396 | 94 | 0.593508 | false | 4.212245 | false | false | false |
twoolie/ProjectNarwhal | narwhal/core/profile/admin.py | 1 | 1124 | # -*- coding: utf-8 -*-
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from sorl.thumbnail.admin import AdminImageMixin
from treebeard.admin import TreeAdmin
from models import Profile
class ProfileAdmin(AdminImageMixin, admin.ModelAdmin):
search_fields = ('user__username', 'extra_data')
list_display = (#'user__username', 'user__date_joined',
'user', 'uploaded', 'downloaded',)
list_filter = ('user__is_staff',)
fields = ('user', 'avatar', 'key', 'downloaded', 'uploaded' )
#fieldsets = (
# (None, {
# 'fields': ( ('title', 'slug'),
# ('user', 'comments_enabled'),
# 'description', )
# }),
# (_('Files'), {
# 'fields': ( ('torrent', 'image'), ),
# }),
#(_('Quick Stats'), {
# 'classes': ('collapse',),
# 'fields': ( ('size', 'files'),
# ('seeders', 'leechers'),
# ('pub_date', 'comment_count'), )
#}),
#)
admin.site.register(Profile, ProfileAdmin)
| gpl-3.0 | 3,874,579,077,347,851,300 | 31.114286 | 65 | 0.508007 | false | 3.849315 | false | false | false |
cappatar/knesset-data-pipelines | datapackage_pipelines_knesset/members/processors/load_members.py | 1 | 1419 | from datapackage_pipelines_knesset.common.base_processors.add_resource import AddResourceBaseProcessor
# only loads members with the following positionId:
SUPPORTED_POSITION_IDS = [43, 61]
class Processor(AddResourceBaseProcessor):
def _get_schema(self, resource_descriptor):
return resource_descriptor.get("schema", {
"fields": [
{"name": "url", "type": "string", "description": "url to download protocol from"},
{
"name": "kns_person_id", "type": "integer",
"description": "primary key from kns_person table"}
],
"primaryKey": ["kns_person_id"]
})
def _get_new_resource(self):
person_table = self.db_meta.tables.get("kns_person")
persontoposition_table = self.db_meta.tables.get("kns_persontoposition")
if person_table is None or persontoposition_table is None:
raise Exception("processor requires kns person tables to exist")
for db_row in self.db_session\
.query(person_table, persontoposition_table)\
.filter(persontoposition_table.p.PersonID==person_table.p.PersonID)\
.filter(persontoposition_table.p.PositionID.in_(SUPPORTED_POSITION_IDS))\
.all():
row = db_row._asdict()
yield {"kns_person_id": row["PersonID"]}
if __name__ == "__main__":
Processor.main()
| mit | -2,604,610,188,792,806,400 | 40.735294 | 102 | 0.613813 | false | 3.898352 | false | false | false |
valentinmetraux/hierophis | hierophis/maths/statistics/basic.py | 1 | 2080 | #!/usr/bin/env python
# -*- coding: utf 8 -*-
"""
Utility functions.
:copyright: 2015 Agile Geoscience
:license: Apache 2.0
"""
import numpy as np
import scipy.signal
def rms(a):
"""
Calculates the RMS of an array.
:param a: An array.
:returns: The RMS of the array.
"""
return np.sqrt(np.sum(a**2.0)/a.size)
def normalize(a, new_min=0.0, new_max=1.0):
"""
Normalize an array to [0,1] or to
arbitrary new min and max.
:param a: An array.
:param new_min: A float to be the new min, default 0.
:param new_max: A float to be the new max, default 1.
:returns: The normalized array.
"""
n = (a - np.amin(a)) / float(np.amax(a - np.amin(a)))
return n * (new_max - new_min) + new_min
def moving_average(a, method = "convolve", length=9, mode='valid'):
"""
Computes the mean in a moving window.
Methods: naive, fft, convolve
Length: Kernel length
Modes: full, valid, same
"""
if method == "fft":
boxcar = np.ones(length)/length
return scipy.signal.fftconvolve(a, boxcar, mode="valid")
elif method == "convolve":
boxcar = np.ones(length)/length
return np.convolve(a, boxcar, mode="valid")
else:
pad = np.floor(length/2)
if mode == 'full':
pad *= 2
# Make a padded version, paddding with first and last values
r = np.empty(a.shape[0] + 2*pad)
r[:pad] = a[0]
r[pad:-pad] = a
r[-pad:] = a[-1]
# Cumsum with shifting trick
s = np.cumsum(r, dtype=float)
s[length:] = s[length:] - s[:-length]
out = s[length-1:]/length
# Decide what to return
if mode == 'same':
if out.shape[0] != a.shape[0]:
# If size doesn't match, then interpolate.
out = (out[:-1, ...] + out[1:, ...]) / 2
return out
elif mode == 'valid':
return out[pad:-pad]
else: # mode=='full' and we used a double pad
return out
| apache-2.0 | -7,067,858,668,146,052,000 | 23.77381 | 68 | 0.533173 | false | 3.338684 | false | false | false |
all-of-us/raw-data-repository | tests/api_tests/test_ppi_data_check_api.py | 1 | 2788 | from rdr_service.model.code import CodeType
from tests.helpers.unittest_base import BaseTestCase
class CheckPpiDataApiTest(BaseTestCase):
def setUp(self):
super(CheckPpiDataApiTest, self).setUp(with_consent_codes=True)
self.participant_summary = self.data_generator.create_database_participant_summary(email='[email protected]')
questions_and_answers = [
('first_question_code', 'first_answer_code'),
('Second_CODE', 'ANOTHER_ANSWER'),
('LAST_CODE', 'Final_Answer|with_additional_option')
]
questionnaire = self.data_generator.create_database_questionnaire_history()
for question_code_value, _ in questions_and_answers:
question_code = self.data_generator.create_database_code(
value=question_code_value,
codeType=CodeType.QUESTION
)
self.data_generator.create_database_questionnaire_question(
questionnaireId=questionnaire.questionnaireId,
questionnaireVersion=questionnaire.version,
codeId=question_code.codeId
)
questionnaire_response = self.data_generator.create_database_questionnaire_response(
participantId=self.participant_summary.participantId,
questionnaireId=questionnaire.questionnaireId,
questionnaireVersion=questionnaire.version
)
for question_index, (_, answer_code_values) in enumerate(questions_and_answers):
question = questionnaire.questions[question_index]
for answer_value in answer_code_values.split('|'):
answer_code = self.data_generator.create_database_code(value=answer_value)
self.data_generator.create_database_questionnaire_response_answer(
questionnaireResponseId=questionnaire_response.questionnaireResponseId,
questionId=question.questionnaireQuestionId,
valueCodeId=answer_code.codeId
)
def test_case_insensitive_answer_code_matching(self):
"""Make sure case doesn't matter when matching answer codes against what the server has"""
ppi_check_payload = {
'ppi_data': {
self.participant_summary.email: {
'fIrSt_QuEsTiOn_CoDe': 'First_Answer_Code',
'SECOND_CODE': 'another_answer',
'last_code': 'Final_ANSWER|WITH_ADDITIONAL_OPTION'
}
}
}
response = self.send_post('CheckPpiData', ppi_check_payload)
response_error_count = response['ppi_results']['[email protected]']['errors_count']
self.assertEqual(0, response_error_count, 'Differences in case should not cause errors')
| bsd-3-clause | -8,436,569,744,233,131,000 | 45.466667 | 116 | 0.638451 | false | 4.173653 | true | false | false |
wooga/airflow | airflow/example_dags/example_nested_branch_dag.py | 1 | 2019 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
"""
Example DAG demonstrating a workflow with nested branching. The join tasks are created with
``none_failed_or_skipped`` trigger rule such that they are skipped whenever their corresponding
``BranchPythonOperator`` are skipped.
"""
from airflow.models import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.python import BranchPythonOperator
from airflow.utils.dates import days_ago
with DAG(dag_id="example_nested_branch_dag", start_date=days_ago(2), schedule_interval="@daily") as dag:
branch_1 = BranchPythonOperator(task_id="branch_1", python_callable=lambda: "true_1")
join_1 = DummyOperator(task_id="join_1", trigger_rule="none_failed_or_skipped")
true_1 = DummyOperator(task_id="true_1")
false_1 = DummyOperator(task_id="false_1")
branch_2 = BranchPythonOperator(task_id="branch_2", python_callable=lambda: "true_2")
join_2 = DummyOperator(task_id="join_2", trigger_rule="none_failed_or_skipped")
true_2 = DummyOperator(task_id="true_2")
false_2 = DummyOperator(task_id="false_2")
false_3 = DummyOperator(task_id="false_3")
branch_1 >> true_1 >> join_1
branch_1 >> false_1 >> branch_2 >> [true_2, false_2] >> join_2 >> false_3 >> join_1
| apache-2.0 | -1,070,214,598,085,398,900 | 47.071429 | 104 | 0.740961 | false | 3.631295 | false | false | false |
mojolab/LivingData | lib/livdatops.py | 1 | 1153 | import pandas
def getColRenameDict(mergersheet,sheet):
colrenamedict={}
originalcolnames=mergersheet[sheet].fillna("NA")
newcolnames=mergersheet[mergersheet.columns[0]]
for i in range(0,len(originalcolnames)):
colrenamedict[originalcolnames[i]]=newcolnames[i]
# if originalcolnames[i]!="NA":
# colrenamedict[originalcolnames[i]]=newcolnames[i]
return colrenamedict
def createMergedDFList(dflist,mergersheetname):
altereddfs={}
for sheet,matrix in dflist.iteritems():
if sheet == mergersheetname:
altereddfs[sheet]=matrix
mergersheet=matrix
else:
df=matrix
print df.columns
columnrenamedict=getColRenameDict(mergersheet,sheet)
print columnrenamedict
altereddf=df.rename(columns=columnrenamedict)
for key,value in columnrenamedict.iteritems():
if key =="NA":
altereddf[value]=0
print df,altereddf
altereddfs[sheet]=altereddf
finalsheet=[]
for sheet,matrix in altereddfs.iteritems():
if sheet!=mergersheetname:
finalsheet.append(matrix.fillna(0))
finalsheetm=pandas.concat(finalsheet)
finalsheetname=mergersheet.columns.values[0]
altereddfs[finalsheetname]=finalsheetm
return altereddfs
| apache-2.0 | -1,906,478,291,639,418,000 | 30.162162 | 55 | 0.774501 | false | 2.987047 | false | false | false |
CSC-IT-Center-for-Science/pouta-blueprints | pebbles/views/authorize_instances.py | 1 | 3153 | from flask import abort, request, Response, Blueprint
import datetime
import logging
import re
from pebbles.models import InstanceToken
from pebbles.server import restful
authorize_instances = Blueprint('authorize_instances', __name__)
class AuthorizeInstancesView(restful.Resource):
def get(self):
token = ''
instance_id = ''
# The idea here is to check if the original-token and instance-id headers are already present, sent by the nginx proxy of the openshift app,
# if the headers are present that means the authentication had taken place previously and a cookie exists for the openshift app,
# in this case - obtain the info contained in the headers
if 'ORIGINAL-TOKEN' in request.headers and 'INSTANCE-ID' in request.headers:
token = request.headers['ORIGINAL-TOKEN']
instance_id = request.headers['INSTANCE-ID']
# otherwise, the x-original-uri consists of the query string info (which is sent by the openshift driver to the nginx of the openshift app)
# The query string has the token info and instance id
# NOTE: This is only used when the authentication is being done for the first time!
elif 'X-ORIGINAL-URI' in request.headers:
h_uri = request.headers['X-ORIGINAL-URI']
regex_query_capture = re.search('.*\\?(.*)=(.*)&(.*)=(.*)', h_uri) # parse the query string
if regex_query_capture and len(regex_query_capture.groups()) == 4:
if regex_query_capture.group(1) == 'token' and regex_query_capture.group(3) == 'instance_id':
token = regex_query_capture.group(2)
instance_id = regex_query_capture.group(4)
elif regex_query_capture.group(1) == 'instance_id' and regex_query_capture.group(3) == 'token':
instance_id = regex_query_capture.group(2)
token = regex_query_capture.group(4)
if not token and not instance_id:
logging.warn('No instance token or id found from the headers')
return abort(401)
instance_token_obj = InstanceToken.query.filter_by(token=token).first()
if not instance_token_obj:
logging.warn("instance token object %s not found" % token)
return abort(401)
curr_time = datetime.datetime.utcnow()
expires_on = instance_token_obj.expires_on
if curr_time > expires_on:
logging.warn("instance token %s has expired" % token)
return abort(403)
if instance_token_obj.instance_id != instance_id:
logging.warn("instance id %s from the token does not match the instance_id %s passed as a parameter" % (instance_token_obj.instance_id, instance_id))
return abort(403)
resp = Response("Authorized")
# send the headers back to nginx proxy running on the openshift based instance,
# which is going to store it as a cookie for the next time, the authorization takes place
resp.headers["TOKEN"] = instance_token_obj.token
resp.headers["INSTANCE-ID"] = instance_id
return resp
| mit | 2,302,791,649,978,159,000 | 49.047619 | 161 | 0.64732 | false | 4.121569 | false | false | false |
weiqiangdragonite/blog_tmp | python/baidu/myip.py | 1 | 1085 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# http://ip.taobao.com/instructions.php
import socket
#
common_headers = \
"Host: ip.taobao.com\r\n" + \
"Connection: Keep-Alive\r\n" + \
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" + \
"User-Agent: Mozilla/5.0 (X11; Linux) AppleWebKit/538.1 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/538.1 Midori/0.5\r\n" + \
"Accept-Language: en-us;q=0.750\r\n"
# 通过 GET
get_headers = \
"GET /service/getIpInfo.php?ip=myip HTTP/1.1\r\n" + \
common_headers + \
"\r\n"
# 通过 POST
post_headers = \
"POST /service/getIpInfo2.php HTTP/1.1\r\n" + \
common_headers + \
"Content-Length: 7\r\n" + \
"\r\n" + \
"ip=myip";
if __name__ == "__main__":
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("ip.taobao.com", 80))
s.send(get_headers)
buffer = []
while True:
d = s.recv(1024)
if d:
buffer.append(d)
else:
break
data = ''.join(buffer)
s.close()
print data | gpl-2.0 | -721,930,583,678,637,200 | 21.93617 | 133 | 0.563603 | false | 2.51049 | false | false | false |
dhanababum/accessdb | accessdb/utils.py | 1 | 8395 | # -*- coding: utf-8 -*-
# Copyright 2017 Dhana Babu
#
# 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.
import os
import random
import string
import tempfile
import shutil
import pypyodbc as odbc
from .access_api import create
_MS_ACCESS_TYPES = {
'BIT',
'BYTE',
'SHORT',
'LONG',
'CURRENCY',
'SINGLE',
'DOUBLE',
'DATETIME',
'TEXT',
'MEMO',
'PRIMARY', # CUSTOM Type for handling AUTOINCREMENT
}
SCHEMA_FILE = 'schema.ini'
_TEXT_SEPARATORS = {
r',': 'CSVDelimited',
r'\t': 'TabDelimited'
}
def _text_formater(sep):
separator = _TEXT_SEPARATORS.get(sep, 'Delimited({})')
return separator.format(sep)
def _stringify_path(db_path):
dtr, path = os.path.split(db_path)
if dtr == '':
db_path = os.path.join('.', path)
return db_path
def _push_access_db(temp_dir, text_file, data_columns,
header_columns, dtype, path, table_name, sep,
append, overwrite, delete='file'):
table = Table(temp_dir, text_file,
table_name,
data_columns,
header_columns,
dtype, sep, append)
schema_file = os.path.join(temp_dir, SCHEMA_FILE)
try:
with SchemaWriter(temp_dir, text_file, data_columns,
header_columns, dtype, sep, schema_file) as schema:
schema.write()
with AccessDBConnection(path, overwrite) as con:
cursor = con.cursor()
if not append:
cursor.execute(table.create_query())
cursor.execute(table.insert_query())
con.commit()
finally:
if delete == 'folder':
shutil.rmtree(temp_dir)
else:
os.unlink(schema_file)
def _get_random_file():
return ''.join(random.choice(string.ascii_lowercase) for _ in range(10))
class DataTypeNotFound(Exception):
pass
class SchemaWriter(object):
def __init__(self, temp_dir, text_file, df_columns,
columns, dtype, sep, schema_file):
self.temp_dir = temp_dir
self.text_file = text_file
self.df_columns = df_columns
self.columns = columns
self.dtype = dtype
self.sep = sep
self.path = schema_file
def __enter__(self):
self.fp = open(self.path, 'w')
return self
def __exit__(self, *args):
self.fp.close()
def formater(self):
yield '[%s]' % self.text_file
yield 'ColNameHeader=True'
yield 'Format=%s' % _text_formater(self.sep)
self.dcols = {col: ('Col%s' % (i + 1))
for i, col in enumerate(self.df_columns)}
if not isinstance(self.dtype, dict):
self.dtype = {}
for col in self.df_columns:
ctype = self.dtype.get(col, 'text').upper()
if ctype not in _MS_ACCESS_TYPES:
raise DataTypeNotFound(
'Provided Data Type Not Found %s' % ctype)
if ctype == 'PRIMARY':
ctype = 'TEXT'
yield '{c_col}="{d_col}" {c_type}'.format(
c_col=self.dcols[col],
d_col=col,
c_type=ctype.capitalize())
def write(self):
for line in self.formater():
self.fp.write(line)
self.fp.write('\n')
class Table(object):
def __init__(self, temp_dir, text_file,
table_name, df_columns, columns,
dtype, sep, append):
self.temp_dir = temp_dir
self.text_file = text_file
self.df_columns = df_columns
self.table_name = table_name
self.df_columns = df_columns
self.columns = columns
self.dtype = dtype
self.sep = sep
self.append = append
if not isinstance(self.dtype, dict):
self.dtype = {}
def _get_colunm_type(self, col):
ctype = self.dtype.get(col, 'TEXT').upper()
if ctype not in _MS_ACCESS_TYPES:
raise Exception
return ctype
def formater(self):
for col in self.df_columns:
c_type = self._get_colunm_type(col)
if c_type == 'PRIMARY':
c_type = 'AUTOINCREMENT PRIMARY KEY'
if self.columns:
if col not in self.columns:
continue
col = self.columns[col]
yield '`{c_col}` {c_type}'.format(c_col=col,
c_type=c_type)
def insert_formater(self):
for col in self.df_columns:
if self._get_colunm_type(col) == 'PRIMARY':
continue
if not self.columns:
self.columns = dict(zip(self.df_columns, self.df_columns))
if self.columns:
if col not in self.columns:
continue
cus_col = self.columns[col]
yield col, cus_col
def built_columns(self):
return '(%s)' % ','.join(self.formater())
def create_query(self):
return "CREATE TABLE `{table_name}`{columns}".format(
table_name=self.table_name,
columns=self.built_columns())
@staticmethod
def required_columns(cols):
return ','.join('`%s`' % c for c in cols)
def insert_query(self):
custom_columns = []
columns = []
for col1, col2 in self.insert_formater():
columns.append(col1)
custom_columns.append(col2)
return """
INSERT INTO `{table_name}`({columns})
SELECT {required_cols} FROM [TEXT;HDR=YES;FMT={separator};
Database={temp_dir}].{text_file}
""".format(temp_dir=self.temp_dir,
text_file=self.text_file,
columns=self.required_columns(custom_columns),
required_cols=self.required_columns(columns),
table_name=self.table_name,
separator=_text_formater(self.sep))
class AccessDBConnection(object):
def __init__(self, db_path, overwrite):
self.overwrite = overwrite
self.db_path = _stringify_path(db_path)
def __enter__(self):
if not os.path.isfile(self.db_path) or self.overwrite:
create(self.db_path)
odbc_conn_str = '''DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};
DBQ=%s''' % (self.db_path)
self.con = odbc.connect(odbc_conn_str)
return self.con
def __exit__(self, *args):
self.con.close()
def to_accessdb(self, path, table_name,
header_columns=None, dtype='str', engine='text',
sep=',', append=False, overwrite=False):
if self.empty:
return
temp_dir = tempfile.mkdtemp()
text_file = '%s.txt' % _get_random_file()
text_path = os.path.join(temp_dir, text_file)
self.to_csv(text_path, index=False)
_push_access_db(temp_dir, text_file,
self.columns.tolist(),
header_columns, dtype, path, table_name,
sep, append, overwrite, 'folder')
def create_accessdb(path, text_path, table_name,
header_columns=None, dtype='str',
engine='text', sep=',', append=False, overwrite=False):
temp_dir, text_file = os.path.split(os.path.abspath(text_path))
with open(text_path) as fp:
file_columns = fp.readline().strip('\n').split(sep)
_push_access_db(temp_dir, text_file,
file_columns,
header_columns, dtype, path, table_name,
sep, append, overwrite)
| apache-2.0 | 6,640,736,085,775,844,000 | 31.921569 | 79 | 0.534485 | false | 3.901022 | false | false | false |
jimsize/PySolFC | pysollib/games/harp.py | 1 | 13061 | #!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
# ---------------------------------------------------------------------------##
#
# Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
# Copyright (C) 2003 Mt. Hood Playing Card Co.
# Copyright (C) 2005-2009 Skomoroh
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ---------------------------------------------------------------------------##
# imports
# PySol imports
from pysollib.gamedb import registerGame, GameInfo, GI
from pysollib.mfxutil import kwdefault
from pysollib.game import Game
from pysollib.layout import Layout
from pysollib.hint import CautiousDefaultHint
from pysollib.hint import KlondikeType_Hint
from pysollib.games.spider import Spider_RowStack, Spider_SS_Foundation, \
Spider_Hint
from pysollib.util import ACE, KING
from pysollib.stack import \
AC_RowStack, \
BO_RowStack, \
KingAC_RowStack, \
SS_FoundationStack, \
Spider_SS_RowStack, \
StackWrapper, \
WasteStack, \
WasteTalonStack, \
SS_RowStack
# ************************************************************************
# * Double Klondike (Klondike with 2 decks and 9 rows)
# ************************************************************************
class DoubleKlondike(Game):
Layout_Method = staticmethod(Layout.harpLayout)
Foundation_Class = SS_FoundationStack
RowStack_Class = KingAC_RowStack
Hint_Class = KlondikeType_Hint
def createGame(self, max_rounds=-1, num_deal=1, **layout):
# create layout
l, s = Layout(self), self.s
kwdefault(layout, rows=9, waste=1, texts=1, playcards=19)
self.Layout_Method(l, **layout)
self.setSize(l.size[0], l.size[1])
# create stacks
s.talon = WasteTalonStack(l.s.talon.x, l.s.talon.y, self,
max_rounds=max_rounds, num_deal=num_deal)
s.waste = WasteStack(l.s.waste.x, l.s.waste.y, self)
for r in l.s.foundations:
s.foundations.append(
self.Foundation_Class(r.x, r.y, self, suit=r.suit))
for r in l.s.rows:
s.rows.append(self.RowStack_Class(r.x, r.y, self))
# default
l.defaultAll()
# extra
if max_rounds > 1:
anchor = 'nn'
if layout.get("texts"):
anchor = 'nnn'
l.createRoundText(s.talon, anchor)
return l
def startGame(self, flip=0):
for i in range(len(self.s.rows)):
self.s.talon.dealRow(rows=self.s.rows[i+1:], flip=flip, frames=0)
self._startAndDealRowAndCards()
shallHighlightMatch = Game._shallHighlightMatch_AC
# ************************************************************************
# * Double Klondike by Threes
# ************************************************************************
class DoubleKlondikeByThrees(DoubleKlondike):
def createGame(self):
DoubleKlondike.createGame(self, num_deal=3)
# ************************************************************************
# * Gargantua (Double Klondike with one redeal)
# * Pantagruel
# ************************************************************************
class Gargantua(DoubleKlondike):
def createGame(self):
DoubleKlondike.createGame(self, max_rounds=2)
class Pantagruel(DoubleKlondike):
RowStack_Class = AC_RowStack
def createGame(self):
DoubleKlondike.createGame(self, max_rounds=1)
# ************************************************************************
# * Harp (Double Klondike with 10 non-king rows and no redeal)
# ************************************************************************
class BigHarp(DoubleKlondike):
RowStack_Class = AC_RowStack
def createGame(self):
DoubleKlondike.createGame(self, max_rounds=1, rows=10)
#
# game overrides
#
# no real need to override, but this way the layout
# looks a little bit different
def startGame(self):
for i in range(len(self.s.rows)):
self.s.talon.dealRow(rows=self.s.rows[:i], flip=0, frames=0)
self._startAndDealRowAndCards()
# ************************************************************************
# * Steps (Harp with 7 rows)
# ************************************************************************
class Steps(DoubleKlondike):
RowStack_Class = AC_RowStack
def createGame(self):
DoubleKlondike.createGame(self, max_rounds=2, rows=7)
# ************************************************************************
# * Triple Klondike
# * Triple Klondike by Threes
# * Chinese Klondike
# ************************************************************************
class TripleKlondike(DoubleKlondike):
def createGame(self):
DoubleKlondike.createGame(self, rows=13)
class TripleKlondikeByThrees(DoubleKlondike):
def createGame(self):
DoubleKlondike.createGame(self, rows=13, num_deal=3)
class ChineseKlondike(DoubleKlondike):
RowStack_Class = StackWrapper(BO_RowStack, base_rank=KING)
def createGame(self):
DoubleKlondike.createGame(self, rows=12)
# ************************************************************************
# * Lady Jane
# * Inquisitor
# ************************************************************************
class LadyJane(DoubleKlondike):
Hint_Class = Spider_Hint
RowStack_Class = Spider_SS_RowStack
def createGame(self):
DoubleKlondike.createGame(self, rows=10, max_rounds=2, num_deal=3)
def startGame(self):
DoubleKlondike.startGame(self, flip=1)
shallHighlightMatch = Game._shallHighlightMatch_RK
getQuickPlayScore = Game._getSpiderQuickPlayScore
class Inquisitor(DoubleKlondike):
RowStack_Class = SS_RowStack
def createGame(self):
DoubleKlondike.createGame(self, rows=10, max_rounds=3, num_deal=3)
def startGame(self):
DoubleKlondike.startGame(self, flip=1)
shallHighlightMatch = Game._shallHighlightMatch_SS
# ************************************************************************
# * Arabella
# ************************************************************************
class Arabella(DoubleKlondike):
Hint_Class = Spider_Hint
RowStack_Class = StackWrapper(Spider_SS_RowStack, base_rank=KING)
def createGame(self):
DoubleKlondike.createGame(self, rows=13, max_rounds=1, playcards=24)
def startGame(self):
DoubleKlondike.startGame(self, flip=1)
shallHighlightMatch = Game._shallHighlightMatch_RK
getQuickPlayScore = Game._getSpiderQuickPlayScore
# ************************************************************************
# * Big Deal
# ************************************************************************
class BigDeal(DoubleKlondike):
RowStack_Class = KingAC_RowStack
def createGame(self, rows=12, max_rounds=2, XOFFSET=0):
l, s = Layout(self), self.s
self.setSize(l.XM+(rows+2)*l.XS, l.YM+8*l.YS)
x, y = l.XM, l.YM
for i in range(rows):
s.rows.append(self.RowStack_Class(x, y, self))
x += l.XS
for i in range(2):
y = l.YM
for j in range(8):
s.foundations.append(
SS_FoundationStack(x, y, self, suit=j % 4))
y += l.YS
x += l.XS
x, y = l.XM, self.height-l.YS
s.talon = WasteTalonStack(x, y, self, max_rounds=max_rounds)
l.createText(s.talon, 'n')
x += l.XS
s.waste = WasteStack(x, y, self)
s.waste.CARD_XOFFSET = XOFFSET
l.createText(s.waste, 'n')
if max_rounds > 1:
l.createRoundText(s.talon, 'nnn')
self.setRegion(s.rows, (-999, -999, l.XM+rows*l.XS-l.CW//2, 999999),
priority=1)
l.defaultStackGroups()
# ************************************************************************
# * Delivery
# ************************************************************************
class Delivery(BigDeal):
Hint_Class = CautiousDefaultHint
RowStack_Class = StackWrapper(SS_RowStack, max_move=1)
def createGame(self):
dx = self.app.images.CARDW//10
BigDeal.createGame(self, rows=12, max_rounds=1, XOFFSET=dx)
shallHighlightMatch = Game._shallHighlightMatch_SS
def startGame(self):
self._startDealNumRows(2)
self.s.talon.dealRow()
self.s.talon.dealCards() # deal first card to WasteStack
# ************************************************************************
# * Double Kingsley
# ************************************************************************
class DoubleKingsley(DoubleKlondike):
Foundation_Class = StackWrapper(SS_FoundationStack, base_rank=KING, dir=-1)
RowStack_Class = StackWrapper(KingAC_RowStack, base_rank=ACE, dir=1)
def createGame(self):
DoubleKlondike.createGame(self, max_rounds=1)
# ************************************************************************
# * Thieves of Egypt
# ************************************************************************
class ThievesOfEgypt(DoubleKlondike):
Layout_Method = staticmethod(Layout.klondikeLayout)
def createGame(self):
DoubleKlondike.createGame(self, rows=10, max_rounds=2)
def startGame(self):
# rows: 1 3 5 7 9 10 8 6 4 2
row = 0
for i in (0, 2, 4, 6, 8, 9, 7, 5, 3, 1):
for j in range(i):
self.s.talon.dealRow(rows=[self.s.rows[row]], frames=0)
row += 1
self._startAndDealRowAndCards()
# ************************************************************************
# * Brush
# ************************************************************************
class Brush(DoubleKlondike):
Layout_Method = staticmethod(Layout.klondikeLayout)
Foundation_Class = Spider_SS_Foundation
RowStack_Class = Spider_RowStack
Hint_Class = Spider_Hint
def createGame(self):
DoubleKlondike.createGame(self, rows=10, max_rounds=1)
def startGame(self):
self._startDealNumRows(3)
self.s.talon.dealRow()
self.s.talon.dealCards() # deal first card to WasteStack
shallHighlightMatch = Game._shallHighlightMatch_RK
getQuickPlayScore = Game._getSpiderQuickPlayScore
# register the game
registerGame(GameInfo(21, DoubleKlondike, "Double Klondike",
GI.GT_KLONDIKE, 2, -1, GI.SL_BALANCED))
registerGame(GameInfo(28, DoubleKlondikeByThrees, "Double Klondike by Threes",
GI.GT_KLONDIKE, 2, -1, GI.SL_MOSTLY_LUCK))
registerGame(GameInfo(25, Gargantua, "Gargantua",
GI.GT_KLONDIKE, 2, 1, GI.SL_BALANCED))
registerGame(GameInfo(15, BigHarp, "Big Harp",
GI.GT_KLONDIKE, 2, 0, GI.SL_BALANCED))
registerGame(GameInfo(51, Steps, "Steps",
GI.GT_KLONDIKE, 2, 1, GI.SL_BALANCED))
registerGame(GameInfo(273, TripleKlondike, "Triple Klondike",
GI.GT_KLONDIKE, 3, -1, GI.SL_BALANCED))
registerGame(GameInfo(274, TripleKlondikeByThrees, "Triple Klondike by Threes",
GI.GT_KLONDIKE, 3, -1, GI.SL_MOSTLY_LUCK))
registerGame(GameInfo(495, LadyJane, "Lady Jane",
GI.GT_KLONDIKE, 2, 1, GI.SL_BALANCED))
registerGame(GameInfo(496, Inquisitor, "Inquisitor",
GI.GT_KLONDIKE, 2, 2, GI.SL_BALANCED))
registerGame(GameInfo(497, Arabella, "Arabella",
GI.GT_KLONDIKE, 3, 0, GI.SL_BALANCED))
registerGame(GameInfo(545, BigDeal, "Big Deal",
GI.GT_KLONDIKE | GI.GT_ORIGINAL, 4, 1, GI.SL_BALANCED))
registerGame(GameInfo(562, Delivery, "Delivery",
GI.GT_FORTY_THIEVES | GI.GT_ORIGINAL, 4, 0,
GI.SL_BALANCED))
registerGame(GameInfo(590, ChineseKlondike, "Chinese Klondike",
GI.GT_KLONDIKE, 3, -1, GI.SL_BALANCED,
suits=(0, 1, 2)))
registerGame(GameInfo(591, Pantagruel, "Pantagruel",
GI.GT_KLONDIKE, 2, 0, GI.SL_BALANCED))
registerGame(GameInfo(668, DoubleKingsley, "Double Kingsley",
GI.GT_KLONDIKE, 2, 0, GI.SL_BALANCED))
registerGame(GameInfo(678, ThievesOfEgypt, "Thieves of Egypt",
GI.GT_KLONDIKE, 2, 1, GI.SL_BALANCED))
registerGame(GameInfo(689, Brush, "Brush",
GI.GT_2DECK_TYPE | GI.GT_ORIGINAL, 2, 0,
GI.SL_MOSTLY_SKILL))
| gpl-3.0 | 6,819,752,331,048,072,000 | 34.3 | 79 | 0.537861 | false | 3.414641 | false | false | false |
etherkit/OpenBeacon2 | client/linux-arm/venv/lib/python3.6/site-packages/PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py | 1 | 6760 | #-----------------------------------------------------------------------------
# Copyright (c) 2005-2020, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#
# SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception)
#-----------------------------------------------------------------------------
"""
Import hook for PyGObject's "gi.repository.GdkPixbuf" package.
"""
import glob
import os
import subprocess
from PyInstaller.config import CONF
from PyInstaller.compat import (
exec_command_stdout, is_darwin, is_win, is_linux, open_file, which)
from PyInstaller.utils.hooks import (
collect_glib_translations, get_gi_typelibs, get_gi_libdir, logger)
loaders_path = os.path.join('gdk-pixbuf-2.0', '2.10.0', 'loaders')
destpath = "lib/gdk-pixbuf-2.0/2.10.0/loaders"
cachedest = "lib/gdk-pixbuf-2.0/2.10.0"
# If the "gdk-pixbuf-query-loaders" command is not in the current ${PATH}, or
# is not in the GI lib path, GDK and thus GdkPixbuf is unavailable. Return with
# a non-fatal warning.
gdk_pixbuf_query_loaders = None
try:
libdir = get_gi_libdir('GdkPixbuf', '2.0')
except ValueError:
logger.warning(
'"hook-gi.repository.GdkPixbuf" ignored, '
'since GdkPixbuf library not found'
)
libdir = None
if libdir:
# Distributions either package gdk-pixbuf-query-loaders in the GI libs
# directory (not on the path), or on the path with or without a -x64 suffix
# depending on the architecture
cmds = [
os.path.join(libdir, 'gdk-pixbuf-2.0/gdk-pixbuf-query-loaders'),
'gdk-pixbuf-query-loaders-64',
'gdk-pixbuf-query-loaders',
]
for cmd in cmds:
gdk_pixbuf_query_loaders = which(cmd)
if gdk_pixbuf_query_loaders is not None:
break
if gdk_pixbuf_query_loaders is None:
logger.warning(
'"hook-gi.repository.GdkPixbuf" ignored, since '
'"gdk-pixbuf-query-loaders" is not in $PATH or gi lib dir.'
)
# Else, GDK is available. Let's do this.
else:
binaries, datas, hiddenimports = get_gi_typelibs('GdkPixbuf', '2.0')
datas += collect_glib_translations('gdk-pixbuf')
# To add support for a new platform, add a new "elif" branch below with
# the proper is_<platform>() test and glob for finding loaders on that
# platform.
if is_win:
ext = "*.dll"
elif is_darwin or is_linux:
ext = "*.so"
# If loader detection is supported on this platform, bundle all
# detected loaders and an updated loader cache.
if ext:
loader_libs = []
# Bundle all found loaders with this user application.
pattern = os.path.join(libdir, loaders_path, ext)
for f in glob.glob(pattern):
binaries.append((f, destpath))
loader_libs.append(f)
# Sometimes the loaders are stored in a different directory from
# the library (msys2)
if not loader_libs:
pattern = os.path.join(libdir, '..', 'lib', loaders_path, ext)
for f in glob.glob(pattern):
binaries.append((f, destpath))
loader_libs.append(f)
# Filename of the loader cache to be written below.
cachefile = os.path.join(CONF['workpath'], 'loaders.cache')
# Run the "gdk-pixbuf-query-loaders" command and capture its
# standard output providing an updated loader cache; then write
# this output to the loader cache bundled with this frozen
# application.
#
# On OSX we use @executable_path to specify a path relative to the
# generated bundle. However, on non-Windows we need to rewrite the
# loader cache because it isn't relocatable by default. See
# https://bugzilla.gnome.org/show_bug.cgi?id=737523
#
# To make it easier to rewrite, we just always write
# @executable_path, since its significantly easier to find/replace
# at runtime. :)
#
# If we need to rewrite it...
if not is_win:
# To permit string munging, decode the encoded bytes output by
# this command (i.e., enable the "universal_newlines" option).
# Note that:
#
# * Under Python 2.7, "cachedata" will be a decoded "unicode"
# object. * Under Python 3.x, "cachedata" will be a decoded
# "str" object.
#
# On Fedora, the default loaders cache is /usr/lib64, but the
# libdir is actually /lib64. To get around this, we pass the
# path to the loader command, and it will create a cache with
# the right path.
cachedata = exec_command_stdout(gdk_pixbuf_query_loaders,
*loader_libs)
cd = []
prefix = '"' + os.path.join(libdir, 'gdk-pixbuf-2.0', '2.10.0')
plen = len(prefix)
# For each line in the updated loader cache...
for line in cachedata.splitlines():
if line.startswith('#'):
continue
if line.startswith(prefix):
line = '"@executable_path/' + cachedest + line[plen:]
cd.append(line)
# Rejoin these lines in a manner preserving this object's
# "unicode" type under Python 2.
cachedata = u'\n'.join(cd)
# Write the updated loader cache to this file.
with open_file(cachefile, 'w') as fp:
fp.write(cachedata)
# Else, GdkPixbuf will do the right thing on Windows, so no changes
# to the loader cache are required. For efficiency and reliability,
# this command's encoded byte output is written as is without being
# decoded.
else:
with open_file(cachefile, 'wb') as fp:
fp.write(subprocess.check_output(gdk_pixbuf_query_loaders))
# Bundle this loader cache with this frozen application.
datas.append((cachefile, cachedest))
# Else, loader detection is unsupported on this platform.
else:
logger.warning(
'GdkPixbuf loader bundling unsupported on your platform.'
)
| gpl-3.0 | -3,919,858,749,350,087,700 | 39.969697 | 79 | 0.569822 | false | 4.222361 | false | false | false |
all-of-us/raw-data-repository | rdr_service/alembic/versions/72365b7c0037_add_gender_identity_enums.py | 1 | 1232 | """add gender identity enums
Revision ID: 72365b7c0037
Revises: 9c957ce496bf
Create Date: 2019-06-05 08:56:34.278852
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import GenderIdentity
# revision identifiers, used by Alembic.
revision = "72365b7c0037"
down_revision = "9c957ce496bf"
branch_labels = None
depends_on = None
def upgrade(engine_name):
globals()["upgrade_%s" % engine_name]()
def downgrade(engine_name):
globals()["downgrade_%s" % engine_name]()
def upgrade_rdr():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("participant_summary", sa.Column("gender_identity", model.utils.Enum(GenderIdentity), nullable=True))
# ### end Alembic commands ###
def downgrade_rdr():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("participant_summary", "gender_identity")
# ### end Alembic commands ###
def upgrade_metrics():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
def downgrade_metrics():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
| bsd-3-clause | 7,862,067,207,526,346,000 | 23.64 | 119 | 0.685065 | false | 3.602339 | false | false | false |
joshfriend/memegen | tests/test_routes_templates.py | 1 | 2217 | # pylint: disable=unused-variable
# pylint: disable=misplaced-comparison-constant
from .conftest import load
def describe_get():
def when_default_text(client):
response = client.get("/templates/iw")
assert 200 == response.status_code
assert dict(
name="Insanity Wolf",
description="http://knowyourmeme.com/memes/insanity-wolf",
aliases=['insanity', 'insanity-wolf', 'iw'],
styles=[],
example="http://localhost/iw/does-testing/in-production",
) == load(response)
def when_no_default_text(client):
response = client.get("/templates/keanu")
assert 200 == response.status_code
assert "http://localhost/keanu/your-text/goes-here" == \
load(response)['example']
def when_alternate_sytles_available(client):
response = client.get("/templates/sad-biden")
assert 200 == response.status_code
assert ['down', 'scowl', 'window'] == load(response)['styles']
def when_dashes_in_key(client):
response = client.get("/templates/awkward-awesome")
assert 200 == response.status_code
def it_returns_list_when_no_key(client):
response = client.get("/templates/")
assert 200 == response.status_code
data = load(response)
assert "http://localhost/templates/iw" == data['Insanity Wolf']
assert len(data) >= 20 # there should be many memes
def it_redirects_when_text_is_provided(client):
response = client.get("/templates/iw/top/bottom")
assert 302 == response.status_code
assert '<a href="/iw/top/bottom">' in load(response, as_json=False)
def it_redirects_when_key_is_an_alias(client):
response = client.get("/templates/insanity-wolf")
assert 302 == response.status_code
assert '<a href="/templates/iw">' in load(response, as_json=False)
def describe_post():
def it_returns_an_error(client):
response = client.post("/templates/")
assert 403 == response.status_code
assert dict(
message="https://raw.githubusercontent.com/jacebrowning/memegen/master/CONTRIBUTING.md"
) == load(response)
| mit | -5,729,464,290,669,171,000 | 31.602941 | 99 | 0.626071 | false | 3.770408 | false | false | false |
JIC-CSB/dtoolcore | docs/source/conf.py | 1 | 5148 | # -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.viewcode']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u"dtoolcore"
copyright = u"2017, Tjelvar Olsson"
author = u"Tjelvar Olsson"
repo_name = u"dtoolcore"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u"3.13.0"
# The full version, including alpha/beta/rc tags.
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = []
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'default'
# Set the readthedocs theme.
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: # only import and set the theme if we're building docs locally
print('using readthedocs theme...')
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# otherwise, readthedocs.org uses their theme by default, so no need to specify
# it
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# -- Options for HTMLHelp output ------------------------------------------
# Output file base name for HTML help builder.
htmlhelp_basename = '{}doc'.format(repo_name)
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, '{}.tex'.format(repo_name),
u'{} Documentation'.format(repo_name),
author, 'manual'),
]
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, repo_name, u'{} Documentation'.format(repo_name),
[author], 1)
]
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, repo_name, u'{} Documentation'.format(repo_name),
author, repo_name, u'Core API for managing (scientific) data',
'Miscellaneous'),
]
| mit | 835,693,816,536,538,400 | 30.012048 | 79 | 0.673271 | false | 3.833209 | false | false | false |
praekelt/vumi-go | go/billing/migrations/0009_auto__chg_field_messagecost_tag_pool__add_index_messagecost_message_di.py | 1 | 10898 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'MessageCost.tag_pool'
db.alter_column(u'billing_messagecost', 'tag_pool_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['billing.TagPool'], null=True))
# Adding index on 'MessageCost', fields ['message_direction']
db.create_index(u'billing_messagecost', ['message_direction'])
# Adding unique constraint on 'MessageCost', fields ['account', 'tag_pool', 'message_direction']
db.create_unique(u'billing_messagecost', ['account_id', 'tag_pool_id', 'message_direction'])
# Adding index on 'MessageCost', fields ['account', 'tag_pool', 'message_direction']
db.create_index(u'billing_messagecost', ['account_id', 'tag_pool_id', 'message_direction'])
def backwards(self, orm):
# Removing index on 'MessageCost', fields ['account', 'tag_pool', 'message_direction']
db.delete_index(u'billing_messagecost', ['account_id', 'tag_pool_id', 'message_direction'])
# Removing unique constraint on 'MessageCost', fields ['account', 'tag_pool', 'message_direction']
db.delete_unique(u'billing_messagecost', ['account_id', 'tag_pool_id', 'message_direction'])
# Removing index on 'MessageCost', fields ['message_direction']
db.delete_index(u'billing_messagecost', ['message_direction'])
# User chose to not deal with backwards NULL issues for 'MessageCost.tag_pool'
raise RuntimeError("Cannot reverse this migration. 'MessageCost.tag_pool' and its values cannot be restored.")
# The following code is provided here to aid in writing a correct migration
# Changing field 'MessageCost.tag_pool'
db.alter_column(u'billing_messagecost', 'tag_pool_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['billing.TagPool']))
models = {
u'auth.group': {
'Meta': {'object_name': 'Group'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
u'auth.permission': {
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
u'base.gouser': {
'Meta': {'object_name': 'GoUser'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '254'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
u'billing.account': {
'Meta': {'object_name': 'Account'},
'account_number': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
'alert_credit_balance': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'max_digits': '20', 'decimal_places': '6'}),
'alert_threshold': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'max_digits': '10', 'decimal_places': '2'}),
'credit_balance': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'max_digits': '20', 'decimal_places': '6'}),
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['base.GoUser']"})
},
u'billing.lineitem': {
'Meta': {'object_name': 'LineItem'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'message_direction': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '20', 'blank': 'True'}),
'statement': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['billing.Statement']"}),
'tag_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100', 'blank': 'True'}),
'tag_pool_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100', 'blank': 'True'}),
'total_cost': ('django.db.models.fields.IntegerField', [], {'default': '0'})
},
u'billing.messagecost': {
'Meta': {'unique_together': "[['account', 'tag_pool', 'message_direction']]", 'object_name': 'MessageCost', 'index_together': "[['account', 'tag_pool', 'message_direction']]"},
'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['billing.Account']", 'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'markup_percent': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'max_digits': '10', 'decimal_places': '2'}),
'message_cost': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'max_digits': '10', 'decimal_places': '3'}),
'message_direction': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_index': 'True'}),
'session_cost': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'max_digits': '10', 'decimal_places': '3'}),
'tag_pool': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['billing.TagPool']", 'null': 'True', 'blank': 'True'})
},
u'billing.statement': {
'Meta': {'object_name': 'Statement'},
'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['billing.Account']"}),
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'from_date': ('django.db.models.fields.DateField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'to_date': ('django.db.models.fields.DateField', [], {}),
'type': ('django.db.models.fields.CharField', [], {'max_length': '40'})
},
u'billing.tagpool': {
'Meta': {'object_name': 'TagPool'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
},
u'billing.transaction': {
'Meta': {'object_name': 'Transaction'},
'account_number': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'credit_amount': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'max_digits': '20', 'decimal_places': '6'}),
'credit_factor': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'markup_percent': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '2', 'blank': 'True'}),
'message_cost': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'null': 'True', 'max_digits': '10', 'decimal_places': '3'}),
'message_direction': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
'message_id': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
'session_cost': ('django.db.models.fields.DecimalField', [], {'default': "'0.0'", 'null': 'True', 'max_digits': '10', 'decimal_places': '3'}),
'session_created': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
'status': ('django.db.models.fields.CharField', [], {'default': "'Pending'", 'max_length': '20'}),
'tag_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'tag_pool_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
},
u'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
}
}
complete_apps = ['billing'] | bsd-3-clause | -5,296,161,936,349,393,000 | 75.216783 | 188 | 0.569279 | false | 3.626622 | false | false | false |
cajone/pychess | lib/pychess/System/TaskQueue.py | 1 | 2187 | # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/475160
# Was accepted into Python 2.5, but earlier versions still have
# to do stuff manually
import threading
from pychess.compat import Queue
def TaskQueue():
if hasattr(Queue, "task_done"):
return Queue()
return _TaskQueue()
class _TaskQueue(Queue):
def __init__(self):
Queue.__init__(self)
self.all_tasks_done = threading.Condition(self.mutex)
self.unfinished_tasks = 0
def _put(self, item):
Queue._put(self, item)
self.unfinished_tasks += 1
def task_done(self):
"""Indicate that a formerly enqueued task is complete.
Used by Queue consumer threads. For each get() used to fetch a task,
a subsequent call to task_done() tells the queue that the processing
on the task is complete.
If a join() is currently blocking, it will resume when all items
have been processed (meaning that a task_done() call was received
for every item that had been put() into the queue).
Raises a ValueError if called more times than there were items
placed in the queue.
"""
self.all_tasks_done.acquire()
try:
unfinished = self.unfinished_tasks - 1
if unfinished <= 0:
if unfinished < 0:
raise ValueError('task_done() called too many times')
self.all_tasks_done.notifyAll()
self.unfinished_tasks = unfinished
finally:
self.all_tasks_done.release()
def join(self):
"""Blocks until all items in the Queue have been gotten and processed.
The count of unfinished tasks goes up whenever an item is added to the
queue. The count goes down whenever a consumer thread calls task_done()
to indicate the item was retrieved and all work on it is complete.
When the count of unfinished tasks drops to zero, join() unblocks.
"""
self.all_tasks_done.acquire()
try:
while self.unfinished_tasks:
self.all_tasks_done.wait()
finally:
self.all_tasks_done.release()
| gpl-3.0 | 3,400,890,274,600,280,000 | 33.171875 | 79 | 0.622771 | false | 4.263158 | false | false | false |
deter-project/magi | magi/messaging/transportTCP.py | 1 | 2821 |
import socket
import logging
import time
from asyncore import dispatcher
from transport import Transport
import transportStream
from magimessage import DefaultCodec
log = logging.getLogger(__name__)
class TCPServer(Transport):
""" Simple TCP Server that returns new TCP clients as 'messages' """
def __init__(self, address = None, port = None):
Transport.__init__(self)
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self.set_reuse_addr()
self.bind((address, port))
self.listen(5)
def handle_accept(self):
pair = self.accept()
if pair is None:
return
sock, addr = pair
log.info('Incoming connection from %s', repr(addr))
newTrans = TCPTransport(sock)
newTrans.saveHost = addr[0]
newTrans.savePort = addr[1]
self.inmessages.append(newTrans)
def serverOnly(self):
return True
def __repr__(self):
return "TCPServer %s:%d" % (self.addr[0], self.addr[1])
__str__ = __repr__
class TCPTransport(transportStream.StreamTransport):
"""
This class implements a TCP connection that streams MAGI messages back and forth. It
uses the StreamTransport for most work, extending it just for the connecting and reconnecting
portion.
"""
def __init__(self, sock = None, codec=DefaultCodec, address = None, port = None):
"""
Create a new TCP Transport. If sock is provided, it is used, otherwise starts with
an unconnected socket.
"""
transportStream.StreamTransport.__init__(self, sock=sock, codec=codec)
self.closed = False
self.saveHost = ""
self.savePort = -1
if address is not None and port is not None:
self.connect(address, port)
def connect(self, host, port):
"""
Attempt to connect this socket.
"""
self.saveHost = host
self.savePort = port
self.closed = False
log.info("connect %s:%d", self.saveHost, self.savePort)
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
log.info("If connection fails, it will retry shortly.")
dispatcher.connect(self, (self.saveHost, self.savePort))
def reconnect(self):
"""
Attempt a reconnect of a socket that was closed or never fully connected
"""
self.connect(self.saveHost, self.savePort)
def handle_write(self):
"""
Override stream version so we can add hosttime to outgoing packets
"""
if self.txMessage.isDone():
try:
msg = self.outmessages.pop(0)
msg.hosttime = int(time.time())
self.txMessage = transportStream.TXTracker(codec=self.codec, msg=msg)
except IndexError:
return
#keep sending till you can
while not self.txMessage.isDone():
bytesWritten = self.send(self.txMessage.getData())
self.txMessage.sent(bytesWritten)
#if no more can be written, break out
if bytesWritten == 0:
break
def __repr__(self):
return "TCPTransport %s:%d" % (self.saveHost, self.savePort)
__str__ = __repr__
| gpl-2.0 | -4,412,502,271,619,851,000 | 25.613208 | 95 | 0.698688 | false | 3.26883 | false | false | false |
drtuxwang/system-config | bin/battery.py | 1 | 3916 | #!/usr/bin/env python3
"""
Monitor laptop battery
"""
import argparse
import signal
import sys
from typing import List
import power_mod
class Options:
"""
Options class
"""
def __init__(self) -> None:
self._args: argparse.Namespace = None
self.parse(sys.argv)
def get_summary_flag(self) -> bool:
"""
Return summary flag.
"""
return self._args.summary_flag
def _parse_args(self, args: List[str]) -> None:
parser = argparse.ArgumentParser(description='Monitor laptop battery.')
parser.add_argument(
'-s',
action='store_true',
dest='summary_flag',
help='Show summary'
)
self._args = parser.parse_args(args)
def parse(self, args: List[str]) -> None:
"""
Parse arguments
"""
self._parse_args(args[1:])
class Main:
"""
Main class
"""
def __init__(self) -> None:
try:
self.config()
sys.exit(self.run())
except (EOFError, KeyboardInterrupt):
sys.exit(114)
except SystemExit as exception:
sys.exit(exception)
@staticmethod
def config() -> None:
"""
Configure program
"""
if hasattr(signal, 'SIGPIPE'):
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
@staticmethod
def _show_battery(battery: power_mod.Battery) -> None:
model = (
battery.get_oem() + ' ' + battery.get_name() + ' ' +
battery.get_type() + ' ' + str(battery.get_capacity_max()) +
'mAh/' + str(battery.get_voltage()) + 'mV'
)
if battery.get_charge() == '-':
state = '-'
if battery.get_rate() > 0:
state += str(battery.get_rate()) + 'mA'
if battery.get_voltage() > 0:
power = '{0:4.2f}'.format(float(
battery.get_rate()*battery.get_voltage()) / 1000000)
state += ', ' + str(power) + 'W'
hours = '{0:3.1f}'.format(float(
battery.get_capacity()) / battery.get_rate())
state += ', ' + str(hours) + 'h'
elif battery.get_charge() == '+':
state = '+'
if battery.get_rate() > 0:
state += str(battery.get_rate()) + 'mA'
if battery.get_voltage() > 0:
power = '{0:4.2f}'.format(float(
battery.get_rate()*battery.get_voltage()) / 1000000)
state += ', ' + str(power) + 'W'
else:
state = 'Unused'
print(
model + " = ", battery.get_capacity(),
"mAh [" + state + "]",
sep=""
)
@staticmethod
def _show_summary(batteries: List[power_mod.Battery]) -> None:
capacity = 0
rate = 0
for battery in batteries:
if battery.is_exist():
capacity += battery.get_capacity()
if battery.get_charge() == '-':
rate -= battery.get_rate()
elif battery.get_charge() == '+':
rate += battery.get_rate()
if capacity:
if rate:
print("{0:d}mAh [{1:+d}mAh]".format(capacity, rate))
else:
print("{0:d}mAh [Unused]".format(capacity))
def run(self) -> int:
"""
Start program
"""
options = Options()
batteries = power_mod.Battery.factory()
if options.get_summary_flag():
self._show_summary(batteries)
else:
for battery in batteries:
if battery.is_exist():
self._show_battery(battery)
return 0
if __name__ == '__main__':
if '--pydoc' in sys.argv:
help(__name__)
else:
Main()
| gpl-2.0 | -5,714,600,251,821,818,000 | 26.384615 | 79 | 0.470123 | false | 3.904287 | false | false | false |
karllessard/tensorflow | tensorflow/python/keras/layers/preprocessing/text_vectorization.py | 1 | 29394 | # Copyright 2019 The TensorFlow 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.
# ==============================================================================
"""Keras text vectorization preprocessing layer."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.python.data.ops import dataset_ops
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.framework import tensor_spec
from tensorflow.python.keras import backend as K
from tensorflow.python.keras.engine import base_preprocessing_layer
from tensorflow.python.keras.layers.preprocessing import category_encoding
from tensorflow.python.keras.layers.preprocessing import string_lookup
from tensorflow.python.keras.utils import layer_utils
from tensorflow.python.keras.utils import tf_utils
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.ops import gen_string_ops
from tensorflow.python.ops import string_ops
from tensorflow.python.ops.ragged import ragged_functional_ops
from tensorflow.python.ops.ragged import ragged_string_ops
from tensorflow.python.util.tf_export import keras_export
LOWER_AND_STRIP_PUNCTUATION = "lower_and_strip_punctuation"
SPLIT_ON_WHITESPACE = "whitespace"
TFIDF = category_encoding.TFIDF
INT = category_encoding.INT
BINARY = category_encoding.BINARY
COUNT = category_encoding.COUNT
# This is an explicit regex of all the tokens that will be stripped if
# LOWER_AND_STRIP_PUNCTUATION is set. If an application requires other
# stripping, a Callable should be passed into the 'standardize' arg.
DEFAULT_STRIP_REGEX = r'[!"#$%&()\*\+,-\./:;<=>?@\[\\\]^_`{|}~\']'
# The string tokens in the extracted vocabulary
_VOCAB_NAME = "vocab"
# The inverse-document-frequency weights
_IDF_NAME = "idf"
# The IDF data for the OOV token
_OOV_IDF_NAME = "oov_idf"
# The string tokens in the full vocabulary
_ACCUMULATOR_VOCAB_NAME = "vocab"
# The total counts of each token in the vocabulary
_ACCUMULATOR_COUNTS_NAME = "counts"
# The number of documents / examples that each token appears in.
_ACCUMULATOR_DOCUMENT_COUNTS = "document_counts"
# The total number of documents / examples in the dataset.
_ACCUMULATOR_NUM_DOCUMENTS = "num_documents"
@keras_export(
"keras.layers.experimental.preprocessing.TextVectorization", v1=[])
class TextVectorization(base_preprocessing_layer.CombinerPreprocessingLayer):
"""Text vectorization layer.
This layer has basic options for managing text in a Keras model. It
transforms a batch of strings (one sample = one string) into either a list of
token indices (one sample = 1D tensor of integer token indices) or a dense
representation (one sample = 1D tensor of float values representing data about
the sample's tokens).
If desired, the user can call this layer's adapt() method on a dataset.
When this layer is adapted, it will analyze the dataset, determine the
frequency of individual string values, and create a 'vocabulary' from them.
This vocabulary can have unlimited size or be capped, depending on the
configuration options for this layer; if there are more unique values in the
input than the maximum vocabulary size, the most frequent terms will be used
to create the vocabulary.
The processing of each sample contains the following steps:
1. standardize each sample (usually lowercasing + punctuation stripping)
2. split each sample into substrings (usually words)
3. recombine substrings into tokens (usually ngrams)
4. index tokens (associate a unique int value with each token)
5. transform each sample using this index, either into a vector of ints or
a dense float vector.
Some notes on passing Callables to customize splitting and normalization for
this layer:
1. Any callable can be passed to this Layer, but if you want to serialize
this object you should only pass functions that are registered Keras
serializables (see `tf.keras.utils.register_keras_serializable` for more
details).
2. When using a custom callable for `standardize`, the data received
by the callable will be exactly as passed to this layer. The callable
should return a tensor of the same shape as the input.
3. When using a custom callable for `split`, the data received by the
callable will have the 1st dimension squeezed out - instead of
`[["string to split"], ["another string to split"]]`, the Callable will
see `["string to split", "another string to split"]`. The callable should
return a Tensor with the first dimension containing the split tokens -
in this example, we should see something like `[["string", "to", "split],
["another", "string", "to", "split"]]`. This makes the callable site
natively compatible with `tf.strings.split()`.
Attributes:
max_tokens: The maximum size of the vocabulary for this layer. If None,
there is no cap on the size of the vocabulary. Note that this vocabulary
contains 1 OOV token, so the effective number of tokens is `(max_tokens -
1 - (1 if output == "int" else 0))`.
standardize: Optional specification for standardization to apply to the
input text. Values can be None (no standardization),
'lower_and_strip_punctuation' (lowercase and remove punctuation) or a
Callable. Default is 'lower_and_strip_punctuation'.
split: Optional specification for splitting the input text. Values can be
None (no splitting), 'whitespace' (split on ASCII whitespace), or a
Callable. The default is 'whitespace'.
ngrams: Optional specification for ngrams to create from the possibly-split
input text. Values can be None, an integer or tuple of integers; passing
an integer will create ngrams up to that integer, and passing a tuple of
integers will create ngrams for the specified values in the tuple. Passing
None means that no ngrams will be created.
output_mode: Optional specification for the output of the layer. Values can
be "int", "binary", "count" or "tf-idf", configuring the layer as follows:
"int": Outputs integer indices, one integer index per split string
token. When output == "int", 0 is reserved for masked locations;
this reduces the vocab size to max_tokens-2 instead of max_tokens-1
"binary": Outputs a single int array per batch, of either vocab_size or
max_tokens size, containing 1s in all elements where the token mapped
to that index exists at least once in the batch item.
"count": As "binary", but the int array contains a count of the number
of times the token at that index appeared in the batch item.
"tf-idf": As "binary", but the TF-IDF algorithm is applied to find the
value in each token slot.
output_sequence_length: Only valid in INT mode. If set, the output will have
its time dimension padded or truncated to exactly `output_sequence_length`
values, resulting in a tensor of shape [batch_size,
output_sequence_length] regardless of how many tokens resulted from the
splitting step. Defaults to None.
pad_to_max_tokens: Only valid in "binary", "count", and "tf-idf" modes. If
True, the output will have its feature axis padded to `max_tokens` even if
the number of unique tokens in the vocabulary is less than max_tokens,
resulting in a tensor of shape [batch_size, max_tokens] regardless of
vocabulary size. Defaults to True.
vocabulary: An optional list of vocabulary terms, or a path to a text file
containing a vocabulary to load into this layer. The file should contain
one token per line. If the list or file contains the same token multiple
times, an error will be thrown.
Example:
This example instantiates a TextVectorization layer that lowercases text,
splits on whitespace, strips punctuation, and outputs integer vocab indices.
>>> text_dataset = tf.data.Dataset.from_tensor_slices(["foo", "bar", "baz"])
>>> max_features = 5000 # Maximum vocab size.
>>> max_len = 4 # Sequence length to pad the outputs to.
>>> embedding_dims = 2
>>>
>>> # Create the layer.
>>> vectorize_layer = TextVectorization(
... max_tokens=max_features,
... output_mode='int',
... output_sequence_length=max_len)
>>>
>>> # Now that the vocab layer has been created, call `adapt` on the text-only
>>> # dataset to create the vocabulary. You don't have to batch, but for large
>>> # datasets this means we're not keeping spare copies of the dataset.
>>> vectorize_layer.adapt(text_dataset.batch(64))
>>>
>>> # Create the model that uses the vectorize text layer
>>> model = tf.keras.models.Sequential()
>>>
>>> # Start by creating an explicit input layer. It needs to have a shape of
>>> # (1,) (because we need to guarantee that there is exactly one string
>>> # input per batch), and the dtype needs to be 'string'.
>>> model.add(tf.keras.Input(shape=(1,), dtype=tf.string))
>>>
>>> # The first layer in our model is the vectorization layer. After this
>>> # layer, we have a tensor of shape (batch_size, max_len) containing vocab
>>> # indices.
>>> model.add(vectorize_layer)
>>>
>>> # Now, the model can map strings to integers, and you can add an embedding
>>> # layer to map these integers to learned embeddings.
>>> input_data = [["foo qux bar"], ["qux baz"]]
>>> model.predict(input_data)
array([[2, 1, 4, 0],
[1, 3, 0, 0]])
Example:
This example instantiates a TextVectorization layer by passing a list
of vocabulary terms to the layer's __init__ method.
input_array = np.array([["earth", "wind", "and", "fire"],
["fire", "and", "earth", "michigan"]])
expected_output = [[2, 3, 4, 5], [5, 4, 2, 1]]
input_data = keras.Input(shape=(None,), dtype=dtypes.string)
layer = get_layer_class()(
max_tokens=None,
standardize=None,
split=None,
output_mode=text_vectorization.INT,
vocabulary=vocab_data)
int_data = layer(input_data)
model = keras.Model(inputs=input_data, outputs=int_data)
output_dataset = model.predict(input_array)
>>> vocab_data = ["earth", "wind", "and", "fire"]
>>> max_len = 4 # Sequence length to pad the outputs to.
>>>
>>> # Create the layer, passing the vocab directly. You can also pass the
>>> # vocabulary arg a path to a file containing one vocabulary word per
>>> # line.
>>> vectorize_layer = TextVectorization(
... max_tokens=max_features,
... output_mode='int',
... output_sequence_length=max_len,
... vocabulary=vocab_data)
>>>
>>> # Because we've passed the vocabulary directly, we don't need to adapt
>>> # the layer - the vocabulary is already set. The vocabulary contains the
>>> # padding token ('') and OOV token ('[UNK]') as well as the passed tokens.
>>> vectorize_layer.get_vocabulary()
['', '[UNK]', 'earth', 'wind', 'and', 'fire']
"""
# TODO(momernick): Add an examples section to the docstring.
def __init__(self,
max_tokens=None,
standardize=LOWER_AND_STRIP_PUNCTUATION,
split=SPLIT_ON_WHITESPACE,
ngrams=None,
output_mode=INT,
output_sequence_length=None,
pad_to_max_tokens=True,
vocabulary=None,
**kwargs):
# This layer only applies to string processing, and so should only have
# a dtype of 'string'.
if "dtype" in kwargs and kwargs["dtype"] != dtypes.string:
raise ValueError("TextVectorization may only have a dtype of string.")
elif "dtype" not in kwargs:
kwargs["dtype"] = dtypes.string
# 'standardize' must be one of (None, LOWER_AND_STRIP_PUNCTUATION, callable)
layer_utils.validate_string_arg(
standardize,
allowable_strings=(LOWER_AND_STRIP_PUNCTUATION),
layer_name="TextVectorization",
arg_name="standardize",
allow_none=True,
allow_callables=True)
# 'split' must be one of (None, SPLIT_ON_WHITESPACE, callable)
layer_utils.validate_string_arg(
split,
allowable_strings=(SPLIT_ON_WHITESPACE),
layer_name="TextVectorization",
arg_name="split",
allow_none=True,
allow_callables=True)
# 'output_mode' must be one of (None, INT, COUNT, BINARY, TFIDF)
layer_utils.validate_string_arg(
output_mode,
allowable_strings=(INT, COUNT, BINARY, TFIDF),
layer_name="TextVectorization",
arg_name="output_mode",
allow_none=True)
# 'ngrams' must be one of (None, int, tuple(int))
if not (ngrams is None or
isinstance(ngrams, int) or
isinstance(ngrams, tuple) and
all(isinstance(item, int) for item in ngrams)):
raise ValueError(("`ngrams` must be None, an integer, or a tuple of "
"integers. Got %s") % (ngrams,))
# 'output_sequence_length' must be one of (None, int) and is only
# set if output_mode is INT.
if (output_mode == INT and not (isinstance(output_sequence_length, int) or
(output_sequence_length is None))):
raise ValueError("`output_sequence_length` must be either None or an "
"integer when `output_mode` is 'int'. "
"Got %s" % output_sequence_length)
if output_mode != INT and output_sequence_length is not None:
raise ValueError("`output_sequence_length` must not be set if "
"`output_mode` is not 'int'.")
# If max_tokens is set, the value must be greater than 1 - otherwise we
# are creating a 0-element vocab, which doesn't make sense.
if max_tokens is not None and max_tokens < 1:
raise ValueError("max_tokens must be > 1.")
self._max_tokens = max_tokens
# In INT mode, the zero value is reserved for padding (per Keras standard
# padding approaches). In non-INT modes, there is no padding so we can set
# the OOV value to zero instead of one.
self._oov_value = 1 if output_mode == INT else 0
self._standardize = standardize
self._split = split
self._ngrams_arg = ngrams
if isinstance(ngrams, int):
self._ngrams = tuple(range(1, ngrams + 1))
else:
self._ngrams = ngrams
self._output_mode = output_mode
self._output_sequence_length = output_sequence_length
self._pad_to_max = pad_to_max_tokens
self._vocab_size = 0
self._called = False
super(TextVectorization, self).__init__(
combiner=None,
**kwargs)
base_preprocessing_layer._kpl_gauge.get_cell("V2").set("TextVectorization")
mask_token = "" if output_mode in [None, INT] else None
self._index_lookup_layer = self._get_index_lookup_class()(
max_tokens=max_tokens, mask_token=mask_token, vocabulary=vocabulary)
# If this layer is configured for string or integer output, we do not
# create a vectorization layer (as the output is not vectorized).
if self._output_mode in [None, INT]:
self._vectorize_layer = None
else:
if max_tokens is not None and self._pad_to_max:
max_elements = max_tokens
else:
max_elements = None
self._vectorize_layer = self._get_vectorization_class()(
max_tokens=max_elements, output_mode=self._output_mode)
# These are V1/V2 shim points. There are V1 implementations in the V1 class.
def _get_vectorization_class(self):
return category_encoding.CategoryEncoding
def _get_index_lookup_class(self):
return string_lookup.StringLookup
# End of V1/V2 shim points.
def _assert_same_type(self, expected_type, values, value_name):
if dtypes.as_dtype(expected_type) != dtypes.as_dtype(values.dtype):
raise RuntimeError("Expected %s type %s, got %s" %
(value_name, expected_type, values.dtype))
def _convert_to_ndarray(self, x):
return np.array(x) if isinstance(x, (list, tuple)) else x
def compute_output_shape(self, input_shape):
if self._output_mode != INT:
return tensor_shape.TensorShape([input_shape[0], self._max_tokens])
if self._output_mode == INT and self._split is None:
if len(input_shape) == 1:
input_shape = tuple(input_shape) + (1,)
return tensor_shape.TensorShape(input_shape)
if self._output_mode == INT and self._split is not None:
input_shape = list(input_shape)
if len(input_shape) == 1:
input_shape = input_shape + [self._output_sequence_length]
else:
input_shape[1] = self._output_sequence_length
return tensor_shape.TensorShape(input_shape)
def compute_output_signature(self, input_spec):
output_shape = self.compute_output_shape(input_spec.shape.as_list())
output_dtype = dtypes.int64 if self._output_mode == INT else K.floatx()
return tensor_spec.TensorSpec(shape=output_shape, dtype=output_dtype)
def adapt(self, data, reset_state=True):
"""Fits the state of the preprocessing layer to the dataset.
Overrides the default adapt method to apply relevant preprocessing to the
inputs before passing to the combiner.
Arguments:
data: The data to train on. It can be passed either as a tf.data Dataset,
as a NumPy array, a string tensor, or as a list of texts.
reset_state: Optional argument specifying whether to clear the state of
the layer at the start of the call to `adapt`. This must be True for
this layer, which does not support repeated calls to `adapt`.
"""
if not reset_state:
raise ValueError("TextVectorization does not support streaming adapts.")
# Build the layer explicitly with the original data shape instead of relying
# on an implicit call to `build` in the base layer's `adapt`, since
# preprocessing changes the input shape.
if isinstance(data, (list, tuple, np.ndarray)):
data = ops.convert_to_tensor_v2_with_dispatch(data)
if isinstance(data, ops.Tensor):
if data.shape.rank == 1:
data = array_ops.expand_dims(data, axis=-1)
self.build(data.shape)
preprocessed_inputs = self._preprocess(data)
elif isinstance(data, dataset_ops.DatasetV2):
# TODO(momernick): Replace this with a more V2-friendly API.
shape = dataset_ops.get_legacy_output_shapes(data)
if not isinstance(shape, tensor_shape.TensorShape):
raise ValueError("The dataset passed to 'adapt' must contain a single "
"tensor value.")
if shape.rank == 0:
data = data.map(lambda tensor: array_ops.expand_dims(tensor, 0))
shape = dataset_ops.get_legacy_output_shapes(data)
if shape.rank == 1:
data = data.map(lambda tensor: array_ops.expand_dims(tensor, -1))
self.build(dataset_ops.get_legacy_output_shapes(data))
preprocessed_inputs = data.map(self._preprocess)
else:
raise ValueError(
"adapt() requires a Dataset or an array as input, got {}".format(
type(data)))
self._index_lookup_layer.adapt(preprocessed_inputs)
if self._vectorize_layer:
if isinstance(data, ops.Tensor):
integer_data = self._index_lookup_layer(preprocessed_inputs)
else:
integer_data = preprocessed_inputs.map(self._index_lookup_layer)
self._vectorize_layer.adapt(integer_data)
def get_vocabulary(self):
return self._index_lookup_layer.get_vocabulary()
def get_config(self):
# This does not include the 'vocabulary' arg, since if the vocab was passed
# at init time it's now stored in variable state - we don't need to
# pull it off disk again.
config = {
"max_tokens": self._max_tokens,
"standardize": self._standardize,
"split": self._split,
"ngrams": self._ngrams_arg,
"output_mode": self._output_mode,
"output_sequence_length": self._output_sequence_length,
"pad_to_max_tokens": self._pad_to_max,
}
base_config = super(TextVectorization, self).get_config()
return dict(list(base_config.items()) + list(config.items()))
def count_params(self):
# This method counts the number of scalars in the weights of this layer.
# Since this layer doesn't have any /actual/ weights (in that there's
# nothing in this layer that can be trained - we only use the weight
# abstraction for ease of saving!) we return 0.
return 0
def set_vocabulary(self,
vocab,
df_data=None,
oov_df_value=None):
"""Sets vocabulary (and optionally document frequency) data for this layer.
This method sets the vocabulary and DF data for this layer directly, instead
of analyzing a dataset through 'adapt'. It should be used whenever the vocab
(and optionally document frequency) information is already known. If
vocabulary data is already present in the layer, this method will replace
it.
Arguments:
vocab: An array of string tokens.
df_data: An array of document frequency data. Only necessary if the layer
output_mode is TFIDF.
oov_df_value: The document frequency of the OOV token. Only necessary if
output_mode is TFIDF.
Raises:
ValueError: If there are too many inputs, the inputs do not match, or
input data is missing.
RuntimeError: If the vocabulary cannot be set when this function is
called. This happens when "binary", "count", and "tfidf" modes,
if "pad_to_max_tokens" is False and the layer itself has already been
called.
"""
if self._output_mode != TFIDF and df_data is not None:
raise ValueError("df_data should only be set if output_mode is TFIDF. "
"output_mode is %s." % self._output_mode)
if (self._output_mode in [BINARY, COUNT, TFIDF] and self._called and
not self._pad_to_max):
raise RuntimeError(("When using TextVectorization in {mode} mode and "
"pad_to_max_tokens is False, the vocabulary cannot "
"be changed after the layer is "
"called.").format(mode=self._output_mode))
self._index_lookup_layer.set_vocabulary(vocab)
# When doing raw or integer output, we don't have a Vectorize layer to
# manage. In this case, we can return directly.
if self._output_mode in [None, INT]:
return
if not self._pad_to_max or self._max_tokens is None:
num_tokens = self._index_lookup_layer.vocab_size()
self._vectorize_layer.set_num_elements(num_tokens)
if self._output_mode == TFIDF:
if df_data is None:
raise ValueError("df_data must be set if output_mode is TFIDF")
if len(vocab) != len(df_data):
raise ValueError("df_data must be the same length as vocab. "
"len(df_data) is %s, len(vocab) is %s" %
(len(vocab), len(df_data)))
if oov_df_value is None:
raise ValueError("You must pass an oov_df_value when output_mode is "
"TFIDF.")
df_data = self._convert_to_ndarray(df_data)
if not isinstance(oov_df_value, np.ndarray):
oov_df_value = np.array([oov_df_value])
df_data = np.insert(df_data, 0, oov_df_value)
self._vectorize_layer.set_tfidf_data(df_data)
def build(self, input_shape):
# We have to use 'and not ==' here, because input_shape[1] !/== 1 can result
# in None for undefined shape axes. If using 'and !=', this causes the
# expression to evaluate to False instead of True if the shape is undefined;
# the expression needs to evaluate to True in that case.
if self._split is not None:
if input_shape.ndims > 1 and not input_shape[-1] == 1: # pylint: disable=g-comparison-negation
raise RuntimeError(
"When using TextVectorization to tokenize strings, the innermost "
"dimension of the input array must be 1, got shape "
"{}".format(input_shape))
super(TextVectorization, self).build(input_shape)
def _set_state_variables(self, updates):
if not self.built:
raise RuntimeError("_set_state_variables() must be called after build().")
if self._output_mode == TFIDF:
self.set_vocabulary(
updates[_VOCAB_NAME],
updates[_IDF_NAME],
updates[_OOV_IDF_NAME])
else:
self.set_vocabulary(updates[_VOCAB_NAME])
def _preprocess(self, inputs):
if self._standardize == LOWER_AND_STRIP_PUNCTUATION:
if tf_utils.is_ragged(inputs):
lowercase_inputs = ragged_functional_ops.map_flat_values(
gen_string_ops.string_lower, inputs)
# Depending on configuration, we may never touch the non-data tensor
# in the ragged inputs tensor. If that is the case, and this is the
# only layer in the keras model, running it will throw an error.
# To get around this, we wrap the result in an identity.
lowercase_inputs = array_ops.identity(lowercase_inputs)
else:
lowercase_inputs = gen_string_ops.string_lower(inputs)
inputs = string_ops.regex_replace(lowercase_inputs, DEFAULT_STRIP_REGEX,
"")
elif callable(self._standardize):
inputs = self._standardize(inputs)
elif self._standardize is not None:
raise ValueError(("%s is not a supported standardization. "
"TextVectorization supports the following options "
"for `standardize`: None, "
"'lower_and_strip_punctuation', or a "
"Callable.") % self._standardize)
if self._split is not None:
# If we are splitting, we validate that the 1st axis is of dimension 1 and
# so can be squeezed out. We do this here instead of after splitting for
# performance reasons - it's more expensive to squeeze a ragged tensor.
if inputs.shape.ndims > 1:
inputs = array_ops.squeeze(inputs, axis=-1)
if self._split == SPLIT_ON_WHITESPACE:
# This treats multiple whitespaces as one whitespace, and strips leading
# and trailing whitespace.
inputs = ragged_string_ops.string_split_v2(inputs)
elif callable(self._split):
inputs = self._split(inputs)
else:
raise ValueError(
("%s is not a supported splitting."
"TextVectorization supports the following options "
"for `split`: None, 'whitespace', or a Callable.") % self._split)
# Note that 'inputs' here can be either ragged or dense depending on the
# configuration choices for this Layer. The strings.ngrams op, however, does
# support both ragged and dense inputs.
if self._ngrams is not None:
inputs = ragged_string_ops.ngrams(
inputs, ngram_width=self._ngrams, separator=" ")
return inputs
def call(self, inputs):
if isinstance(inputs, (list, tuple, np.ndarray)):
inputs = ops.convert_to_tensor_v2_with_dispatch(inputs)
self._called = True
inputs = self._preprocess(inputs)
# If we're not doing any output processing, return right away.
if self._output_mode is None:
return inputs
indexed_data = self._index_lookup_layer(inputs)
if self._output_mode == INT:
# Once we have the dense tensor, we can return it if we weren't given a
# fixed output sequence length. If we were, though, we have to dynamically
# choose whether to pad or trim it based on each tensor.
# We need to convert to dense if we have a ragged tensor.
if tf_utils.is_ragged(indexed_data):
dense_data = indexed_data.to_tensor(default_value=0)
else:
dense_data = indexed_data
if self._output_sequence_length is None:
return dense_data
else:
sequence_len = K.shape(dense_data)[1]
pad_amt = self._output_sequence_length - sequence_len
pad_fn = lambda: array_ops.pad(dense_data, [[0, 0], [0, pad_amt]])
slice_fn = lambda: dense_data[:, :self._output_sequence_length]
output_tensor = control_flow_ops.cond(
sequence_len < self._output_sequence_length,
true_fn=pad_fn,
false_fn=slice_fn)
output_shape = output_tensor.shape.as_list()
output_shape[-1] = self._output_sequence_length
output_tensor.set_shape(tensor_shape.TensorShape(output_shape))
return output_tensor
# If we're not returning integers here, we rely on the vectorization layer
# to create the output.
return self._vectorize_layer(indexed_data)
| apache-2.0 | 7,755,867,636,308,005,000 | 44.082822 | 101 | 0.666667 | false | 3.958255 | true | false | false |
entropyx/callme | callme/proxy.py | 1 | 9608 | # Copyright (c) 2009-2014, Christian Haintz
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# * Neither the name of callme nor the names of its contributors
# may be used to endorse or promote products derived from this
# software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import logging
import socket
import time
import uuid
import kombu
from callme import base
from callme import exceptions as exc
from callme import protocol as pr
LOG = logging.getLogger(__name__)
REQUEST_TIMEOUT = 60
class Proxy(base.Base):
"""This Proxy class is used to handle the communication with the rpc
server.
:keyword server_id: default id of the Server (can be declared later
see :func:`use_server`)
:keyword amqp_host: the host of where the AMQP Broker is running
:keyword amqp_user: the username for the AMQP Broker
:keyword amqp_password: the password for the AMQP Broker
:keyword amqp_vhost: the virtual host of the AMQP Broker
:keyword amqp_port: the port of the AMQP Broker
:keyword ssl: use SSL connection for the AMQP Broker
:keyword timeout: default timeout for calls in seconds
:keyword durable: make all exchanges and queues durable
:keyword auto_delete: delete server queues after all connections are closed
not applicable for client queues
"""
def __init__(self,
server_exchange_name,
server_queue_name=None,
server_routing_key=None,
amqp_host='localhost',
amqp_user='guest',
amqp_password='guest',
amqp_vhost='/',
amqp_port=5672,
ssl=False,
timeout=REQUEST_TIMEOUT,
durable=False,
auto_delete=True,
):
super(Proxy, self).__init__(amqp_host, amqp_user, amqp_password,
amqp_vhost, amqp_port, ssl)
self._uuid = str(uuid.uuid4())
self._server_exchange_name = server_exchange_name
self._server_queue_name = server_queue_name
self._server_routing_key = server_routing_key
self._timeout = timeout
self._is_received = False
self._corr_id = None
self._response = None
self._exchange_name = 'client_{0}_ex_{1}'.format(self._server_exchange_name, self._uuid)
self._queue_name = 'client_{0}_queue_{1}'.format(self._server_queue_name, self._uuid) if self._server_queue_name else ''
self._durable = durable
self._auto_delete = auto_delete
# create queue
queue = self._make_queue(self._queue_name, None,
durable=self._durable,
auto_delete=True)
# create consumer
consumer = kombu.Consumer(channel=self._conn,
queues=queue,
callbacks=[self._on_response],
accept=['pickle'])
consumer.consume()
def use_server(self, exchange_name=None, queue_name=None, timeout=None):
"""Use the specified server and set an optional timeout for the method
call.
Typical use:
>> my_proxy.use_server('foo_exchange','foo.receive').a_remote_func()
:keyword exchange_name: the exchange_name where the call will be made
:keyword queue_name: the queue_name where the call will be made
:keyword timeout: set or overrides the call timeout in seconds
:rtype: return `self` to cascade further calls
"""
if exchange_name is not None:
self._server_exchange_name= exchange_name
if queue_name is not None:
self._server_queue_name= queue_name
if timeout is not None:
self._timeout = timeout
return self
def _on_response(self, response, message):
"""This method is automatically called when a response is incoming and
decides if it is the message we are waiting for - the message with the
result.
:param response: the body of the amqp message already deserialized
by kombu
:param message: the plain amqp kombu.message with additional
information
"""
LOG.debug("Got response: {0}".format(response))
try:
message.ack()
except Exception:
LOG.exception("Failed to acknowledge AMQP message.")
else:
LOG.debug("AMQP message acknowledged.")
# check response type
if not isinstance(response, pr.RpcResponse):
LOG.warning("Response is not a `RpcResponse` instance.")
return
# process response
try:
if self._corr_id == message.properties['correlation_id']:
self._response = response
self._is_received = True
except KeyError:
LOG.error("Message has no `correlation_id` property.")
def __request(self, func_name, func_args, func_kwargs):
"""The remote-method-call execution function.
:param func_name: name of the method that should be executed
:param func_args: arguments for the remote-method
:param func_kwargs: keyword arguments for the remote-method
:type func_name: string
:type func_args: list of parameters
:rtype: result of the method
"""
self._corr_id = str(uuid.uuid4())
request = pr.RpcRequest(func_name, func_args, func_kwargs)
LOG.debug("Publish request: {0}".format(request))
# publish request
with kombu.producers[self._conn].acquire(block=True) as producer:
type = 'topic'
exchange = self._make_exchange(
self._server_exchange_name,
type=type,
durable=self._durable,
auto_delete=self._auto_delete)
producer.publish(body=request,
serializer='pickle',
exchange=exchange,
reply_to=self._queue_name,
correlation_id=self._corr_id,
routing_key=self._server_routing_key)
# start waiting for the response
self._wait_for_result()
self._is_received = False
# handler response
result = self._response.result
LOG.debug("Result: {!r}".format(result))
if self._response.is_exception:
raise result
return result
def _wait_for_result(self):
"""Waits for the result from the server, checks every second if
a timeout occurred. If a timeout occurred - the `RpcTimeout` exception
will be raised.
"""
start_time = time.time()
while not self._is_received:
try:
self._conn.drain_events(timeout=1)
except socket.timeout:
if self._timeout > 0:
if time.time() - start_time > self._timeout:
raise exc.RpcTimeout("RPC Request timeout")
def __getattr__(self, name):
"""This method is invoked, if a method is being called, which doesn't
exist on Proxy. It is used for RPC, to get the function which should
be called on the Server.
"""
# magic method dispatcher
LOG.debug("Recursion: {0}".format(name))
return _Method(self.__request, name)
# ===========================================================================
class _Method(object):
"""This class is used to realize remote-method-calls.
:param send: name of the function that should be executed on Proxy
:param name: name of the method which should be called on the Server
"""
# some magic to bind an XML-RPC method to an RPC server.
# supports "nested" methods (e.g. examples.getStateName)
def __init__(self, send, name):
self._send = send
self._name = name
def __getattr__(self, name):
return _Method(self._send, "{0}.{1}".format(self._name, name))
def __call__(self, *args, **kw):
return self._send(self._name, args, kw)
# ===========================================================================
| bsd-3-clause | 4,423,005,917,173,876,700 | 38.216327 | 128 | 0.600125 | false | 4.508681 | false | false | false |
etamponi/resilient-protocol | resilient/ensemble.py | 1 | 6786 | import hashlib
import numpy
from sklearn.base import BaseEstimator, ClassifierMixin, clone
from sklearn.tree.tree import DecisionTreeClassifier
from sklearn.utils.fixes import unique
from sklearn import preprocessing
from sklearn.utils.random import check_random_state
from resilient.logger import Logger
from resilient.selection_strategies import SelectBestPercent
from resilient.train_set_generators import RandomCentroidPDFTrainSetGenerator
from resilient.weighting_strategies import CentroidBasedWeightingStrategy
__author__ = 'Emanuele Tamponi <[email protected]>'
MAX_INT = numpy.iinfo(numpy.int32).max
class TrainingStrategy(BaseEstimator):
def __init__(self,
base_estimator=DecisionTreeClassifier(max_features='auto'),
train_set_generator=RandomCentroidPDFTrainSetGenerator(),
random_sample=None):
self.base_estimator = base_estimator
self.train_set_generator = train_set_generator
self.random_sample = random_sample
def train_estimators(self, n, inp, y, weighting_strategy, random_state):
classifiers = []
weight_generator = self.train_set_generator.get_sample_weights(
n, inp, y, random_state
)
for i, weights in enumerate(weight_generator):
if self.random_sample is not None:
ix = random_state.choice(
len(y),
size=int(self.random_sample*len(y)),
p=weights, replace=True
)
weights = numpy.bincount(ix, minlength=len(y))
s = weights.sum()
weights = numpy.array([float(w) / s for w in weights])
Logger.get().write("!Training estimator:", (i+1))
est = self._make_estimator(inp, y, weights, random_state)
weighting_strategy.add_estimator(est, inp, y, weights)
classifiers.append(est)
return classifiers
def _make_estimator(self, inp, y, sample_weights, random_state):
seed = random_state.randint(MAX_INT)
est = clone(self.base_estimator)
est.set_params(random_state=check_random_state(seed))
est.fit(inp, y, sample_weight=sample_weights)
return est
class ResilientEnsemble(BaseEstimator, ClassifierMixin):
def __init__(self,
pipeline=None,
n_estimators=10,
training_strategy=TrainingStrategy(),
weighting_strategy=CentroidBasedWeightingStrategy(),
selection_strategy=SelectBestPercent(),
multiply_by_weight=False,
use_prob=True,
random_state=None):
self.pipeline = pipeline
self.n_estimators = n_estimators
self.training_strategy = training_strategy
self.weighting_strategy = weighting_strategy
self.selection_strategy = selection_strategy
self.multiply_by_weight = multiply_by_weight
self.use_prob = use_prob
self.random_state = random_state
# Training time attributes
self.classes_ = None
self.n_classes_ = None
self.classifiers_ = None
self.precomputed_probs_ = None
self.precomputed_weights_ = None
self.random_state_ = None
def fit(self, inp, y):
self.precomputed_probs_ = None
self.precomputed_weights_ = None
self.classes_, y = unique(y, return_inverse=True)
self.n_classes_ = len(self.classes_)
self.random_state_ = check_random_state(self.random_state)
if self.pipeline is not None:
inp = self.pipeline.fit_transform(inp)
self.weighting_strategy.prepare(inp, y)
self.classifiers_ = self.training_strategy.train_estimators(
self.n_estimators, inp, y,
self.weighting_strategy, self.random_state_
)
# Reset it to null because the previous line uses self.predict
self.precomputed_probs_ = None
self.precomputed_weights_ = None
return self
def predict_proba(self, inp):
# inp is array-like, (N, D), one instance per row
# output is array-like, (N, n_classes_), each row sums to one
if self.precomputed_probs_ is None:
self._precompute(inp)
prob = numpy.zeros((len(inp), self.n_classes_))
for i in range(len(inp)):
active_indices = self.selection_strategy.get_indices(
self.precomputed_weights_[i], self.random_state_
)
prob[i] = self.precomputed_probs_[i][active_indices].sum(axis=0)
preprocessing.normalize(prob, norm='l1', copy=False)
return prob
def predict(self, inp):
# inp is array-like, (N, D), one instance per row
# output is array-like, N, one label per instance
if self.pipeline is not None:
inp = self.pipeline.transform(inp)
p = self.predict_proba(inp)
return self.classes_[numpy.argmax(p, axis=1)]
def _precompute(self, inp):
self.precomputed_probs_ = numpy.zeros(
(len(inp), len(self.classifiers_), self.n_classes_)
)
self.precomputed_weights_ = numpy.zeros(
(len(inp), len(self.classifiers_))
)
for i, x in enumerate(inp):
Logger.get().write(
"!Computing", len(inp), "probabilities and weights:", (i+1)
)
for j, cls in enumerate(self.classifiers_):
prob = cls.predict_proba(x)[0]
if not self.use_prob:
max_index = prob.argmax()
prob = numpy.zeros_like(prob)
prob[max_index] = 1
self.precomputed_probs_[i][j] = prob
self.precomputed_weights_[i] = (
self.weighting_strategy.weight_estimators(x)
)
if self.multiply_by_weight:
for j in range(len(self.classifiers_)):
self.precomputed_probs_[i][j] *= (
self.precomputed_weights_[i][j]
)
def get_directory(self):
current_state = self.random_state
current_selection = self.selection_strategy
self.random_state = None
self.selection_strategy = None
filename = hashlib.md5(str(self)).hexdigest()
self.random_state = current_state
self.selection_strategy = current_selection
return filename
def get_filename(self):
return self.get_directory() + "/ensemble"
def __eq__(self, other):
return isinstance(other, ResilientEnsemble) and (
self.get_directory() == other.get_directory()
)
def __hash__(self):
return hash(self.get_directory())
| gpl-2.0 | 4,599,996,119,543,902,700 | 37.338983 | 77 | 0.600796 | false | 4.110236 | false | false | false |
andrewschaaf/pj-closure | js/goog/array.py | 1 | 3829 | #<pre>Copyright 2006 The Closure Library 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.</pre>
# TODO the rest
from goog import bind, isString
ARRAY_PROTOTYPE_ = Array.prototype
def concat(var_args):
return ARRAY_PROTOTYPE_.concat.apply(ARRAY_PROTOTYPE_, arguments)
def forEach(arr, f, opt_obj):
#DIFF: goog runs this if-statement at load-time
if ARRAY_PROTOTYPE_.forEach:
# TODO assert(arr.length != None)
ARRAY_PROTOTYPE_.forEach.call(arr, f, opt_obj)
else:
arr2 = (arr.split('') if isString(arr) else arr)
for i in range(len(arr)):
if i in arr2:
f.call(opt_obj, arr2[i], i, arr)
def map(arr, f, opt_obj):
#DIFF: goog runs this if-statement at load-time
if ARRAY_PROTOTYPE_.map:
#TODO goog.asserts.assert(arr.length != null);
return ARRAY_PROTOTYPE_.map.call(arr, f, opt_obj)
else:
l = len(arr)
res = Array(l)
arr2 = (arr.split('') if isString(arr) else arr)
for i in range(l):
if i in arr2:
res[i] = f.call(opt_obj, arr2[i], i, arr)
return res
def reduce(arr, f, val, opt_obj):
if arr.reduce:
if opt_obj:
return arr.reduce(bind(f, opt_obj), val)
else:
return arr.reduce(f, val)
rval = val
def f(val, index):
rval = f.call(opt_obj, rval, val, index, arr)
forEach(arr, f)
return rval
def slice(arr, start, opt_end):
#goog.asserts.assert(arr.length != null);
# passing 1 arg to slice is not the same as passing 2 where the second is
# null or undefined (in that case the second argument is treated as 0).
# we could use slice on the arguments object and then use apply instead of
# testing the length
if arguments.length <= 2:
return ARRAY_PROTOTYPE_.slice.call(arr, start)
else:
return ARRAY_PROTOTYPE_.slice.call(arr, start, opt_end)
def splice(arr, index, howMany, var_args):
#goog.asserts.assert(arr.length != null)
return ARRAY_PROTOTYPE_.splice.apply(
arr, slice(arguments, 1))
def insertAt(arr, obj, opt_i):
splice(arr, opt_i, 0, obj)
def filter(arr, f, opt_obj):
if ARRAY_PROTOTYPE_.filter:
#goog.asserts.assert(arr.length != null);
return ARRAY_PROTOTYPE_.filter.call(arr, f, opt_obj)
else:
res = []
resLength = 0
arr2 = arr.split('') if isString(arr) else arr
for i in range(len(arr)):
if i in arr2:
val = arr2[i]
if f.call(opt_obj, val, i, arr):
# Is this better than .push?
resLength += 1
res[resLength] = val
return res
def indexOf(arr, obj, opt_fromIndex):
if ARRAY_PROTOTYPE_.indexOf:
#goog.asserts.assert(arr.length != null);
return ARRAY_PROTOTYPE_.indexOf.call(arr, obj, opt_fromIndex)
else:
fromIndex = (
0
if opt_fromIndex == None else
(
Math.max(0, arr.length + opt_fromIndex)
if opt_fromIndex < 0 else
opt_fromIndex))
if isString(arr):
# Array.prototype.indexOf uses === so only strings should be found.
if not isString(obj) or len(obj) != 1:
return -1
return arr.indexOf(obj, fromIndex)
for i in range(fromIndex, len(arr)):
if (i in arr) and (arr[i] == obj):
return i
return -1
| apache-2.0 | -2,837,759,687,464,881,000 | 25.226027 | 76 | 0.628362 | false | 3.255952 | false | false | false |
ilastik/ilastik-0.5 | ilastik/modules/unsupervised_decomposition/core/unsupervisedMgr.py | 1 | 7290 | from ilastik.core.baseModuleMgr import BaseModuleDataItemMgr, BaseModuleMgr
import numpy
import traceback, sys
from ilastik.core import jobMachine
from PyQt4 import QtCore
import os
import algorithms
from ilastik.core.volume import DataAccessor
from ilastik.core.overlayMgr import OverlayItem
""" Import all algorithm plugins"""
pathext = os.path.dirname(__file__)
try:
for f in os.listdir(os.path.abspath(pathext + '/algorithms')):
module_name, ext = os.path.splitext(f) # Handles no-extension files, etc.
if ext == '.py': # Important, ignore .pyc/othesr files.
module = __import__('ilastik.modules.unsupervised_decomposition.core.algorithms.' + module_name)
except Exception, e:
print e
traceback.print_exc()
pass
for i, c in enumerate(algorithms.unsupervisedDecompositionBase.UnsupervisedDecompositionBase.__subclasses__()):
print "Loaded unsupervised decomposition algorithm:", c.name
#*******************************************************************************
# U n s u p e r v i s e d I t e m M o d u l e M g r *
#*******************************************************************************
class UnsupervisedItemModuleMgr(BaseModuleDataItemMgr):
name = "Unsupervised_Decomposition"
def __init__(self, dataItemImage):
BaseModuleDataItemMgr.__init__(self, dataItemImage)
self.dataItemImage = dataItemImage
self.overlays = []
self.inputData = None
def setInputData(self, data):
self.inputData = data
#*******************************************************************************
# U n s u p e r v i s e d D e c o m p o s i t i o n M o d u l e M g r *
#*******************************************************************************
class UnsupervisedDecompositionModuleMgr(BaseModuleMgr):
name = "Unsupervised_Decomposition"
def __init__(self, dataMgr):
BaseModuleMgr.__init__(self, dataMgr)
self.dataMgr = dataMgr
self.unsupervisedMethod = algorithms.unsupervisedDecompositionPCA.UnsupervisedDecompositionPCA
if self.dataMgr.module["Unsupervised_Decomposition"] is None:
self.dataMgr.module["Unsupervised_Decomposition"] = self
def computeResults(self, inputOverlays):
self.decompThread = UnsupervisedDecompositionThread(self.dataMgr, inputOverlays, self.dataMgr.module["Unsupervised_Decomposition"].unsupervisedMethod)
self.decompThread.start()
return self.decompThread
def finalizeResults(self):
activeItem = self.dataMgr[self.dataMgr._activeImageNumber]
activeItem._dataVol.unsupervised = self.decompThread.result
#create overlays for unsupervised decomposition:
if self.dataMgr[self.dataMgr._activeImageNumber].overlayMgr["Unsupervised/" + self.dataMgr.module["Unsupervised_Decomposition"].unsupervisedMethod.shortname] is None:
data = self.decompThread.result[:,:,:,:,:]
myColor = OverlayItem.qrgb(0, 0, 0)
for o in range(0, data.shape[4]):
data2 = OverlayItem.normalizeForDisplay(data[:,:,:,:,o:(o+1)])
# for some strange reason we have to invert the data before displaying it
ov = OverlayItem(255 - data2, color = myColor, alpha = 1.0, colorTable = None, autoAdd = True, autoVisible = True)
self.dataMgr[self.dataMgr._activeImageNumber].overlayMgr["Unsupervised/" + self.dataMgr.module["Unsupervised_Decomposition"].unsupervisedMethod.shortname + " component %d" % (o+1)] = ov
# remove outdated overlays (like PCA components 5-10 if a decomposition with 4 components is done)
numOverlaysBefore = len(self.dataMgr[self.dataMgr._activeImageNumber].overlayMgr.keys())
finished = False
while finished != True:
o = o + 1
# assumes consecutive numbering
key = "Unsupervised/" + self.dataMgr.module["Unsupervised_Decomposition"].unsupervisedMethod.shortname + " component %d" % (o+1)
self.dataMgr[self.dataMgr._activeImageNumber].overlayMgr.remove(key)
numOverlaysAfter = len(self.dataMgr[self.dataMgr._activeImageNumber].overlayMgr.keys())
if(numOverlaysBefore == numOverlaysAfter):
finished = True
else:
numOverlaysBefore = numOverlaysAfter
else:
self.dataMgr[self.dataMgr._activeImageNumber].overlayMgr["Unsupervised/" + self.dataMgr.module["Unsupervised_Decomposition"].unsupervisedMethod.shortname]._data = DataAccessor(self.decompThread.result)
#*******************************************************************************
# U n s u p e r v i s e d D e c o m p o s i t i o n T h r e a d *
#*******************************************************************************
class UnsupervisedDecompositionThread(QtCore.QThread):
def __init__(self, dataMgr, overlays, unsupervisedMethod = algorithms.unsupervisedDecompositionPCA.UnsupervisedDecompositionPCA, unsupervisedMethodOptions = None):
QtCore.QThread.__init__(self, None)
self.reshapeToFeatures(overlays)
self.dataMgr = dataMgr
self.count = 0
self.numberOfJobs = 1
self.stopped = False
self.unsupervisedMethod = unsupervisedMethod
self.unsupervisedMethodOptions = unsupervisedMethodOptions
self.jobMachine = jobMachine.JobMachine()
self.result = []
def reshapeToFeatures(self, overlays):
# transform to feature matrix
# ...first find out how many columns and rows the feature matrix will have
numFeatures = 0
numPoints = overlays[0].shape[0] * overlays[0].shape[1] * overlays[0].shape[2] * overlays[0].shape[3]
for overlay in overlays:
numFeatures += overlay.shape[4]
# ... then copy the data
features = numpy.zeros((numPoints, numFeatures), dtype=numpy.float)
currFeature = 0
for overlay in overlays:
currData = overlay[:,:,:,:,:]
features[:, currFeature:currFeature+overlay.shape[4]] = currData.reshape(numPoints, (currData.shape[4]))
currFeature += currData.shape[4]
self.features = features
self.origshape = overlays[0].shape
def decompose(self):
# V contains the component spectra/scores, W contains the projected data
unsupervisedMethod = self.unsupervisedMethod()
V, W = unsupervisedMethod.decompose(self.features)
self.result = (W.T).reshape((self.origshape[0], self.origshape[1], self.origshape[2], self.origshape[3], W.shape[0]))
def run(self):
self.dataMgr.featureLock.acquire()
try:
jobs = []
job = jobMachine.IlastikJob(UnsupervisedDecompositionThread.decompose, [self])
jobs.append(job)
self.jobMachine.process(jobs)
self.dataMgr.featureLock.release()
except Exception, e:
print "######### Exception in UnsupervisedThread ##########"
print e
traceback.print_exc(file=sys.stdout)
self.dataMgr.featureLock.release()
| bsd-2-clause | -7,100,022,085,646,028,000 | 48.598639 | 213 | 0.610288 | false | 4.074902 | false | false | false |
Jason-Gew/Python_modules | authenticate.py | 1 | 2754 | #!/usr/bin/env python
#
# authenticate.py module is create by Jason/Ge Wu
# Purpose to fast set up and verify username & password
# for system or software access.
from getpass import getpass # Disable password display on console
import base64 # If necessary, use more advanced encryption such as AES, MD5
encryp_pass = ""
def set_authentication(pass_length, set_timeout):
global encryp_pass
while set_timeout > 0:
select1 = raw_input("\nWould you like to setup a new Password for Login? (Y/n): ")
if select1 == 'Y' or select1 == 'y':
while set_timeout > 0:
buff1 = getpass(prompt = "\nPlease Enter your Password: ")
if not buff1.isspace():
buff2 = getpass(prompt = "Please Enter your Password again: ")
if buff1 == buff2:
if len(buff2) < pass_length:
print "-> Password must have {} characters or more!".format(pass_length)
set_timeout -= 1
print "-> You have {} chance(s)...".format(set_timeout)
continue
else:
encryp_pass = base64.b64encode(buff2)
print "\n ==== Password Setup Success ====\n"
del buff1, buff2
return True
else:
print "-> Password does not match! Please Try Again!\n"
set_timeout -= 1
print "-> You have {} chance(s)...".format(set_timeout)
continue
else:
print "-> Invalid Password!\n"
set_timeout -= 1
print "-> You have {} chance(s)...".format(set_timeout)
continue
elif select1 == 'N' or select1 == 'n':
return False
break
else:
if set_timeout > 0:
print "-> Please enter \'Y\' or \'n\' character only!"
set_timeout -= 1
print "-> You have {} chance(s)...".format(set_timeout)
else:
print "\nTime Out, please re-run the program and Try Carefully!\n"
exit(1)
def console_authenticate(set_timeout):
while set_timeout > 0:
buff = getpass(prompt = "\nPlease enter your Password: ")
encryp_buffer = base64.b64encode(buff)
if encryp_buffer == encryp_pass:
print "\n ==== Authentication Success ==== \n"
del buff, encryp_buffer
return True
elif buff == '':
print "-> Password cannot be empty!\n"
set_timeout -= 1
print "-> You have {} chance(s)...".format(set_timeout)
else:
set_timeout -= 1
if set_timeout > 0:
print "-> Invalid Password, Please Try Again!"
print "-> You still have {} chance(s)...".format(set_timeout)
else:
print "\n ==== Authentication Fail ==== \n"
return False
# For testing purpose...
if __name__ == "__main__":
if set_authentication(6,4):
if console_authenticate(3):
print "Done"
else:
print "Failed"
exit(1)
else:
print "No Authentication!"
exit(0)
| gpl-3.0 | 333,663,628,608,991,300 | 28.94382 | 84 | 0.603849 | false | 3.263033 | false | false | false |
314r/joliebulle | joliebulle/view/base.py | 1 | 1815 | #joliebulle 3.6
#Copyright (C) 2010-2016 Pierre Tavares
#Copyright (C) 2012-2015 joliebulle's authors
#See AUTHORS file.
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 3
#of the License, or (at your option) any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from PyQt5 import QtGui
from base import ImportBase
from view.yeastview import *
def getFermentablesQtModel():
model = QtGui.QStandardItemModel()
for f in ImportBase().listeFermentables:
item = QtGui.QStandardItem(f.name)
item.setData(f, view.constants.MODEL_DATA_ROLE)
model.appendRow(item)
return model
def getHopsQtModel():
model = QtGui.QStandardItemModel()
for h in ImportBase().listeHops :
item = QtGui.QStandardItem(h.name)
item.setData(h, view.constants.MODEL_DATA_ROLE)
model.appendRow(item)
return model
def getMiscsQtModel():
model = QtGui.QStandardItemModel()
for m in ImportBase().listeMiscs:
item = QtGui.QStandardItem(m.name)
item.setData(m, view.constants.MODEL_DATA_ROLE)
model.appendRow(item)
return model
def getYeastsQtModel():
model = QtGui.QStandardItemModel()
for y in ImportBase().listeYeasts:
item = QtGui.QStandardItem(YeastView(y).yeastDetailDisplay())
item.setData(y, view.constants.MODEL_DATA_ROLE)
model.appendRow(item)
return model | gpl-3.0 | 553,826,155,992,883,500 | 32.018182 | 76 | 0.770799 | false | 3.264388 | false | false | false |
shawncaojob/LC | QUESTIONS/44_wildcard_matching.py | 1 | 1859 | # 44. Wildcard Matching My Submissions QuestionEditorial Solution
# Total Accepted: 59032 Total Submissions: 333961 Difficulty: Hard
# Implement wildcard pattern matching with support for '?' and '*'.
#
# '?' Matches any single character.
# '*' Matches any sequence of characters (including the empty sequence).
#
# The matching should cover the entire input string (not partial).
#
# The function prototype should be:
# bool isMatch(const char *s, const char *p)
#
# Some examples:
# isMatch("aa","a") false
# isMatch("aa","aa") true
# isMatch("aaa","aa") false
# isMatch("aa", "*") true
# isMatch("aa", "a*") true
# isMatch("ab", "?*") true
# isMatch("aab", "c*a*b") false
class Solution(object):
def isMatch(self, s, p):
"""
:type s: str
:type p: str
:rtype: bool
"""
print(s, p)
m, n = len(s), len(p)
dp = [ [ False for y in xrange(n + 1) ] for x in xrange(m + 1) ]
dp[0][0] = True
for j in xrange(1, n + 1):
if p[j-1] == "*" and dp[0][j-1]:
dp[0][j] = True
for i in xrange(1, m + 1):
for j in xrange(1, n + 1):
if (s[i-1] == p[j-1] or p[j-1] == "?") and dp[i-1][j-1]: #Cur char matching
dp[i][j] = True
if p[j-1] == "*":
if dp[i][j-1] or dp[i-1][j]: # Matching 0 or more
dp[i][j] = True
for row in dp:
print(row)
return dp[-1][-1]
if __name__ == "__main__":
print(Solution().isMatch("aa","a"))
print(Solution().isMatch("aa","aa"))
print(Solution().isMatch("aaa","aa"))
print(Solution().isMatch("aa", "*"))
print(Solution().isMatch("aa", "a*"))
print(Solution().isMatch("ab", "?*"))
print(Solution().isMatch("aab", "c*a*b"))
| gpl-3.0 | -199,543,660,837,520,030 | 30.508475 | 94 | 0.507262 | false | 3.150847 | false | false | false |
caioariede/pyq | sizzle/match.py | 1 | 3323 | from .selector import Selector
class MatchEngine(object):
pseudo_fns = {}
selector_class = Selector
def __init__(self):
self.register_pseudo('not', self.pseudo_not)
self.register_pseudo('has', self.pseudo_has)
def register_pseudo(self, name, fn):
self.pseudo_fns[name] = fn
@staticmethod
def pseudo_not(matcher, node, value):
return not matcher.match_node(matcher.parse_selector(value)[0], node)
@staticmethod
def pseudo_has(matcher, node, value):
for node, body in matcher.iter_data([node]):
if body:
return any(
matcher.match_data(matcher.parse_selector(value)[0], body))
def parse_selector(self, selector):
return self.selector_class.parse(selector)
def match(self, selector, data):
selectors = self.parse_selector(selector)
nodeids = {}
for selector in selectors:
for node in self.match_data(selector, data):
nodeid = id(node)
if nodeid not in nodeids:
nodeids[nodeid] = None
yield node
def match_data(self, selector, data):
for node, body in self._iter_data(data):
match = self.match_node(selector, node)
if match:
next_selector = selector.next_selector
if next_selector:
if body:
for node in self.match_data(next_selector, body):
yield node
else:
yield node
if body and not selector.combinator == self.selector_class.CHILD:
for node in self.match_data(selector, body):
yield node
def match_node(self, selector, node):
match = all(self.match_rules(selector, node))
if match and selector.attrs:
match &= all(self.match_attrs(selector, node))
if match and selector.pseudos:
match &= all(self.match_pseudos(selector, node))
return match
def match_rules(self, selector, node):
if selector.typ:
yield self.match_type(selector.typ, node)
if selector.id_:
yield self.match_id(selector.id_, node)
def match_attrs(self, selector, node):
for a in selector.attrs:
lft, op, rgt = a
yield self.match_attr(lft, op, rgt, node)
def match_pseudos(self, selector, d):
for p in selector.pseudos:
name, value = p
if name not in self.pseudo_fns:
raise Exception('Selector not implemented: {}'.format(name))
yield self.pseudo_fns[name](self, d, value)
def _iter_data(self, data):
for tupl in self.iter_data(data):
if len(tupl) != 2:
raise Exception(
'The iter_data method must yield pair tuples containing '
'the node and its body (empty if not available)')
yield tupl
def match_type(self, typ, node):
raise NotImplementedError
def match_id(self, id_, node):
raise NotImplementedError
def match_attr(self, lft, op, rgt, no):
raise NotImplementedError
def iter_data(self, data):
raise NotImplementedError
| mit | 5,607,412,709,546,960,000 | 30.951923 | 79 | 0.563948 | false | 4.227735 | false | false | false |
beyoungwoo/C_glibc_Sample | _Algorithm/ProjectEuler_python/euler_42.py | 1 | 2038 | #!/usr/bin/python -Wall
# -*- coding: utf-8 -*-
"""
<div id="content">
<div style="text-align:center;" class="print"><img src="images/print_page_logo.png" alt="projecteuler.net" style="border:none;" /></div>
<h2>Coded triangle numbers</h2><div id="problem_info" class="info"><h3>Problem 42</h3><span>Published on Friday, 25th April 2003, 06:00 pm; Solved by 46003; Difficulty rating: 5%</span></div>
<div class="problem_content" role="problem">
<p>The <i>n</i><sup>th</sup> term of the sequence of triangle numbers is given by, <i>t<sub>n</sub></i> = ½<i>n</i>(<i>n</i>+1); so the first ten triangle numbers are:</p>
<p style="text-align:center;">1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...</p>
<p>By converting each letter in a word to a number corresponding to its alphabetical position and adding these values we form a word value. For example, the word value for SKY is 19 + 11 + 25 = 55 = <i>t</i><sub>10</sub>. If the word value is a triangle number then we shall call the word a triangle word.</p>
<p>Using <a href="project/resources/p042_words.txt">words.txt</a> (right click and 'Save Link/Target As...'), a 16K text file containing nearly two-thousand common English words, how many are triangle words?</p>
</div><br />
<br /></div>
"""
import re
tri=[ ]
for i in range (1, 50):
res = (i*(i+1)/2)
tri.append(res)
def is_triangle(num):
global tri
tri_len = len(tri)
for i in range(0, tri_len):
if (num == tri[i]):
return True
elif (num < tri[i]):
return False
return False
count = 0
fread = open("p42words.txt", "r")
for line in fread:
text = re.split("\"", line)
total_text = list(text)
len_t = len(total_text)
for i in range(0, len_t):
if total_text[i].startswith(','):
continue
ret = [ord(c) for c in total_text[i]]
len_ret = len(ret)
if (is_triangle(sum(ret) - (64 * len_ret)) == True):
count += 1
print total_text[i], sum(ret) - (64 * len_ret)
print "total=", count
#a = 'hi'
#print [ord(c) for c in a]
| gpl-3.0 | -5,037,118,179,064,823,000 | 37.45283 | 309 | 0.626104 | false | 2.903134 | false | false | false |
Squishymedia/feedingdb | src/feeddb/feed/migrations/0058_muscleowl_emg_sono.py | 1 | 40048 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'SonoSensor.muscle'
db.add_column(u'feed_sonosensor', 'muscle',
self.gf('django.db.models.fields.related.ForeignKey')(to=orm['feed.MuscleOwl'], null=True),
keep_default=False)
# Adding field 'EmgSensor.muscle'
db.add_column(u'feed_emgsensor', 'muscle',
self.gf('django.db.models.fields.related.ForeignKey')(to=orm['feed.MuscleOwl'], null=True),
keep_default=False)
def backwards(self, orm):
# Deleting field 'SonoSensor.muscle'
db.delete_column(u'feed_sonosensor', 'muscle_id')
# Deleting field 'EmgSensor.muscle'
db.delete_column(u'feed_emgsensor', 'muscle_id')
models = {
u'auth.group': {
'Meta': {'object_name': 'Group'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
u'auth.permission': {
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
u'auth.user': {
'Meta': {'object_name': 'User'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
u'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
u'feed.ageunit': {
'Meta': {'ordering': "['label']", 'object_name': 'AgeUnit'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'ageunit_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.anatomicallocation': {
'Meta': {'ordering': "['label']", 'object_name': 'AnatomicalLocation'},
'category': ('django.db.models.fields.IntegerField', [], {}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'anatomicallocation_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.anteriorposterioraxis': {
'Meta': {'object_name': 'AnteriorPosteriorAxis'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'anteriorposterioraxis_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.behavior': {
'Meta': {'ordering': "['label']", 'object_name': 'Behavior'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'behavior_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.behaviorowl': {
'Meta': {'object_name': 'BehaviorOwl'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'obo_definition': ('django.db.models.fields.TextField', [], {}),
'rdfs_comment': ('django.db.models.fields.TextField', [], {}),
'rdfs_subClassOf_ancestors': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['feed.BehaviorOwl']", 'symmetrical': 'False'}),
'uri': ('django.db.models.fields.CharField', [], {'max_length': '1500'})
},
u'feed.channel': {
'Meta': {'object_name': 'Channel'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'channel_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'rate': ('django.db.models.fields.IntegerField', [], {}),
'setup': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Setup']"}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.channellineup': {
'Meta': {'ordering': "['position']", 'object_name': 'ChannelLineup'},
'channel': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Channel']", 'null': 'True', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'channellineup_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'position': ('django.db.models.fields.IntegerField', [], {}),
'session': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Session']"}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.depthaxis': {
'Meta': {'object_name': 'DepthAxis'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'depthaxis_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.developmentstage': {
'Meta': {'ordering': "['label']", 'object_name': 'DevelopmentStage'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'developmentstage_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.dorsalventralaxis': {
'Meta': {'object_name': 'DorsalVentralAxis'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'dorsalventralaxis_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.electrodetype': {
'Meta': {'ordering': "['label']", 'object_name': 'ElectrodeType'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'electrodetype_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.emgchannel': {
'Meta': {'object_name': 'EmgChannel', '_ormbases': [u'feed.Channel']},
u'channel_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Channel']", 'unique': 'True', 'primary_key': 'True'}),
'emg_amplification': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'emg_filtering': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Emgfiltering']"}),
'sensor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.EmgSensor']"}),
'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Unit']"})
},
u'feed.emgfiltering': {
'Meta': {'ordering': "['label']", 'object_name': 'Emgfiltering'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'emgfiltering_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.emgsensor': {
'Meta': {'ordering': "['id']", 'object_name': 'EmgSensor', '_ormbases': [u'feed.Sensor']},
'axisdepth': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.DepthAxis']", 'null': 'True', 'blank': 'True'}),
'electrode_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.ElectrodeType']", 'null': 'True', 'blank': 'True'}),
'location_controlled': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.AnatomicalLocation']"}),
'muscle': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.MuscleOwl']", 'null': 'True'}),
u'sensor_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Sensor']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.emgsetup': {
'Meta': {'object_name': 'EmgSetup', '_ormbases': [u'feed.Setup']},
'preamplifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
u'setup_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Setup']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.eventchannel': {
'Meta': {'object_name': 'EventChannel', '_ormbases': [u'feed.Channel']},
u'channel_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Channel']", 'unique': 'True', 'primary_key': 'True'}),
'unit': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
},
u'feed.eventsetup': {
'Meta': {'object_name': 'EventSetup', '_ormbases': [u'feed.Setup']},
u'setup_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Setup']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.experiment': {
'Meta': {'object_name': 'Experiment'},
'accession': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'bookkeeping': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'experiment_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'end': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'impl_notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'start': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'study': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Study']"}),
'subj_age': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '19', 'decimal_places': '5', 'blank': 'True'}),
'subj_ageunit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.AgeUnit']", 'null': 'True', 'blank': 'True'}),
'subj_devstage': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.DevelopmentStage']"}),
'subj_tooth': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'subj_weight': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '19', 'decimal_places': '5', 'blank': 'True'}),
'subject': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Subject']"}),
'subject_notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.forcechannel': {
'Meta': {'object_name': 'ForceChannel', '_ormbases': [u'feed.Channel']},
u'channel_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Channel']", 'unique': 'True', 'primary_key': 'True'}),
'sensor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.ForceSensor']"}),
'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Unit']", 'null': 'True'})
},
u'feed.forcesensor': {
'Meta': {'object_name': 'ForceSensor', '_ormbases': [u'feed.Sensor']},
u'sensor_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Sensor']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.forcesetup': {
'Meta': {'object_name': 'ForceSetup', '_ormbases': [u'feed.Setup']},
u'setup_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Setup']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.illustration': {
'Meta': {'object_name': 'Illustration'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'illustration_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'experiment': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Experiment']", 'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'picture': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'setup': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Setup']", 'null': 'True', 'blank': 'True'}),
'subject': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Subject']", 'null': 'True', 'blank': 'True'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.kinematicschannel': {
'Meta': {'object_name': 'KinematicsChannel', '_ormbases': [u'feed.Channel']},
u'channel_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Channel']", 'unique': 'True', 'primary_key': 'True'}),
'sensor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.KinematicsSensor']"}),
'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Unit']", 'null': 'True'})
},
u'feed.kinematicssensor': {
'Meta': {'object_name': 'KinematicsSensor', '_ormbases': [u'feed.Sensor']},
u'sensor_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Sensor']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.kinematicssetup': {
'Meta': {'object_name': 'KinematicsSetup', '_ormbases': [u'feed.Setup']},
u'setup_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Setup']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.mediallateralaxis': {
'Meta': {'object_name': 'MedialLateralAxis'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'mediallateralaxis_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.muscleowl': {
'Meta': {'object_name': 'MuscleOwl'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'obo_definition': ('django.db.models.fields.TextField', [], {}),
'rdfs_comment': ('django.db.models.fields.TextField', [], {}),
'rdfs_subClassOf_ancestors': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['feed.MuscleOwl']", 'symmetrical': 'False'}),
'uri': ('django.db.models.fields.CharField', [], {'max_length': '1500'})
},
u'feed.pressurechannel': {
'Meta': {'object_name': 'PressureChannel', '_ormbases': [u'feed.Channel']},
u'channel_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Channel']", 'unique': 'True', 'primary_key': 'True'}),
'sensor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.PressureSensor']"}),
'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Unit']", 'null': 'True'})
},
u'feed.pressuresensor': {
'Meta': {'object_name': 'PressureSensor', '_ormbases': [u'feed.Sensor']},
u'sensor_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Sensor']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.pressuresetup': {
'Meta': {'object_name': 'PressureSetup', '_ormbases': [u'feed.Setup']},
u'setup_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Setup']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.proximaldistalaxis': {
'Meta': {'object_name': 'ProximalDistalAxis'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'proximaldistalaxis_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.restraint': {
'Meta': {'ordering': "['label']", 'object_name': 'Restraint'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'restraint_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.sensor': {
'Meta': {'object_name': 'Sensor'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sensor_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'loc_ap': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.AnteriorPosteriorAxis']", 'null': 'True', 'blank': 'True'}),
'loc_dv': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.DorsalVentralAxis']", 'null': 'True', 'blank': 'True'}),
'loc_ml': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.MedialLateralAxis']", 'null': 'True', 'blank': 'True'}),
'loc_pd': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.ProximalDistalAxis']", 'null': 'True', 'blank': 'True'}),
'loc_side': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Side']"}),
'location_freetext': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'setup': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Setup']"}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.session': {
'Meta': {'ordering': "['position']", 'object_name': 'Session'},
'accession': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'bookkeeping': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'channels': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['feed.Channel']", 'through': u"orm['feed.ChannelLineup']", 'symmetrical': 'False'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'session_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'end': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'experiment': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Experiment']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'position': ('django.db.models.fields.IntegerField', [], {}),
'start': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'subj_anesthesia_sedation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'subj_notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'subj_restraint': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Restraint']"}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.setup': {
'Meta': {'object_name': 'Setup'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'setup_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'experiment': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Experiment']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'sampling_rate': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'technique': ('django.db.models.fields.IntegerField', [], {}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.side': {
'Meta': {'ordering': "['label']", 'object_name': 'Side'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'side_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.sonochannel': {
'Meta': {'object_name': 'SonoChannel', '_ormbases': [u'feed.Channel']},
u'channel_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Channel']", 'unique': 'True', 'primary_key': 'True'}),
'crystal1': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crystals1_related'", 'to': u"orm['feed.SonoSensor']"}),
'crystal2': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'crystals2_related'", 'to': u"orm['feed.SonoSensor']"}),
'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Unit']"})
},
u'feed.sonosensor': {
'Meta': {'object_name': 'SonoSensor', '_ormbases': [u'feed.Sensor']},
'axisdepth': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.DepthAxis']", 'null': 'True', 'blank': 'True'}),
'location_controlled': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.AnatomicalLocation']"}),
'muscle': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.MuscleOwl']", 'null': 'True'}),
u'sensor_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Sensor']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.sonosetup': {
'Meta': {'object_name': 'SonoSetup', '_ormbases': [u'feed.Setup']},
u'setup_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Setup']", 'unique': 'True', 'primary_key': 'True'}),
'sonomicrometer': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
},
u'feed.strainchannel': {
'Meta': {'object_name': 'StrainChannel', '_ormbases': [u'feed.Channel']},
u'channel_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Channel']", 'unique': 'True', 'primary_key': 'True'}),
'sensor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.StrainSensor']"}),
'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Unit']", 'null': 'True'})
},
u'feed.strainsensor': {
'Meta': {'object_name': 'StrainSensor', '_ormbases': [u'feed.Sensor']},
u'sensor_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Sensor']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.strainsetup': {
'Meta': {'object_name': 'StrainSetup', '_ormbases': [u'feed.Setup']},
u'setup_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['feed.Setup']", 'unique': 'True', 'primary_key': 'True'})
},
u'feed.study': {
'Meta': {'ordering': "['title']", 'object_name': 'Study'},
'accession': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'approval_secured': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'bookkeeping': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'study_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {}),
'end': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'funding_agency': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'resources': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'start': ('django.db.models.fields.DateTimeField', [], {}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.studyprivate': {
'Meta': {'object_name': 'StudyPrivate'},
'approval': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'studyprivate_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'funding': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'lab': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'organization': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'pi': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'study': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Study']"}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.subject': {
'Meta': {'object_name': 'Subject'},
'breed': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'subject_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'sex': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'}),
'source': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'study': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Study']"}),
'taxon': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Taxon']"}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.taxon': {
'Meta': {'ordering': "['genus']", 'object_name': 'Taxon'},
'common_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'taxon_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'genus': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'species': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
},
u'feed.trial': {
'Meta': {'object_name': 'Trial'},
'accession': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'behavior_notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'behavior_primary': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Behavior']"}),
'behavior_secondary': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'bookkeeping': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'trial_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
'data_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'end': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'estimated_duration': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
'food_property': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'food_size': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'food_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'position': ('django.db.models.fields.IntegerField', [], {}),
'session': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['feed.Session']"}),
'start': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'subj_notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'subj_treatment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {}),
'waveform_picture': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'})
},
u'feed.unit': {
'Meta': {'ordering': "['technique', 'label']", 'object_name': 'Unit'},
'created_at': ('django.db.models.fields.DateTimeField', [], {}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'unit_related'", 'null': 'True', 'to': u"orm['auth.User']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'technique': ('django.db.models.fields.IntegerField', [], {}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {})
}
}
complete_apps = ['feed'] | gpl-3.0 | -4,522,338,344,012,879,000 | 81.40535 | 195 | 0.546519 | false | 3.521632 | false | false | false |
alphagov/notifications-api | migrations/versions/0321_drop_postage_constraints.py | 1 | 2423 | """
Revision ID: 0321_drop_postage_constraints
Revises: 0320_optimise_notifications
Create Date: 2020-06-08 11:48:53.315768
"""
import os
from alembic import op
revision = '0321_drop_postage_constraints'
down_revision = '0320_optimise_notifications'
environment = os.environ['NOTIFY_ENVIRONMENT']
def upgrade():
if environment not in ["live", "production"]:
op.execute('ALTER TABLE notifications DROP CONSTRAINT IF EXISTS chk_notifications_postage_null')
op.execute('ALTER TABLE notification_history DROP CONSTRAINT IF EXISTS chk_notification_history_postage_null')
op.execute('ALTER TABLE templates DROP CONSTRAINT IF EXISTS chk_templates_postage')
op.execute('ALTER TABLE templates_history DROP CONSTRAINT IF EXISTS chk_templates_history_postage')
def downgrade():
# The downgrade command must not be run in production - it will lock the tables for a long time
if environment not in ["live", "production"]:
op.execute("""
ALTER TABLE notifications ADD CONSTRAINT "chk_notifications_postage_null"
CHECK (
CASE WHEN notification_type = 'letter' THEN
postage is not null and postage in ('first', 'second')
ELSE
postage is null
END
)
""")
op.execute("""
ALTER TABLE notification_history ADD CONSTRAINT "chk_notification_history_postage_null"
CHECK (
CASE WHEN notification_type = 'letter' THEN
postage is not null and postage in ('first', 'second')
ELSE
postage is null
END
)
""")
op.execute("""
ALTER TABLE templates ADD CONSTRAINT "chk_templates_postage"
CHECK (
CASE WHEN template_type = 'letter' THEN
postage is not null and postage in ('first', 'second')
ELSE
postage is null
END
)
""")
op.execute("""
ALTER TABLE templates_history ADD CONSTRAINT "chk_templates_history_postage"
CHECK (
CASE WHEN template_type = 'letter' THEN
postage is not null and postage in ('first', 'second')
ELSE
postage is null
END
)
""")
| mit | 3,433,414,074,737,906,700 | 34.115942 | 118 | 0.574907 | false | 4.723197 | false | false | false |
jayc0b0/Projects | Python/Security/caesarCypher.py | 1 | 1545 | # Jacob Orner (jayc0b0)
# Caesar Cypher script
def main():
# Declare variables and take input
global alphabet
alphabet = ['a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p', 'q', 'r',
's', 't', 'u', 'v', 'w', 'x',
'y', 'z']
global messageArray
messageArray = []
choice = int(input("Enter 1 to encode. 2 to decode.\n>> "))
if choice == 1:
encode()
elif choice == 2:
pass # Implement decode() and add here
else:
print "Invalid choice"
main()
def encode():
message = raw_input("Enter a string to encode (letters only):\n>> ")
cypherShift = int(input("Enter an integer from 1-25 for the shift:\n>> "))
# Verify input
if not message.isalpha():
print "Please enter only letters into your message."
main()
else:
pass
if cypherShift < 1 or cypherShift > 25:
print "Invalid number. Please enter a valid shift value."
main()
else:
pass
# Break string into an array of letters and shift
messageArray = list(message)
for letter in messageArray:
if alphabet.index(letter) + cypherShift < 25:
messageArray[letter] = alphabet[alphabet.index(letter) + cypherShift]
else:
letter = alphabet[(alphabet.index(letter) + cypherShift) % 25]
# Output cyphered text
message = " ".join(messageArray)
print "Your cyphered message is:"
print message
main()
| mit | 5,803,349,331,164,338,000 | 26.105263 | 81 | 0.552104 | false | 3.669834 | false | false | false |
chrispitzer/toucan-sam | toucansam/core/models.py | 1 | 5910 | import re
from urlparse import urlparse, parse_qs
from datetime import timedelta
from django.core.urlresolvers import reverse
from django.core.validators import MinValueValidator, MaxValueValidator
from django.db import models
from django.utils.safestring import mark_safe
from durationfield.db.models.fields.duration import DurationField
class ActiveSongsManager(models.Manager):
def get_query_set(self):
qs = super(ActiveSongsManager, self).get_query_set()
qs = qs.filter(active=True)
return qs
class Song(models.Model):
title = models.CharField(max_length=255, blank=True)
short_title = models.CharField(max_length=30, blank=True)
artist = models.CharField(max_length=255, blank=True)
key = models.CharField(max_length=25, blank=True)
singers = models.CharField(max_length=255, blank=True)
cheat_sheet = models.CharField(max_length=255, blank=True)
lyrics_with_chords = models.TextField(blank=True)
video_link = models.URLField(max_length=255, blank=True)
run_time = DurationField(default=2*60*1000000) # default: two minutes
difficulty = models.IntegerField(default=3,
choices=(
(1, 'Real Easy'),
(2, 'Easy'),
(3, 'Normal'),
(4, 'Hard'),
(5, 'Real Hard'),
),
validators=[
MinValueValidator(1),
MaxValueValidator(5),
])
proposed = models.BooleanField(default=True)
active = models.BooleanField(default=True)
objects = models.Manager()
active_objects = ActiveSongsManager()
def save(self, *args, **kwargs):
if not self.short_title and self.title:
self.short_title = self.title[-30:]
super(Song, self).save(*args, **kwargs)
@property
def milliseconds(self):
return self.run_time.total_seconds() * 1000
@property
def column_width(self):
return reduce(lambda a, b: max(a, len(b)), re.split("[\r\n]+", self.lyrics_with_chords), 0)
@property
def lyrics_formatted(self):
"""
Assumes that lyrics with chords interleaves lines with chords and lines with lyrics
"""
def tokenize(s):
return re.split(r'(\w+)', s)
def chordify(chord, cssclass="chord"):
return '<span class="{}">{}</span>'.format(cssclass, chord)
def lineify(line):
return u"<p>{}</p>".format(line)
output = []
chord_line = None
chord_regex = re.compile(r"^(\W*[ABCDEFG]b?(m|min|maj|maj)?\d*\W*)+$", flags=re.IGNORECASE)
for line in re.split("[\r\n]+", self.lyrics_with_chords):
line = line.rstrip()
if chord_regex.match(line):
if chord_line:
formatted_line = ""
for chord in tokenize(chord_line):
if re.match("\W", chord):
formatted_line += chord
else:
formatted_line += chordify(chord, cssclass="chord inline")
output.append(lineify(formatted_line))
chord_line = line
continue
if chord_line:
formatted_line = ""
#make sure line is as long as chords
line = line.ljust(len(chord_line))
#replace spaces at the beginning & end of the line with -- but not the middle!
frontspaces, line, endspaces = re.split(r"(\S[\s\S]*\S|\S)", line)
space = ' '
line = [space]*len(frontspaces) + list(line) + [space]*len(endspaces)
chords = tokenize(chord_line)
for chord in chords:
l = len(chord)
if not (chord+" ").isspace():
formatted_line += chordify(chord)
formatted_line += "".join(line[:l])
line = line[l:]
line = formatted_line + "".join(line)
chord_line = None
output.append(lineify(line))
return mark_safe(u"\n".join(output)) # todo: sanitize input
def has_no_lyrics(self):
return len(self.lyrics_with_chords) < 50
def youtube_video_id(self):
try:
parsed = urlparse(self.video_link)
if parsed.netloc.endswith('youtube.com'):
query = parse_qs(parsed.query)
return query.get('v', [None])[0]
except:
return None
def __unicode__(self):
return self.title
def get_absolute_url(self):
return reverse('song', args=[self.id])
class Meta:
ordering = ["title"]
class Gig(models.Model):
name = models.CharField(max_length=255)
date = models.DateTimeField(null=True)
def __unicode__(self):
return self.name or "undefined"
class SetItem(models.Model):
song = models.ForeignKey(Song, related_name='setitems')
set_list = models.ForeignKey("SetList", related_name='setitems')
order = models.IntegerField()
class SetList(models.Model):
gig = models.ForeignKey(Gig)
songs = models.ManyToManyField(Song, related_name="set_lists", through=SetItem)
show_proposed = models.BooleanField(default=False)
@property
def name(self):
return self.gig.name
@property
def ordered_songs(self):
return self.songs.order_by('setitems__order')
@property
def run_time(self):
microseconds = int(self.songs.aggregate(s=models.Sum('run_time'))['s'])
return timedelta(microseconds=microseconds)
def __unicode__(self):
return self.name or "undefined" | gpl-2.0 | 8,150,954,551,318,501,000 | 34.39521 | 101 | 0.558545 | false | 3.998647 | false | false | false |
yangqian/plugin.video.pandatv | addon.py | 1 | 4342 | # -*- coding: utf-8 -*-
# Module: default
# Author: Yangqian
# Created on: 25.12.2015
# License: GPL v.3 https://www.gnu.org/copyleft/gpl.html
# Largely following the example at
# https://github.com/romanvm/plugin.video.example/blob/master/main.py
import xbmc,xbmcgui,urllib2,re,xbmcplugin
from BeautifulSoup import BeautifulSoup
from urlparse import parse_qsl
import sys
import json
# Get the plugin url in plugin:// notation.
_url=sys.argv[0]
# Get the plugin handle as an integer number.
_handle=int(sys.argv[1])
def list_categories():
f=urllib2.urlopen('http://www.panda.tv/cate')
rr=BeautifulSoup(f.read())
catel=rr.findAll('li',{'class':'category-list-item'})
rrr=[(x.a['class'], x.a['title']) for x in catel]
listing=[]
for classname,text in rrr:
img=rr.find('img',{'alt':text})['src']
list_item=xbmcgui.ListItem(label=text,thumbnailImage=img)
list_item.setProperty('fanart_image',img)
url='{0}?action=listing&category={1}'.format(_url,classname)
is_folder=True
listing.append((url,list_item,is_folder))
xbmcplugin.addDirectoryItems(_handle,listing,len(listing))
#xbmcplugin.addSortMethod(_handle, xbmcplugin.SORT_METHOD_LABEL_IGNORE_THE)
# Finish creating a virtual folder.
xbmcplugin.endOfDirectory(_handle)
def list_videos(category):
f=urllib2.urlopen('http://www.panda.tv/cate/'+category)
rr=BeautifulSoup(f.read())
videol=rr.findAll('a',{'class':'video-list-item-inner'})
rrr=[(x['href'][1:],x.img,x.findNextSibling('div',{'class':'live-info'})) for x in videol]
listing=[]
for roomid,image,liveinfo in rrr:
img=image['src']
roomname=image['alt']
nickname=liveinfo.find('span',{'class':'nick-name'}).text
peoplenumber=liveinfo.find('span',{'class':'people-number'}).text
combinedname=u'{0}:{1}:{2}'.format(nickname,roomname,peoplenumber)
list_item=xbmcgui.ListItem(label=combinedname,thumbnailImage=img)
list_item.setProperty('fanart_image',img)
url='{0}?action=play&video={1}'.format(_url,roomid)
is_folder=False
listing.append((url,list_item,is_folder))
xbmcplugin.addDirectoryItems(_handle,listing,len(listing))
#xbmcplugin.addSortMethod(_handle, xbmcplugin.SORT_METHOD_LABEL_IGNORE_THE)
# Finish creating a virtual folder.
xbmcplugin.endOfDirectory(_handle)
def play_video(roomid):
"""
Play a video by the provided path.
:param path: str
:return: None
"""
f=urllib2.urlopen('http://www.panda.tv/api_room?roomid='+roomid)
r=f.read()
ss=json.loads(r)
hostname=ss['data']['hostinfo']['name']
roomname=ss['data']['roominfo']['name']
#s=re.search('''"room_key":"(.*?)"''',r).group(1)
s=ss['data']['videoinfo']['room_key']
img=ss['data']['hostinfo']['avatar']
combinedname=u'{0}:{1}'.format(hostname,roomname)
# Create a playable item with a path to play.
path='http://pl3.live.panda.tv/live_panda/{0}.flv'.format(s)
play_item = xbmcgui.ListItem(path=path,thumbnailImage=img)
play_item.setInfo(type="Video",infoLabels={"Title":combinedname})
# Pass the item to the Kodi player.
xbmcplugin.setResolvedUrl(_handle, True, listitem=play_item)
# directly play the item.
xbmc.Player().play(path, play_item)
def router(paramstring):
"""
Router function that calls other functions
depending on the provided paramstring
:param paramstring:
:return:
"""
# Parse a URL-encoded paramstring to the dictionary of
# {<parameter>: <value>} elements
params = dict(parse_qsl(paramstring))
# Check the parameters passed to the plugin
if params:
if params['action'] == 'listing':
# Display the list of videos in a provided category.
list_videos(params['category'])
elif params['action'] == 'play':
# Play a video from a provided URL.
play_video(params['video'])
else:
# If the plugin is called from Kodi UI without any parameters,
# display the list of video categories
list_categories()
if __name__ == '__main__':
# Call the router function and pass the plugin call parameters to it.
# We use string slicing to trim the leading '?' from the plugin call paramstring
router(sys.argv[2][1:])
| lgpl-3.0 | -501,227,777,246,295,700 | 37.070175 | 94 | 0.659908 | false | 3.438986 | false | false | false |
tensorflow/tensor2tensor | tensor2tensor/utils/rouge_test.py | 1 | 4407 | # coding=utf-8
# Copyright 2021 The Tensor2Tensor 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.
"""Tests for Rouge metric."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensor2tensor.utils import rouge
import tensorflow.compat.v1 as tf
class TestRouge2Metric(tf.test.TestCase):
"""Tests the rouge-2 metric."""
def testRouge2Identical(self):
hypotheses = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
references = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
self.assertAllClose(rouge.rouge_n(hypotheses, references), 1.0, atol=1e-03)
def testRouge2Disjoint(self):
hypotheses = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
references = np.array([[8, 9, 10, 11, 12, 13, 14, 15, 16, 17],
[9, 10, 11, 12, 13, 14, 15, 16, 17, 0]])
self.assertEqual(rouge.rouge_n(hypotheses, references), 0.0)
def testRouge2PartialOverlap(self):
hypotheses = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
references = np.array([[1, 9, 2, 3, 4, 5, 1, 10, 6, 7],
[1, 9, 2, 3, 4, 5, 1, 10, 6, 7]])
self.assertAllClose(rouge.rouge_n(hypotheses, references), 0.53, atol=1e-03)
class TestRougeLMetric(tf.test.TestCase):
"""Tests the rouge-l metric."""
def testRougeLIdentical(self):
hypotheses = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
references = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
self.assertAllClose(
rouge.rouge_l_sentence_level(hypotheses, references), 1.0, atol=1e-03)
def testRougeLDisjoint(self):
hypotheses = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
references = np.array([[8, 9, 10, 11, 12, 13, 14, 15, 16, 17],
[9, 10, 11, 12, 13, 14, 15, 16, 17, 0]])
self.assertEqual(rouge.rouge_l_sentence_level(hypotheses, references), 0.0)
def testRougeLPartialOverlap(self):
hypotheses = np.array([[1, 2, 3, 4, 5, 1, 6, 7, 0],
[1, 2, 3, 4, 5, 1, 6, 8, 7]])
references = np.array([[1, 9, 2, 3, 4, 5, 1, 10, 6, 7],
[1, 9, 2, 3, 4, 5, 1, 10, 6, 7]])
self.assertAllClose(
rouge.rouge_l_sentence_level(hypotheses, references), 0.837, atol=1e-03)
class TestRougeMetricsE2E(tf.test.TestCase):
"""Tests the rouge metrics end-to-end."""
def testRouge2MetricE2E(self):
vocab_size = 4
batch_size = 12
seq_length = 12
predictions = tf.one_hot(
np.random.randint(vocab_size, size=(batch_size, seq_length, 1, 1)),
depth=4,
dtype=tf.float32)
targets = np.random.randint(4, size=(12, 12, 1, 1))
with self.test_session() as session:
scores, _ = rouge.rouge_2_fscore(predictions,
tf.constant(targets, dtype=tf.int32))
a = tf.reduce_mean(scores)
session.run(tf.global_variables_initializer())
session.run(a)
def testRougeLMetricE2E(self):
vocab_size = 4
batch_size = 12
seq_length = 12
predictions = tf.one_hot(
np.random.randint(vocab_size, size=(batch_size, seq_length, 1, 1)),
depth=4,
dtype=tf.float32)
targets = np.random.randint(4, size=(12, 12, 1, 1))
with self.test_session() as session:
scores, _ = rouge.rouge_l_fscore(
predictions,
tf.constant(targets, dtype=tf.int32))
a = tf.reduce_mean(scores)
session.run(tf.global_variables_initializer())
session.run(a)
if __name__ == "__main__":
tf.test.main()
| apache-2.0 | -804,987,988,696,853,200 | 36.666667 | 80 | 0.570002 | false | 3.014364 | true | false | false |
tangentlabs/django-fancypages | fancypages/compat.py | 1 | 1314 | # -*- coding: utf-8 -*-
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
_user_model = None
try:
from django.utils.module_loading import import_string
except ImportError:
from django.utils.module_loading import import_by_path as import_string # noqa
def get_user_model():
"""
Get the Django user model class in a backwards compatible way to previous
Django version that don't provide this functionality. The result is cached
after the first call.
Returns the user model class.
"""
global _user_model
if not _user_model:
# we have to import the user model here because we can't be sure
# that the app providing the user model is fully loaded.
try:
from django.contrib.auth import get_user_model
except ImportError:
from django.contrib.auth.models import User
else:
User = get_user_model()
_user_model = User
return _user_model
AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')
try:
AUTH_USER_MODEL_NAME = AUTH_USER_MODEL.split('.')[1]
except IndexError:
raise ImproperlyConfigured(
"invalid user model '{}' specified has to be in the format "
"'app_label.model_name'.".format(AUTH_USER_MODEL))
| bsd-3-clause | 9,087,575,871,766,392,000 | 28.863636 | 83 | 0.672755 | false | 4.14511 | false | false | false |
fullcontact/hesiod53 | hesiod53/sync.py | 1 | 11846 | #!/usr/bin/env python
from boto.route53.record import ResourceRecordSets
from boto.route53.status import Status
import boto.route53 as r53
from collections import namedtuple
import argparse
import time
import yaml
# a DNS record for hesiod
# fqdn should include the trailing .
# value should contain the value without quotes
DNSRecord = namedtuple("DNSRecord", "fqdn value")
# A UNIX group
class Group(object):
def __init__(self, name, gid):
if not name:
raise Exception("Group name must be provided.")
if not gid:
raise Exception("Group ID must be provided.")
self.name = str(name)
self.gid = int(gid)
if len(self.passwd_line([]).split(":")) != 4:
raise Exception("Invalid group, contains colons: %s" % self)
def users(self, users):
r = []
for user in users:
if self in user.groups:
r.append(user)
return r
def dns_records(self, hesiod_domain, users):
records = []
passwd_line = self.passwd_line(users)
# group record
fqdn = "%s.group.%s" % (self.name, hesiod_domain)
records.append(DNSRecord(fqdn.lower(), passwd_line))
# gid record
fqdn = "%s.gid.%s" % (self.gid, hesiod_domain)
records.append(DNSRecord(fqdn.lower(), passwd_line))
return records
@classmethod
# returns group, usernames list
# usernames will be empty if only a partial line
def parse_passwd_line(cls, line):
parts = line.split(":")
if len(parts) != 3 and len(parts) != 4:
raise Exception("Invalid group passwd line: %s" % line)
name = parts[0]
gid = parts[2]
usernames = []
if len(parts) == 4:
usernames = parts[3].split(",")
return Group(name, gid), usernames
def passwd_line(self, users):
usernames = ",".join(sorted(map(lambda u: u.username, self.users(users))))
return "%s:x:%d:%s" % (self.name, self.gid, usernames)
def __eq__(self, other):
return self.name == other.name and self.gid == other.gid
def __ne__(self, other):
return not self == other
def __repr__(self):
return "Group(name=%s, gid=%s)" % (self.name, self.gid)
# A UNIX user
class User(object):
def __init__(self, name, username, uid, groups, ssh_keys, homedir=None, shell="/bin/bash"):
self.name = str(name)
self.username = str(username)
self.uid = int(uid)
self.groups = groups
self.ssh_keys = list(ssh_keys)
if not homedir:
homedir = "/home/%s" % self.username
self.homedir = str(homedir)
self.shell = str(shell)
if len(self.passwd_line().split(":")) != 7:
raise Exception("Invalid user, contains colons: %s" % self)
@classmethod
# returns user, primary group id
def parse_passwd_line(cls, line):
line = line.replace('"', '')
parts = line.split(":")
if len(parts) != 7:
raise Exception("Invalid user passwd line: %s" % line)
username, x, uid, group, gecos, homedir, shell = parts
name = gecos.split(",")[0]
group = int(group)
return User(name, username, uid, [], [], homedir, shell), group
def dns_records(self, hesiod_domain):
records = []
# user record
fqdn = "%s.passwd.%s" % (self.username, hesiod_domain)
records.append(DNSRecord(fqdn.lower(), self.passwd_line()))
# uid record
fqdn = "%s.uid.%s" % (self.uid, hesiod_domain)
records.append(DNSRecord(fqdn.lower(), self.passwd_line()))
# group list record
gl = []
for group in sorted(self.groups, key=lambda g: g.gid):
gl.append("%s:%s" % (group.name, group.gid))
fqdn = "%s.grplist.%s" % (self.username, hesiod_domain)
records.append(DNSRecord(fqdn.lower(), ":".join(gl)))
# ssh records
if self.ssh_keys:
ssh_keys_count_fqdn = "%s.count.ssh.%s" % (self.username, hesiod_domain)
records.append(DNSRecord(ssh_keys_count_fqdn.lower(), str(len(self.ssh_keys))))
# Need to keep this around for backwards compatibility when only one ssh key worked
legacy_ssh_key_fqdn = "%s.ssh.%s" % (self.username, hesiod_domain)
records.append(DNSRecord(legacy_ssh_key_fqdn.lower(), self.ssh_keys[0]))
for _id, ssh_key in enumerate(self.ssh_keys):
ssh_key_fqdn = "%s.%s.ssh.%s" % (self.username, _id, hesiod_domain)
records.append(DNSRecord(ssh_key_fqdn.lower(), ssh_key))
return records
def passwd_line(self):
gid = ""
if self.groups:
gid = str(self.groups[0].gid)
return "%s:x:%d:%s:%s:%s:%s" % \
(self.username, self.uid, gid, self.gecos(), self.homedir, self.shell)
def gecos(self):
return "%s,,,," % self.name
def __eq__(self, other):
return self.passwd_line() == other.passwd_line()
def __ne__(self, other):
return not self == other
def __repr__(self):
return ("User(name=%s, username=%s, uid=%s, groups=%s, ssh_keys=%s, " +
"homedir=%s, shell=%s)") % \
(self.name, self.username, self.uid, self.groups,
self.ssh_keys, self.homedir, self.shell)
# syncs users and groups to route53
# users is a list of users
# groups is a list of groups
# route53_zone - the hosted zone in Route53 to modify, e.g. example.com
# hesiod_domain - the zone with hesiod information, e.g. hesiod.example.com
def sync(users, groups, route53_zone, hesiod_domain, dry_run):
conn = r53.connect_to_region('us-east-1')
record_type = "TXT"
ttl = "60"
# suffix of . on zone if not supplied
if route53_zone[-1:] != '.':
route53_zone += "."
if hesiod_domain[-1:] != '.':
hesiod_domain += "."
# get existing hosted zones
zones = {}
results = conn.get_all_hosted_zones()
for r53zone in results['ListHostedZonesResponse']['HostedZones']:
zone_id = r53zone['Id'].replace('/hostedzone/', '')
zones[r53zone['Name']] = zone_id
# ensure requested zone is hosted by route53
if not route53_zone in zones:
raise Exception("Zone %s does not exist in Route53" % route53_zone)
sets = conn.get_all_rrsets(zones[route53_zone])
# existing records
existing_records = set()
for rset in sets:
if rset.type == record_type:
if rset.name.endswith("group." + hesiod_domain) or \
rset.name.endswith("gid." + hesiod_domain) or \
rset.name.endswith("passwd." + hesiod_domain) or \
rset.name.endswith("uid." + hesiod_domain) or \
rset.name.endswith("grplist." + hesiod_domain) or \
rset.name.endswith("ssh." + hesiod_domain):
value = "".join(rset.resource_records).replace('"', '')
existing_records.add(DNSRecord(str(rset.name), str(value)))
# new records
new_records = set()
for group in groups:
for record in group.dns_records(hesiod_domain, users):
new_records.add(record)
for user in users:
for record in user.dns_records(hesiod_domain):
new_records.add(record)
to_remove = existing_records - new_records
to_add = new_records - existing_records
if to_remove:
print "Deleting:"
for r in sorted(to_remove):
print r
print
else:
print "Nothing to delete."
if to_add:
print "Adding:"
for r in sorted(to_add):
print r
print
else:
print "Nothing to add."
if dry_run:
print "Dry run mode. Stopping."
return
# stop if nothing to do
if not to_remove and not to_add:
return
changes = ResourceRecordSets(conn, zones[route53_zone])
for record in to_remove:
removal = changes.add_change("DELETE", record.fqdn, record_type, ttl)
removal.add_value(txt_value(record.value))
for record in to_add:
addition = changes.add_change("CREATE", record.fqdn, record_type, ttl)
addition.add_value(txt_value(record.value))
try:
result = changes.commit()
status = Status(conn, result["ChangeResourceRecordSetsResponse"]["ChangeInfo"])
except r53.exception.DNSServerError, e:
raise Exception("Could not update DNS records.", e)
while status.status == "PENDING":
print "Waiting for Route53 to propagate changes."
time.sleep(10)
print status.update()
# DNS text values are limited to chunks of 255, but multiple chunks are concatenated
# Amazon handles this by requiring you to add quotation marks around each chunk
def txt_value(value):
first = value[:255]
rest = value[255:]
if rest:
rest_value = txt_value(rest)
else:
rest_value = ""
return '"%s"%s' % (first, rest_value)
def load_data(filename):
with open(filename, "r") as f:
contents = yaml.load(f, Loader=yaml.FullLoader)
route53_zone = contents["route53_zone"]
hesiod_domain = contents["hesiod_domain"]
# all groups and users
groups_idx = {}
users_idx = {}
groups = []
users = []
for g in contents["groups"]:
group = Group(**g)
if group.name in groups_idx:
raise Exception("Group name is not unique: %s" % group.name)
if group.gid in groups_idx:
raise Exception("Group ID is not unique: %s" % group.gid)
groups_idx[group.name] = group
groups_idx[group.gid] = group
groups.append(group)
for u in contents["users"]:
groups_this = []
if u["groups"]:
for g in u["groups"]:
group = groups_idx[g]
if not group:
raise Exception("No such group: %s" % g)
groups_this.append(group)
u["groups"] = groups_this
user = User(**u)
if len(user.groups) == 0:
raise Exception("At least one group required for user %s" % \
user.username)
if user.username in users_idx:
raise Exception("Username is not unique: %s" % user.username)
if user.uid in users_idx:
raise Exception("User ID is not unique: %s" % user.uid)
users_idx[user.username] = user
users_idx[user.uid] = user
users.append(user)
return users, groups, route53_zone, hesiod_domain
def main():
parser = argparse.ArgumentParser(
description="Synchronize a user database with Route53 for Hesiod.",
epilog = "AWS credentials follow the Boto standard. See " +
"http://docs.pythonboto.org/en/latest/boto_config_tut.html. " +
"For example, you can populate AWS_ACCESS_KEY_ID and " +
"AWS_SECRET_ACCESS_KEY with your credentials, or use IAM " +
"role-based authentication (in which case you need not do " +
"anything).")
parser.add_argument("user_file", metavar="USER_FILE",
help="The user yaml file. See example_users.yml for an example.")
parser.add_argument("--dry-run",
action='store_true',
dest="dry_run",
help="Dry run mode. Do not commit any changes.",
default=False)
args = parser.parse_args()
users, groups, route53_zone, hesiod_domain = load_data(args.user_file)
sync(users, groups, route53_zone, hesiod_domain, args.dry_run)
print "Done!"
if __name__ == "__main__":
main()
| mit | -4,982,819,906,042,673,000 | 33.236994 | 95 | 0.573611 | false | 3.733375 | false | false | false |
trmznt/rhombus | rhombus/views/gallery.py | 1 | 2066 |
from rhombus.views import *
@roles( PUBLIC )
def index(request):
""" input tags gallery """
static = False
html = div( div(h3('Input Gallery')))
eform = form( name='rhombus/gallery', method=POST,
action='')
eform.add(
fieldset(
input_hidden(name='rhombus-gallery_id', value='00'),
input_text('rhombus-gallery_text', 'Text Field', value='Text field value'),
input_text('rhombus-gallery_static', 'Static Text Field', value='Text field static',
static=True),
input_textarea('rhombus-gallery_textarea', 'Text Area', value='A text in text area'),
input_select('rhombus-gallery_select', 'Select', value=2,
options = [ (1, 'Opt1'), (2, 'Opt2'), (3, 'Opt3') ]),
input_select('rhombus-gallery_select-multi', 'Select (Multiple)', value=[2,3],
options = [ (1, 'Opt1'), (2, 'Opt2'), (3, 'Opt3') ], multiple=True),
input_select('rhombus-gallery_select2', 'Select2 (Multiple)', value=[2,4],
options = [ (1, 'Opt1'), (2, 'Opt2'), (3, 'Opt3'), (4, 'Opt4'), (5, 'Opt5') ], multiple=True),
input_select('rhombus-gallery_select2-ajax', 'Select2 (AJAX)'),
checkboxes('rhombus-gallery_checkboxes', 'Check Boxes',
boxes = [ ('1', 'Box 1', True), ('2', 'Box 2', False), ('3', 'Box 3', True)]),
submit_bar(),
)
)
html.add( div(eform) )
code = '''
$('#rhombus-gallery_select2').select2();
$('#rhombus-gallery_select2-ajax').select2({
placeholder: 'Select from AJAX',
minimumInputLength: 3,
ajax: {
url: "%s",
dataType: 'json',
data: function(params) { return { q: params.term, g: "@ROLES" }; },
processResults: function(data, params) { return { results: data }; }
},
});
''' % request.route_url('rhombus.ek-lookup')
return render_to_response('rhombus:templates/generics/page.mako',
{ 'content': str(html), 'code': code },
request = request ) | lgpl-3.0 | 7,048,302,373,551,598,000 | 38.75 | 107 | 0.545983 | false | 3.353896 | false | false | false |
cadencewatches/frappe | frappe/website/doctype/blog_post/test_blog_post.py | 1 | 5111 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
"""Use blog post test to test permission restriction logic"""
import frappe
import frappe.defaults
import unittest
from frappe.core.page.user_properties.user_properties import add, remove, get_properties, clear_restrictions
test_records = frappe.get_test_records('Blog Post')
test_dependencies = ["User"]
class TestBlogPost(unittest.TestCase):
def setUp(self):
frappe.db.sql("""update tabDocPerm set `restricted`=0 where parent='Blog Post'
and ifnull(permlevel,0)=0""")
frappe.db.sql("""update `tabBlog Post` set owner='[email protected]'
where name='_test-blog-post'""")
frappe.clear_cache(doctype="Blog Post")
user = frappe.get_doc("User", "[email protected]")
user.add_roles("Website Manager")
user = frappe.get_doc("User", "[email protected]")
user.add_roles("Blogger")
frappe.set_user("[email protected]")
def tearDown(self):
frappe.set_user("Administrator")
clear_restrictions("Blog Category")
clear_restrictions("Blog Post")
def test_basic_permission(self):
post = frappe.get_doc("Blog Post", "_test-blog-post")
self.assertTrue(post.has_permission("read"))
def test_restriction_in_doc(self):
frappe.defaults.add_default("Blog Category", "_Test Blog Category 1", "[email protected]",
"Restriction")
post = frappe.get_doc("Blog Post", "_test-blog-post")
self.assertFalse(post.has_permission("read"))
post1 = frappe.get_doc("Blog Post", "_test-blog-post-1")
self.assertTrue(post1.has_permission("read"))
def test_restriction_in_report(self):
frappe.defaults.add_default("Blog Category", "_Test Blog Category 1", "[email protected]",
"Restriction")
names = [d.name for d in frappe.get_list("Blog Post", fields=["name", "blog_category"])]
self.assertTrue("_test-blog-post-1" in names)
self.assertFalse("_test-blog-post" in names)
def test_default_values(self):
frappe.defaults.add_default("Blog Category", "_Test Blog Category 1", "[email protected]",
"Restriction")
doc = frappe.new_doc("Blog Post")
self.assertEquals(doc.get("blog_category"), "_Test Blog Category 1")
def add_restricted_on_blogger(self):
frappe.db.sql("""update tabDocPerm set `restricted`=1 where parent='Blog Post' and role='Blogger'
and ifnull(permlevel,0)=0""")
frappe.clear_cache(doctype="Blog Post")
def test_owner_match_doc(self):
self.add_restricted_on_blogger()
frappe.set_user("[email protected]")
post = frappe.get_doc("Blog Post", "_test-blog-post")
self.assertTrue(post.has_permission("read"))
post1 = frappe.get_doc("Blog Post", "_test-blog-post-1")
self.assertFalse(post1.has_permission("read"))
def test_owner_match_report(self):
frappe.db.sql("""update tabDocPerm set `restricted`=1 where parent='Blog Post'
and ifnull(permlevel,0)=0""")
frappe.clear_cache(doctype="Blog Post")
frappe.set_user("[email protected]")
names = [d.name for d in frappe.get_list("Blog Post", fields=["name", "owner"])]
self.assertTrue("_test-blog-post" in names)
self.assertFalse("_test-blog-post-1" in names)
def add_restriction_to_user2(self):
frappe.set_user("[email protected]")
add("[email protected]", "Blog Post", "_test-blog-post")
def test_add_restriction(self):
# restrictor can add restriction
self.add_restriction_to_user2()
def test_not_allowed_to_restrict(self):
frappe.set_user("[email protected]")
# this user can't add restriction
self.assertRaises(frappe.PermissionError, add,
"[email protected]", "Blog Post", "_test-blog-post")
def test_not_allowed_on_restrict(self):
self.add_restriction_to_user2()
frappe.set_user("[email protected]")
# user can only access restricted blog post
doc = frappe.get_doc("Blog Post", "_test-blog-post")
self.assertTrue(doc.has_permission("read"))
# and not this one
doc = frappe.get_doc("Blog Post", "_test-blog-post-1")
self.assertFalse(doc.has_permission("read"))
def test_not_allowed_to_remove_self(self):
self.add_restriction_to_user2()
defname = get_properties("[email protected]", "Blog Post", "_test-blog-post")[0].name
frappe.set_user("[email protected]")
# user cannot remove their own restriction
self.assertRaises(frappe.PermissionError, remove,
"[email protected]", defname, "Blog Post", "_test-blog-post")
def test_allow_in_restriction(self):
self.add_restricted_on_blogger()
frappe.set_user("[email protected]")
doc = frappe.get_doc("Blog Post", "_test-blog-post-1")
self.assertFalse(doc.has_permission("read"))
frappe.set_user("[email protected]")
add("[email protected]", "Blog Post", "_test-blog-post-1")
frappe.set_user("[email protected]")
doc = frappe.get_doc("Blog Post", "_test-blog-post-1")
self.assertTrue(doc.has_permission("read"))
def test_set_only_once(self):
blog_post = frappe.get_meta("Blog Post")
blog_post.get_field("title").set_only_once = 1
doc = frappe.get_doc("Blog Post", "_test-blog-post-1")
doc.title = "New"
self.assertRaises(frappe.CannotChangeConstantError, doc.save)
blog_post.get_field("title").set_only_once = 0
| mit | -6,822,289,126,534,374,000 | 32.625 | 108 | 0.708081 | false | 3.049523 | true | false | false |
xiaotianyi/INTELLI-City | docs/refer_project/wx_with_web/wenpl/divide.py | 1 | 10289 | # encoding=utf-8
'''
程序入口showreply
'''
import jieba.posseg as pseg
import jieba
import sys
import urllib2
import json
import re
import copy
import datetime
import time
import calendar
from parsedate import parseDate
from getdata import*
from showAll import*
#增加用户词汇库,此处的绝对定位,以后要修改
jieba.load_userdict('wendata/dict/dict1.txt')
jieba.load_userdict('wendata/dict/dict_manual.txt')
jieba.load_userdict('wendata/dict/dict_date.txt')
jieba.load_userdict('wendata/dict/dict2.txt')
# jieba.load_userdict('/root/wechat/wx/wendata/dict/dict2.txt')
reload(sys)
sys.setdefaultencoding('utf-8')
def mergePositions(l):
'''
把device\town\city\station 都标记为position
'''
positions = {}
for x in l:
for y in x:
positions[y] = 'position'
return positions
def divide(str):
'''
输入语句分词,分别得到独立词汇和词性
'''
words = pseg.cut(str)
li = []
for w in words:
li.append([w.word.encode('utf-8'), w.flag.encode('utf-8')])
return li
def filt(li, type):
'''词性筛选,暂时没用到
# get the specific words depending on the type you want
'''
rli = []
for w in li:
if w[1] == type:
rli.append(w[0])
return rli
def paraFilter(store):
'''
#查看
# check parameters in store
'''
dictionary = {}
for x in store.keys():
dictionary[x] = []
for y in x.split(" "):
j = []
j = re.findall(r'\w+', y)
if j != []:
dictionary[x].append(j)
return dictionary
def getQueryTypeSet(li, dictionary, para, pro, paraCategory):
'''
输入语句分完词后,判断是不是有pro中的关键词,没的话,就反回0,表示这句话不在查询范围,调用外部资源回答,同时获取参数词:people,position
# calculate the types of the query words
'''
qType = []
Nkey = 0
hasPosition = 0
hasName = 0
paradic = {}
# print pro
for w in li:
word = w[0]
if word in dictionary.keys():
qType.append(dictionary[word])
if word in pro:
Nkey += 1
if word in paraCategory.keys():
paradic[paraCategory[word]] = word
for x in paradic.values():
para.append(x)
if Nkey == 0:
return 0
return qType
def pointquery(li,points,devices,stations,para):
'''
#"获取某个监测点的数据"
'''
point=""
device=""
station=""
for w in li:
word=w[0]
# print 1
if points.has_key(word):
point=word
elif devices.has_key(word):
device=word
elif stations.has_key(word):
station=word
if point!="" and station!="" and device!="":
url ="/data/point_info_with_real_time?station_name="+station+"&device_name="+device+"&point_name="+point
return getResult(url)
else:
return 0
def getPrefixHit(qType, store):
'''
获命中数量
# calculate the hit times of each prefix sentences in store
'''
count = {}
setType = set(qType)
for i in range(len(store.keys())):
setStore = set(store.keys()[i].split(' '))
count[store.keys()[i]] = len(setStore & setType)
return count
def ranking(count, qType):
'''
计算命中率
# calculate the probability
'''
setType = set(qType)
N = len(setType)
p = {}
for x in count.keys():
p[x] = float(count[x] / float(N))
p = sort(p)
return p
def sort(p):
'''
#对命中率进行排序
'''
dicts = sorted(p.iteritems(), key=lambda d: d[1], reverse=True)
return dicts
# print dicts
def revranking(count):
'''
计算效率recall
# showDict(count)
'''
p = {}
for x in count.keys():
p[x] = float(count[x] / float(len(x.split(" "))))
# showDict(p)
p = sort(p)
# print p
return p
def excuteREST(p, rp, st, para, paraDict, qType,remember):
'''
#执行查询,这里按照参数优先顺序,以后可以优化调整
# p:正排序后的store匹配度列表
# rp:反排序后的store匹配度列表
# st:store字典
# para:输入语句中的参数列表
# paraDict: store中参数列表
# print showList()
# p[[[],[]],[]]
# st{:}
'''
p = resort(p, rp) # 命中率相同的情况下,按效率来决定先后顺序
# print p
url=""
if len(para) == 0:
for x in p:
if len(paraDict[x[0]]) == 0:
url = st[x[0]]
remember.append(x)
break
elif len(para) == 1:
for x in p:
if len(paraDict[x[0]]) == 1:
# print paraDict[x[0]][0][0]
if qType.count(paraDict[x[0]][0][0]) == 1:
url = st[x[0]] + para[0]
remember.append(x)
break
if url=="":
return 0
elif len(para) == 2:
for x in p:
if len(paraDict[x[0]]) == 2:
url = st[x[0]][0] + para[0] + st[x[0]][1] + para[1][0]+st[x[0]][2]+para[1][1]
remember.append(x)
break
if url=="":
return 0
return getResult(url)
def getResult(url):
'''
#与服务器建立连接,获取json数据并返回.turl也是需要改成相对路径
'''
turl = '/root/INTELLI-City/docs/refer_project/wx/wendata/token'
fin1 = open(turl, 'r+')
token = fin1.read()
url = 'http://www.intellense.com:3080' + url
print url
fin1.close()
req = urllib2.Request(url)
req.add_header('authorization', token)
try:
response = urllib2.urlopen(req)
except Exception as e:
return 0
# print response.read()
return response.read()
def resort(l1, l2):
'''
# 反向检查匹配度
'''
l1 = copy.deepcopy(l1)
l2 = copy.deepcopy(l2)
nl = []
g = -1
group = -1
gdict = {}
newlist = []
for x in l1:
if g != x[1]:
group += 1
g = x[1]
nl.append([])
nl[group].append(x)
else:
nl[group].append(x)
for g in nl:
for x in g:
for y in range(len(l2)):
if x[0] == l1[y][0]:
gdict[x] = y
break
sublist = sort(gdict)
for x in sublist:
newlist.append(x[0])
return newlist
def connectTuring(a):
'''
#在没有匹配的时候调用外部问答
'''
kurl = '/root/INTELLI-City/docs/refer_project/wx/wendata/turkey'
fin = open(kurl, 'r+')
key = fin.read()
url = r'http://www.tuling123.com/openapi/api?key=' + key + '&info=' + a
reson = urllib2.urlopen(url)
reson = json.loads(reson.read())
fin.close()
# print reson['text'],'\n'
return reson['text']
def toUTF8(origin):
# change unicode type dict to UTF-8
result = {}
for x in origin.keys():
val = origin[x].encode('utf-8')
x = x.encode('utf-8')
result[x] = val
return result
def showDict(l):
for x in l.keys():
print x + ' ' + str(l[x])
def showList(l):
for x in l:
print x
def test(sentence):
sentence = sentence.replace(' ', '')
people = getPeople()
cities = getPosition('cities')
towns = getPosition('towns')
stations = getPosition('stations')
devices = getPosition('devices')
positions = mergePositions([cities, towns, stations, devices])
points=getPoints()
pro = getPros()
general = getGenerals()
paraCategory = dict(positions, **people)
dict1 = dict(general, **pro)
dict2 = dict(dict1, **paraCategory)
st = getStore() # store dict
para = []
keyphrase = pro.keys()
paraDict = paraFilter(st)
date = parseDate(sentence)
ftype=0
remember=[]
divideResult = divide(sentence) # list
sentenceResult = getQueryTypeSet(
divideResult,
dict2,
para,
pro,
paraCategory) # set
pointResult=pointquery(divideResult,points,devices,stations,para)
if pointResult!=0:
# print "-----------------------------这是结果哦--------------------------------"
# print get_point_info_with_real_time(json.loads(pointResult))
return get_point_info_with_real_time(json.loads(pointResult))
elif sentenceResult == 0:
# print "-----------------------------这是结果哦--------------------------------"
# print connectTuring(sentence)
return connectTuring(sentence)
else:
if date!=0:
sentenceResult.append('time')
hitResult = getPrefixHit(sentenceResult, st) # dict
rankResult = ranking(hitResult, sentenceResult) # dict
rerankingResult = revranking(hitResult)
if date!=0:
para.append(date)
excuteResult = excuteREST(
rankResult,
rerankingResult,
st,
para,
paraDict,
sentenceResult,remember)
if excuteResult==0:
# print "-----------------------------这是结果哦--------------------------------"
# print connectTuring(sentence)
return connectTuring(sentence)
# b=filt(a,'v')
else:
reinfo=showResult(json.loads(excuteResult),remember[0])
if reinfo=="":
# print "-----------------------------这是结果哦--------------------------------"
# print '没有相关数据信息'
return '没有相关数据信息'
else:
# print "-----------------------------这是结果哦--------------------------------"
# print reinfo
return reinfo
# test()
def showReply(sentence):
'''程序入口'''
sentence=str(sentence)
try:
return test(sentence)
except Exception as e:
# print "-----------------------------这是结果哦--------------------------------"
# print '我好像不太明白·_·'
return '我好像不太明白·_·'
# print showReply("查询工单")
| mit | -8,308,332,650,456,147,000 | 23.286076 | 112 | 0.51621 | false | 3.033839 | false | false | false |
schleichdi2/OPENNFR-6.3-CORE | opennfr-openembedded-core/meta/lib/oeqa/utils/decorators.py | 1 | 10411 | #
# Copyright (C) 2013 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
# Some custom decorators that can be used by unittests
# Most useful is skipUnlessPassed which can be used for
# creating dependecies between two test methods.
import os
import logging
import sys
import unittest
import threading
import signal
from functools import wraps
#get the "result" object from one of the upper frames provided that one of these upper frames is a unittest.case frame
class getResults(object):
def __init__(self):
#dynamically determine the unittest.case frame and use it to get the name of the test method
ident = threading.current_thread().ident
upperf = sys._current_frames()[ident]
while (upperf.f_globals['__name__'] != 'unittest.case'):
upperf = upperf.f_back
def handleList(items):
ret = []
# items is a list of tuples, (test, failure) or (_ErrorHandler(), Exception())
for i in items:
s = i[0].id()
#Handle the _ErrorHolder objects from skipModule failures
if "setUpModule (" in s:
ret.append(s.replace("setUpModule (", "").replace(")",""))
else:
ret.append(s)
# Append also the test without the full path
testname = s.split('.')[-1]
if testname:
ret.append(testname)
return ret
self.faillist = handleList(upperf.f_locals['result'].failures)
self.errorlist = handleList(upperf.f_locals['result'].errors)
self.skiplist = handleList(upperf.f_locals['result'].skipped)
def getFailList(self):
return self.faillist
def getErrorList(self):
return self.errorlist
def getSkipList(self):
return self.skiplist
class skipIfFailure(object):
def __init__(self,testcase):
self.testcase = testcase
def __call__(self,f):
@wraps(f)
def wrapped_f(*args, **kwargs):
res = getResults()
if self.testcase in (res.getFailList() or res.getErrorList()):
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
return f(*args, **kwargs)
wrapped_f.__name__ = f.__name__
return wrapped_f
class skipIfSkipped(object):
def __init__(self,testcase):
self.testcase = testcase
def __call__(self,f):
@wraps(f)
def wrapped_f(*args, **kwargs):
res = getResults()
if self.testcase in res.getSkipList():
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
return f(*args, **kwargs)
wrapped_f.__name__ = f.__name__
return wrapped_f
class skipUnlessPassed(object):
def __init__(self,testcase):
self.testcase = testcase
def __call__(self,f):
@wraps(f)
def wrapped_f(*args, **kwargs):
res = getResults()
if self.testcase in res.getSkipList() or \
self.testcase in res.getFailList() or \
self.testcase in res.getErrorList():
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
return f(*args, **kwargs)
wrapped_f.__name__ = f.__name__
wrapped_f._depends_on = self.testcase
return wrapped_f
class testcase(object):
def __init__(self, test_case):
self.test_case = test_case
def __call__(self, func):
@wraps(func)
def wrapped_f(*args, **kwargs):
return func(*args, **kwargs)
wrapped_f.test_case = self.test_case
wrapped_f.__name__ = func.__name__
return wrapped_f
class NoParsingFilter(logging.Filter):
def filter(self, record):
return record.levelno == 100
import inspect
def LogResults(original_class):
orig_method = original_class.run
from time import strftime, gmtime
caller = os.path.basename(sys.argv[0])
timestamp = strftime('%Y%m%d%H%M%S',gmtime())
logfile = os.path.join(os.getcwd(),'results-'+caller+'.'+timestamp+'.log')
linkfile = os.path.join(os.getcwd(),'results-'+caller+'.log')
def get_class_that_defined_method(meth):
if inspect.ismethod(meth):
for cls in inspect.getmro(meth.__self__.__class__):
if cls.__dict__.get(meth.__name__) is meth:
return cls
meth = meth.__func__ # fallback to __qualname__ parsing
if inspect.isfunction(meth):
cls = getattr(inspect.getmodule(meth),
meth.__qualname__.split('.<locals>', 1)[0].rsplit('.', 1)[0])
if isinstance(cls, type):
return cls
return None
#rewrite the run method of unittest.TestCase to add testcase logging
def run(self, result, *args, **kws):
orig_method(self, result, *args, **kws)
passed = True
testMethod = getattr(self, self._testMethodName)
#if test case is decorated then use it's number, else use it's name
try:
test_case = testMethod.test_case
except AttributeError:
test_case = self._testMethodName
class_name = str(get_class_that_defined_method(testMethod)).split("'")[1]
#create custom logging level for filtering.
custom_log_level = 100
logging.addLevelName(custom_log_level, 'RESULTS')
def results(self, message, *args, **kws):
if self.isEnabledFor(custom_log_level):
self.log(custom_log_level, message, *args, **kws)
logging.Logger.results = results
logging.basicConfig(filename=logfile,
filemode='w',
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
datefmt='%H:%M:%S',
level=custom_log_level)
for handler in logging.root.handlers:
handler.addFilter(NoParsingFilter())
local_log = logging.getLogger(caller)
#check status of tests and record it
tcid = self.id()
for (name, msg) in result.errors:
if tcid == name.id():
local_log.results("Testcase "+str(test_case)+": ERROR")
local_log.results("Testcase "+str(test_case)+":\n"+msg)
passed = False
for (name, msg) in result.failures:
if tcid == name.id():
local_log.results("Testcase "+str(test_case)+": FAILED")
local_log.results("Testcase "+str(test_case)+":\n"+msg)
passed = False
for (name, msg) in result.skipped:
if tcid == name.id():
local_log.results("Testcase "+str(test_case)+": SKIPPED")
passed = False
if passed:
local_log.results("Testcase "+str(test_case)+": PASSED")
# XXX: In order to avoid race condition when test if exists the linkfile
# use bb.utils.lock, the best solution is to create a unique name for the
# link file.
try:
import bb
has_bb = True
lockfilename = linkfile + '.lock'
except ImportError:
has_bb = False
if has_bb:
lf = bb.utils.lockfile(lockfilename, block=True)
# Create symlink to the current log
if os.path.lexists(linkfile):
os.remove(linkfile)
os.symlink(logfile, linkfile)
if has_bb:
bb.utils.unlockfile(lf)
original_class.run = run
return original_class
class TimeOut(BaseException):
pass
def timeout(seconds):
def decorator(fn):
if hasattr(signal, 'alarm'):
@wraps(fn)
def wrapped_f(*args, **kw):
current_frame = sys._getframe()
def raiseTimeOut(signal, frame):
if frame is not current_frame:
raise TimeOut('%s seconds' % seconds)
prev_handler = signal.signal(signal.SIGALRM, raiseTimeOut)
try:
signal.alarm(seconds)
return fn(*args, **kw)
finally:
signal.alarm(0)
signal.signal(signal.SIGALRM, prev_handler)
return wrapped_f
else:
return fn
return decorator
__tag_prefix = "tag__"
def tag(*args, **kwargs):
"""Decorator that adds attributes to classes or functions
for use with the Attribute (-a) plugin.
"""
def wrap_ob(ob):
for name in args:
setattr(ob, __tag_prefix + name, True)
for name, value in kwargs.items():
setattr(ob, __tag_prefix + name, value)
return ob
return wrap_ob
def gettag(obj, key, default=None):
key = __tag_prefix + key
if not isinstance(obj, unittest.TestCase):
return getattr(obj, key, default)
tc_method = getattr(obj, obj._testMethodName)
ret = getattr(tc_method, key, getattr(obj, key, default))
return ret
def getAllTags(obj):
def __gettags(o):
r = {k[len(__tag_prefix):]:getattr(o,k) for k in dir(o) if k.startswith(__tag_prefix)}
return r
if not isinstance(obj, unittest.TestCase):
return __gettags(obj)
tc_method = getattr(obj, obj._testMethodName)
ret = __gettags(obj)
ret.update(__gettags(tc_method))
return ret
def timeout_handler(seconds):
def decorator(fn):
if hasattr(signal, 'alarm'):
@wraps(fn)
def wrapped_f(self, *args, **kw):
current_frame = sys._getframe()
def raiseTimeOut(signal, frame):
if frame is not current_frame:
try:
self.target.restart()
raise TimeOut('%s seconds' % seconds)
except:
raise TimeOut('%s seconds' % seconds)
prev_handler = signal.signal(signal.SIGALRM, raiseTimeOut)
try:
signal.alarm(seconds)
return fn(self, *args, **kw)
finally:
signal.alarm(0)
signal.signal(signal.SIGALRM, prev_handler)
return wrapped_f
else:
return fn
return decorator
| gpl-2.0 | -7,854,347,878,974,030,000 | 34.053872 | 118 | 0.556046 | false | 4.142857 | true | false | false |
PinguinoIDE/pinguino-ide | pinguino/qtgui/ide/tools/paths.py | 1 | 5277 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#import os
from PySide2 import QtCore
## Python3 compatibility
#if os.getenv("PINGUINO_PYTHON") is "3":
##Python3
#from configparser import RawConfigParser
#else:
##Python2
#from ConfigParser import RawConfigParser
from ..methods.dialogs import Dialogs
########################################################################
class Paths(object):
def __init__(self):
""""""
self.load_paths()
self.connect(self.main.lineEdit_path_sdcc_bin, QtCore.SIGNAL("editingFinished()"), self.save_paths)
self.connect(self.main.lineEdit_path_gcc_bin, QtCore.SIGNAL("editingFinished()"), self.save_paths)
self.connect(self.main.lineEdit_path_xc8_bin, QtCore.SIGNAL("editingFinished()"), self.save_paths)
self.connect(self.main.lineEdit_path_8_libs, QtCore.SIGNAL("editingFinished()"), self.save_paths)
self.connect(self.main.lineEdit_path_32_libs, QtCore.SIGNAL("editingFinished()"), self.save_paths)
self.connect(self.main.pushButton_dir_sdcc, QtCore.SIGNAL("clicked()"), lambda :self.open_path_for(self.main.lineEdit_path_sdcc_bin))
self.connect(self.main.pushButton_dir_gcc, QtCore.SIGNAL("clicked()"), lambda :self.open_path_for(self.main.lineEdit_path_gcc_bin))
self.connect(self.main.pushButton_dir_xc8, QtCore.SIGNAL("clicked()"), lambda :self.open_path_for(self.main.lineEdit_path_xc8_bin))
self.connect(self.main.pushButton_dir_8bit, QtCore.SIGNAL("clicked()"), lambda :self.open_path_for(self.main.lineEdit_path_8_libs))
self.connect(self.main.pushButton_dir_32bit, QtCore.SIGNAL("clicked()"), lambda :self.open_path_for(self.main.lineEdit_path_32_libs))
self.connect(self.main.pushButton_dir_libs, QtCore.SIGNAL("clicked()"), lambda :self.open_path_for(self.main.lineEdit_path_custom_libs))
self.connect(self.main.pushButton_dir_mplab, QtCore.SIGNAL("clicked()"), lambda :self.open_path_for(self.main.lineEdit_path_mplab))
self.connect(self.main.checkBox_paths_default, QtCore.SIGNAL("toggled(bool)"), self.set_default_values)
#----------------------------------------------------------------------
def open_path_for(self, lineedit):
""""""
dir_path = Dialogs.set_open_dir(self)
if dir_path:
lineedit.setText(dir_path)
self.save_paths()
#----------------------------------------------------------------------
def save_paths(self):
""""""
sdcc_bin = self.main.lineEdit_path_sdcc_bin.text()
gcc_bin = self.main.lineEdit_path_gcc_bin.text()
xc8_bin = self.main.lineEdit_path_xc8_bin.text()
p8libs = self.main.lineEdit_path_8_libs.text()
p32libs = self.main.lineEdit_path_32_libs.text()
#self.configIDE.set("Paths", "sdcc_bin", sdcc_bin)
#self.configIDE.set("Paths", "gcc_bin", gcc_bin)
#self.configIDE.set("Paths", "xc8_bin", xc8_bin)
#self.configIDE.set("Paths", "pinguino_8_libs", p8libs)
#self.configIDE.set("Paths", "pinguino_32_libs", p32libs)
self.configIDE.set("PathsCustom", "sdcc_bin", sdcc_bin)
self.configIDE.set("PathsCustom", "gcc_bin", gcc_bin)
self.configIDE.set("PathsCustom", "xc8_bin", xc8_bin)
self.configIDE.set("PathsCustom", "pinguino_8_libs", p8libs)
self.configIDE.set("PathsCustom", "pinguino_32_libs", p32libs)
self.configIDE.save_config()
#----------------------------------------------------------------------
def load_paths(self, section=None):
""""""
self.configIDE.load_config()
if section is None:
section = self.configIDE.config("Features", "pathstouse", "Paths")
self.main.checkBox_paths_default.setChecked(section=="Paths")
def short(section, option):
if section == "Paths":
return self.configIDE.get(section, option)
elif section == "PathsCustom":
return self.configIDE.config(section, option, self.configIDE.get("Paths", option))
sdcc_bin = short(section, "sdcc_bin")
gcc_bin = short(section, "gcc_bin")
xc8_bin = short(section, "xc8_bin")
p8libs = short(section, "pinguino_8_libs")
p32libs = short(section, "pinguino_32_libs")
self.main.lineEdit_path_sdcc_bin.setText(sdcc_bin)
self.main.lineEdit_path_gcc_bin.setText(gcc_bin)
self.main.lineEdit_path_xc8_bin.setText(xc8_bin)
self.main.lineEdit_path_8_libs.setText(p8libs)
self.main.lineEdit_path_32_libs.setText(p32libs)
#----------------------------------------------------------------------
def set_default_values(self, default):
""""""
self.configIDE.load_config()
if default:
self.load_paths(section="Paths")
self.configIDE.set("Features", "pathstouse", "Paths")
else:
self.load_paths(section="PathsCustom")
self.configIDE.set("Features", "pathstouse", "PathsCustom")
self.main.groupBox_compilers.setEnabled(not default)
self.main.groupBox_libraries.setEnabled(not default)
self.main.groupBox_icsp.setEnabled(not default)
self.configIDE.save_config()
| gpl-2.0 | -3,444,204,326,737,466,000 | 39.592308 | 144 | 0.602615 | false | 3.575203 | true | false | false |
alexanderfefelov/nav | python/nav/smidumps/itw_mibv3.py | 1 | 895755 | # python version 1.0 DO NOT EDIT
#
# Generated by smidump version 0.4.8:
#
# smidump -f python IT-WATCHDOGS-MIB-V3
FILENAME = "./itw_mibv3.mib"
MIB = {
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"IT-WATCHDOGS-MIB-V3" : {
"nodetype" : "module",
"language" : "SMIv2",
"organization" :
"""I.T. Watchdogs""",
"contact" :
"""[email protected]""",
"description" :
"""The MIB for I.T. Watchdogs Products""",
"revisions" : (
{
"date" : "2010-10-12 00:00",
"description" :
"""[Revision added by libsmi due to a LAST-UPDATED clause.]""",
},
),
"identity node" : "itwatchdogs",
},
"imports" : (
{"module" : "SNMPv2-TC", "name" : "DisplayString"},
{"module" : "SNMPv2-SMI", "name" : "MODULE-IDENTITY"},
{"module" : "SNMPv2-SMI", "name" : "OBJECT-TYPE"},
{"module" : "SNMPv2-SMI", "name" : "enterprises"},
{"module" : "SNMPv2-SMI", "name" : "Gauge32"},
{"module" : "SNMPv2-SMI", "name" : "NOTIFICATION-TYPE"},
),
"nodes" : {
"itwatchdogs" : {
"nodetype" : "node",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373",
"status" : "current",
}, # node
"owl" : {
"nodetype" : "node",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3",
}, # node
"deviceInfo" : {
"nodetype" : "node",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1",
}, # node
"productTitle" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.1",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Product name""",
}, # scalar
"productVersion" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Product version""",
}, # scalar
"productFriendlyName" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""User-assigned name""",
}, # scalar
"productMacAddress" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Product's unique MAC address""",
}, # scalar
"productUrl" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Product's main URL access point""",
}, # scalar
"alarmTripType" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "9"
},
],
"range" : {
"min" : "0",
"max" : "9"
},
},
},
"access" : "readonly",
"description" :
"""Type of alarm trip. 0 = None, 1 = Low, 2 = High, 3 = Unplugged""",
}, # scalar
"productHardware" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Product's hardware type""",
}, # scalar
"sensorCountsBase" : {
"nodetype" : "node",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8",
}, # node
"sensorCounts" : {
"nodetype" : "node",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1",
}, # node
"climateCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.2",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of climate monitors currently plugged in""",
}, # scalar
"powerMonitorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.3",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of power monitors currently plugged in""",
}, # scalar
"tempSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.4",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of temperature sensors currently plugged in""",
}, # scalar
"airflowSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of airflow sensors currently plugged in""",
}, # scalar
"powerOnlyCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of power only monitors currently plugged in""",
}, # scalar
"doorSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.7",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of door sensors currently plugged in""",
}, # scalar
"waterSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.8",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of water sensors currently plugged in""",
}, # scalar
"currentSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.9",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of current sensors currently plugged in""",
}, # scalar
"millivoltSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.10",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of millivolt sensors currently plugged in""",
}, # scalar
"power3ChSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.11",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of 3 channel power monitors currently plugged in""",
}, # scalar
"outletCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.12",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of outlets currently plugged in""",
}, # scalar
"vsfcCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.13",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of fan controller monitors currently plugged in""",
}, # scalar
"ctrl3ChCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.14",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of 3 channel controllers currently plugged in""",
}, # scalar
"ctrlGrpAmpsCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.15",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of amperage controllers currently plugged in""",
}, # scalar
"ctrlOutputCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.16",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of output controllers currently plugged in""",
}, # scalar
"dewpointSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.17",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of dewpoint sensors currently plugged in""",
}, # scalar
"digitalSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.18",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of digital sensors currently plugged in""",
}, # scalar
"dstsSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.19",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of DSTS controllers currently plugged in""",
}, # scalar
"cpmSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.20",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of city power sensors currently plugged in""",
}, # scalar
"smokeAlarmSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.21",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of smoke alarm sensors currently plugged in""",
}, # scalar
"neg48VdcSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.22",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of -48Vdc sensors currently plugged in""",
}, # scalar
"pos30VdcSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.23",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of 30Vdc sensors currently plugged in""",
}, # scalar
"analogSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.24",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of remote analog inputs currently plugged in""",
}, # scalar
"ctrl3ChIECCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.25",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of IEC 3 channel controllers currently plugged in""",
}, # scalar
"climateRelayCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.26",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of climate relay monitors currently plugged in""",
}, # scalar
"ctrlRelayCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.27",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of relay controllers currently plugged in""",
}, # scalar
"airSpeedSwitchSensorCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.28",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of air speed switch sensors currently plugged in""",
}, # scalar
"powerDMCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.29",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of DM48 current sensors currently plugged in""",
}, # scalar
"ioExpanderCount" : {
"nodetype" : "scalar",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.1.8.1.30",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of IO expander devices currently plugged in""",
}, # scalar
"climateTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2",
"status" : "current",
"description" :
"""Climate sensors (internal sensors for climate units)""",
}, # table
"climateEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1",
"status" : "current",
"linkage" : [
"climateIndex",
],
"description" :
"""Entry in the climate table: each entry contains
an index (climateIndex) and other details""",
}, # row
"climateIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "1"
},
],
"range" : {
"min" : "1",
"max" : "1"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"climateSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"climateName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"climateAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"climateTempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for Temperature (C)""",
}, # column
"climateTempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degress Fahrenheit",
"description" :
"""Current reading for Temperature (F)""",
}, # column
"climateHumidity" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.7",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Humidity""",
}, # column
"climateLight" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.8",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Ambient Light""",
}, # column
"climateAirflow" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.9",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Airflow""",
}, # column
"climateSound" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.10",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Sound""",
}, # column
"climateIO1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.11",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 1""",
}, # column
"climateIO2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.12",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 2""",
}, # column
"climateIO3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.13",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 3""",
}, # column
"climateDewPointC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.14",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for Dew Point (C)""",
}, # column
"climateDewPointF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.2.1.15",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degress Fahrenheit",
"description" :
"""Current reading for Dew Point (F)""",
}, # column
"powMonTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3",
"status" : "current",
"description" :
"""A table of Power Monitors""",
}, # table
"powMonEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1",
"status" : "current",
"linkage" : [
"powMonIndex",
],
"description" :
"""Entry in the power monitor table: each entry contains
an index (powMonIndex) and other power monitoring details""",
}, # row
"powMonIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"powMonSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"powMonName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"powMonAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"powMonKWattHrs" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current reading for KWatt-Hours""",
}, # column
"powMonVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts""",
}, # column
"powMonVoltMax" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Max)""",
}, # column
"powMonVoltMin" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Min)""",
}, # column
"powMonVoltPeak" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Peak)""",
}, # column
"powMonDeciAmps" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps""",
}, # column
"powMonRealPower" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power""",
}, # column
"powMonApparentPower" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power""",
}, # column
"powMonPowerFactor" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.13",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor""",
}, # column
"powMonOutlet1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.14",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Outlet 1",
"description" :
"""Outlet 1 Trap""",
}, # column
"powMonOutlet2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.3.1.15",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Outlet 2",
"description" :
"""Outlet 2 Trap""",
}, # column
"tempSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4",
"status" : "current",
"description" :
"""A table of temperature sensors""",
}, # table
"tempSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4.1",
"status" : "current",
"linkage" : [
"tempSensorIndex",
],
"description" :
"""Entry in the temperature sensor table: each entry contains
an index (tempIndex) and other sensor details""",
}, # row
"tempSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"tempSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"tempSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"tempSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"tempSensorTempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Temperature in Celsius""",
}, # column
"tempSensorTempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.4.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Temperature in Fahrenheit""",
}, # column
"airFlowSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5",
"status" : "current",
"description" :
"""A table of airflow sensors""",
}, # table
"airFlowSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1",
"status" : "current",
"linkage" : [
"airFlowSensorIndex",
],
"description" :
"""Entry in the air flow sensor table: each entry contains
an index (airFlowSensorIndex) and other sensor details""",
}, # row
"airFlowSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"airFlowSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"airFlowSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"airFlowSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"airFlowSensorTempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Temperature reading in C""",
}, # column
"airFlowSensorTempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Temperature reading in F""",
}, # column
"airFlowSensorFlow" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.7",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Air flow reading""",
}, # column
"airFlowSensorHumidity" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.8",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Humidity reading""",
}, # column
"airFlowSensorDewPointC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.9",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for Dew Point (C)""",
}, # column
"airFlowSensorDewPointF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.5.1.10",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degress Fahrenheit",
"description" :
"""Current reading for Dew Point (F)""",
}, # column
"powerTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6",
"status" : "current",
"description" :
"""A table of Power-Only devices""",
}, # table
"powerEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1",
"status" : "current",
"linkage" : [
"powerIndex",
],
"description" :
"""Entry in the power-only device table: each entry contains
an index (powerIndex) and other power details""",
}, # row
"powerIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"powerSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"powerName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"powerAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"powerVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts""",
}, # column
"powerDeciAmps" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps""",
}, # column
"powerRealPower" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power""",
}, # column
"powerApparentPower" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power""",
}, # column
"powerPowerFactor" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.6.1.9",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor""",
}, # column
"doorSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.7",
"status" : "current",
"description" :
"""A table of door sensors""",
}, # table
"doorSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.7.1",
"status" : "current",
"linkage" : [
"doorSensorIndex",
],
"description" :
"""Entry in the door sensor table: each entry contains
an index (doorSensorIndex) and other sensor details""",
}, # row
"doorSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.7.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"doorSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.7.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"doorSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.7.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"doorSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.7.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"doorSensorStatus" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.7.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Door sensor status""",
}, # column
"waterSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.8",
"status" : "current",
"description" :
"""A table of water sensors""",
}, # table
"waterSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.8.1",
"status" : "current",
"linkage" : [
"waterSensorIndex",
],
"description" :
"""Entry in the water sensor table: each entry contains
an index (waterSensorIndex) and other sensor details""",
}, # row
"waterSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.8.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"waterSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.8.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"waterSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.8.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"waterSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.8.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"waterSensorDampness" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.8.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Dampness of the water sensor""",
}, # column
"currentMonitorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.9",
"status" : "current",
"description" :
"""A table of current monitors""",
}, # table
"currentMonitorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.9.1",
"status" : "current",
"linkage" : [
"currentMonitorIndex",
],
"description" :
"""Entry in the current monitor table: each entry contains
an index (currentMonitorIndex) and other sensor details""",
}, # row
"currentMonitorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.9.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"currentMonitorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.9.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"currentMonitorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.9.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"currentMonitorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.9.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"currentMonitorDeciAmps" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.9.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "30"
},
],
"range" : {
"min" : "0",
"max" : "30"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"millivoltMonitorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.10",
"status" : "current",
"description" :
"""A table of millivolt monitors""",
}, # table
"millivoltMonitorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.10.1",
"status" : "current",
"linkage" : [
"millivoltMonitorIndex",
],
"description" :
"""Entry in the millivolt monitor table: each entry contains
an index (millivoltMonitorIndex) and other sensor details""",
}, # row
"millivoltMonitorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.10.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"millivoltMonitorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.10.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"millivoltMonitorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.10.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"millivoltMonitorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.10.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"millivoltMonitorMV" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.10.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "5000"
},
],
"range" : {
"min" : "0",
"max" : "5000"
},
},
},
"access" : "readonly",
"units" : "millivolts",
"description" :
"""millivolts""",
}, # column
"pow3ChTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11",
"status" : "current",
"description" :
"""A table of Power Monitor 3 Channel""",
}, # table
"pow3ChEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1",
"status" : "current",
"linkage" : [
"pow3ChIndex",
],
"description" :
"""Entry in the power monitor 3 channel table: each entry contains
an index (pow3ChIndex) and other power monitoring details""",
}, # row
"pow3ChIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"pow3ChSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"pow3ChName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"pow3ChAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"pow3ChKWattHrsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current reading for KWatt-Hours (Phase A)""",
}, # column
"pow3ChVoltsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase A)""",
}, # column
"pow3ChVoltMaxA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Max-Volts (Phase A)""",
}, # column
"pow3ChVoltMinA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Min-Volts (Phase A)""",
}, # column
"pow3ChVoltPeakA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts",
"description" :
"""Current reading for Peak-Volts (Phase A)""",
}, # column
"pow3ChDeciAmpsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase A)""",
}, # column
"pow3ChRealPowerA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase A)""",
}, # column
"pow3ChApparentPowerA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase A)""",
}, # column
"pow3ChPowerFactorA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.13",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase A)""",
}, # column
"pow3ChKWattHrsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.14",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current reading for KWatt-Hours (Phase B)""",
}, # column
"pow3ChVoltsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.15",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase B)""",
}, # column
"pow3ChVoltMaxB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.16",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Max-Volts (Phase B)""",
}, # column
"pow3ChVoltMinB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.17",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Min-Volts (Phase B)""",
}, # column
"pow3ChVoltPeakB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.18",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts",
"description" :
"""Current reading for Peak-Volts (Phase B)""",
}, # column
"pow3ChDeciAmpsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.19",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase B)""",
}, # column
"pow3ChRealPowerB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.20",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase B)""",
}, # column
"pow3ChApparentPowerB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.21",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase B)""",
}, # column
"pow3ChPowerFactorB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.22",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase B)""",
}, # column
"pow3ChKWattHrsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.23",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current reading for KWatt-Hours (Phase C)""",
}, # column
"pow3ChVoltsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.24",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase C)""",
}, # column
"pow3ChVoltMaxC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.25",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Max-Volts (Phase C)""",
}, # column
"pow3ChVoltMinC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.26",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Min-Volts (Phase C)""",
}, # column
"pow3ChVoltPeakC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.27",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts",
"description" :
"""Current reading for Peak-Volts (Phase C)""",
}, # column
"pow3ChDeciAmpsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.28",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase C)""",
}, # column
"pow3ChRealPowerC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.29",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase C)""",
}, # column
"pow3ChApparentPowerC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.30",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase C)""",
}, # column
"pow3ChPowerFactorC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.11.1.31",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase C)""",
}, # column
"outletTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12",
"status" : "current",
"description" :
"""A table of outlets""",
}, # table
"outletEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12.1",
"status" : "current",
"linkage" : [
"outletIndex",
],
"description" :
"""Entry in the outlet table: each entry contains
an index (outletIndex) and other sensor details""",
}, # row
"outletIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"outletSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"outletName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"outletAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"outlet1Status" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Outlet 1 status""",
}, # column
"outlet2Status" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.12.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Outlet 2 status""",
}, # column
"vsfcTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13",
"status" : "current",
"description" :
"""VSFC sensors (internal sensors for VSFC units)""",
}, # table
"vsfcEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1",
"status" : "current",
"linkage" : [
"vsfcIndex",
],
"description" :
"""Entry in the vsfc table: each entry contains
an index (vsfcIndex) and other details""",
}, # row
"vsfcIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "1"
},
],
"range" : {
"min" : "1",
"max" : "1"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"vsfcSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"vsfcName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"vsfcAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"vsfcSetPointC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "18",
"max" : "38"
},
],
"range" : {
"min" : "18",
"max" : "38"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current temperature set point in C""",
}, # column
"vsfcSetPointF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "65",
"max" : "100"
},
],
"range" : {
"min" : "65",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Current temperature set point in F""",
}, # column
"vsfcFanSpeed" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.7",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Fan Speed""",
}, # column
"vsfcIntTempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.8",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "50"
},
],
"range" : {
"min" : "-20",
"max" : "50"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current internal temperature reading in C""",
}, # column
"vsfcIntTempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.9",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-4",
"max" : "122"
},
],
"range" : {
"min" : "-4",
"max" : "122"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Current internal temperature reading in F""",
}, # column
"vsfcExt1TempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.10",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "50"
},
],
"range" : {
"min" : "-20",
"max" : "50"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for external temp 1 in C""",
}, # column
"vsfcExt1TempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.11",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "122"
},
],
"range" : {
"min" : "-20",
"max" : "122"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Current reading for external temp 1 in F""",
}, # column
"vsfcExt2TempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.12",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "50"
},
],
"range" : {
"min" : "-20",
"max" : "50"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for external temp 2 in C""",
}, # column
"vsfcExt2TempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.13",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "122"
},
],
"range" : {
"min" : "-20",
"max" : "122"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Current reading for external temp 1 in F""",
}, # column
"vsfcExt3TempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.14",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "50"
},
],
"range" : {
"min" : "-20",
"max" : "50"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for external temp 3 in C""",
}, # column
"vsfcExt3TempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.15",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "122"
},
],
"range" : {
"min" : "-20",
"max" : "122"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Current reading for external temp 1 in F""",
}, # column
"vsfcExt4TempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.16",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "50"
},
],
"range" : {
"min" : "-20",
"max" : "50"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for external temp 4 in C""",
}, # column
"vsfcExt4TempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.13.1.17",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "122"
},
],
"range" : {
"min" : "-20",
"max" : "122"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Current reading for external temp 1 in F""",
}, # column
"ctrl3ChTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14",
"status" : "current",
"description" :
"""A table of a 3 phase outlet control""",
}, # table
"ctrl3ChEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1",
"status" : "current",
"linkage" : [
"ctrl3ChIndex",
],
"description" :
"""Entry in the 3 phase outlet control table: each entry contains
an index (ctrl3ChIndex) and other outlet control monitoring details""",
}, # row
"ctrl3ChIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "1"
},
],
"range" : {
"min" : "1",
"max" : "1"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"ctrl3ChSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"ctrl3ChName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"ctrl3ChAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"ctrl3ChVoltsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase A)""",
}, # column
"ctrl3ChVoltPeakA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Peak-Volts (Phase A)""",
}, # column
"ctrl3ChDeciAmpsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase A)""",
}, # column
"ctrl3ChDeciAmpsPeakA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for Peak-DeciAmps (Phase A)""",
}, # column
"ctrl3ChRealPowerA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase A)""",
}, # column
"ctrl3ChApparentPowerA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase A)""",
}, # column
"ctrl3ChPowerFactorA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.11",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase A)""",
}, # column
"ctrl3ChVoltsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase B)""",
}, # column
"ctrl3ChVoltPeakB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.13",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Peak-Volts (Phase B)""",
}, # column
"ctrl3ChDeciAmpsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.14",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase B)""",
}, # column
"ctrl3ChDeciAmpsPeakB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.15",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for Peak-DeciAmps (Phase B)""",
}, # column
"ctrl3ChRealPowerB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.16",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase B)""",
}, # column
"ctrl3ChApparentPowerB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.17",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase B)""",
}, # column
"ctrl3ChPowerFactorB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.18",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase B)""",
}, # column
"ctrl3ChVoltsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.19",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase C)""",
}, # column
"ctrl3ChVoltPeakC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.20",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Peak-Volts (Phase C)""",
}, # column
"ctrl3ChDeciAmpsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.21",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase C)""",
}, # column
"ctrl3ChDeciAmpsPeakC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.22",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for Peak-DeciAmps (Phase C)""",
}, # column
"ctrl3ChRealPowerC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.23",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase C)""",
}, # column
"ctrl3ChApparentPowerC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.24",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase C)""",
}, # column
"ctrl3ChPowerFactorC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.14.1.25",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase C)""",
}, # column
"ctrlGrpAmpsTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15",
"status" : "current",
"description" :
"""A table of Control Group Amp readings""",
}, # table
"ctrlGrpAmpsEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1",
"status" : "current",
"linkage" : [
"ctrlGrpAmpsIndex",
],
"description" :
"""Entry in the Control Group Amps table: each entry contains
an index (ctrlGrpAmpsIndex) and other sensor details""",
}, # row
"ctrlGrpAmpsIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "1"
},
],
"range" : {
"min" : "1",
"max" : "1"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"ctrlGrpAmpsSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"ctrlGrpAmpsName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"ctrlGrpAmpsAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"ctrlGrpAmpsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group A""",
}, # column
"ctrlGrpAmpsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group B""",
}, # column
"ctrlGrpAmpsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group C""",
}, # column
"ctrlGrpAmpsD" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group D""",
}, # column
"ctrlGrpAmpsE" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group E""",
}, # column
"ctrlGrpAmpsF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group F""",
}, # column
"ctrlGrpAmpsG" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group G""",
}, # column
"ctrlGrpAmpsH" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""DeciAmps Group H""",
}, # column
"ctrlGrpAmpsAVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.13",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group A""",
}, # column
"ctrlGrpAmpsBVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.14",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group B""",
}, # column
"ctrlGrpAmpsCVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.15",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group C""",
}, # column
"ctrlGrpAmpsDVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.16",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group D""",
}, # column
"ctrlGrpAmpsEVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.17",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group E""",
}, # column
"ctrlGrpAmpsFVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.18",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group F""",
}, # column
"ctrlGrpAmpsGVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.19",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group G""",
}, # column
"ctrlGrpAmpsHVolts" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.15.1.20",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Volts Group H""",
}, # column
"ctrlOutletTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16",
"status" : "current",
"description" :
"""A table of outlet information""",
}, # table
"ctrlOutletEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1",
"status" : "current",
"linkage" : [
"ctrlOutletIndex",
],
"description" :
"""Entry in the control outlet table: each entry contains
an index (ctrlOutletIndex) and other sensor details""",
}, # row
"ctrlOutletIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Outlet Number""",
}, # column
"ctrlOutletName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readwrite",
"description" :
"""Outlet Friendly Name""",
}, # column
"ctrlOutletStatus" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Current Outlet Status: 0 = Off, 1 = On | Outlet Action Write: 1 = On, 2 = On Delayed, 3 = Off Immediate, 4 = Off Delayed, 5 = Reboot""",
}, # column
"ctrlOutletFeedback" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Outlet Feedback Value, should be equal to status""",
}, # column
"ctrlOutletPending" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Outlet Status Read to change to: 0 = Off, 1 = On | Outlet Action Write: 1 = On, 2 = On Delayed, 3 = Off Immediate, 4 = Off Delayed, 5 = Reboot""",
}, # column
"ctrlOutletDeciAmps" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Outlet DeciAmps reading""",
}, # column
"ctrlOutletGroup" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Outlet Group (A to G)""",
}, # column
"ctrlOutletUpDelay" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"units" : "seconds",
"description" :
"""Outlet Power Up Delay""",
}, # column
"ctrlOutletDwnDelay" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"units" : "seconds",
"description" :
"""Outlet Power Down Delay""",
}, # column
"ctrlOutletRbtDelay" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"units" : "seconds",
"description" :
"""Outlet Reboot Delay""",
}, # column
"ctrlOutletURL" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readwrite",
"description" :
"""Outlet URL""",
}, # column
"ctrlOutletPOAAction" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""POA Action: 1 = Off, 2 = On, 3 = Last, 0 = POA not supported on this unit type""",
}, # column
"ctrlOutletPOADelay" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.13",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"units" : "seconds",
"description" :
"""POA Delay""",
}, # column
"ctrlOutletKWattHrs" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.14",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current Reading for KWatt-Hours""",
}, # column
"ctrlOutletPower" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.16.1.15",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Power""",
}, # column
"dewPointSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17",
"status" : "current",
"description" :
"""A table of dew point sensors""",
}, # table
"dewPointSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1",
"status" : "current",
"linkage" : [
"dewPointSensorIndex",
],
"description" :
"""Entry in the dew point sensor table: each entry contains
an index (dewPointSensorIndex) and other sensor details""",
}, # row
"dewPointSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"dewPointSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"dewPointSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"dewPointSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"dewPointSensorTempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Temperature reading in C""",
}, # column
"dewPointSensorTempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Temperature reading in F""",
}, # column
"dewPointSensorHumidity" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.7",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Humidity reading""",
}, # column
"dewPointSensorDewPointC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.8",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Dew point reading in C""",
}, # column
"dewPointSensorDewPointF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.17.1.9",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degrees Fahrenheit",
"description" :
"""Dew point reading in F""",
}, # column
"digitalSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.18",
"status" : "current",
"description" :
"""A table of digital sensors""",
}, # table
"digitalSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.18.1",
"status" : "current",
"linkage" : [
"digitalSensorIndex",
],
"description" :
"""Entry in the digital sensor table: each entry contains
an index (digitalSensorIndex) and other sensor details""",
}, # row
"digitalSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.18.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"digitalSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.18.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"digitalSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.18.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"digitalSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.18.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"digitalSensorDigital" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.18.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Digital sensor status""",
}, # column
"dstsTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19",
"status" : "current",
"description" :
"""Digital Static Transfer Switch status""",
}, # table
"dstsEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1",
"status" : "current",
"linkage" : [
"dstsIndex",
],
"description" :
"""Entry in the DSTS table: each entry contains
an index (dstsIndex) and other details""",
}, # row
"dstsIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "1"
},
],
"range" : {
"min" : "1",
"max" : "1"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"dstsSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"dstsName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"dstsAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"dstsVoltsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""RMS Voltage of Side A""",
}, # column
"dstsDeciAmpsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""RMS Current of Side A in deciamps""",
}, # column
"dstsVoltsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""RMS Voltage of Side B""",
}, # column
"dstsDeciAmpsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""RMS Current of Side B in deciamps""",
}, # column
"dstsSourceAActive" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""If 99, source A active""",
}, # column
"dstsSourceBActive" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""If 99, source B active""",
}, # column
"dstsPowerStatusA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Power Quality of source A""",
}, # column
"dstsPowerStatusB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Power Quality of Source B""",
}, # column
"dstsSourceATempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.13",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "50"
},
],
"range" : {
"min" : "-20",
"max" : "50"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for Source A temp in C""",
}, # column
"dstsSourceBTempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.19.1.14",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-20",
"max" : "50"
},
],
"range" : {
"min" : "-20",
"max" : "50"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for Source B temp in C""",
}, # column
"cpmSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.20",
"status" : "current",
"description" :
"""A table of city power sensors""",
}, # table
"cpmSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.20.1",
"status" : "current",
"linkage" : [
"cpmSensorIndex",
],
"description" :
"""Entry in the city power sensor table: each entry contains
an index (cpmSensorIndex) and other sensor details""",
}, # row
"cpmSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.20.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"cpmSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.20.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"cpmSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.20.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"cpmSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.20.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"cpmSensorStatus" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.20.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""City Power sensor status""",
}, # column
"smokeAlarmTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.21",
"status" : "current",
"description" :
"""A table of smoke alarm sensors""",
}, # table
"smokeAlarmEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.21.1",
"status" : "current",
"linkage" : [
"smokeAlarmIndex",
],
"description" :
"""Entry in the smoke alarm sensor table: each entry contains
an index (smokeAlarmIndex) and other sensor details""",
}, # row
"smokeAlarmIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.21.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"smokeAlarmSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.21.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"smokeAlarmName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.21.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"smokeAlarmAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.21.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"smokeAlarmStatus" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.21.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Smoke alarm status""",
}, # column
"neg48VdcSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.22",
"status" : "current",
"description" :
"""A table of -48Vdc sensors""",
}, # table
"neg48VdcSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.22.1",
"status" : "current",
"linkage" : [
"neg48VdcSensorIndex",
],
"description" :
"""Entry in the -48Vdc sensor table: each entry contains
an index (neg48VdcSensorIndex) and other sensor details""",
}, # row
"neg48VdcSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.22.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"neg48VdcSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.22.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"neg48VdcSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.22.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"neg48VdcSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.22.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"neg48VdcSensorVoltage" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.22.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-100",
"max" : "10"
},
],
"range" : {
"min" : "-100",
"max" : "10"
},
},
},
"access" : "readonly",
"units" : "Volts",
"description" :
"""-48Vdc Sensor value""",
}, # column
"pos30VdcSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.23",
"status" : "current",
"description" :
"""A table of 30Vdc sensors""",
}, # table
"pos30VdcSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.23.1",
"status" : "current",
"linkage" : [
"pos30VdcSensorIndex",
],
"description" :
"""Entry in the 30Vdc sensor table: each entry contains
an index (pos30VdcSensorIndex) and other sensor details""",
}, # row
"pos30VdcSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.23.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"pos30VdcSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.23.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"pos30VdcSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.23.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"pos30VdcSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.23.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"pos30VdcSensorVoltage" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.23.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-10",
"max" : "100"
},
],
"range" : {
"min" : "-10",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Volts",
"description" :
"""30Vdc Sensor value""",
}, # column
"analogSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.24",
"status" : "current",
"description" :
"""A table of analog sensors""",
}, # table
"analogSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.24.1",
"status" : "current",
"linkage" : [
"analogSensorIndex",
],
"description" :
"""Entry in the analog input table: each entry contains
an index (analogSensorIndex) and other sensor details""",
}, # row
"analogSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.24.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"analogSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.24.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"analogSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.24.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"analogSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.24.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"analogSensorAnalog" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.24.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Analog Sensor Value""",
}, # column
"ctrl3ChIECTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25",
"status" : "current",
"description" :
"""A table of a 3 phase outlet control (IEC)""",
}, # table
"ctrl3ChIECEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1",
"status" : "current",
"linkage" : [
"ctrl3ChIECIndex",
],
"description" :
"""Entry in the 3 phase outlet control table: each entry contains
an index (ctrl3ChIECIndex) and other outlet control monitoring details""",
}, # row
"ctrl3ChIECIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"ctrl3ChIECSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"ctrl3ChIECName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"ctrl3ChIECAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"ctrl3ChIECKWattHrsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current Reading for KWatt-Hours (Phase A)""",
}, # column
"ctrl3ChIECVoltsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase A)""",
}, # column
"ctrl3ChIECVoltPeakA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Peak-Volts (Phase A)""",
}, # column
"ctrl3ChIECDeciAmpsA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase A)""",
}, # column
"ctrl3ChIECDeciAmpsPeakA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for Peak-DeciAmps (Phase A)""",
}, # column
"ctrl3ChIECRealPowerA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase A)""",
}, # column
"ctrl3ChIECApparentPowerA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase A)""",
}, # column
"ctrl3ChIECPowerFactorA" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.12",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase A)""",
}, # column
"ctrl3ChIECKWattHrsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.13",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current Reading for KWatt-Hours (Phase B)""",
}, # column
"ctrl3ChIECVoltsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.14",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase B)""",
}, # column
"ctrl3ChIECVoltPeakB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.15",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Peak-Volts (Phase B)""",
}, # column
"ctrl3ChIECDeciAmpsB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.16",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase B)""",
}, # column
"ctrl3ChIECDeciAmpsPeakB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.17",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for Peak-DeciAmps (Phase B)""",
}, # column
"ctrl3ChIECRealPowerB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.18",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase B)""",
}, # column
"ctrl3ChIECApparentPowerB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.19",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase B)""",
}, # column
"ctrl3ChIECPowerFactorB" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.20",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase B)""",
}, # column
"ctrl3ChIECKWattHrsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.21",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "KWh",
"description" :
"""Current Reading for KWatt-Hours (Phase C)""",
}, # column
"ctrl3ChIECVoltsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.22",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Volts (Phase C)""",
}, # column
"ctrl3ChIECVoltPeakC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.23",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volts (rms)",
"description" :
"""Current reading for Peak-Volts (Phase C)""",
}, # column
"ctrl3ChIECDeciAmpsC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.24",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for DeciAmps (Phase C)""",
}, # column
"ctrl3ChIECDeciAmpsPeakC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.25",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "0.1 Amps (rms)",
"description" :
"""Current reading for Peak-DeciAmps (Phase C)""",
}, # column
"ctrl3ChIECRealPowerC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.26",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Watts",
"description" :
"""Current reading for Real Power (Phase C)""",
}, # column
"ctrl3ChIECApparentPowerC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.27",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"units" : "Volt-Amps",
"description" :
"""Current reading for Apparent Power (Phase C)""",
}, # column
"ctrl3ChIECPowerFactorC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.25.1.28",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "%",
"description" :
"""Current reading for Power Factor (Phase C)""",
}, # column
"climateRelayTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26",
"status" : "current",
"description" :
"""Climate Relay sensors (internal sensors for climate relay units)""",
}, # table
"climateRelayEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1",
"status" : "current",
"linkage" : [
"climateRelayIndex",
],
"description" :
"""Entry in the climate table: each entry contains
an index (climateRelayIndex) and other details""",
}, # row
"climateRelayIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "1"
},
],
"range" : {
"min" : "1",
"max" : "1"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"climateRelaySerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"climateRelayName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"climateRelayAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"climateRelayTempC" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-50",
"max" : "100"
},
],
"range" : {
"min" : "-50",
"max" : "100"
},
},
},
"access" : "readonly",
"units" : "Degrees Celsius",
"description" :
"""Current reading for Temperature (C)""",
}, # column
"climateRelayTempF" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.6",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "-58",
"max" : "212"
},
],
"range" : {
"min" : "-58",
"max" : "212"
},
},
},
"access" : "readonly",
"units" : "Degress Fahrenheit",
"description" :
"""Current reading for Temperature (F)""",
}, # column
"climateRelayIO1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.7",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 1""",
}, # column
"climateRelayIO2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.8",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 2""",
}, # column
"climateRelayIO3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.9",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 3""",
}, # column
"climateRelayIO4" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.10",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 4""",
}, # column
"climateRelayIO5" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.11",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 5""",
}, # column
"climateRelayIO6" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.26.1.12",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 6""",
}, # column
"ctrlRelayTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27",
"status" : "current",
"description" :
"""A table of relay information""",
}, # table
"ctrlRelayEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27.1",
"status" : "current",
"linkage" : [
"ctrlRelayIndex",
],
"description" :
"""Entry in the control relay table: each entry contains
an index (ctrlRelayIndex) and other sensor details""",
}, # row
"ctrlRelayIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Relay Number""",
}, # column
"ctrlRelayName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readwrite",
"description" :
"""Relay Friendly Name""",
}, # column
"ctrlRelayState" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Current Relay Status: 0 = Off, 1 = On""",
}, # column
"ctrlRelayLatchingMode" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay latching mode: 0 = Non-latching, 1 = Latching""",
}, # column
"ctrlRelayOverride" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay Override Mode: 0 - None, 1 - On, 2 - Off""",
}, # column
"ctrlRelayAcknowledge" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.27.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Acknowledge write a 1, always reads back 0""",
}, # column
"airSpeedSwitchSensorTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.28",
"status" : "current",
"description" :
"""A table of air speed switch sensors""",
}, # table
"airSpeedSwitchSensorEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.28.1",
"status" : "current",
"linkage" : [
"airSpeedSwitchSensorIndex",
],
"description" :
"""Entry in the air speed switch sensor table: each entry contains
an index (airSpeedSwitchIndex) and other sensor details""",
}, # row
"airSpeedSwitchSensorIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.28.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"airSpeedSwitchSensorSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.28.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"airSpeedSwitchSensorName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.28.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"airSpeedSwitchSensorAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.28.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"airSpeedSwitchSensorAirSpeed" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.28.1.5",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Air Speed Switch Status""",
}, # column
"powerDMTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29",
"status" : "current",
"description" :
"""A table of DM48 current monitors""",
}, # table
"powerDMEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1",
"status" : "current",
"linkage" : [
"powerDMIndex",
],
"description" :
"""Entry in the DM48 current monitor table: each entry contains
an index (powerDMIndex) and other sensor details""",
}, # row
"powerDMIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "100"
},
],
"range" : {
"min" : "1",
"max" : "100"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"powerDMSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"powerDMName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"powerDMAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"powerDMUnitInfoTitle" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Type of Unit""",
}, # column
"powerDMUnitInfoVersion" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Unit Version Number""",
}, # column
"powerDMUnitInfoMainCount" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.7",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "16"
},
],
"range" : {
"min" : "0",
"max" : "16"
},
},
},
"access" : "readonly",
"description" :
"""Number of Main (Total Amps) Channels on the Unit""",
}, # column
"powerDMUnitInfoAuxCount" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.8",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "48"
},
],
"range" : {
"min" : "0",
"max" : "48"
},
},
},
"access" : "readonly",
"description" :
"""Number of Auxiliary (Outlet) Channels on the Unit""",
}, # column
"powerDMChannelName1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 1 Factory Name""",
}, # column
"powerDMChannelName2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 2 Factory Name""",
}, # column
"powerDMChannelName3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 3 Factory Name""",
}, # column
"powerDMChannelName4" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 4 Factory Name""",
}, # column
"powerDMChannelName5" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.13",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 5 Factory Name""",
}, # column
"powerDMChannelName6" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.14",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 6 Factory Name""",
}, # column
"powerDMChannelName7" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.15",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 7 Factory Name""",
}, # column
"powerDMChannelName8" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.16",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 8 Factory Name""",
}, # column
"powerDMChannelName9" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.17",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 9 Factory Name""",
}, # column
"powerDMChannelName10" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.18",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 10 Factory Name""",
}, # column
"powerDMChannelName11" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.19",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 11 Factory Name""",
}, # column
"powerDMChannelName12" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.20",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 12 Factory Name""",
}, # column
"powerDMChannelName13" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.21",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 13 Factory Name""",
}, # column
"powerDMChannelName14" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.22",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 14 Factory Name""",
}, # column
"powerDMChannelName15" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.23",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 15 Factory Name""",
}, # column
"powerDMChannelName16" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.24",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 16 Factory Name""",
}, # column
"powerDMChannelName17" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.25",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 17 Factory Name""",
}, # column
"powerDMChannelName18" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.26",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 18 Factory Name""",
}, # column
"powerDMChannelName19" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.27",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 19 Factory Name""",
}, # column
"powerDMChannelName20" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.28",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 20 Factory Name""",
}, # column
"powerDMChannelName21" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.29",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 21 Factory Name""",
}, # column
"powerDMChannelName22" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.30",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 22 Factory Name""",
}, # column
"powerDMChannelName23" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.31",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 23 Factory Name""",
}, # column
"powerDMChannelName24" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.32",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 24 Factory Name""",
}, # column
"powerDMChannelName25" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.33",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 25 Factory Name""",
}, # column
"powerDMChannelName26" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.34",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 26 Factory Name""",
}, # column
"powerDMChannelName27" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.35",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 27 Factory Name""",
}, # column
"powerDMChannelName28" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.36",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 28 Factory Name""",
}, # column
"powerDMChannelName29" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.37",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 29 Factory Name""",
}, # column
"powerDMChannelName30" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.38",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 30 Factory Name""",
}, # column
"powerDMChannelName31" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.39",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 31 Factory Name""",
}, # column
"powerDMChannelName32" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.40",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 32 Factory Name""",
}, # column
"powerDMChannelName33" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.41",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 33 Factory Name""",
}, # column
"powerDMChannelName34" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.42",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 34 Factory Name""",
}, # column
"powerDMChannelName35" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.43",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 35 Factory Name""",
}, # column
"powerDMChannelName36" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.44",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 36 Factory Name""",
}, # column
"powerDMChannelName37" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.45",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 37 Factory Name""",
}, # column
"powerDMChannelName38" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.46",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 38 Factory Name""",
}, # column
"powerDMChannelName39" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.47",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 39 Factory Name""",
}, # column
"powerDMChannelName40" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.48",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 40 Factory Name""",
}, # column
"powerDMChannelName41" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.49",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 41 Factory Name""",
}, # column
"powerDMChannelName42" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.50",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 42 Factory Name""",
}, # column
"powerDMChannelName43" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.51",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 43 Factory Name""",
}, # column
"powerDMChannelName44" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.52",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 44 Factory Name""",
}, # column
"powerDMChannelName45" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.53",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 45 Factory Name""",
}, # column
"powerDMChannelName46" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.54",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 46 Factory Name""",
}, # column
"powerDMChannelName47" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.55",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 47 Factory Name""",
}, # column
"powerDMChannelName48" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.56",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 48 Factory Name""",
}, # column
"powerDMChannelFriendly1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.57",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 1 Friendly Name""",
}, # column
"powerDMChannelFriendly2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.58",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 2 Friendly Name""",
}, # column
"powerDMChannelFriendly3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.59",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 3 Friendly Name""",
}, # column
"powerDMChannelFriendly4" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.60",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 4 Friendly Name""",
}, # column
"powerDMChannelFriendly5" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.61",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 5 Friendly Name""",
}, # column
"powerDMChannelFriendly6" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.62",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 6 Friendly Name""",
}, # column
"powerDMChannelFriendly7" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.63",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 7 Friendly Name""",
}, # column
"powerDMChannelFriendly8" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.64",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 8 Friendly Name""",
}, # column
"powerDMChannelFriendly9" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.65",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 9 Friendly Name""",
}, # column
"powerDMChannelFriendly10" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.66",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 10 Friendly Name""",
}, # column
"powerDMChannelFriendly11" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.67",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 11 Friendly Name""",
}, # column
"powerDMChannelFriendly12" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.68",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 12 Friendly Name""",
}, # column
"powerDMChannelFriendly13" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.69",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 13 Friendly Name""",
}, # column
"powerDMChannelFriendly14" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.70",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 14 Friendly Name""",
}, # column
"powerDMChannelFriendly15" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.71",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 15 Friendly Name""",
}, # column
"powerDMChannelFriendly16" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.72",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 16 Friendly Name""",
}, # column
"powerDMChannelFriendly17" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.73",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 17 Friendly Name""",
}, # column
"powerDMChannelFriendly18" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.74",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 18 Friendly Name""",
}, # column
"powerDMChannelFriendly19" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.75",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 19 Friendly Name""",
}, # column
"powerDMChannelFriendly20" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.76",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 20 Friendly Name""",
}, # column
"powerDMChannelFriendly21" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.77",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 21 Friendly Name""",
}, # column
"powerDMChannelFriendly22" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.78",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 22 Friendly Name""",
}, # column
"powerDMChannelFriendly23" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.79",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 23 Friendly Name""",
}, # column
"powerDMChannelFriendly24" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.80",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 24 Friendly Name""",
}, # column
"powerDMChannelFriendly25" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.81",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 25 Friendly Name""",
}, # column
"powerDMChannelFriendly26" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.82",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 26 Friendly Name""",
}, # column
"powerDMChannelFriendly27" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.83",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 27 Friendly Name""",
}, # column
"powerDMChannelFriendly28" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.84",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 28 Friendly Name""",
}, # column
"powerDMChannelFriendly29" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.85",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 29 Friendly Name""",
}, # column
"powerDMChannelFriendly30" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.86",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 30 Friendly Name""",
}, # column
"powerDMChannelFriendly31" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.87",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 31 Friendly Name""",
}, # column
"powerDMChannelFriendly32" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.88",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 32 Friendly Name""",
}, # column
"powerDMChannelFriendly33" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.89",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 33 Friendly Name""",
}, # column
"powerDMChannelFriendly34" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.90",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 34 Friendly Name""",
}, # column
"powerDMChannelFriendly35" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.91",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 35 Friendly Name""",
}, # column
"powerDMChannelFriendly36" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.92",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 36 Friendly Name""",
}, # column
"powerDMChannelFriendly37" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.93",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 37 Friendly Name""",
}, # column
"powerDMChannelFriendly38" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.94",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 38 Friendly Name""",
}, # column
"powerDMChannelFriendly39" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.95",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 39 Friendly Name""",
}, # column
"powerDMChannelFriendly40" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.96",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 40 Friendly Name""",
}, # column
"powerDMChannelFriendly41" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.97",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 41 Friendly Name""",
}, # column
"powerDMChannelFriendly42" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.98",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 42 Friendly Name""",
}, # column
"powerDMChannelFriendly43" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.99",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 43 Friendly Name""",
}, # column
"powerDMChannelFriendly44" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.100",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 44 Friendly Name""",
}, # column
"powerDMChannelFriendly45" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.101",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 45 Friendly Name""",
}, # column
"powerDMChannelFriendly46" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.102",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 46 Friendly Name""",
}, # column
"powerDMChannelFriendly47" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.103",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 47 Friendly Name""",
}, # column
"powerDMChannelFriendly48" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.104",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 48 Friendly Name""",
}, # column
"powerDMChannelGroup1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.105",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 1 Group""",
}, # column
"powerDMChannelGroup2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.106",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 2 Group""",
}, # column
"powerDMChannelGroup3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.107",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 3 Group""",
}, # column
"powerDMChannelGroup4" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.108",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 4 Group""",
}, # column
"powerDMChannelGroup5" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.109",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 5 Group""",
}, # column
"powerDMChannelGroup6" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.110",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 6 Group""",
}, # column
"powerDMChannelGroup7" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.111",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 7 Group""",
}, # column
"powerDMChannelGroup8" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.112",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 8 Group""",
}, # column
"powerDMChannelGroup9" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.113",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 9 Group""",
}, # column
"powerDMChannelGroup10" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.114",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 10 Group""",
}, # column
"powerDMChannelGroup11" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.115",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 11 Group""",
}, # column
"powerDMChannelGroup12" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.116",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 12 Group""",
}, # column
"powerDMChannelGroup13" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.117",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 13 Group""",
}, # column
"powerDMChannelGroup14" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.118",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 14 Group""",
}, # column
"powerDMChannelGroup15" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.119",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 15 Group""",
}, # column
"powerDMChannelGroup16" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.120",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 16 Group""",
}, # column
"powerDMChannelGroup17" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.121",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 17 Group""",
}, # column
"powerDMChannelGroup18" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.122",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 18 Group""",
}, # column
"powerDMChannelGroup19" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.123",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 19 Group""",
}, # column
"powerDMChannelGroup20" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.124",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 20 Group""",
}, # column
"powerDMChannelGroup21" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.125",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 21 Group""",
}, # column
"powerDMChannelGroup22" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.126",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 22 Group""",
}, # column
"powerDMChannelGroup23" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.127",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 23 Group""",
}, # column
"powerDMChannelGroup24" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.128",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 24 Group""",
}, # column
"powerDMChannelGroup25" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.129",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 25 Group""",
}, # column
"powerDMChannelGroup26" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.130",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 26 Group""",
}, # column
"powerDMChannelGroup27" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.131",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 27 Group""",
}, # column
"powerDMChannelGroup28" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.132",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 28 Group""",
}, # column
"powerDMChannelGroup29" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.133",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 29 Group""",
}, # column
"powerDMChannelGroup30" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.134",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 30 Group""",
}, # column
"powerDMChannelGroup31" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.135",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 31 Group""",
}, # column
"powerDMChannelGroup32" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.136",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 32 Group""",
}, # column
"powerDMChannelGroup33" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.137",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 33 Group""",
}, # column
"powerDMChannelGroup34" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.138",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 34 Group""",
}, # column
"powerDMChannelGroup35" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.139",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 35 Group""",
}, # column
"powerDMChannelGroup36" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.140",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 36 Group""",
}, # column
"powerDMChannelGroup37" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.141",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 37 Group""",
}, # column
"powerDMChannelGroup38" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.142",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 38 Group""",
}, # column
"powerDMChannelGroup39" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.143",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 39 Group""",
}, # column
"powerDMChannelGroup40" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.144",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 40 Group""",
}, # column
"powerDMChannelGroup41" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.145",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 41 Group""",
}, # column
"powerDMChannelGroup42" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.146",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 42 Group""",
}, # column
"powerDMChannelGroup43" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.147",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 43 Group""",
}, # column
"powerDMChannelGroup44" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.148",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 44 Group""",
}, # column
"powerDMChannelGroup45" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.149",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 45 Group""",
}, # column
"powerDMChannelGroup46" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.150",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 46 Group""",
}, # column
"powerDMChannelGroup47" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.151",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 47 Group""",
}, # column
"powerDMChannelGroup48" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.152",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Channel 48 Group""",
}, # column
"powerDMDeciAmps1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.153",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.154",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.155",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps4" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.156",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps5" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.157",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps6" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.158",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps7" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.159",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps8" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.160",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps9" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.161",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps10" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.162",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps11" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.163",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps12" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.164",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps13" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.165",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps14" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.166",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps15" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.167",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps16" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.168",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps17" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.169",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps18" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.170",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps19" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.171",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps20" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.172",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps21" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.173",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps22" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.174",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps23" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.175",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps24" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.176",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps25" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.177",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps26" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.178",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps27" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.179",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps28" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.180",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps29" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.181",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps30" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.182",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps31" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.183",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps32" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.184",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps33" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.185",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps34" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.186",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps35" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.187",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps36" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.188",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps37" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.189",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps38" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.190",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps39" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.191",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps40" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.192",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps41" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.193",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps42" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.194",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps43" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.195",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps44" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.196",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps45" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.197",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps46" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.198",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps47" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.199",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"powerDMDeciAmps48" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.29.1.200",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "1209"
},
],
"range" : {
"min" : "0",
"max" : "1209"
},
},
},
"access" : "readonly",
"units" : "0.1 Amps",
"description" :
"""Current in deciamps""",
}, # column
"ioExpanderTable" : {
"nodetype" : "table",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30",
"status" : "current",
"description" :
"""IO Expander device with relay capability""",
}, # table
"ioExpanderEntry" : {
"nodetype" : "row",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1",
"status" : "current",
"linkage" : [
"ioExpanderIndex",
],
"description" :
"""Entry in the IO Expander table: each entry contains
an index (ioExpanderIndex) and other details""",
}, # row
"ioExpanderIndex" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.1",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "1",
"max" : "1"
},
],
"range" : {
"min" : "1",
"max" : "1"
},
},
},
"access" : "noaccess",
"description" :
"""Table entry index value""",
}, # column
"ioExpanderSerial" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.2",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Serial Number""",
}, # column
"ioExpanderName" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.3",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""Friendly Name""",
}, # column
"ioExpanderAvail" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.4",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Is device currently plugged in?""",
}, # column
"ioExpanderFriendlyName1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.5",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 1 Friendly Name""",
}, # column
"ioExpanderFriendlyName2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.6",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 2 Friendly Name""",
}, # column
"ioExpanderFriendlyName3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.7",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 3 Friendly Name""",
}, # column
"ioExpanderFriendlyName4" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.8",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 4 Friendly Name""",
}, # column
"ioExpanderFriendlyName5" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.9",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 5 Friendly Name""",
}, # column
"ioExpanderFriendlyName6" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.10",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 6 Friendly Name""",
}, # column
"ioExpanderFriendlyName7" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.11",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 7 Friendly Name""",
}, # column
"ioExpanderFriendlyName8" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.12",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 8 Friendly Name""",
}, # column
"ioExpanderFriendlyName9" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.13",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 9 Friendly Name""",
}, # column
"ioExpanderFriendlyName10" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.14",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 10 Friendly Name""",
}, # column
"ioExpanderFriendlyName11" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.15",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 11 Friendly Name""",
}, # column
"ioExpanderFriendlyName12" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.16",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 12 Friendly Name""",
}, # column
"ioExpanderFriendlyName13" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.17",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 13 Friendly Name""",
}, # column
"ioExpanderFriendlyName14" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.18",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 14 Friendly Name""",
}, # column
"ioExpanderFriendlyName15" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.19",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 15 Friendly Name""",
}, # column
"ioExpanderFriendlyName16" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.20",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 16 Friendly Name""",
}, # column
"ioExpanderFriendlyName17" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.21",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 17 Friendly Name""",
}, # column
"ioExpanderFriendlyName18" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.22",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 18 Friendly Name""",
}, # column
"ioExpanderFriendlyName19" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.23",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 19 Friendly Name""",
}, # column
"ioExpanderFriendlyName20" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.24",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 20 Friendly Name""",
}, # column
"ioExpanderFriendlyName21" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.25",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 21 Friendly Name""",
}, # column
"ioExpanderFriendlyName22" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.26",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 22 Friendly Name""",
}, # column
"ioExpanderFriendlyName23" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.27",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 23 Friendly Name""",
}, # column
"ioExpanderFriendlyName24" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.28",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 24 Friendly Name""",
}, # column
"ioExpanderFriendlyName25" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.29",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 25 Friendly Name""",
}, # column
"ioExpanderFriendlyName26" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.30",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 26 Friendly Name""",
}, # column
"ioExpanderFriendlyName27" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.31",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 27 Friendly Name""",
}, # column
"ioExpanderFriendlyName28" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.32",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 28 Friendly Name""",
}, # column
"ioExpanderFriendlyName29" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.33",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 29 Friendly Name""",
}, # column
"ioExpanderFriendlyName30" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.34",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 30 Friendly Name""",
}, # column
"ioExpanderFriendlyName31" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.35",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 31 Friendly Name""",
}, # column
"ioExpanderFriendlyName32" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.36",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readonly",
"description" :
"""IO 32 Friendly Name""",
}, # column
"ioExpanderIO1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.37",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 1""",
}, # column
"ioExpanderIO2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.38",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 2""",
}, # column
"ioExpanderIO3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.39",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 3""",
}, # column
"ioExpanderIO4" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.40",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 4""",
}, # column
"ioExpanderIO5" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.41",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 5""",
}, # column
"ioExpanderIO6" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.42",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 6""",
}, # column
"ioExpanderIO7" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.43",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 7""",
}, # column
"ioExpanderIO8" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.44",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 8""",
}, # column
"ioExpanderIO9" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.45",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 9""",
}, # column
"ioExpanderIO10" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.46",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 10""",
}, # column
"ioExpanderIO11" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.47",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 11""",
}, # column
"ioExpanderIO12" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.48",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 12""",
}, # column
"ioExpanderIO13" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.49",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 13""",
}, # column
"ioExpanderIO14" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.50",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 14""",
}, # column
"ioExpanderIO15" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.51",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 15""",
}, # column
"ioExpanderIO16" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.52",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 16""",
}, # column
"ioExpanderIO17" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.53",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 17""",
}, # column
"ioExpanderIO18" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.54",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 18""",
}, # column
"ioExpanderIO19" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.55",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 19""",
}, # column
"ioExpanderIO20" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.56",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 20""",
}, # column
"ioExpanderIO21" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.57",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 21""",
}, # column
"ioExpanderIO22" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.58",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 22""",
}, # column
"ioExpanderIO23" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.59",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 23""",
}, # column
"ioExpanderIO24" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.60",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 24""",
}, # column
"ioExpanderIO25" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.61",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 25""",
}, # column
"ioExpanderIO26" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.62",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 26""",
}, # column
"ioExpanderIO27" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.63",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 27""",
}, # column
"ioExpanderIO28" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.64",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 28""",
}, # column
"ioExpanderIO29" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.65",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 29""",
}, # column
"ioExpanderIO30" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.66",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 30""",
}, # column
"ioExpanderIO31" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.67",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 31""",
}, # column
"ioExpanderIO32" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.68",
"status" : "current",
"syntax" : {
"type" : {
"basetype" : "Integer32",
"ranges" : [
{
"min" : "0",
"max" : "100"
},
],
"range" : {
"min" : "0",
"max" : "100"
},
},
},
"access" : "readonly",
"description" :
"""Current reading for Analog Input 32""",
}, # column
"ioExpanderRelayName1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.69",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readwrite",
"description" :
"""Relay1 Friendly Name""",
}, # column
"ioExpanderRelayState1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.70",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Relay1 Current Status: 0 = Off, 1 = On""",
}, # column
"ioExpanderRelayLatchingMode1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.71",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay1 Latching mode: 0 = Non-latching, 1 = Latching""",
}, # column
"ioExpanderRelayOverride1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.72",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay1 Override Mode: 0 - None, 1 - On, 2 - Off""",
}, # column
"ioExpanderRelayAcknowledge1" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.73",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay1 Acknowledge write a 1, always reads back 0""",
}, # column
"ioExpanderRelayName2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.74",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readwrite",
"description" :
"""Relay2 Friendly Name""",
}, # column
"ioExpanderRelayState2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.75",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Relay2 Current Status: 0 = Off, 1 = On""",
}, # column
"ioExpanderRelayLatchingMode2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.76",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay2 Latching mode: 0 = Non-latching, 1 = Latching""",
}, # column
"ioExpanderRelayOverride2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.77",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay2 Override Mode: 0 - None, 1 - On, 2 - Off""",
}, # column
"ioExpanderRelayAcknowledge2" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.78",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay2 Acknowledge write a 1, always reads back 0""",
}, # column
"ioExpanderRelayName3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.79",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-TC", "name" : "DisplayString"},
},
"access" : "readwrite",
"description" :
"""Relay3 Friendly Name""",
}, # column
"ioExpanderRelayState3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.80",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readonly",
"description" :
"""Relay3 Current Status: 0 = Off, 1 = On""",
}, # column
"ioExpanderRelayLatchingMode3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.81",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay3 Latching mode: 0 = Non-latching, 1 = Latching""",
}, # column
"ioExpanderRelayOverride3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.82",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay3 Override Mode: 0 - None, 1 - On, 2 - Off""",
}, # column
"ioExpanderRelayAcknowledge3" : {
"nodetype" : "column",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.30.1.83",
"status" : "current",
"syntax" : {
"type" : { "module" :"SNMPv2-SMI", "name" : "Gauge32"},
},
"access" : "readwrite",
"description" :
"""Relay3 Acknowledge write a 1, always reads back 0""",
}, # column
"cmTrap" : {
"nodetype" : "node",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767",
}, # node
"cmTrapPrefix" : {
"nodetype" : "node",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0",
}, # node
}, # nodes
"notifications" : {
"cmTestNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10101",
"status" : "current",
"objects" : {
},
"description" :
"""Test SNMP Trap""",
}, # notification
"cmClimateTempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10205",
"status" : "current",
"objects" : {
"climateTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Temperature Sensor Trap""",
}, # notification
"cmClimateTempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10206",
"status" : "current",
"objects" : {
"climateTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Temperature Sensor Trap""",
}, # notification
"cmClimateHumidityNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10207",
"status" : "current",
"objects" : {
"climateHumidity" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Humidity Sensor Trap""",
}, # notification
"cmClimateLightNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10208",
"status" : "current",
"objects" : {
"climateLight" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Light Sensor Trap""",
}, # notification
"cmClimateAirflowNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10209",
"status" : "current",
"objects" : {
"climateAirflow" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Air Flow Sensor Trap""",
}, # notification
"cmClimateSoundNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10210",
"status" : "current",
"objects" : {
"climateSound" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Sound Sensor Trap""",
}, # notification
"cmClimateIO1NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10211",
"status" : "current",
"objects" : {
"climateIO1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate IO1 Sensor Trap""",
}, # notification
"cmClimateIO2NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10212",
"status" : "current",
"objects" : {
"climateIO2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate IO2 Sensor Trap""",
}, # notification
"cmClimateIO3NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10213",
"status" : "current",
"objects" : {
"climateIO3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate IO3 Sensor Trap""",
}, # notification
"cmClimateDewPointCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10214",
"status" : "current",
"objects" : {
"climateDewPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Dew Point Sensor Trap""",
}, # notification
"cmClimateDewPointFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10215",
"status" : "current",
"objects" : {
"climateDewPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Dew Point Sensor Trap""",
}, # notification
"cmPowMonKWattHrsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10305",
"status" : "current",
"objects" : {
"powMonKWattHrs" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours Trap""",
}, # notification
"cmPowMonVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10306",
"status" : "current",
"objects" : {
"powMonVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Trap""",
}, # notification
"cmPowMonVoltMaxNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10307",
"status" : "current",
"objects" : {
"powMonVoltMax" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max Trap""",
}, # notification
"cmPowMonVoltMinNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10308",
"status" : "current",
"objects" : {
"powMonVoltMin" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min Trap""",
}, # notification
"cmPowMonVoltPeakNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10309",
"status" : "current",
"objects" : {
"powMonVoltPeak" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak Trap""",
}, # notification
"cmPowMonDeciAmpsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10310",
"status" : "current",
"objects" : {
"powMonDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DeciAmps Trap""",
}, # notification
"cmPowMonRealPowerNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10311",
"status" : "current",
"objects" : {
"powMonRealPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power Trap""",
}, # notification
"cmPowMonApparentPowerNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10312",
"status" : "current",
"objects" : {
"powMonApparentPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power Trap""",
}, # notification
"cmPowMonPowerFactorNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10313",
"status" : "current",
"objects" : {
"powMonPowerFactor" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor Trap""",
}, # notification
"cmPowMonOutlet1NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10314",
"status" : "current",
"objects" : {
"powMonOutlet1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet 1 Clear Trap""",
}, # notification
"cmPowMonOutlet2NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10315",
"status" : "current",
"objects" : {
"powMonOutlet2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet 2 Clear Trap""",
}, # notification
"cmTempSensorTempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10405",
"status" : "current",
"objects" : {
"tempSensorTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"tempSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Temp Sensor - Temperature Trap""",
}, # notification
"cmTempSensorTempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10406",
"status" : "current",
"objects" : {
"tempSensorTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"tempSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Temp Sensor - Temperature Trap""",
}, # notification
"cmAirFlowSensorTempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10505",
"status" : "current",
"objects" : {
"airFlowSensorTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Temperature Trap""",
}, # notification
"cmAirFlowSensorTempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10506",
"status" : "current",
"objects" : {
"airFlowSensorTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Temperature Trap""",
}, # notification
"cmAirFlowSensorFlowNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10507",
"status" : "current",
"objects" : {
"airFlowSensorFlow" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Air Flow Trap""",
}, # notification
"cmAirFlowSensorHumidityNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10508",
"status" : "current",
"objects" : {
"airFlowSensorHumidity" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Humidity""",
}, # notification
"cmAirFlowSensorDewPointCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10509",
"status" : "current",
"objects" : {
"airFlowSensorDewPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Dew Point Trap""",
}, # notification
"cmAirFlowSensorDewPointFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10510",
"status" : "current",
"objects" : {
"airFlowSensorDewPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Dew Point Trap""",
}, # notification
"cmPowerVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10605",
"status" : "current",
"objects" : {
"powerVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Volts Trap""",
}, # notification
"cmPowerDeciAmpsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10606",
"status" : "current",
"objects" : {
"powerDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Amps Trap""",
}, # notification
"cmPowerRealPowerNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10607",
"status" : "current",
"objects" : {
"powerRealPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Watts Trap""",
}, # notification
"cmPowerApparentPowerNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10608",
"status" : "current",
"objects" : {
"powerApparentPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Volt Amps Trap""",
}, # notification
"cmPowerPowerFactorNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10609",
"status" : "current",
"objects" : {
"powerPowerFactor" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Power Factor Trap""",
}, # notification
"cmDoorSensorStatusNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10705",
"status" : "current",
"objects" : {
"doorSensorStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"doorSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Door sensor Trap""",
}, # notification
"cmWaterSensorDampnessNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10805",
"status" : "current",
"objects" : {
"waterSensorDampness" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"waterSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Water sensor Trap""",
}, # notification
"cmCurrentMonitorDeciAmpsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.10905",
"status" : "current",
"objects" : {
"currentMonitorDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"currentMonitorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Current Monitor Amps Trap""",
}, # notification
"cmMillivoltMonitorMVNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11005",
"status" : "current",
"objects" : {
"millivoltMonitorMV" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"millivoltMonitorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Millivolt Monitor Trap""",
}, # notification
"cmPow3ChKWattHrsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11105",
"status" : "current",
"objects" : {
"pow3ChKWattHrsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours A Trap""",
}, # notification
"cmPow3ChVoltsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11106",
"status" : "current",
"objects" : {
"pow3ChVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts A Trap""",
}, # notification
"cmPow3ChVoltMaxANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11107",
"status" : "current",
"objects" : {
"pow3ChVoltMaxA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max A Trap""",
}, # notification
"cmPow3ChVoltMinANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11108",
"status" : "current",
"objects" : {
"pow3ChVoltMinA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min A Trap""",
}, # notification
"cmPow3ChVoltPeakANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11109",
"status" : "current",
"objects" : {
"pow3ChVoltPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak A Trap""",
}, # notification
"cmPow3ChDeciAmpsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11110",
"status" : "current",
"objects" : {
"pow3ChDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps A Trap""",
}, # notification
"cmPow3ChRealPowerANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11111",
"status" : "current",
"objects" : {
"pow3ChRealPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power A Trap""",
}, # notification
"cmPow3ChApparentPowerANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11112",
"status" : "current",
"objects" : {
"pow3ChApparentPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power A Trap""",
}, # notification
"cmPow3ChPowerFactorANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11113",
"status" : "current",
"objects" : {
"pow3ChPowerFactorA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor A Trap""",
}, # notification
"cmPow3ChKWattHrsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11114",
"status" : "current",
"objects" : {
"pow3ChKWattHrsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours B Trap""",
}, # notification
"cmPow3ChVoltsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11115",
"status" : "current",
"objects" : {
"pow3ChVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts B Trap""",
}, # notification
"cmPow3ChVoltMaxBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11116",
"status" : "current",
"objects" : {
"pow3ChVoltMaxB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max B Trap""",
}, # notification
"cmPow3ChVoltMinBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11117",
"status" : "current",
"objects" : {
"pow3ChVoltMinB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min B Trap""",
}, # notification
"cmPow3ChVoltPeakBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11118",
"status" : "current",
"objects" : {
"pow3ChVoltPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak B Trap""",
}, # notification
"cmPow3ChDeciAmpsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11119",
"status" : "current",
"objects" : {
"pow3ChDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps B Trap""",
}, # notification
"cmPow3ChRealPowerBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11120",
"status" : "current",
"objects" : {
"pow3ChRealPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power B Trap""",
}, # notification
"cmPow3ChApparentPowerBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11121",
"status" : "current",
"objects" : {
"pow3ChApparentPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power B Trap""",
}, # notification
"cmPow3ChPowerFactorBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11122",
"status" : "current",
"objects" : {
"pow3ChPowerFactorB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor B Trap""",
}, # notification
"cmPow3ChKWattHrsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11123",
"status" : "current",
"objects" : {
"pow3ChKWattHrsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours C Trap""",
}, # notification
"cmPow3ChVoltsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11124",
"status" : "current",
"objects" : {
"pow3ChVoltsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts C Trap""",
}, # notification
"cmPow3ChVoltMaxCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11125",
"status" : "current",
"objects" : {
"pow3ChVoltMaxC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max C Trap""",
}, # notification
"cmPow3ChVoltMinCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11126",
"status" : "current",
"objects" : {
"pow3ChVoltMinC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min C Trap""",
}, # notification
"cmPow3ChVoltPeakCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11127",
"status" : "current",
"objects" : {
"pow3ChVoltPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak C Trap""",
}, # notification
"cmPow3ChDeciAmpsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11128",
"status" : "current",
"objects" : {
"pow3ChDeciAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps C Trap""",
}, # notification
"cmPow3ChRealPowerCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11129",
"status" : "current",
"objects" : {
"pow3ChRealPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power C Trap""",
}, # notification
"cmPow3ChApparentPowerCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11130",
"status" : "current",
"objects" : {
"pow3ChApparentPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power C Trap""",
}, # notification
"cmPow3ChPowerFactorCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11131",
"status" : "current",
"objects" : {
"pow3ChPowerFactorC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor C Trap""",
}, # notification
"cmOutlet1StatusNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11205",
"status" : "current",
"objects" : {
"outlet1Status" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"outletName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet 1 Status Trap""",
}, # notification
"cmOutlet2StatusNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11206",
"status" : "current",
"objects" : {
"outlet2Status" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"outletName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet 2 Status Trap""",
}, # notification
"cmVsfcSetPointCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11305",
"status" : "current",
"objects" : {
"vsfcSetPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Temp Set Point Sensor Trap""",
}, # notification
"cmVsfcSetPointFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11306",
"status" : "current",
"objects" : {
"vsfcSetPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Temp Set Point Sensor Trap""",
}, # notification
"cmVsfcFanSpeedNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11307",
"status" : "current",
"objects" : {
"vsfcFanSpeed" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Fan Speed Sensor Trap""",
}, # notification
"cmVsfcIntTempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11308",
"status" : "current",
"objects" : {
"vsfcIntTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Internal Temp Sensor Trap""",
}, # notification
"cmVsfcIntTempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11309",
"status" : "current",
"objects" : {
"vsfcIntTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Internal Temp Sensor Trap""",
}, # notification
"cmVsfcExt1TempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11310",
"status" : "current",
"objects" : {
"vsfcExt1TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Trap""",
}, # notification
"cmVsfcExt1TempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11311",
"status" : "current",
"objects" : {
"vsfcExt1TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Trap""",
}, # notification
"cmVsfcExt2TempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11312",
"status" : "current",
"objects" : {
"vsfcExt2TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 2 Sensor Trap""",
}, # notification
"cmVsfcExt2TempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11313",
"status" : "current",
"objects" : {
"vsfcExt2TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Trap""",
}, # notification
"cmVsfcExt3TempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11314",
"status" : "current",
"objects" : {
"vsfcExt3TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 3 Sensor Trap""",
}, # notification
"cmVsfcExt3TempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11315",
"status" : "current",
"objects" : {
"vsfcExt3TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Trap""",
}, # notification
"cmVsfcExt4TempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11316",
"status" : "current",
"objects" : {
"vsfcExt4TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 4 Sensor Trap""",
}, # notification
"cmVsfcExt4TempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11317",
"status" : "current",
"objects" : {
"vsfcExt4TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Trap""",
}, # notification
"cmCtrl3ChVoltsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11405",
"status" : "current",
"objects" : {
"ctrl3ChVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts A Trap""",
}, # notification
"cmCtrl3ChVoltPeakANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11406",
"status" : "current",
"objects" : {
"ctrl3ChVoltPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak A Trap""",
}, # notification
"cmCtrl3ChDeciAmpsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11407",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps A Trap""",
}, # notification
"cmCtrl3ChDeciAmpsPeakANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11408",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak A Trap""",
}, # notification
"cmCtrl3ChRealPowerANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11409",
"status" : "current",
"objects" : {
"ctrl3ChRealPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power A Trap""",
}, # notification
"cmCtrl3ChApparentPowerANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11410",
"status" : "current",
"objects" : {
"ctrl3ChApparentPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power A Trap""",
}, # notification
"cmCtrl3ChPowerFactorANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11411",
"status" : "current",
"objects" : {
"ctrl3ChPowerFactorA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor A Trap""",
}, # notification
"cmCtrl3ChVoltsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11412",
"status" : "current",
"objects" : {
"ctrl3ChVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts B Trap""",
}, # notification
"cmCtrl3ChVoltPeakBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11413",
"status" : "current",
"objects" : {
"ctrl3ChVoltPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak B Trap""",
}, # notification
"cmCtrl3ChDeciAmpsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11414",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps B Trap""",
}, # notification
"cmCtrl3ChDeciAmpsPeakBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11415",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak B Trap""",
}, # notification
"cmCtrl3ChRealPowerBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11416",
"status" : "current",
"objects" : {
"ctrl3ChRealPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power B Trap""",
}, # notification
"cmCtrl3ChApparentPowerBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11417",
"status" : "current",
"objects" : {
"ctrl3ChApparentPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power B Trap""",
}, # notification
"cmCtrl3ChPowerFactorBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11418",
"status" : "current",
"objects" : {
"ctrl3ChPowerFactorB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor B Trap""",
}, # notification
"cmCtrl3ChVoltsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11419",
"status" : "current",
"objects" : {
"ctrl3ChVoltsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts C Trap""",
}, # notification
"cmCtrl3ChVoltPeakCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11420",
"status" : "current",
"objects" : {
"ctrl3ChVoltPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak C Trap""",
}, # notification
"cmCtrl3ChDeciAmpsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11421",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps C Trap""",
}, # notification
"cmCtrl3ChDeciAmpsPeakCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11422",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak C Trap""",
}, # notification
"cmCtrl3ChRealPowerCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11423",
"status" : "current",
"objects" : {
"ctrl3ChRealPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power C Trap""",
}, # notification
"cmCtrl3ChApparentPowerCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11424",
"status" : "current",
"objects" : {
"ctrl3ChApparentPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power C Trap""",
}, # notification
"cmCtrl3ChPowerFactorCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11425",
"status" : "current",
"objects" : {
"ctrl3ChPowerFactorC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor C Trap""",
}, # notification
"cmCtrlGrpAmpsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11505",
"status" : "current",
"objects" : {
"ctrlGrpAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group A DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11506",
"status" : "current",
"objects" : {
"ctrlGrpAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group B DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11507",
"status" : "current",
"objects" : {
"ctrlGrpAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group C DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsDNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11508",
"status" : "current",
"objects" : {
"ctrlGrpAmpsD" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group D DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsENOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11509",
"status" : "current",
"objects" : {
"ctrlGrpAmpsE" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group E DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11510",
"status" : "current",
"objects" : {
"ctrlGrpAmpsF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group F DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsGNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11511",
"status" : "current",
"objects" : {
"ctrlGrpAmpsG" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group G DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsHNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11512",
"status" : "current",
"objects" : {
"ctrlGrpAmpsH" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group H DeciAmps Trap""",
}, # notification
"cmCtrlGrpAmpsAVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11513",
"status" : "current",
"objects" : {
"ctrlGrpAmpsAVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""AVolts Trip Trap""",
}, # notification
"cmCtrlGrpAmpsBVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11514",
"status" : "current",
"objects" : {
"ctrlGrpAmpsBVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""BVolts Trip Trap""",
}, # notification
"cmCtrlGrpAmpsCVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11515",
"status" : "current",
"objects" : {
"ctrlGrpAmpsCVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""CVolts Trip Trap""",
}, # notification
"cmCtrlGrpAmpsDVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11516",
"status" : "current",
"objects" : {
"ctrlGrpAmpsDVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DVolts Trip Trap""",
}, # notification
"cmCtrlGrpAmpsEVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11517",
"status" : "current",
"objects" : {
"ctrlGrpAmpsEVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""EVolts Trip Trap""",
}, # notification
"cmCtrlGrpAmpsFVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11518",
"status" : "current",
"objects" : {
"ctrlGrpAmpsFVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""FVolts Trip Trap""",
}, # notification
"cmCtrlGrpAmpsGVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11519",
"status" : "current",
"objects" : {
"ctrlGrpAmpsGVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""GVolts Trip Trap""",
}, # notification
"cmCtrlGrpAmpsHVoltsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11520",
"status" : "current",
"objects" : {
"ctrlGrpAmpsHVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""HVolts Trip Trap""",
}, # notification
"cmCtrlOutletPendingNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11605",
"status" : "current",
"objects" : {
"ctrlOutletPending" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Pending Trip Trap""",
}, # notification
"cmCtrlOutletDeciAmpsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11606",
"status" : "current",
"objects" : {
"ctrlOutletDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet DeciAmps Trap""",
}, # notification
"cmCtrlOutletGroupNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11607",
"status" : "current",
"objects" : {
"ctrlOutletGroup" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group Trip Trap""",
}, # notification
"cmCtrlOutletUpDelayNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11608",
"status" : "current",
"objects" : {
"ctrlOutletUpDelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""UpDelay Trip Trap""",
}, # notification
"cmCtrlOutletDwnDelayNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11609",
"status" : "current",
"objects" : {
"ctrlOutletDwnDelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DwnDelay Trip Trap""",
}, # notification
"cmCtrlOutletRbtDelayNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11610",
"status" : "current",
"objects" : {
"ctrlOutletRbtDelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RbtDelay Trip Trap""",
}, # notification
"cmCtrlOutletURLNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11611",
"status" : "current",
"objects" : {
"ctrlOutletURL" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""URL Trip Trap""",
}, # notification
"cmCtrlOutletPOAActionNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11612",
"status" : "current",
"objects" : {
"ctrlOutletPOAAction" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""POAAction Trip Trap""",
}, # notification
"cmCtrlOutletPOADelayNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11613",
"status" : "current",
"objects" : {
"ctrlOutletPOADelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""POADelay Trip Trap""",
}, # notification
"cmCtrlOutletKWattHrsNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11614",
"status" : "current",
"objects" : {
"ctrlOutletKWattHrs" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""KWattHrs Trip Trap""",
}, # notification
"cmCtrlOutletPowerNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11615",
"status" : "current",
"objects" : {
"ctrlOutletPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Trip Trap""",
}, # notification
"cmDewPointSensorTempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11705",
"status" : "current",
"objects" : {
"dewPointSensorTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Temperature Trap""",
}, # notification
"cmDewPointSensorTempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11706",
"status" : "current",
"objects" : {
"dewPointSensorTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Temperature Trap""",
}, # notification
"cmDewPointSensorHumidityNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11707",
"status" : "current",
"objects" : {
"dewPointSensorHumidity" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Humidity""",
}, # notification
"cmDewPointSensorDewPointCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11708",
"status" : "current",
"objects" : {
"dewPointSensorDewPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Dew Point Trap""",
}, # notification
"cmDewPointSensorDewPointFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11709",
"status" : "current",
"objects" : {
"dewPointSensorDewPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Dew Point Trap""",
}, # notification
"cmDigitalSensorDigitalNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11805",
"status" : "current",
"objects" : {
"digitalSensorDigital" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"digitalSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Digital sensor Trap""",
}, # notification
"cmDstsVoltsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11905",
"status" : "current",
"objects" : {
"dstsVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Voltage of Side A Set Point Sensor Trap""",
}, # notification
"cmDstsDeciAmpsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11906",
"status" : "current",
"objects" : {
"dstsDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Current of Side A Set Point Sensor Trap""",
}, # notification
"cmDstsVoltsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11907",
"status" : "current",
"objects" : {
"dstsVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Voltage of Side B Set Point Sensor Trap""",
}, # notification
"cmDstsDeciAmpsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11908",
"status" : "current",
"objects" : {
"dstsDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Current of Side B Set Point Sensor Trap""",
}, # notification
"cmDstsSourceAActiveNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11909",
"status" : "current",
"objects" : {
"dstsSourceAActive" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source A Active Set Point Sensor Trap""",
}, # notification
"cmDstsSourceBActiveNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11910",
"status" : "current",
"objects" : {
"dstsSourceBActive" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source B Active Set Point Sensor Trap""",
}, # notification
"cmDstsPowerStatusANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11911",
"status" : "current",
"objects" : {
"dstsPowerStatusA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source A Power Qualilty Active Set Point Sensor Trap""",
}, # notification
"cmDstsPowerStatusBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11912",
"status" : "current",
"objects" : {
"dstsPowerStatusB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source B Power Qualilty Active Set Point Sensor Trap""",
}, # notification
"cmDstsSourceATempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11913",
"status" : "current",
"objects" : {
"dstsSourceATempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source A Temp Sensor Trap""",
}, # notification
"cmDstsSourceBTempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.11914",
"status" : "current",
"objects" : {
"dstsSourceBTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source B Temp Sensor Trap""",
}, # notification
"cmCpmSensorStatusNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12005",
"status" : "current",
"objects" : {
"cpmSensorStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"cpmSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""City Power sensor Trap""",
}, # notification
"cmSmokeAlarmStatusNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12105",
"status" : "current",
"objects" : {
"smokeAlarmStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"smokeAlarmName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Smoke alarm Trap""",
}, # notification
"cmNeg48VdcSensorVoltageNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12205",
"status" : "current",
"objects" : {
"neg48VdcSensorVoltage" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"neg48VdcSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""-48Vdc Sensor Trap""",
}, # notification
"cmPos30VdcSensorVoltageNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12305",
"status" : "current",
"objects" : {
"pos30VdcSensorVoltage" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pos30VdcSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""30Vdc Sensor Trap""",
}, # notification
"cmAnalogSensorAnalogNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12405",
"status" : "current",
"objects" : {
"analogSensorAnalog" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"analogSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Analog Sensor Trap""",
}, # notification
"cmCtrl3ChIECKWattHrsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12505",
"status" : "current",
"objects" : {
"ctrl3ChIECKWattHrsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours A Trap""",
}, # notification
"cmCtrl3ChIECVoltsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12506",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts A Trap""",
}, # notification
"cmCtrl3ChIECVoltPeakANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12507",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak A Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12508",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps A Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsPeakANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12509",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak A Trap""",
}, # notification
"cmCtrl3ChIECRealPowerANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12510",
"status" : "current",
"objects" : {
"ctrl3ChIECRealPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power A Trap""",
}, # notification
"cmCtrl3ChIECApparentPowerANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12511",
"status" : "current",
"objects" : {
"ctrl3ChIECApparentPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power A Trap""",
}, # notification
"cmCtrl3ChIECPowerFactorANOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12512",
"status" : "current",
"objects" : {
"ctrl3ChIECPowerFactorA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor A Trap""",
}, # notification
"cmCtrl3ChIECKWattHrsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12513",
"status" : "current",
"objects" : {
"ctrl3ChIECKWattHrsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours B Trap""",
}, # notification
"cmCtrl3ChIECVoltsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12514",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts B Trap""",
}, # notification
"cmCtrl3ChIECVoltPeakBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12515",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak B Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12516",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps B Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsPeakBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12517",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak B Trap""",
}, # notification
"cmCtrl3ChIECRealPowerBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12518",
"status" : "current",
"objects" : {
"ctrl3ChIECRealPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power B Trap""",
}, # notification
"cmCtrl3ChIECApparentPowerBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12519",
"status" : "current",
"objects" : {
"ctrl3ChIECApparentPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power B Trap""",
}, # notification
"cmCtrl3ChIECPowerFactorBNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12520",
"status" : "current",
"objects" : {
"ctrl3ChIECPowerFactorB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor B Trap""",
}, # notification
"cmCtrl3ChIECKWattHrsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12521",
"status" : "current",
"objects" : {
"ctrl3ChIECKWattHrsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours C Trap""",
}, # notification
"cmCtrl3ChIECVoltsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12522",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts C Trap""",
}, # notification
"cmCtrl3ChIECVoltPeakCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12523",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak C Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12524",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps C Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsPeakCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12525",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak C Trap""",
}, # notification
"cmCtrl3ChIECRealPowerCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12526",
"status" : "current",
"objects" : {
"ctrl3ChIECRealPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power C Trap""",
}, # notification
"cmCtrl3ChIECApparentPowerCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12527",
"status" : "current",
"objects" : {
"ctrl3ChIECApparentPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power C Trap""",
}, # notification
"cmCtrl3ChIECPowerFactorCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12528",
"status" : "current",
"objects" : {
"ctrl3ChIECPowerFactorC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor C Trap""",
}, # notification
"cmClimateRelayTempCNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12605",
"status" : "current",
"objects" : {
"climateRelayTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay Temperature Sensor Trap""",
}, # notification
"cmClimateRelayTempFNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12606",
"status" : "current",
"objects" : {
"climateRelayTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay Temperature Sensor Trap""",
}, # notification
"cmClimateRelayIO1NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12607",
"status" : "current",
"objects" : {
"climateRelayIO1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO1 Sensor Trap""",
}, # notification
"cmClimateRelayIO2NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12608",
"status" : "current",
"objects" : {
"climateRelayIO2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO2 Sensor Trap""",
}, # notification
"cmClimateRelayIO3NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12609",
"status" : "current",
"objects" : {
"climateRelayIO3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO3 Sensor Trap""",
}, # notification
"cmClimateRelayIO4NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12610",
"status" : "current",
"objects" : {
"climateRelayIO4" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO4 Sensor Trap""",
}, # notification
"cmClimateRelayIO5NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12611",
"status" : "current",
"objects" : {
"climateRelayIO5" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO5 Sensor Trap""",
}, # notification
"cmClimateRelayIO6NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12612",
"status" : "current",
"objects" : {
"climateRelayIO6" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO6 Sensor Trap""",
}, # notification
"cmAirSpeedSwitchSensorAirSpeedNOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.12805",
"status" : "current",
"objects" : {
"airSpeedSwitchSensorAirSpeed" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airSpeedSwitchSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Air Speed Switch Trap""",
}, # notification
"cmIoExpanderIO1NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13037",
"status" : "current",
"objects" : {
"ioExpanderIO1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO1 Sensor Trap""",
}, # notification
"cmIoExpanderIO2NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13038",
"status" : "current",
"objects" : {
"ioExpanderIO2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO2 Sensor Trap""",
}, # notification
"cmIoExpanderIO3NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13039",
"status" : "current",
"objects" : {
"ioExpanderIO3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO3 Sensor Trap""",
}, # notification
"cmIoExpanderIO4NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13040",
"status" : "current",
"objects" : {
"ioExpanderIO4" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO4 Sensor Trap""",
}, # notification
"cmIoExpanderIO5NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13041",
"status" : "current",
"objects" : {
"ioExpanderIO5" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO5 Sensor Trap""",
}, # notification
"cmIoExpanderIO6NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13042",
"status" : "current",
"objects" : {
"ioExpanderIO6" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO6 Sensor Trap""",
}, # notification
"cmIoExpanderIO7NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13043",
"status" : "current",
"objects" : {
"ioExpanderIO7" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO7 Sensor Trap""",
}, # notification
"cmIoExpanderIO8NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13044",
"status" : "current",
"objects" : {
"ioExpanderIO8" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO8 Sensor Trap""",
}, # notification
"cmIoExpanderIO9NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13045",
"status" : "current",
"objects" : {
"ioExpanderIO9" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO9 Sensor Trap""",
}, # notification
"cmIoExpanderIO10NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13046",
"status" : "current",
"objects" : {
"ioExpanderIO10" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO10 Sensor Trap""",
}, # notification
"cmIoExpanderIO11NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13047",
"status" : "current",
"objects" : {
"ioExpanderIO11" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO11 Sensor Trap""",
}, # notification
"cmIoExpanderIO12NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13048",
"status" : "current",
"objects" : {
"ioExpanderIO12" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO12 Sensor Trap""",
}, # notification
"cmIoExpanderIO13NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13049",
"status" : "current",
"objects" : {
"ioExpanderIO13" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO13 Sensor Trap""",
}, # notification
"cmIoExpanderIO14NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13050",
"status" : "current",
"objects" : {
"ioExpanderIO14" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO14 Sensor Trap""",
}, # notification
"cmIoExpanderIO15NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13051",
"status" : "current",
"objects" : {
"ioExpanderIO15" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO15 Sensor Trap""",
}, # notification
"cmIoExpanderIO16NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13052",
"status" : "current",
"objects" : {
"ioExpanderIO16" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO16 Sensor Trap""",
}, # notification
"cmIoExpanderIO17NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13053",
"status" : "current",
"objects" : {
"ioExpanderIO17" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO17 Sensor Trap""",
}, # notification
"cmIoExpanderIO18NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13054",
"status" : "current",
"objects" : {
"ioExpanderIO18" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO18 Sensor Trap""",
}, # notification
"cmIoExpanderIO19NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13055",
"status" : "current",
"objects" : {
"ioExpanderIO19" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO19 Sensor Trap""",
}, # notification
"cmIoExpanderIO20NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13056",
"status" : "current",
"objects" : {
"ioExpanderIO20" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO20 Sensor Trap""",
}, # notification
"cmIoExpanderIO21NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13057",
"status" : "current",
"objects" : {
"ioExpanderIO21" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO21 Sensor Trap""",
}, # notification
"cmIoExpanderIO22NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13058",
"status" : "current",
"objects" : {
"ioExpanderIO22" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO22 Sensor Trap""",
}, # notification
"cmIoExpanderIO23NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13059",
"status" : "current",
"objects" : {
"ioExpanderIO23" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO23 Sensor Trap""",
}, # notification
"cmIoExpanderIO24NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13060",
"status" : "current",
"objects" : {
"ioExpanderIO24" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO24 Sensor Trap""",
}, # notification
"cmIoExpanderIO25NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13061",
"status" : "current",
"objects" : {
"ioExpanderIO25" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO25 Sensor Trap""",
}, # notification
"cmIoExpanderIO26NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13062",
"status" : "current",
"objects" : {
"ioExpanderIO26" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO26 Sensor Trap""",
}, # notification
"cmIoExpanderIO27NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13063",
"status" : "current",
"objects" : {
"ioExpanderIO27" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO27 Sensor Trap""",
}, # notification
"cmIoExpanderIO28NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13064",
"status" : "current",
"objects" : {
"ioExpanderIO28" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO28 Sensor Trap""",
}, # notification
"cmIoExpanderIO29NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13065",
"status" : "current",
"objects" : {
"ioExpanderIO29" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO29 Sensor Trap""",
}, # notification
"cmIoExpanderIO30NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13066",
"status" : "current",
"objects" : {
"ioExpanderIO30" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO30 Sensor Trap""",
}, # notification
"cmIoExpanderIO31NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13067",
"status" : "current",
"objects" : {
"ioExpanderIO31" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO31 Sensor Trap""",
}, # notification
"cmIoExpanderIO32NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.13068",
"status" : "current",
"objects" : {
"ioExpanderIO32" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO32 Sensor Trap""",
}, # notification
"cmClimateTempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20205",
"status" : "current",
"objects" : {
"climateTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Temperature Sensor Clear Trap""",
}, # notification
"cmClimateTempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20206",
"status" : "current",
"objects" : {
"climateTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Temperature Sensor Clear Trap""",
}, # notification
"cmClimateHumidityCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20207",
"status" : "current",
"objects" : {
"climateHumidity" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Humidity Sensor Clear Trap""",
}, # notification
"cmClimateLightCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20208",
"status" : "current",
"objects" : {
"climateLight" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Light Sensor Clear Trap""",
}, # notification
"cmClimateAirflowCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20209",
"status" : "current",
"objects" : {
"climateAirflow" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Air Flow Sensor Clear Trap""",
}, # notification
"cmClimateSoundCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20210",
"status" : "current",
"objects" : {
"climateSound" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Sound Sensor Clear Trap""",
}, # notification
"cmClimateIO1CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20211",
"status" : "current",
"objects" : {
"climateIO1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate IO1 Sensor Clear Trap""",
}, # notification
"cmClimateIO2CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20212",
"status" : "current",
"objects" : {
"climateIO2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate IO2 Sensor Clear Trap""",
}, # notification
"cmClimateIO3CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20213",
"status" : "current",
"objects" : {
"climateIO3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate IO3 Sensor Clear Trap""",
}, # notification
"cmClimateDewPointCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20214",
"status" : "current",
"objects" : {
"climateDewPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Dew Point Sensor Clear Trap""",
}, # notification
"cmClimateDewPointFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20215",
"status" : "current",
"objects" : {
"climateDewPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Dew Point Sensor Clear Trap""",
}, # notification
"cmPowMonKWattHrsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20305",
"status" : "current",
"objects" : {
"powMonKWattHrs" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours Clear Trap""",
}, # notification
"cmPowMonVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20306",
"status" : "current",
"objects" : {
"powMonVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Clear Trap""",
}, # notification
"cmPowMonVoltMaxCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20307",
"status" : "current",
"objects" : {
"powMonVoltMax" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max Clear Trap""",
}, # notification
"cmPowMonVoltMinCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20308",
"status" : "current",
"objects" : {
"powMonVoltMin" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min Clear Trap""",
}, # notification
"cmPowMonVoltPeakCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20309",
"status" : "current",
"objects" : {
"powMonVoltPeak" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak Clear Trap""",
}, # notification
"cmPowMonDeciAmpsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20310",
"status" : "current",
"objects" : {
"powMonDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DeciAmps Clear Trap""",
}, # notification
"cmPowMonRealPowerCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20311",
"status" : "current",
"objects" : {
"powMonRealPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power Clear Trap""",
}, # notification
"cmPowMonApparentPowerCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20312",
"status" : "current",
"objects" : {
"powMonApparentPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power Clear Trap""",
}, # notification
"cmPowMonPowerFactorCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20313",
"status" : "current",
"objects" : {
"powMonPowerFactor" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor Clear Trap""",
}, # notification
"cmPowMonOutlet1CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20314",
"status" : "current",
"objects" : {
"powMonOutlet1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet1 Clear Trap""",
}, # notification
"cmPowMonOutlet2CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20315",
"status" : "current",
"objects" : {
"powMonOutlet2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powMonName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet2 Clear Trap""",
}, # notification
"cmTempSensorTempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20405",
"status" : "current",
"objects" : {
"tempSensorTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"tempSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Temp Sensor - Temperature Clear Trap""",
}, # notification
"cmTempSensorTempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20406",
"status" : "current",
"objects" : {
"tempSensorTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"tempSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Temp Sensor - Temperature Clear Trap""",
}, # notification
"cmAirFlowSensorTempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20505",
"status" : "current",
"objects" : {
"airFlowSensorTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Temperature Clear Trap""",
}, # notification
"cmAirFlowSensorTempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20506",
"status" : "current",
"objects" : {
"airFlowSensorTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Temperature Clear Trap""",
}, # notification
"cmAirFlowSensorFlowCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20507",
"status" : "current",
"objects" : {
"airFlowSensorFlow" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Air Flow Clear Trap""",
}, # notification
"cmAirFlowSensorHumidityCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20508",
"status" : "current",
"objects" : {
"airFlowSensorHumidity" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Humidity Clear Trap""",
}, # notification
"cmAirFlowSensorDewPointCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20509",
"status" : "current",
"objects" : {
"airFlowSensorDewPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Dew Point Clear Trap""",
}, # notification
"cmAirFlowSensorDewPointFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20510",
"status" : "current",
"objects" : {
"airFlowSensorDewPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airFlowSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Air Flow Sensor - Dew Point Clear Trap""",
}, # notification
"cmPowerVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20605",
"status" : "current",
"objects" : {
"powerVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Volts Clear Trap""",
}, # notification
"cmPowerDeciAmpsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20606",
"status" : "current",
"objects" : {
"powerDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Amps Clear Trap""",
}, # notification
"cmPowerRealPowerCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20607",
"status" : "current",
"objects" : {
"powerRealPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Watts Clear Trap""",
}, # notification
"cmPowerApparentPowerCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20608",
"status" : "current",
"objects" : {
"powerApparentPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Volt Amps Clear Trap""",
}, # notification
"cmPowerPowerFactorCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20609",
"status" : "current",
"objects" : {
"powerPowerFactor" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power-Only Power Factor Clear Trap""",
}, # notification
"cmDoorSensorStatusCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20705",
"status" : "current",
"objects" : {
"doorSensorStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"doorSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Door sensor Clear Trap""",
}, # notification
"cmWaterSensorDampnessCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20805",
"status" : "current",
"objects" : {
"waterSensorDampness" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"waterSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Water sensor Clear Trap""",
}, # notification
"cmCurrentMonitorDeciAmpsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.20905",
"status" : "current",
"objects" : {
"currentMonitorDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"currentMonitorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Current Monitor Amps Clear Trap""",
}, # notification
"cmMillivoltMonitorMVCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21005",
"status" : "current",
"objects" : {
"millivoltMonitorMV" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"millivoltMonitorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Millivolt Monitor Clear Trap""",
}, # notification
"cmPow3ChKWattHrsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21105",
"status" : "current",
"objects" : {
"pow3ChKWattHrsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours A Clear Trap""",
}, # notification
"cmPow3ChVoltsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21106",
"status" : "current",
"objects" : {
"pow3ChVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts A Clear Trap""",
}, # notification
"cmPow3ChVoltMaxACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21107",
"status" : "current",
"objects" : {
"pow3ChVoltMaxA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max A Clear Trap""",
}, # notification
"cmPow3ChVoltMinACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21108",
"status" : "current",
"objects" : {
"pow3ChVoltMinA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min A Clear Trap""",
}, # notification
"cmPow3ChVoltPeakACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21109",
"status" : "current",
"objects" : {
"pow3ChVoltPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak A Clear Trap""",
}, # notification
"cmPow3ChDeciAmpsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21110",
"status" : "current",
"objects" : {
"pow3ChDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps A Clear Trap""",
}, # notification
"cmPow3ChRealPowerACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21111",
"status" : "current",
"objects" : {
"pow3ChRealPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power A Clear Trap""",
}, # notification
"cmPow3ChApparentPowerACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21112",
"status" : "current",
"objects" : {
"pow3ChApparentPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power A Clear Trap""",
}, # notification
"cmPow3ChPowerFactorACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21113",
"status" : "current",
"objects" : {
"pow3ChPowerFactorA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor A Clear Trap""",
}, # notification
"cmPow3ChKWattHrsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21114",
"status" : "current",
"objects" : {
"pow3ChKWattHrsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours B Clear Trap""",
}, # notification
"cmPow3ChVoltsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21115",
"status" : "current",
"objects" : {
"pow3ChVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts B Clear Trap""",
}, # notification
"cmPow3ChVoltMaxBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21116",
"status" : "current",
"objects" : {
"pow3ChVoltMaxB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max B Clear Trap""",
}, # notification
"cmPow3ChVoltMinBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21117",
"status" : "current",
"objects" : {
"pow3ChVoltMinB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min B Clear Trap""",
}, # notification
"cmPow3ChVoltPeakBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21118",
"status" : "current",
"objects" : {
"pow3ChVoltPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak B Clear Trap""",
}, # notification
"cmPow3ChDeciAmpsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21119",
"status" : "current",
"objects" : {
"pow3ChDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps B Clear Trap""",
}, # notification
"cmPow3ChRealPowerBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21120",
"status" : "current",
"objects" : {
"pow3ChRealPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power B Clear Trap""",
}, # notification
"cmPow3ChApparentPowerBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21121",
"status" : "current",
"objects" : {
"pow3ChApparentPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power B Clear Trap""",
}, # notification
"cmPow3ChPowerFactorBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21122",
"status" : "current",
"objects" : {
"pow3ChPowerFactorB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor B Clear Trap""",
}, # notification
"cmPow3ChKWattHrsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21123",
"status" : "current",
"objects" : {
"pow3ChKWattHrsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours C Clear Trap""",
}, # notification
"cmPow3ChVoltsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21124",
"status" : "current",
"objects" : {
"pow3ChVoltsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts C Clear Trap""",
}, # notification
"cmPow3ChVoltMaxCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21125",
"status" : "current",
"objects" : {
"pow3ChVoltMaxC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Max C Clear Trap""",
}, # notification
"cmPow3ChVoltMinCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21126",
"status" : "current",
"objects" : {
"pow3ChVoltMinC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Min C Clear Trap""",
}, # notification
"cmPow3ChVoltPeakCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21127",
"status" : "current",
"objects" : {
"pow3ChVoltPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volt Peak C Clear Trap""",
}, # notification
"cmPow3ChDeciAmpsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21128",
"status" : "current",
"objects" : {
"pow3ChDeciAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps C Clear Trap""",
}, # notification
"cmPow3ChRealPowerCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21129",
"status" : "current",
"objects" : {
"pow3ChRealPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power C Clear Trap""",
}, # notification
"cmPow3ChApparentPowerCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21130",
"status" : "current",
"objects" : {
"pow3ChApparentPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power C Clear Trap""",
}, # notification
"cmPow3ChPowerFactorCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21131",
"status" : "current",
"objects" : {
"pow3ChPowerFactorC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pow3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor C Clear Trap""",
}, # notification
"cmOutlet1StatusCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21205",
"status" : "current",
"objects" : {
"outlet1Status" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"outletName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet 1 Status Clear Trap""",
}, # notification
"cmOutlet2StatusCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21206",
"status" : "current",
"objects" : {
"outlet2Status" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"outletName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet 2 Status Clear Trap""",
}, # notification
"cmVsfcSetPointCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21305",
"status" : "current",
"objects" : {
"vsfcSetPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Temp Set Point Sensor Clear""",
}, # notification
"cmVsfcSetPointFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21306",
"status" : "current",
"objects" : {
"vsfcSetPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Temp Set Point Sensor Clear""",
}, # notification
"cmVsfcFanSpeedCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21307",
"status" : "current",
"objects" : {
"vsfcFanSpeed" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Fan Speed Sensor Clear""",
}, # notification
"cmVsfcIntTempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21308",
"status" : "current",
"objects" : {
"vsfcIntTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Internal Temp Sensor Clear""",
}, # notification
"cmVsfcIntTempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21309",
"status" : "current",
"objects" : {
"vsfcIntTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc Internal Temp Sensor Clear""",
}, # notification
"cmVsfcExt1TempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21310",
"status" : "current",
"objects" : {
"vsfcExt1TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Clear""",
}, # notification
"cmVsfcExt1TempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21311",
"status" : "current",
"objects" : {
"vsfcExt1TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Clear""",
}, # notification
"cmVsfcExt2TempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21312",
"status" : "current",
"objects" : {
"vsfcExt2TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 2 Sensor Clear""",
}, # notification
"cmVsfcExt2TempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21313",
"status" : "current",
"objects" : {
"vsfcExt2TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Clear""",
}, # notification
"cmVsfcExt3TempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21314",
"status" : "current",
"objects" : {
"vsfcExt3TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 3 Sensor Clear""",
}, # notification
"cmVsfcExt3TempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21315",
"status" : "current",
"objects" : {
"vsfcExt3TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Clear""",
}, # notification
"cmVsfcExt4TempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21316",
"status" : "current",
"objects" : {
"vsfcExt4TempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 4 Sensor Clear""",
}, # notification
"cmVsfcExt4TempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21317",
"status" : "current",
"objects" : {
"vsfcExt4TempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"vsfcName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Vsfc External Temp 1 Sensor Clear""",
}, # notification
"cmCtrl3ChVoltsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21405",
"status" : "current",
"objects" : {
"ctrl3ChVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts A Clear Trap""",
}, # notification
"cmCtrl3ChVoltPeakACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21406",
"status" : "current",
"objects" : {
"ctrl3ChVoltPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak A Clear Trap""",
}, # notification
"cmCtrl3ChDeciAmpsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21407",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps A Clear Trap""",
}, # notification
"cmCtrl3ChDeciAmpsPeakACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21408",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak A Clear Trap""",
}, # notification
"cmCtrl3ChRealPowerACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21409",
"status" : "current",
"objects" : {
"ctrl3ChRealPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power A Clear Trap""",
}, # notification
"cmCtrl3ChApparentPowerACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21410",
"status" : "current",
"objects" : {
"ctrl3ChApparentPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power A Clear Trap""",
}, # notification
"cmCtrl3ChPowerFactorACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21411",
"status" : "current",
"objects" : {
"ctrl3ChPowerFactorA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor A Clear Trap""",
}, # notification
"cmCtrl3ChVoltsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21412",
"status" : "current",
"objects" : {
"ctrl3ChVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts B Clear Trap""",
}, # notification
"cmCtrl3ChVoltPeakBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21413",
"status" : "current",
"objects" : {
"ctrl3ChVoltPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak B Clear Trap""",
}, # notification
"cmCtrl3ChDeciAmpsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21414",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps B Clear Trap""",
}, # notification
"cmCtrl3ChDeciAmpsPeakBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21415",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak B Clear Trap""",
}, # notification
"cmCtrl3ChRealPowerBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21416",
"status" : "current",
"objects" : {
"ctrl3ChRealPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power B Clear Trap""",
}, # notification
"cmCtrl3ChApparentPowerBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21417",
"status" : "current",
"objects" : {
"ctrl3ChApparentPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power B Clear Trap""",
}, # notification
"cmCtrl3ChPowerFactorBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21418",
"status" : "current",
"objects" : {
"ctrl3ChPowerFactorB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor B Clear Trap""",
}, # notification
"cmCtrl3ChVoltsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21419",
"status" : "current",
"objects" : {
"ctrl3ChVoltsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts C Clear Trap""",
}, # notification
"cmCtrl3ChVoltPeakCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21420",
"status" : "current",
"objects" : {
"ctrl3ChVoltPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak C Clear Trap""",
}, # notification
"cmCtrl3ChDeciAmpsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21421",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps C Clear Trap""",
}, # notification
"cmCtrl3ChDeciAmpsPeakCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21422",
"status" : "current",
"objects" : {
"ctrl3ChDeciAmpsPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak C Clear Trap""",
}, # notification
"cmCtrl3ChRealPowerCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21423",
"status" : "current",
"objects" : {
"ctrl3ChRealPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power C Clear Trap""",
}, # notification
"cmCtrl3ChApparentPowerCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21424",
"status" : "current",
"objects" : {
"ctrl3ChApparentPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power C Clear Trap""",
}, # notification
"cmCtrl3ChPowerFactorCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21425",
"status" : "current",
"objects" : {
"ctrl3ChPowerFactorC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor C Clear Trap""",
}, # notification
"cmCtrlGrpAmpsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21505",
"status" : "current",
"objects" : {
"ctrlGrpAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group A DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21506",
"status" : "current",
"objects" : {
"ctrlGrpAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group B DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21507",
"status" : "current",
"objects" : {
"ctrlGrpAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group C DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsDCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21508",
"status" : "current",
"objects" : {
"ctrlGrpAmpsD" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group D DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsECLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21509",
"status" : "current",
"objects" : {
"ctrlGrpAmpsE" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group E DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21510",
"status" : "current",
"objects" : {
"ctrlGrpAmpsF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group F DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsGCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21511",
"status" : "current",
"objects" : {
"ctrlGrpAmpsG" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group G DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsHCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21512",
"status" : "current",
"objects" : {
"ctrlGrpAmpsH" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group H DeciAmps Clear Trap""",
}, # notification
"cmCtrlGrpAmpsAVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21513",
"status" : "current",
"objects" : {
"ctrlGrpAmpsAVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""AVolts Clear Trap""",
}, # notification
"cmCtrlGrpAmpsBVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21514",
"status" : "current",
"objects" : {
"ctrlGrpAmpsBVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""BVolts Clear Trap""",
}, # notification
"cmCtrlGrpAmpsCVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21515",
"status" : "current",
"objects" : {
"ctrlGrpAmpsCVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""CVolts Clear Trap""",
}, # notification
"cmCtrlGrpAmpsDVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21516",
"status" : "current",
"objects" : {
"ctrlGrpAmpsDVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DVolts Clear Trap""",
}, # notification
"cmCtrlGrpAmpsEVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21517",
"status" : "current",
"objects" : {
"ctrlGrpAmpsEVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""EVolts Clear Trap""",
}, # notification
"cmCtrlGrpAmpsFVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21518",
"status" : "current",
"objects" : {
"ctrlGrpAmpsFVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""FVolts Clear Trap""",
}, # notification
"cmCtrlGrpAmpsGVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21519",
"status" : "current",
"objects" : {
"ctrlGrpAmpsGVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""GVolts Clear Trap""",
}, # notification
"cmCtrlGrpAmpsHVoltsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21520",
"status" : "current",
"objects" : {
"ctrlGrpAmpsHVolts" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlGrpAmpsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""HVolts Clear Trap""",
}, # notification
"cmCtrlOutletPendingCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21605",
"status" : "current",
"objects" : {
"ctrlOutletPending" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Pending Clear Trap""",
}, # notification
"cmCtrlOutletDeciAmpsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21606",
"status" : "current",
"objects" : {
"ctrlOutletDeciAmps" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Outlet DeciAmps Clear Trap""",
}, # notification
"cmCtrlOutletGroupCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21607",
"status" : "current",
"objects" : {
"ctrlOutletGroup" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Group Clear Trap""",
}, # notification
"cmCtrlOutletUpDelayCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21608",
"status" : "current",
"objects" : {
"ctrlOutletUpDelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""UpDelay Clear Trap""",
}, # notification
"cmCtrlOutletDwnDelayCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21609",
"status" : "current",
"objects" : {
"ctrlOutletDwnDelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DwnDelay Clear Trap""",
}, # notification
"cmCtrlOutletRbtDelayCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21610",
"status" : "current",
"objects" : {
"ctrlOutletRbtDelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RbtDelay Clear Trap""",
}, # notification
"cmCtrlOutletURLCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21611",
"status" : "current",
"objects" : {
"ctrlOutletURL" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""URL Clear Trap""",
}, # notification
"cmCtrlOutletPOAActionCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21612",
"status" : "current",
"objects" : {
"ctrlOutletPOAAction" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""POAAction Clear Trap""",
}, # notification
"cmCtrlOutletPOADelayCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21613",
"status" : "current",
"objects" : {
"ctrlOutletPOADelay" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""POADelay Clear Trap""",
}, # notification
"cmCtrlOutletKWattHrsCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21614",
"status" : "current",
"objects" : {
"ctrlOutletKWattHrs" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""KWattHrs Clear Trap""",
}, # notification
"cmCtrlOutletPowerCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21615",
"status" : "current",
"objects" : {
"ctrlOutletPower" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrlOutletStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Clear Trap""",
}, # notification
"cmDewPointSensorTempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21705",
"status" : "current",
"objects" : {
"dewPointSensorTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Temperature Clear Trap""",
}, # notification
"cmDewPointSensorTempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21706",
"status" : "current",
"objects" : {
"dewPointSensorTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Temperature Clear Trap""",
}, # notification
"cmDewPointSensorHumidityCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21707",
"status" : "current",
"objects" : {
"dewPointSensorHumidity" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Humidity Clear Trap""",
}, # notification
"cmDewPointSensorDewPointCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21708",
"status" : "current",
"objects" : {
"dewPointSensorDewPointC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Dew Point Clear Trap""",
}, # notification
"cmDewPointSensorDewPointFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21709",
"status" : "current",
"objects" : {
"dewPointSensorDewPointF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dewPointSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Remote Dew Point Sensor - Dew Point Clear Trap""",
}, # notification
"cmDigitalSensorDigitalCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21805",
"status" : "current",
"objects" : {
"digitalSensorDigital" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"digitalSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Digital sensor Clear Trap""",
}, # notification
"cmDstsVoltsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21905",
"status" : "current",
"objects" : {
"dstsVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Voltage of Side A Set Point Sensor Clear""",
}, # notification
"cmDstsDeciAmpsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21906",
"status" : "current",
"objects" : {
"dstsDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Current of Side A Set Point Sensor Clear""",
}, # notification
"cmDstsVoltsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21907",
"status" : "current",
"objects" : {
"dstsVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Voltage of Side B Set Point Sensor Clear""",
}, # notification
"cmDstsDeciAmpsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21908",
"status" : "current",
"objects" : {
"dstsDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""RMS Current of Side B Set Point Sensor Clear""",
}, # notification
"cmDstsSourceAActiveCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21909",
"status" : "current",
"objects" : {
"dstsSourceAActive" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source A Active Set Point Sensor Clear""",
}, # notification
"cmDstsSourceBActiveCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21910",
"status" : "current",
"objects" : {
"dstsSourceBActive" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source B Active Set Point Sensor Clear""",
}, # notification
"cmDstsPowerStatusACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21911",
"status" : "current",
"objects" : {
"dstsPowerStatusA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source A Power Qualilty Active Set Point Sensor Clear""",
}, # notification
"cmDstsPowerStatusBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21912",
"status" : "current",
"objects" : {
"dstsPowerStatusB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source B Power Qualilty Active Set Point Sensor Clear""",
}, # notification
"cmDstsSourceATempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21913",
"status" : "current",
"objects" : {
"dstsSourceATempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source A Temp Sensor Clear""",
}, # notification
"cmDstsSourceBTempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.21914",
"status" : "current",
"objects" : {
"dstsSourceBTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"dstsName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Source B Temp Sensor Clear""",
}, # notification
"cmCpmSensorStatusCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22005",
"status" : "current",
"objects" : {
"cpmSensorStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"cpmSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""City Power sensor Clear Trap""",
}, # notification
"cmSmokeAlarmStatusCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22105",
"status" : "current",
"objects" : {
"smokeAlarmStatus" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"smokeAlarmName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Smoke alarm Clear Trap""",
}, # notification
"cmNeg48VdcSensorVoltageCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22205",
"status" : "current",
"objects" : {
"neg48VdcSensorVoltage" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"neg48VdcSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""-48Vdc Sensor Clear Trap""",
}, # notification
"cmPos30VdcSensorVoltageCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22305",
"status" : "current",
"objects" : {
"pos30VdcSensorVoltage" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"pos30VdcSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""30Vdc Sensor Clear Trap""",
}, # notification
"cmAnalogSensorAnalogCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22405",
"status" : "current",
"objects" : {
"analogSensorAnalog" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"analogSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Analog Sensor Clear Trap""",
}, # notification
"cmCtrl3ChIECKWattHrsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22505",
"status" : "current",
"objects" : {
"ctrl3ChIECKWattHrsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours A Clear Trap""",
}, # notification
"cmCtrl3ChIECVoltsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22506",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts A Clear Trap""",
}, # notification
"cmCtrl3ChIECVoltPeakACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22507",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak A Clear Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22508",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps A Clear Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsPeakACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22509",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsPeakA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak A Clear Trap""",
}, # notification
"cmCtrl3ChIECRealPowerACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22510",
"status" : "current",
"objects" : {
"ctrl3ChIECRealPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power A Clear Trap""",
}, # notification
"cmCtrl3ChIECApparentPowerACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22511",
"status" : "current",
"objects" : {
"ctrl3ChIECApparentPowerA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power A Clear Trap""",
}, # notification
"cmCtrl3ChIECPowerFactorACLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22512",
"status" : "current",
"objects" : {
"ctrl3ChIECPowerFactorA" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor A Clear Trap""",
}, # notification
"cmCtrl3ChIECKWattHrsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22513",
"status" : "current",
"objects" : {
"ctrl3ChIECKWattHrsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours B Clear Trap""",
}, # notification
"cmCtrl3ChIECVoltsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22514",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts B Clear Trap""",
}, # notification
"cmCtrl3ChIECVoltPeakBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22515",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak B Clear Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22516",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps B Clear Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsPeakBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22517",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsPeakB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak B Clear Trap""",
}, # notification
"cmCtrl3ChIECRealPowerBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22518",
"status" : "current",
"objects" : {
"ctrl3ChIECRealPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power B Clear Trap""",
}, # notification
"cmCtrl3ChIECApparentPowerBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22519",
"status" : "current",
"objects" : {
"ctrl3ChIECApparentPowerB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power B Clear Trap""",
}, # notification
"cmCtrl3ChIECPowerFactorBCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22520",
"status" : "current",
"objects" : {
"ctrl3ChIECPowerFactorB" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor B Clear Trap""",
}, # notification
"cmCtrl3ChIECKWattHrsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22521",
"status" : "current",
"objects" : {
"ctrl3ChIECKWattHrsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Kilo Watt Hours C Clear Trap""",
}, # notification
"cmCtrl3ChIECVoltsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22522",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts C Clear Trap""",
}, # notification
"cmCtrl3ChIECVoltPeakCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22523",
"status" : "current",
"objects" : {
"ctrl3ChIECVoltPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Volts Peak C Clear Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22524",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps C Clear Trap""",
}, # notification
"cmCtrl3ChIECDeciAmpsPeakCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22525",
"status" : "current",
"objects" : {
"ctrl3ChIECDeciAmpsPeakC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Deciamps Peak C Clear Trap""",
}, # notification
"cmCtrl3ChIECRealPowerCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22526",
"status" : "current",
"objects" : {
"ctrl3ChIECRealPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Real Power C Clear Trap""",
}, # notification
"cmCtrl3ChIECApparentPowerCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22527",
"status" : "current",
"objects" : {
"ctrl3ChIECApparentPowerC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Apparent Power C Clear Trap""",
}, # notification
"cmCtrl3ChIECPowerFactorCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22528",
"status" : "current",
"objects" : {
"ctrl3ChIECPowerFactorC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ctrl3ChIECName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Power Factor C Clear Trap""",
}, # notification
"cmClimateRelayTempCCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22605",
"status" : "current",
"objects" : {
"climateRelayTempC" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay Temperature Sensor Clear Trap""",
}, # notification
"cmClimateRelayTempFCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22606",
"status" : "current",
"objects" : {
"climateRelayTempF" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay Temperature Sensor Clear Trap""",
}, # notification
"cmClimateRelayIO1CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22607",
"status" : "current",
"objects" : {
"climateRelayIO1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO1 Sensor Clear Trap""",
}, # notification
"cmClimateRelayIO2CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22608",
"status" : "current",
"objects" : {
"climateRelayIO2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO2 Sensor Clear Trap""",
}, # notification
"cmClimateRelayIO3CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22609",
"status" : "current",
"objects" : {
"climateRelayIO3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO3 Sensor Clear Trap""",
}, # notification
"cmClimateRelayIO4CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22610",
"status" : "current",
"objects" : {
"climateRelayIO4" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO4 Sensor Clear Trap""",
}, # notification
"cmClimateRelayIO5CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22611",
"status" : "current",
"objects" : {
"climateRelayIO5" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO5 Sensor Clear Trap""",
}, # notification
"cmClimateRelayIO6CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22612",
"status" : "current",
"objects" : {
"climateRelayIO6" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"climateRelayName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO6 Sensor Clear Trap""",
}, # notification
"cmAirSpeedSwitchSensorAirSpeedCLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.22805",
"status" : "current",
"objects" : {
"airSpeedSwitchSensorAirSpeed" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"airSpeedSwitchSensorName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Air Speed Switch Clear Trap""",
}, # notification
"cmIoExpanderIO1CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23037",
"status" : "current",
"objects" : {
"ioExpanderIO1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO1 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO2CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23038",
"status" : "current",
"objects" : {
"ioExpanderIO2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO2 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO3CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23039",
"status" : "current",
"objects" : {
"ioExpanderIO3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO3 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO4CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23040",
"status" : "current",
"objects" : {
"ioExpanderIO4" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO4 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO5CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23041",
"status" : "current",
"objects" : {
"ioExpanderIO5" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO5 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO6CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23042",
"status" : "current",
"objects" : {
"ioExpanderIO6" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO6 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO7CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23043",
"status" : "current",
"objects" : {
"ioExpanderIO7" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO7 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO8CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23044",
"status" : "current",
"objects" : {
"ioExpanderIO8" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO8 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO9CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23045",
"status" : "current",
"objects" : {
"ioExpanderIO9" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO9 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO10CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23046",
"status" : "current",
"objects" : {
"ioExpanderIO10" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO10 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO11CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23047",
"status" : "current",
"objects" : {
"ioExpanderIO11" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO11 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO12CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23048",
"status" : "current",
"objects" : {
"ioExpanderIO12" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO12 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO13CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23049",
"status" : "current",
"objects" : {
"ioExpanderIO13" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO13 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO14CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23050",
"status" : "current",
"objects" : {
"ioExpanderIO14" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO14 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO15CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23051",
"status" : "current",
"objects" : {
"ioExpanderIO15" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO15 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO16CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23052",
"status" : "current",
"objects" : {
"ioExpanderIO16" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO16 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO17CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23053",
"status" : "current",
"objects" : {
"ioExpanderIO17" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO17 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO18CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23054",
"status" : "current",
"objects" : {
"ioExpanderIO18" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO18 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO19CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23055",
"status" : "current",
"objects" : {
"ioExpanderIO19" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO19 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO20CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23056",
"status" : "current",
"objects" : {
"ioExpanderIO20" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO20 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO21CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23057",
"status" : "current",
"objects" : {
"ioExpanderIO21" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO21 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO22CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23058",
"status" : "current",
"objects" : {
"ioExpanderIO22" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO22 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO23CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23059",
"status" : "current",
"objects" : {
"ioExpanderIO23" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO23 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO24CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23060",
"status" : "current",
"objects" : {
"ioExpanderIO24" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO24 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO25CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23061",
"status" : "current",
"objects" : {
"ioExpanderIO25" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO25 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO26CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23062",
"status" : "current",
"objects" : {
"ioExpanderIO26" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO26 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO27CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23063",
"status" : "current",
"objects" : {
"ioExpanderIO27" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO27 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO28CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23064",
"status" : "current",
"objects" : {
"ioExpanderIO28" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO28 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO29CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23065",
"status" : "current",
"objects" : {
"ioExpanderIO29" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO29 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO30CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23066",
"status" : "current",
"objects" : {
"ioExpanderIO30" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO30 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO31CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23067",
"status" : "current",
"objects" : {
"ioExpanderIO31" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO31 Sensor Clear Trap""",
}, # notification
"cmIoExpanderIO32CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.23068",
"status" : "current",
"objects" : {
"ioExpanderIO32" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"ioExpanderName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""Climate Relay IO32 Sensor Clear Trap""",
}, # notification
"cmPowerDMDeciAmps1NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129153",
"status" : "current",
"objects" : {
"powerDMDeciAmps1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps2NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129154",
"status" : "current",
"objects" : {
"powerDMDeciAmps2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps3NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129155",
"status" : "current",
"objects" : {
"powerDMDeciAmps3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps4NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129156",
"status" : "current",
"objects" : {
"powerDMDeciAmps4" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps5NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129157",
"status" : "current",
"objects" : {
"powerDMDeciAmps5" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps6NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129158",
"status" : "current",
"objects" : {
"powerDMDeciAmps6" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps7NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129159",
"status" : "current",
"objects" : {
"powerDMDeciAmps7" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps8NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129160",
"status" : "current",
"objects" : {
"powerDMDeciAmps8" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps9NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129161",
"status" : "current",
"objects" : {
"powerDMDeciAmps9" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps10NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129162",
"status" : "current",
"objects" : {
"powerDMDeciAmps10" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps11NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129163",
"status" : "current",
"objects" : {
"powerDMDeciAmps11" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps12NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129164",
"status" : "current",
"objects" : {
"powerDMDeciAmps12" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps13NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129165",
"status" : "current",
"objects" : {
"powerDMDeciAmps13" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps14NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129166",
"status" : "current",
"objects" : {
"powerDMDeciAmps14" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps15NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129167",
"status" : "current",
"objects" : {
"powerDMDeciAmps15" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps16NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129168",
"status" : "current",
"objects" : {
"powerDMDeciAmps16" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps17NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129169",
"status" : "current",
"objects" : {
"powerDMDeciAmps17" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps18NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129170",
"status" : "current",
"objects" : {
"powerDMDeciAmps18" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps19NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129171",
"status" : "current",
"objects" : {
"powerDMDeciAmps19" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps20NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129172",
"status" : "current",
"objects" : {
"powerDMDeciAmps20" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps21NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129173",
"status" : "current",
"objects" : {
"powerDMDeciAmps21" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps22NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129174",
"status" : "current",
"objects" : {
"powerDMDeciAmps22" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps23NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129175",
"status" : "current",
"objects" : {
"powerDMDeciAmps23" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps24NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129176",
"status" : "current",
"objects" : {
"powerDMDeciAmps24" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps25NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129177",
"status" : "current",
"objects" : {
"powerDMDeciAmps25" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps26NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129178",
"status" : "current",
"objects" : {
"powerDMDeciAmps26" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps27NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129179",
"status" : "current",
"objects" : {
"powerDMDeciAmps27" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps28NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129180",
"status" : "current",
"objects" : {
"powerDMDeciAmps28" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps29NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129181",
"status" : "current",
"objects" : {
"powerDMDeciAmps29" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps30NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129182",
"status" : "current",
"objects" : {
"powerDMDeciAmps30" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps31NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129183",
"status" : "current",
"objects" : {
"powerDMDeciAmps31" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps32NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129184",
"status" : "current",
"objects" : {
"powerDMDeciAmps32" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps33NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129185",
"status" : "current",
"objects" : {
"powerDMDeciAmps33" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps34NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129186",
"status" : "current",
"objects" : {
"powerDMDeciAmps34" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps35NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129187",
"status" : "current",
"objects" : {
"powerDMDeciAmps35" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps36NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129188",
"status" : "current",
"objects" : {
"powerDMDeciAmps36" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps37NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129189",
"status" : "current",
"objects" : {
"powerDMDeciAmps37" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps38NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129190",
"status" : "current",
"objects" : {
"powerDMDeciAmps38" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps39NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129191",
"status" : "current",
"objects" : {
"powerDMDeciAmps39" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps40NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129192",
"status" : "current",
"objects" : {
"powerDMDeciAmps40" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps41NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129193",
"status" : "current",
"objects" : {
"powerDMDeciAmps41" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps42NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129194",
"status" : "current",
"objects" : {
"powerDMDeciAmps42" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps43NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129195",
"status" : "current",
"objects" : {
"powerDMDeciAmps43" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps44NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129196",
"status" : "current",
"objects" : {
"powerDMDeciAmps44" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps45NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129197",
"status" : "current",
"objects" : {
"powerDMDeciAmps45" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps46NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129198",
"status" : "current",
"objects" : {
"powerDMDeciAmps46" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps47NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129199",
"status" : "current",
"objects" : {
"powerDMDeciAmps47" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps48NOTIFY" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.129200",
"status" : "current",
"objects" : {
"powerDMDeciAmps48" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Trap""",
}, # notification
"cmPowerDMDeciAmps1CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229153",
"status" : "current",
"objects" : {
"powerDMDeciAmps1" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps2CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229154",
"status" : "current",
"objects" : {
"powerDMDeciAmps2" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps3CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229155",
"status" : "current",
"objects" : {
"powerDMDeciAmps3" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps4CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229156",
"status" : "current",
"objects" : {
"powerDMDeciAmps4" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps5CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229157",
"status" : "current",
"objects" : {
"powerDMDeciAmps5" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps6CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229158",
"status" : "current",
"objects" : {
"powerDMDeciAmps6" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps7CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229159",
"status" : "current",
"objects" : {
"powerDMDeciAmps7" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps8CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229160",
"status" : "current",
"objects" : {
"powerDMDeciAmps8" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps9CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229161",
"status" : "current",
"objects" : {
"powerDMDeciAmps9" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps10CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229162",
"status" : "current",
"objects" : {
"powerDMDeciAmps10" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps11CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229163",
"status" : "current",
"objects" : {
"powerDMDeciAmps11" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps12CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229164",
"status" : "current",
"objects" : {
"powerDMDeciAmps12" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps13CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229165",
"status" : "current",
"objects" : {
"powerDMDeciAmps13" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps14CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229166",
"status" : "current",
"objects" : {
"powerDMDeciAmps14" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps15CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229167",
"status" : "current",
"objects" : {
"powerDMDeciAmps15" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps16CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229168",
"status" : "current",
"objects" : {
"powerDMDeciAmps16" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps17CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229169",
"status" : "current",
"objects" : {
"powerDMDeciAmps17" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps18CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229170",
"status" : "current",
"objects" : {
"powerDMDeciAmps18" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps19CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229171",
"status" : "current",
"objects" : {
"powerDMDeciAmps19" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps20CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229172",
"status" : "current",
"objects" : {
"powerDMDeciAmps20" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps21CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229173",
"status" : "current",
"objects" : {
"powerDMDeciAmps21" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps22CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229174",
"status" : "current",
"objects" : {
"powerDMDeciAmps22" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps23CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229175",
"status" : "current",
"objects" : {
"powerDMDeciAmps23" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps24CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229176",
"status" : "current",
"objects" : {
"powerDMDeciAmps24" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps25CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229177",
"status" : "current",
"objects" : {
"powerDMDeciAmps25" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps26CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229178",
"status" : "current",
"objects" : {
"powerDMDeciAmps26" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps27CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229179",
"status" : "current",
"objects" : {
"powerDMDeciAmps27" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps28CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229180",
"status" : "current",
"objects" : {
"powerDMDeciAmps28" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps29CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229181",
"status" : "current",
"objects" : {
"powerDMDeciAmps29" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps30CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229182",
"status" : "current",
"objects" : {
"powerDMDeciAmps30" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps31CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229183",
"status" : "current",
"objects" : {
"powerDMDeciAmps31" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps32CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229184",
"status" : "current",
"objects" : {
"powerDMDeciAmps32" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps33CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229185",
"status" : "current",
"objects" : {
"powerDMDeciAmps33" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps34CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229186",
"status" : "current",
"objects" : {
"powerDMDeciAmps34" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps35CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229187",
"status" : "current",
"objects" : {
"powerDMDeciAmps35" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps36CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229188",
"status" : "current",
"objects" : {
"powerDMDeciAmps36" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps37CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229189",
"status" : "current",
"objects" : {
"powerDMDeciAmps37" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps38CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229190",
"status" : "current",
"objects" : {
"powerDMDeciAmps38" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps39CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229191",
"status" : "current",
"objects" : {
"powerDMDeciAmps39" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps40CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229192",
"status" : "current",
"objects" : {
"powerDMDeciAmps40" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps41CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229193",
"status" : "current",
"objects" : {
"powerDMDeciAmps41" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps42CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229194",
"status" : "current",
"objects" : {
"powerDMDeciAmps42" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps43CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229195",
"status" : "current",
"objects" : {
"powerDMDeciAmps43" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps44CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229196",
"status" : "current",
"objects" : {
"powerDMDeciAmps44" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps45CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229197",
"status" : "current",
"objects" : {
"powerDMDeciAmps45" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps46CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229198",
"status" : "current",
"objects" : {
"powerDMDeciAmps46" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps47CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229199",
"status" : "current",
"objects" : {
"powerDMDeciAmps47" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
"cmPowerDMDeciAmps48CLEAR" : {
"nodetype" : "notification",
"moduleName" : "IT-WATCHDOGS-MIB-V3",
"oid" : "1.3.6.1.4.1.17373.3.32767.0.229200",
"status" : "current",
"objects" : {
"powerDMDeciAmps48" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"powerDMName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"productFriendlyName" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
"alarmTripType" : {
"nodetype" : "object",
"module" : "IT-WATCHDOGS-MIB-V3"
},
},
"description" :
"""DM48 Current Monitor Amps Clear Trap""",
}, # notification
}, # notifications
}
| gpl-2.0 | 632,302,935,312,327,800 | 35.619721 | 165 | 0.360062 | false | 3.81588 | false | false | false |
InQuest/ThreatKB | migrations/versions/bc0fab3363f7_create_cfg_category_range_mapping_table.py | 1 | 1736 | """create cfg_category_range_mapping table
Revision ID: bc0fab3363f7
Revises: 960676c435b2
Create Date: 2017-08-12 23:11:42.385100
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bc0fab3363f7'
down_revision = '960676c435b2'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('cfg_category_range_mapping',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('category', sa.String(length=255), nullable=False),
sa.Column('range_min', sa.Integer(unsigned=True), nullable=False),
sa.Column('range_max', sa.Integer(unsigned=True), nullable=False),
sa.Column('current', sa.Integer(unsigned=True), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('category')
)
op.create_index(u'ix_cfg_category_range_mapping_current', 'cfg_category_range_mapping', ['current'], unique=False)
op.create_index(u'ix_cfg_category_range_mapping_range_max', 'cfg_category_range_mapping', ['range_max'], unique=False)
op.create_index(u'ix_cfg_category_range_mapping_range_min', 'cfg_category_range_mapping', ['range_min'], unique=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(u'ix_cfg_category_range_mapping_range_min', table_name='cfg_category_range_mapping')
op.drop_index(u'ix_cfg_category_range_mapping_range_max', table_name='cfg_category_range_mapping')
op.drop_index(u'ix_cfg_category_range_mapping_current', table_name='cfg_category_range_mapping')
op.drop_table('cfg_category_range_mapping')
# ### end Alembic commands ###
| gpl-2.0 | -5,685,016,944,618,044,000 | 40.333333 | 122 | 0.710253 | false | 3.250936 | false | false | false |
kperun/nestml | pynestml/visitors/ast_line_operation_visitor.py | 1 | 1699 | #
# ASTLineOperatorVisitor.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# NEST is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
"""
rhs : left=rhs (plusOp='+' | minusOp='-') right=rhs
"""
from pynestml.meta_model.ast_expression import ASTExpression
from pynestml.visitors.ast_visitor import ASTVisitor
class ASTLineOperatorVisitor(ASTVisitor):
"""
Visits a single binary operation consisting of + or - and updates the type accordingly.
"""
def visit_expression(self, node):
"""
Visits a single expression containing a plus or minus operator and updates its type.
:param node: a single expression
:type node: ASTExpression
"""
lhs_type = node.get_lhs().type
rhs_type = node.get_rhs().type
arith_op = node.get_binary_operator()
lhs_type.referenced_object = node.get_lhs()
rhs_type.referenced_object = node.get_rhs()
if arith_op.is_plus_op:
node.type = lhs_type + rhs_type
return
elif arith_op.is_minus_op:
node.type = lhs_type - rhs_type
return
| gpl-2.0 | -7,360,699,407,849,808,000 | 31.673077 | 92 | 0.67628 | false | 3.870159 | false | false | false |
bodhiconnolly/python-day-one-client | location.py | 1 | 7437 | #-------------------------------------------------------------------------------
# Name: location v1.0
# Purpose: get location input from user and find relevant weather
#
# Author: Bodhi Connolly
#
# Created: 24/05/2014
# Copyright: (c) Bodhi Connolly 2014
# Licence: GNU General Public License, version 3 (GPL-3.0)
#-------------------------------------------------------------------------------
from pygeocoder import Geocoder,GeocoderError
import urllib2
import json
import wx
from cStringIO import StringIO
class Location ( wx.Dialog ):
"""A dialog to get user location and local weather via Google Maps and
OpenWeatherMap"""
def __init__( self, parent ):
"""Initialises the items in the dialog
Location.__init__(Parent) -> None
"""
wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY,
title = 'Entry Location',
pos = wx.DefaultPosition, size = wx.Size( -1,-1),
style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
bSizer1 = wx.BoxSizer( wx.VERTICAL )
bSizer2 = wx.BoxSizer( wx.HORIZONTAL )
self.input_location = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString,
wx.DefaultPosition,
wx.Size( 200,-1 ),
wx.TE_PROCESS_ENTER)
self.Bind(wx.EVT_TEXT_ENTER,self.button_click,self.input_location)
bSizer2.Add( self.input_location, 0, wx.ALL, 5 )
self.button_search = wx.Button( self, wx.ID_ANY, u"Search",
wx.DefaultPosition, wx.DefaultSize, 0 )
bSizer2.Add( self.button_search, 0, wx.ALL, 5 )
self.button_search.Bind(wx.EVT_BUTTON,self.button_click)
self.button_submit = wx.Button( self, wx.ID_OK, u"OK",
wx.DefaultPosition, wx.DefaultSize, 0 )
bSizer2.Add( self.button_submit, 0, wx.ALL, 5 )
self.button_submit.Bind(wx.EVT_BUTTON,self.submit)
self.cancel = wx.Button(self, wx.ID_CANCEL,size=(1,1))
bSizer1.Add( bSizer2, 1, wx.EXPAND, 5 )
self.bitmap = wx.StaticBitmap( self, wx.ID_ANY, wx.NullBitmap,
wx.DefaultPosition, wx.DefaultSize, 0 )
bSizer1.Add( self.bitmap, 1, wx.ALL|wx.EXPAND, 5 )
self.location_text = wx.StaticText( self, wx.ID_ANY,
u"Location:", wx.DefaultPosition,
wx.DefaultSize, 0 )
self.location_text.Wrap( -1 )
bSizer1.Add( self.location_text, 0, wx.ALL, 5 )
self.weather_text = wx.StaticText( self, wx.ID_ANY,
u"Weather:", wx.DefaultPosition,
wx.DefaultSize, 0 )
self.weather_text.Wrap( -1 )
bSizer1.Add( self.weather_text, 0, wx.ALL, 5 )
self.weathernames={'Clear':'Clear','Clouds':'cloudy'}
self.SetSizer( bSizer1 )
self.Layout()
self.Centre( wx.BOTH )
self.searched=False
def button_click(self,evt=None):
"""Finds the coordinates from the user entry text and gets the weather
from these coordinates
Location.button_click(event) -> None
"""
self.get_weather(self.get_coordinates())
self.searched=True
def get_coordinates(self):
"""Searches Google Maps for the location entered and returns the results
Note: returns None if cannot find location
Location.get_coordinates() -> pygeolib.GeocoderResult
"""
try:
self.results=Geocoder.geocode(self.input_location.GetRange(0,
self.input_location.GetLastPosition()))
except GeocoderError:
return None
try:
self.location_text.SetLabel(str(self.results))
except UnicodeDecodeError:
return None
return self.results
def get_weather(self,coordinates):
"""Searches OpenWeatherMap for the weather at specified coordinates
and sets variables based on this result for adding to entry. Also loads
image of coordinates from Google Maps Static Image API.
Location.get_weather() -> None
"""
if coordinates==None:
self.location_text.SetLabel('Invalid Location')
self.weather_text.SetLabel('No Weather')
else:
coordinates=coordinates.coordinates
request = urllib2.urlopen(
'http://api.openweathermap.org/data/2.5/weather?lat='
+str(coordinates[0])+'&lon='
+str(coordinates[1])+'&units=metric')
response = request.read()
self.weather_json = json.loads(response)
self.weather_text.SetLabel("Weather is %s with a temperature of %d"
% (self.weather_json['weather'][0]['main'].lower(),
self.weather_json['main']['temp']))
request.close()
img_source = urllib2.urlopen(
'http://maps.googleapis.com/maps/api/staticmap?'+
'&zoom=11&size=600x200&sensor=false&markers='
+str(coordinates[0])+','+str(coordinates[1]))
data = img_source.read()
img_source.close()
img = wx.ImageFromStream(StringIO(data))
bm = wx.BitmapFromImage((img))
self.bitmap.SetBitmap(bm)
w, h = self.GetClientSize()
self.SetSize((w+50,h+50))
try:
self.celcius=int(self.weather_json['main']['temp'])
except KeyError:
pass
try:
self.icon=(self.weathernames[self.weather_json
['weather'][0]['main']])
except KeyError:
self.icon='Clear'
try:
self.description=self.weather_json['weather'][0]['main']
except KeyError:
pass
try:
self.humidity=self.weather_json['main']['humidity']
except KeyError:
pass
try:
self.country=self.results.country
except KeyError:
pass
try:
self.placename=(str(self.results.street_number)
+' '+self.results.route)
except (TypeError,KeyError):
self.placename=''
try:
self.adminarea=self.results.administrative_area_level_1
except KeyError:
pass
try:
self.locality=self.results.locality
except KeyError:
pass
def submit(self,evt=None):
"""Closes the dialog if user has already searched, else search and then
close the dialog.
Location.submit() -> None
"""
if self.searched:
self.Close()
else:
self.button_click()
self.Close()
def main():
a = wx.App(0)
f = Location(None)
f.Show()
a.MainLoop()
if __name__ == '__main__':
main()
| gpl-3.0 | -414,652,122,782,092,900 | 36.371859 | 80 | 0.514724 | false | 4.30133 | false | false | false |
Jaxkr/TruthBot.org | Truthbot/news/migrations/0001_initial.py | 1 | 3654 | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-06 00:21
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField()),
('score', models.IntegerField(default=0)),
('timestamp', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='CommentReply',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField()),
('timestamp', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('comment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.Comment')),
],
options={
'ordering': ['timestamp'],
},
),
migrations.CreateModel(
name='CommentVote',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('comment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.Comment')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('link', models.CharField(max_length=2083)),
('title', models.CharField(max_length=350)),
('timestamp', models.DateTimeField(default=django.utils.timezone.now)),
('score', models.IntegerField(default=0)),
('slug', models.SlugField(blank=True, unique=True)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='PostVote',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.Post')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.AddField(
model_name='commentreply',
name='post',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.Post'),
),
migrations.AddField(
model_name='comment',
name='post',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news.Post'),
),
]
| gpl-2.0 | -7,073,445,214,023,424,000 | 44.111111 | 120 | 0.584291 | false | 4.329384 | false | false | false |
bdacode/hoster | hoster/mediafire_com.py | 1 | 5195 | # -*- coding: utf-8 -*-
"""Copyright (C) 2013 COLDWELL AG
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import re
import time
import base64
import hashlib
from bs4 import BeautifulSoup
from ... import hoster
# fix for HTTPS TLSv1 connection
import ssl
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.poolmanager import PoolManager
@hoster.host
class this:
model = hoster.HttpPremiumHoster
name = 'mediafire.com'
patterns = [
hoster.Matcher('https?', '*.mediafire.com', "!/download/<id>/<name>"),
hoster.Matcher('https?', '*.mediafire.com', "!/download/<id>"),
hoster.Matcher('https?', '*.mediafire.com', r'/(file/|(view/?|download\.php)?\?)(?P<id>\w{11}|\w{15})($|/)'),
hoster.Matcher('https?', '*.mediafire.com', _query_string=r'^(?P<id>(\w{11}|\w{15}))$'),
]
url_template = 'http://www.mediafire.com/file/{id}'
def on_check(file):
name, size = get_file_infos(file)
print name, size
file.set_infos(name=name, size=size)
def get_file_infos(file):
id = file.pmatch.id
resp = file.account.get("http://www.mediafire.com/api/file/get_info.php", params={"quick_key": id})
name = re.search(r"<filename>(.*?)</filename>", resp.text).group(1)
size = re.search(r"<size>(.*?)</size>", resp.text).group(1)
return name, int(size)
def on_download_premium(chunk):
id = chunk.file.pmatch.id
resp = chunk.account.get("http://www.mediafire.com/?{}".format(id), allow_redirects=False)
if "Enter Password" in resp.text and 'display:block;">This file is' in resp.text:
raise NotImplementedError()
password = input.password(file=chunk.file)
if not password:
chunk.password_aborted()
password = password['password']
url = re.search(r'kNO = "(http://.*?)"', resp.text)
if url:
url = url.group(1)
if not url:
if resp.status_code == 302 and resp.headers['Location']:
url = resp.headers['location']
if not url:
resp = chunk.account.get("http://www.mediafire.com/dynamic/dlget.php", params={"qk": id})
url = re.search('dllink":"(http:.*?)"', resp.text)
if url:
url = url.group(1)
if not url:
chunk.no_download_link()
return url
def on_download_free(chunk):
resp = chunk.account.get(chunk.file.url, allow_redirects=False)
if resp.status_code == 302 and resp.headers['Location']:
return resp.headers['Location']
raise NotImplementedError()
class MyHTTPSAdapter(HTTPAdapter):
def init_poolmanager(self, connections, maxsize, block):
self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize, ssl_version=ssl.PROTOCOL_TLSv1, block=block)
def on_initialize_account(self):
self.APP_ID = 27112
self.APP_KEY = "czQ1cDd5NWE3OTl2ZGNsZmpkd3Q1eXZhNHcxdzE4c2Zlbmt2djdudw=="
self.token = None
self.browser.mount('https://', MyHTTPSAdapter())
resp = self.get("https://www.mediafire.com/")
if self.username is None:
return
s = BeautifulSoup(resp.text)
form = s.select('#form_login1')
url, form = hoster.serialize_html_form(form[0])
url = hoster.urljoin("https://www.mediafire.com/", url)
form['login_email'] = self.username
form['login_pass'] = self.password
form['login_remember'] = "on"
resp = self.post(url, data=form, referer="https://www.mediafire.com/")
if not self.browser.cookies['user']:
self.login_failed()
sig = hashlib.sha1()
sig.update(self.username)
sig.update(self.password)
sig.update(str(self.APP_ID))
sig.update(base64.b64decode(self.APP_KEY))
sig = sig.hexdigest()
params = {
"email": self.username,
"password": self.password,
"application_id": self.APP_ID,
"signature": sig,
"version": 1}
resp = self.get("https://www.mediafire.com/api/user/get_session_token.php", params=params)
m = re.search(r"<session_token>(.*?)</session_token>", resp.text)
if not m:
self.fatal('error getting session token')
self.token = m.group(1)
resp = self.get("https://www.mediafire.com/myaccount/billinghistory.php")
m = re.search(r'<div class="lg-txt">(\d+/\d+/\d+)</div> <div>', resp.text)
if m:
self.expires = m.group(1)
self.premium = self.expires > time.time() and True or False
if self.premium:
resp = self.get("https://www.mediafire.com/myaccount.php")
m = re.search(r'View Statistics.*?class="lg-txt">(.*?)</div', resp.text)
if m:
self.traffic = m.group(1)
else:
self.traffic = None
| gpl-3.0 | 2,031,624,889,750,480,600 | 32.516129 | 123 | 0.646968 | false | 3.349452 | false | false | false |
conejoninja/xbmc-seriesly | servers/rapidshare.py | 1 | 1655 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# seriesly - XBMC Plugin
# Conector para rapidshare
# http://blog.tvalacarta.info/plugin-xbmc/seriesly/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os
from core import scrapertools
from core import logger
from core import config
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
logger.info("[rapidshare.py] get_video_url(page_url='%s')" % page_url)
video_urls = []
return video_urls
# Encuentra vídeos del servidor en el texto pasado
def find_videos(data):
encontrados = set()
devuelve = []
# https://rapidshare.com/files/3346009389/_BiW__Last_Exile_Ginyoku_no_Fam_-_Episodio_09__A68583B1_.mkv
# "https://rapidshare.com/files/3346009389/_BiW__Last_Exile_Ginyoku_no_Fam_-_Episodio_09__A68583B1_.mkv"
# http://rapidshare.com/files/2327495081/Camino.Sangriento.4.HDR.Proper.200Ro.dri.part5.rar
# https://rapidshare.com/files/715435909/Salmon.Fishing.in.the.Yemen.2012.720p.UNSOLOCLIC.INFO.mkv
patronvideos = '(rapidshare.com/files/[0-9]+/.*?)["|<]'
logger.info("[rapidshare.py] find_videos #"+patronvideos+"#")
matches = re.compile(patronvideos,re.DOTALL).findall(data+'"')
for match in matches:
titulo = "[rapidshare]"
url = "http://"+match
if url not in encontrados:
logger.info(" url="+url)
devuelve.append( [ titulo , url , 'rapidshare' ] )
encontrados.add(url)
else:
logger.info(" url duplicada="+url)
return devuelve
| gpl-3.0 | 3,959,878,289,778,645,500 | 37.465116 | 108 | 0.611245 | false | 3.062963 | false | false | false |
RedHatInsights/insights-core | insights/combiners/md5check.py | 1 | 1060 | """
NormalMD5 Combiner for the NormalMD5 Parser
===========================================
Combiner for the :class:`insights.parsers.md5check.NormalMD5` parser.
This parser is multioutput, one parser instance for each file md5sum.
Ths combiner puts all of them back together and presents them as a dict
where the keys are the filenames and the md5sums are the values.
This class inherits all methods and attributes from the ``dict`` object.
Examples:
>>> type(md5sums)
<class 'insights.combiners.md5check.NormalMD5'>
>>> sorted(md5sums.keys())
['/etc/localtime1', '/etc/localtime2']
>>> md5sums['/etc/localtime2']
'd41d8cd98f00b204e9800998ecf8427e'
"""
from .. import combiner
from insights.parsers.md5check import NormalMD5 as NormalMD5Parser
@combiner(NormalMD5Parser)
class NormalMD5(dict):
"""
Combiner for the NormalMD5 parser.
"""
def __init__(self, md5_checksums):
super(NormalMD5, self).__init__()
for md5info in md5_checksums:
self.update({md5info.filename: md5info.md5sum})
| apache-2.0 | -2,259,252,239,409,799,700 | 30.176471 | 72 | 0.684906 | false | 3.365079 | false | false | false |
Answeror/pypaper | pypaper/acm.py | 1 | 4948 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pyquery import PyQuery as pq
import yapbib.biblist as biblist
class ACM(object):
def __init__(self, id):
self.id = id
@property
def title(self):
if not hasattr(self, 'b'):
self.b = self._full_bibtex()
return self.b.get_items()[0]['title']
@staticmethod
def from_url(url):
from urlparse import urlparse, parse_qs
words = parse_qs(urlparse(url).query)['id'][0].split('.')
assert len(words) == 2
return ACM(id=words[1])
#import re
#try:
#content = urlread(url)
#return ACM(id=re.search(r"document.cookie = 'picked=' \+ '(\d+)'", content).group(1))
#except:
#print(url)
#return None
@staticmethod
def from_title(title):
from urllib import urlencode
url = 'http://dl.acm.org/results.cfm'
d = pq(urlread(url + '?' + urlencode({'query': title})))
return ACM.from_url(d('a.medium-text').eq(0).attr('href'))
@staticmethod
def from_bibtex(f):
b = biblist.BibList()
ret = b.import_bibtex(f)
assert ret
return [ACM.from_title(it['title']) for it in b.get_items()]
def export_bibtex(self, f):
b = self._full_bibtex()
b.export_bibtex(f)
def _full_bibtex(self):
b = self._original_bibtex()
it = b.get_items()[0]
it['abstract'] = self._abstract()
return b
def _original_bibtex(self):
TEMPLATE = 'http://dl.acm.org/exportformats.cfm?id=%s&expformat=bibtex&_cf_containerId=theformats_body&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=142656B43EEEE8D6E34FC208DBFCC647&_cf_rc=3'
url = TEMPLATE % self.id
d = pq(urlread(url))
content = d('pre').text()
from StringIO import StringIO
f = StringIO(content)
b = biblist.BibList()
ret = b.import_bibtex(f)
assert ret, content
return b
def _abstract(self):
TEMPLATE = 'http://dl.acm.org/tab_abstract.cfm?id=%s&usebody=tabbody&cfid=216938597&cftoken=33552307&_cf_containerId=abstract&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=142656B43EEEE8D6E34FC208DBFCC647&_cf_rc=0'
url = TEMPLATE % self.id
d = pq(urlread(url))
return d.text()
def download_pdf(self):
TEMPLATE = 'http://dl.acm.org/ft_gateway.cfm?id=%s&ftid=723552&dwn=1&CFID=216938597&CFTOKEN=33552307'
url = TEMPLATE % self.id
content = urlread(url)
filename = escape(self.title) + '.pdf'
import os
if not os.path.exists(filename):
with open(filename, 'wb') as f:
f.write(content)
def escape(name):
#import string
#valid_chars = "-_.() %s%s" % (string.ascii_letters, string.digits)
#return ''.join([ch if ch in valid_chars else ' ' for ch in name])
from gn import Gn
gn = Gn()
return gn(name)
def urlread(url):
import urllib2
import cookielib
hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'Accept-Encoding': 'none',
'Accept-Language': 'en-US,en;q=0.8',
'Connection': 'keep-alive'}
req = urllib2.Request(url, headers=hdr)
page = urllib2.urlopen(req)
return page.read()
def from_clipboard():
import win32clipboard
win32clipboard.OpenClipboard()
data = win32clipboard.GetClipboardData()
win32clipboard.CloseClipboard()
return data
def test_download():
bib = ACM.from_url('http://dl.acm.org/citation.cfm?id=1672308.1672326&coll=DL&dl=ACM&CFID=216938597&CFTOKEN=33552307')
bib.download_pdf()
def test_from_url():
bib = ACM.from_url('http://dl.acm.org/citation.cfm?id=1672308.1672326&coll=DL&dl=ACM&CFID=216938597&CFTOKEN=33552307')
print(bib.id)
def test_from_title():
bib = ACM.from_title('Applications of mobile activity recognition')
print(bib.id)
def get_params():
import sys
return sys.argv[1] if len(sys.argv) > 1 else from_clipboard()
def download_bibtex(arg):
bib = ACM.from_url(arg)
#from StringIO import StringIO
#f = StringIO()
bib.export_bibtex('out.bib')
#print(f.getvalue())
def download_pdf(arg):
import time
bibs = ACM.from_bibtex(arg)
print('bibs loaded')
for bib in bibs:
for i in range(10):
try:
print(bib.title)
bib.download_pdf()
time.sleep(10)
except:
print('failed')
else:
print('done')
break
if __name__ == '__main__':
arg = get_params()
if arg.endswith('.bib'):
download_pdf(arg)
else:
download_bibtex(arg)
| mit | -4,266,264,121,243,585,000 | 28.452381 | 223 | 0.589733 | false | 3.102194 | false | false | false |
guokeno0/vitess | py/vtdb/vtgate_client.py | 1 | 13325 | # Copyright 2015 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can
# be found in the LICENSE file.
"""This module defines the vtgate client interface.
"""
from vtdb import vtgate_cursor
# mapping from protocol to python class.
vtgate_client_conn_classes = dict()
def register_conn_class(protocol, c):
"""Used by implementations to register themselves.
Args:
protocol: short string to document the protocol.
c: class to register.
"""
vtgate_client_conn_classes[protocol] = c
def connect(protocol, vtgate_addrs, timeout, *pargs, **kargs):
"""connect will return a dialed VTGateClient connection to a vtgate server.
FIXME(alainjobart): exceptions raised are not consistent.
Args:
protocol: the registered protocol to use.
vtgate_addrs: single or multiple vtgate server addresses to connect to.
Which address is actually used depends on the load balancing
capabilities of the underlying protocol used.
timeout: connection timeout, float in seconds.
*pargs: passed to the registered protocol __init__ method.
**kargs: passed to the registered protocol __init__ method.
Returns:
A dialed VTGateClient.
Raises:
dbexceptions.OperationalError: if we are unable to establish the connection
(for instance, no available instance).
dbexceptions.Error: if vtgate_addrs have the wrong type.
ValueError: If the protocol is unknown, or vtgate_addrs are malformed.
"""
if protocol not in vtgate_client_conn_classes:
raise ValueError('Unknown vtgate_client protocol', protocol)
conn = vtgate_client_conn_classes[protocol](
vtgate_addrs, timeout, *pargs, **kargs)
conn.dial()
return conn
# Note: Eventually, this object will be replaced by a proto3 CallerID
# object when all vitess customers have migrated to proto3.
class CallerID(object):
"""An object with principal, component, and subcomponent fields."""
def __init__(self, principal=None, component=None, subcomponent=None):
self.principal = principal
self.component = component
self.subcomponent = subcomponent
class VTGateClient(object):
"""VTGateClient is the interface for the vtgate client implementations.
All implementations must implement all these methods.
If something goes wrong with the connection, this object will be thrown out.
FIXME(alainjobart) transactional state (the Session object) is currently
maintained by this object. It should be maintained by the cursor, and just
returned / passed in with every method that makes sense.
"""
def __init__(self, addr, timeout):
"""Initialize a vtgate connection.
Args:
addr: server address. Can be protocol dependent.
timeout: connection timeout (float, in seconds).
"""
self.addr = addr
self.timeout = timeout
# self.session is used by vtgate_utils.exponential_backoff_retry.
# implementations should use it to store the session object.
self.session = None
def dial(self):
"""Dial to the server.
If successful, call close() to close the connection.
"""
raise NotImplementedError('Child class needs to implement this')
def close(self):
"""Close the connection.
This object may be re-used again by calling dial().
"""
raise NotImplementedError('Child class needs to implement this')
def is_closed(self):
"""Checks the connection status.
Returns:
True if this connection is closed.
"""
raise NotImplementedError('Child class needs to implement this')
def cursor(self, *pargs, **kwargs):
"""Creates a cursor instance associated with this connection.
Args:
*pargs: passed to the cursor constructor.
**kwargs: passed to the cursor constructor.
Returns:
A new cursor to use on this connection.
"""
cursorclass = kwargs.pop('cursorclass', None) or vtgate_cursor.VTGateCursor
return cursorclass(self, *pargs, **kwargs)
def begin(self, effective_caller_id=None):
"""Starts a transaction.
FIXME(alainjobart): instead of storing the Session as member variable,
should return it and let the cursor store it.
Args:
effective_caller_id: CallerID Object.
Raises:
dbexceptions.TimeoutError: for connection timeout.
dbexceptions.TransientError: the server is overloaded, and this query
is asked to back off.
dbexceptions.IntegrityError: integrity of an index would not be
guaranteed with this statement.
dbexceptions.DatabaseError: generic database error.
dbexceptions.ProgrammingError: the supplied statements are invalid,
this is probably an error in the code.
dbexceptions.FatalError: this query should not be retried.
"""
raise NotImplementedError('Child class needs to implement this')
def commit(self):
"""Commits the current transaction.
FIXME(alainjobart): should take the session in.
Raises:
dbexceptions.TimeoutError: for connection timeout.
dbexceptions.TransientError: the server is overloaded, and this query
is asked to back off.
dbexceptions.IntegrityError: integrity of an index would not be
guaranteed with this statement.
dbexceptions.DatabaseError: generic database error.
dbexceptions.ProgrammingError: the supplied statements are invalid,
this is probably an error in the code.
dbexceptions.FatalError: this query should not be retried.
"""
raise NotImplementedError('Child class needs to implement this')
def rollback(self):
"""Rolls the current transaction back.
FIXME(alainjobart): should take the session in.
Raises:
dbexceptions.TimeoutError: for connection timeout.
dbexceptions.TransientError: the server is overloaded, and this query
is asked to back off.
dbexceptions.IntegrityError: integrity of an index would not be
guaranteed with this statement.
dbexceptions.DatabaseError: generic database error.
dbexceptions.ProgrammingError: the supplied statements are invalid,
this is probably an error in the code.
dbexceptions.FatalError: this query should not be retried.
"""
raise NotImplementedError('Child class needs to implement this')
def _execute(self, sql, bind_variables, tablet_type,
keyspace_name=None,
shards=None,
keyspace_ids=None,
keyranges=None,
entity_keyspace_id_map=None, entity_column_name=None,
not_in_transaction=False, effective_caller_id=None, **kwargs):
"""Executes the given sql.
FIXME(alainjobart): should take the session in.
FIXME(alainjobart): implementations have keyspace before tablet_type!
Args:
sql: query to execute.
bind_variables: map of bind variables for the query.
tablet_type: the (string) version of the tablet type.
keyspace_name: if specified, the keyspace to send the query to.
Required if any of the routing parameters is used.
Not required only if using vtgate v3 API.
shards: if specified, use this list of shards names to route the query.
Incompatible with keyspace_ids, keyranges, entity_keyspace_id_map,
entity_column_name.
Requires keyspace.
keyspace_ids: if specified, use this list to route the query.
Incompatible with shards, keyranges, entity_keyspace_id_map,
entity_column_name.
Requires keyspace.
keyranges: if specified, use this list to route the query.
Incompatible with shards, keyspace_ids, entity_keyspace_id_map,
entity_column_name.
Requires keyspace.
entity_keyspace_id_map: if specified, use this map to route the query.
Incompatible with shards, keyspace_ids, keyranges.
Requires keyspace, entity_column_name.
entity_column_name: if specified, use this value to route the query.
Incompatible with shards, keyspace_ids, keyranges.
Requires keyspace, entity_keyspace_id_map.
not_in_transaction: force this execute to be outside the current
transaction, if any.
effective_caller_id: CallerID object.
**kwargs: implementation specific parameters.
Returns:
results: list of rows.
rowcount: how many rows were affected.
lastrowid: auto-increment value for the last row inserted.
fields: describes the field names and types.
Raises:
dbexceptions.TimeoutError: for connection timeout.
dbexceptions.TransientError: the server is overloaded, and this query
is asked to back off.
dbexceptions.IntegrityError: integrity of an index would not be
guaranteed with this statement.
dbexceptions.DatabaseError: generic database error.
dbexceptions.ProgrammingError: the supplied statements are invalid,
this is probably an error in the code.
dbexceptions.FatalError: this query should not be retried.
"""
raise NotImplementedError('Child class needs to implement this')
def _execute_batch(
self, sql_list, bind_variables_list, tablet_type,
keyspace_list=None, shards_list=None, keyspace_ids_list=None,
as_transaction=False, effective_caller_id=None, **kwargs):
"""Executes a list of sql queries.
These follow the same routing rules as _execute.
FIXME(alainjobart): should take the session in.
Args:
sql_list: list of SQL queries to execute.
bind_variables_list: bind variables to associated with each query.
tablet_type: the (string) version of the tablet type.
keyspace_list: if specified, the keyspaces to send the queries to.
Required if any of the routing parameters is used.
Not required only if using vtgate v3 API.
shards_list: if specified, use this list of shards names (per sql query)
to route each query.
Incompatible with keyspace_ids_list.
Requires keyspace_list.
keyspace_ids_list: if specified, use this list of keyspace_ids (per sql
query) to route each query.
Incompatible with shards_list.
Requires keyspace_list.
as_transaction: starts and commits a transaction around the statements.
effective_caller_id: CallerID object.
**kwargs: implementation specific parameters.
Returns:
results: an array of (results, rowcount, lastrowid, fields) tuples,
one for each query.
Raises:
dbexceptions.TimeoutError: for connection timeout.
dbexceptions.TransientError: the server is overloaded, and this query
is asked to back off.
dbexceptions.IntegrityError: integrity of an index would not be
guaranteed with this statement.
dbexceptions.DatabaseError: generic database error.
dbexceptions.ProgrammingError: the supplied statements are invalid,
this is probably an error in the code.
dbexceptions.FatalError: this query should not be retried.
"""
raise NotImplementedError('Child class needs to implement this')
def _stream_execute(
self, sql, bind_variables, tablet_type, keyspace=None, shards=None,
keyspace_ids=None, keyranges=None, effective_caller_id=None, **kwargs):
"""Executes the given sql, in streaming mode.
FIXME(alainjobart): the return values are weird (historical reasons)
and unused for now. We should use them, and not store the current
streaming status in the connection, but in the cursor.
Args:
sql: query to execute.
bind_variables: map of bind variables for the query.
tablet_type: the (string) version of the tablet type.
keyspace: if specified, the keyspace to send the query to.
Required if any of the routing parameters is used.
Not required only if using vtgate v3 API.
shards: if specified, use this list of shards names to route the query.
Incompatible with keyspace_ids, keyranges.
Requires keyspace.
keyspace_ids: if specified, use this list to route the query.
Incompatible with shards, keyranges.
Requires keyspace.
keyranges: if specified, use this list to route the query.
Incompatible with shards, keyspace_ids.
Requires keyspace.
effective_caller_id: CallerID object.
**kwargs: implementation specific parameters.
Returns:
A (row generator, fields) pair.
Raises:
dbexceptions.TimeoutError: for connection timeout.
dbexceptions.TransientError: the server is overloaded, and this query
is asked to back off.
dbexceptions.IntegrityError: integrity of an index would not be
guaranteed with this statement.
dbexceptions.DatabaseError: generic database error.
dbexceptions.ProgrammingError: the supplied statements are invalid,
this is probably an error in the code.
dbexceptions.FatalError: this query should not be retried.
"""
raise NotImplementedError('Child class needs to implement this')
def get_srv_keyspace(self, keyspace):
"""Returns a SrvKeyspace object.
Args:
keyspace: name of the keyspace to retrieve.
Returns:
srv_keyspace: a keyspace.Keyspace object.
Raises:
TBD
"""
raise NotImplementedError('Child class needs to implement this')
| bsd-3-clause | -6,460,589,704,704,032,000 | 37.623188 | 79 | 0.705666 | false | 4.491068 | false | false | false |
CitoEngine/cito_plugin_server | cito_plugin_server/settings/base.py | 1 | 5183 | """Copyright 2014 Cyrus Dasadia
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.
"""
import os
import sys
import logging
try:
from unipath import Path
except ImportError:
print 'Please run pip install Unipath, to install this module.'
sys.exit(1)
PROJECT_ROOT = Path(__file__).ancestor(2)
# PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
# sys.path.insert(0, PROJECT_ROOT)
LOG_PATH = PROJECT_ROOT.ancestor(1)
DEBUG = False
TEMPLATE_DEBUG = False
ADMINS = (
# ('Your Name', '[email protected]'),
)
MANAGERS = ADMINS
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'UTC'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale.
USE_L10N = True
# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = True
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = ''
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = ''
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = PROJECT_ROOT.child('static')
STATIC_ROOT = ''
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'
# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
PROJECT_ROOT.child('static'),
)
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.static",
"django.core.context_processors.tz",
"django.contrib.messages.context_processors.messages",
"django.core.context_processors.request",
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'cito_plugin_server.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'cito_plugin_server.wsgi.application'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
PROJECT_ROOT.child('templates'),
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'gunicorn',
'south',
'cito_plugin_server',
'webservice',
)
STATIC_FILES = PROJECT_ROOT.ancestor(1).child('staticfiles')
try:
from .secret_key import *
except ImportError:
print "settings/secret_key.py not found!"
sys.exit(1)
| apache-2.0 | 5,227,405,392,165,726,000 | 31.597484 | 88 | 0.737604 | false | 3.688968 | false | false | false |
depristo/xvfbwrapper | setup.py | 1 | 1339 | #!/usr/bin/env python
"""disutils setup/install script for xvfbwrapper"""
import os
from distutils.core import setup
this_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_dir, 'README.rst')) as f:
LONG_DESCRIPTION = '\n' + f.read()
setup(
name='xvfbwrapper',
version='0.2.5',
py_modules=['xvfbwrapper'],
author='Corey Goldberg',
author_email='cgoldberg _at_ gmail.com',
description='run headless display inside X virtual framebuffer (Xvfb)',
long_description=LONG_DESCRIPTION,
url='https://github.com/cgoldberg/xvfbwrapper',
download_url='http://pypi.python.org/pypi/xvfbwrapper',
keywords='xvfb virtual display headless x11'.split(),
license='MIT',
classifiers=[
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
| mit | 9,206,166,086,070,455,000 | 30.880952 | 75 | 0.631068 | false | 3.892442 | false | false | false |
zstackorg/zstack-utility | kvmagent/kvmagent/plugins/ha_plugin.py | 1 | 27718 | from kvmagent import kvmagent
from zstacklib.utils import jsonobject
from zstacklib.utils import http
from zstacklib.utils import log
from zstacklib.utils import shell
from zstacklib.utils import linux
from zstacklib.utils import lvm
from zstacklib.utils import thread
import os.path
import time
import traceback
import threading
logger = log.get_logger(__name__)
class UmountException(Exception):
pass
class AgentRsp(object):
def __init__(self):
self.success = True
self.error = None
class ScanRsp(object):
def __init__(self):
super(ScanRsp, self).__init__()
self.result = None
class ReportPsStatusCmd(object):
def __init__(self):
self.hostUuid = None
self.psUuids = None
self.psStatus = None
self.reason = None
class ReportSelfFencerCmd(object):
def __init__(self):
self.hostUuid = None
self.psUuids = None
self.reason = None
last_multipath_run = time.time()
def kill_vm(maxAttempts, mountPaths=None, isFileSystem=None):
zstack_uuid_pattern = "'[0-9a-f]{8}[0-9a-f]{4}[1-5][0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}'"
virsh_list = shell.call("virsh list --all")
logger.debug("virsh_list:\n" + virsh_list)
vm_in_process_uuid_list = shell.call("virsh list | egrep -o " + zstack_uuid_pattern + " | sort | uniq")
logger.debug('vm_in_process_uuid_list:\n' + vm_in_process_uuid_list)
# kill vm's qemu process
vm_pids_dict = {}
for vm_uuid in vm_in_process_uuid_list.split('\n'):
vm_uuid = vm_uuid.strip(' \t\n\r')
if not vm_uuid:
continue
if mountPaths and isFileSystem is not None \
and not is_need_kill(vm_uuid, mountPaths, isFileSystem):
continue
vm_pid = shell.call("ps aux | grep qemu-kvm | grep -v grep | awk '/%s/{print $2}'" % vm_uuid)
vm_pid = vm_pid.strip(' \t\n\r')
vm_pids_dict[vm_uuid] = vm_pid
for vm_uuid, vm_pid in vm_pids_dict.items():
kill = shell.ShellCmd('kill -9 %s' % vm_pid)
kill(False)
if kill.return_code == 0:
logger.warn('kill the vm[uuid:%s, pid:%s] because we lost connection to the storage.'
'failed to read the heartbeat file %s times' % (vm_uuid, vm_pid, maxAttempts))
else:
logger.warn('failed to kill the vm[uuid:%s, pid:%s] %s' % (vm_uuid, vm_pid, kill.stderr))
return vm_pids_dict
def mount_path_is_nfs(mount_path):
typ = shell.call("mount | grep '%s' | awk '{print $5}'" % mount_path)
return typ.startswith('nfs')
@linux.retry(times=8, sleep_time=2)
def do_kill_and_umount(mount_path, is_nfs):
kill_progresses_using_mount_path(mount_path)
umount_fs(mount_path, is_nfs)
def kill_and_umount(mount_path, is_nfs):
do_kill_and_umount(mount_path, is_nfs)
if is_nfs:
shell.ShellCmd("systemctl start nfs-client.target")(False)
def umount_fs(mount_path, is_nfs):
if is_nfs:
shell.ShellCmd("systemctl stop nfs-client.target")(False)
time.sleep(2)
o = shell.ShellCmd("umount -f %s" % mount_path)
o(False)
if o.return_code != 0:
raise UmountException(o.stderr)
def kill_progresses_using_mount_path(mount_path):
o = shell.ShellCmd("pkill -9 -e -f '%s'" % mount_path)
o(False)
logger.warn('kill the progresses with mount path: %s, killed process: %s' % (mount_path, o.stdout))
def is_need_kill(vmUuid, mountPaths, isFileSystem):
def vm_match_storage_type(vmUuid, isFileSystem):
o = shell.ShellCmd("virsh dumpxml %s | grep \"disk type='file'\" | grep -v \"device='cdrom'\"" % vmUuid)
o(False)
if (o.return_code == 0 and isFileSystem) or (o.return_code != 0 and not isFileSystem):
return True
return False
def vm_in_this_file_system_storage(vm_uuid, ps_paths):
cmd = shell.ShellCmd("virsh dumpxml %s | grep \"source file=\" | head -1 |awk -F \"'\" '{print $2}'" % vm_uuid)
cmd(False)
vm_path = cmd.stdout.strip()
if cmd.return_code != 0 or vm_in_storage_list(vm_path, ps_paths):
return True
return False
def vm_in_this_distributed_storage(vm_uuid, ps_paths):
cmd = shell.ShellCmd("virsh dumpxml %s | grep \"source protocol\" | head -1 | awk -F \"'\" '{print $4}'" % vm_uuid)
cmd(False)
vm_path = cmd.stdout.strip()
if cmd.return_code != 0 or vm_in_storage_list(vm_path, ps_paths):
return True
return False
def vm_in_storage_list(vm_path, storage_paths):
if vm_path == "" or any([vm_path.startswith(ps_path) for ps_path in storage_paths]):
return True
return False
if vm_match_storage_type(vmUuid, isFileSystem):
if isFileSystem and vm_in_this_file_system_storage(vmUuid, mountPaths):
return True
elif not isFileSystem and vm_in_this_distributed_storage(vmUuid, mountPaths):
return True
return False
class HaPlugin(kvmagent.KvmAgent):
SCAN_HOST_PATH = "/ha/scanhost"
SETUP_SELF_FENCER_PATH = "/ha/selffencer/setup"
CANCEL_SELF_FENCER_PATH = "/ha/selffencer/cancel"
CEPH_SELF_FENCER = "/ha/ceph/setupselffencer"
CANCEL_CEPH_SELF_FENCER = "/ha/ceph/cancelselffencer"
SHAREDBLOCK_SELF_FENCER = "/ha/sharedblock/setupselffencer"
CANCEL_SHAREDBLOCK_SELF_FENCER = "/ha/sharedblock/cancelselffencer"
ALIYUN_NAS_SELF_FENCER = "/ha/aliyun/nas/setupselffencer"
CANCEL_NAS_SELF_FENCER = "/ha/aliyun/nas/cancelselffencer"
RET_SUCCESS = "success"
RET_FAILURE = "failure"
RET_NOT_STABLE = "unstable"
def __init__(self):
# {ps_uuid: created_time} e.g. {'07ee15b2f68648abb489f43182bd59d7': 1544513500.163033}
self.run_fencer_timestamp = {} # type: dict[str, float]
self.fencer_lock = threading.RLock()
@kvmagent.replyerror
def cancel_ceph_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
self.cancel_fencer(cmd.uuid)
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def cancel_filesystem_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
for ps_uuid in cmd.psUuids:
self.cancel_fencer(ps_uuid)
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def cancel_aliyun_nas_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
self.cancel_fencer(cmd.uuid)
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def setup_aliyun_nas_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
created_time = time.time()
self.setup_fencer(cmd.uuid, created_time)
@thread.AsyncThread
def heartbeat_on_aliyunnas():
failure = 0
while self.run_fencer(cmd.uuid, created_time):
try:
time.sleep(cmd.interval)
mount_path = cmd.mountPath
test_file = os.path.join(mount_path, cmd.heartbeat, '%s-ping-test-file-%s' % (cmd.uuid, kvmagent.HOST_UUID))
touch = shell.ShellCmd('timeout 5 touch %s' % test_file)
touch(False)
if touch.return_code != 0:
logger.debug('touch file failed, cause: %s' % touch.stderr)
failure += 1
else:
failure = 0
linux.rm_file_force(test_file)
continue
if failure < cmd.maxAttempts:
continue
try:
logger.warn("aliyun nas storage %s fencer fired!" % cmd.uuid)
vm_uuids = kill_vm(cmd.maxAttempts).keys()
if vm_uuids:
self.report_self_fencer_triggered([cmd.uuid], ','.join(vm_uuids))
# reset the failure count
failure = 0
except Exception as e:
logger.warn("kill vm failed, %s" % e.message)
content = traceback.format_exc()
logger.warn("traceback: %s" % content)
finally:
self.report_storage_status([cmd.uuid], 'Disconnected')
except Exception as e:
logger.debug('self-fencer on aliyun nas primary storage %s stopped abnormally' % cmd.uuid)
content = traceback.format_exc()
logger.warn(content)
logger.debug('stop self-fencer on aliyun nas primary storage %s' % cmd.uuid)
heartbeat_on_aliyunnas()
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def cancel_sharedblock_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
self.cancel_fencer(cmd.vgUuid)
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def setup_sharedblock_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
@thread.AsyncThread
def heartbeat_on_sharedblock():
failure = 0
while self.run_fencer(cmd.vgUuid, created_time):
try:
time.sleep(cmd.interval)
global last_multipath_run
if cmd.fail_if_no_path and time.time() - last_multipath_run > 4:
last_multipath_run = time.time()
linux.set_fail_if_no_path()
health = lvm.check_vg_status(cmd.vgUuid, cmd.storageCheckerTimeout, check_pv=False)
logger.debug("sharedblock group primary storage %s fencer run result: %s" % (cmd.vgUuid, health))
if health[0] is True:
failure = 0
continue
failure += 1
if failure < cmd.maxAttempts:
continue
try:
logger.warn("shared block storage %s fencer fired!" % cmd.vgUuid)
self.report_storage_status([cmd.vgUuid], 'Disconnected', health[1])
# we will check one qcow2 per pv to determine volumes on pv should be kill
invalid_pv_uuids = lvm.get_invalid_pv_uuids(cmd.vgUuid, cmd.checkIo)
vms = lvm.get_running_vm_root_volume_on_pv(cmd.vgUuid, invalid_pv_uuids, True)
killed_vm_uuids = []
for vm in vms:
kill = shell.ShellCmd('kill -9 %s' % vm.pid)
kill(False)
if kill.return_code == 0:
logger.warn(
'kill the vm[uuid:%s, pid:%s] because we lost connection to the storage.'
'failed to run health check %s times' % (vm.uuid, vm.pid, cmd.maxAttempts))
killed_vm_uuids.append(vm.uuid)
else:
logger.warn(
'failed to kill the vm[uuid:%s, pid:%s] %s' % (vm.uuid, vm.pid, kill.stderr))
for volume in vm.volumes:
used_process = linux.linux_lsof(volume)
if len(used_process) == 0:
try:
lvm.deactive_lv(volume, False)
except Exception as e:
logger.debug("deactivate volume %s for vm %s failed, %s" % (volume, vm.uuid, e.message))
content = traceback.format_exc()
logger.warn("traceback: %s" % content)
else:
logger.debug("volume %s still used: %s, skip to deactivate" % (volume, used_process))
if len(killed_vm_uuids) != 0:
self.report_self_fencer_triggered([cmd.vgUuid], ','.join(killed_vm_uuids))
lvm.remove_partial_lv_dm(cmd.vgUuid)
if lvm.check_vg_status(cmd.vgUuid, cmd.storageCheckerTimeout, True)[0] is False:
lvm.drop_vg_lock(cmd.vgUuid)
lvm.remove_device_map_for_vg(cmd.vgUuid)
# reset the failure count
failure = 0
except Exception as e:
logger.warn("kill vm failed, %s" % e.message)
content = traceback.format_exc()
logger.warn("traceback: %s" % content)
except Exception as e:
logger.debug('self-fencer on sharedblock primary storage %s stopped abnormally, try again soon...' % cmd.vgUuid)
content = traceback.format_exc()
logger.warn(content)
if not self.run_fencer(cmd.vgUuid, created_time):
logger.debug('stop self-fencer on sharedblock primary storage %s for judger failed' % cmd.vgUuid)
else:
logger.warn('stop self-fencer on sharedblock primary storage %s' % cmd.vgUuid)
created_time = time.time()
self.setup_fencer(cmd.vgUuid, created_time)
heartbeat_on_sharedblock()
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def setup_ceph_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
def check_tools():
ceph = shell.run('which ceph')
rbd = shell.run('which rbd')
if ceph == 0 and rbd == 0:
return True
return False
if not check_tools():
rsp = AgentRsp()
rsp.error = "no ceph or rbd on current host, please install the tools first"
rsp.success = False
return jsonobject.dumps(rsp)
mon_url = '\;'.join(cmd.monUrls)
mon_url = mon_url.replace(':', '\\\:')
created_time = time.time()
self.setup_fencer(cmd.uuid, created_time)
def get_ceph_rbd_args():
if cmd.userKey is None:
return 'rbd:%s:mon_host=%s' % (cmd.heartbeatImagePath, mon_url)
return 'rbd:%s:id=zstack:key=%s:auth_supported=cephx\;none:mon_host=%s' % (cmd.heartbeatImagePath, cmd.userKey, mon_url)
def ceph_in_error_stat():
# HEALTH_OK,HEALTH_WARN,HEALTH_ERR and others(may be empty)...
health = shell.ShellCmd('timeout %s ceph health' % cmd.storageCheckerTimeout)
health(False)
# If the command times out, then exit with status 124
if health.return_code == 124:
return True
health_status = health.stdout
return not (health_status.startswith('HEALTH_OK') or health_status.startswith('HEALTH_WARN'))
def heartbeat_file_exists():
touch = shell.ShellCmd('timeout %s qemu-img info %s' %
(cmd.storageCheckerTimeout, get_ceph_rbd_args()))
touch(False)
if touch.return_code == 0:
return True
logger.warn('cannot query heartbeat image: %s: %s' % (cmd.heartbeatImagePath, touch.stderr))
return False
def create_heartbeat_file():
create = shell.ShellCmd('timeout %s qemu-img create -f raw %s 1' %
(cmd.storageCheckerTimeout, get_ceph_rbd_args()))
create(False)
if create.return_code == 0 or "File exists" in create.stderr:
return True
logger.warn('cannot create heartbeat image: %s: %s' % (cmd.heartbeatImagePath, create.stderr))
return False
def delete_heartbeat_file():
shell.run("timeout %s rbd rm --id zstack %s -m %s" %
(cmd.storageCheckerTimeout, cmd.heartbeatImagePath, mon_url))
@thread.AsyncThread
def heartbeat_on_ceph():
try:
failure = 0
while self.run_fencer(cmd.uuid, created_time):
time.sleep(cmd.interval)
if heartbeat_file_exists() or create_heartbeat_file():
failure = 0
continue
failure += 1
if failure == cmd.maxAttempts:
# c.f. We discovered that, Ceph could behave the following:
# 1. Create heart-beat file, failed with 'File exists'
# 2. Query the hb file in step 1, and failed again with 'No such file or directory'
if ceph_in_error_stat():
path = (os.path.split(cmd.heartbeatImagePath))[0]
vm_uuids = kill_vm(cmd.maxAttempts, [path], False).keys()
if vm_uuids:
self.report_self_fencer_triggered([cmd.uuid], ','.join(vm_uuids))
else:
delete_heartbeat_file()
# reset the failure count
failure = 0
logger.debug('stop self-fencer on ceph primary storage')
except:
logger.debug('self-fencer on ceph primary storage stopped abnormally')
content = traceback.format_exc()
logger.warn(content)
heartbeat_on_ceph()
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def setup_self_fencer(self, req):
cmd = jsonobject.loads(req[http.REQUEST_BODY])
@thread.AsyncThread
def heartbeat_file_fencer(mount_path, ps_uuid, mounted_by_zstack):
def try_remount_fs():
if mount_path_is_nfs(mount_path):
shell.run("systemctl start nfs-client.target")
while self.run_fencer(ps_uuid, created_time):
if linux.is_mounted(path=mount_path) and touch_heartbeat_file():
self.report_storage_status([ps_uuid], 'Connected')
logger.debug("fs[uuid:%s] is reachable again, report to management" % ps_uuid)
break
try:
logger.debug('fs[uuid:%s] is unreachable, it will be remounted after 180s' % ps_uuid)
time.sleep(180)
if not self.run_fencer(ps_uuid, created_time):
break
linux.remount(url, mount_path, options)
self.report_storage_status([ps_uuid], 'Connected')
logger.debug("remount fs[uuid:%s] success, report to management" % ps_uuid)
break
except:
logger.warn('remount fs[uuid:%s] fail, try again soon' % ps_uuid)
kill_progresses_using_mount_path(mount_path)
logger.debug('stop remount fs[uuid:%s]' % ps_uuid)
def after_kill_vm():
if not killed_vm_pids or not mounted_by_zstack:
return
try:
kill_and_umount(mount_path, mount_path_is_nfs(mount_path))
except UmountException:
if shell.run('ps -p %s' % ' '.join(killed_vm_pids)) == 0:
virsh_list = shell.call("timeout 10 virsh list --all || echo 'cannot obtain virsh list'")
logger.debug("virsh_list:\n" + virsh_list)
logger.error('kill vm[pids:%s] failed because of unavailable fs[mountPath:%s].'
' please retry "umount -f %s"' % (killed_vm_pids, mount_path, mount_path))
return
try_remount_fs()
def touch_heartbeat_file():
touch = shell.ShellCmd('timeout %s touch %s' % (cmd.storageCheckerTimeout, heartbeat_file_path))
touch(False)
if touch.return_code != 0:
logger.warn('unable to touch %s, %s %s' % (heartbeat_file_path, touch.stderr, touch.stdout))
return touch.return_code == 0
heartbeat_file_path = os.path.join(mount_path, 'heartbeat-file-kvm-host-%s.hb' % cmd.hostUuid)
created_time = time.time()
self.setup_fencer(ps_uuid, created_time)
try:
failure = 0
url = shell.call("mount | grep -e '%s' | awk '{print $1}'" % mount_path).strip()
options = shell.call("mount | grep -e '%s' | awk -F '[()]' '{print $2}'" % mount_path).strip()
while self.run_fencer(ps_uuid, created_time):
time.sleep(cmd.interval)
if touch_heartbeat_file():
failure = 0
continue
failure += 1
if failure == cmd.maxAttempts:
logger.warn('failed to touch the heartbeat file[%s] %s times, we lost the connection to the storage,'
'shutdown ourselves' % (heartbeat_file_path, cmd.maxAttempts))
self.report_storage_status([ps_uuid], 'Disconnected')
killed_vms = kill_vm(cmd.maxAttempts, [mount_path], True)
if len(killed_vms) != 0:
self.report_self_fencer_triggered([ps_uuid], ','.join(killed_vms.keys()))
killed_vm_pids = killed_vms.values()
after_kill_vm()
logger.debug('stop heartbeat[%s] for filesystem self-fencer' % heartbeat_file_path)
except:
content = traceback.format_exc()
logger.warn(content)
for mount_path, uuid, mounted_by_zstack in zip(cmd.mountPaths, cmd.uuids, cmd.mountedByZStack):
if not linux.timeout_isdir(mount_path):
raise Exception('the mount path[%s] is not a directory' % mount_path)
heartbeat_file_fencer(mount_path, uuid, mounted_by_zstack)
return jsonobject.dumps(AgentRsp())
@kvmagent.replyerror
def scan_host(self, req):
rsp = ScanRsp()
success = 0
cmd = jsonobject.loads(req[http.REQUEST_BODY])
for i in range(0, cmd.times):
if shell.run("nmap --host-timeout 10s -sP -PI %s | grep -q 'Host is up'" % cmd.ip) == 0:
success += 1
if success == cmd.successTimes:
rsp.result = self.RET_SUCCESS
return jsonobject.dumps(rsp)
time.sleep(cmd.interval)
if success == 0:
rsp.result = self.RET_FAILURE
return jsonobject.dumps(rsp)
# WE SUCCEED A FEW TIMES, IT SEEMS THE CONNECTION NOT STABLE
success = 0
for i in range(0, cmd.successTimes):
if shell.run("nmap --host-timeout 10s -sP -PI %s | grep -q 'Host is up'" % cmd.ip) == 0:
success += 1
time.sleep(cmd.successInterval)
if success == cmd.successTimes:
rsp.result = self.RET_SUCCESS
return jsonobject.dumps(rsp)
if success == 0:
rsp.result = self.RET_FAILURE
return jsonobject.dumps(rsp)
rsp.result = self.RET_NOT_STABLE
logger.info('scanhost[%s]: %s' % (cmd.ip, rsp.result))
return jsonobject.dumps(rsp)
def start(self):
http_server = kvmagent.get_http_server()
http_server.register_async_uri(self.SCAN_HOST_PATH, self.scan_host)
http_server.register_async_uri(self.SETUP_SELF_FENCER_PATH, self.setup_self_fencer)
http_server.register_async_uri(self.CEPH_SELF_FENCER, self.setup_ceph_self_fencer)
http_server.register_async_uri(self.CANCEL_SELF_FENCER_PATH, self.cancel_filesystem_self_fencer)
http_server.register_async_uri(self.CANCEL_CEPH_SELF_FENCER, self.cancel_ceph_self_fencer)
http_server.register_async_uri(self.SHAREDBLOCK_SELF_FENCER, self.setup_sharedblock_self_fencer)
http_server.register_async_uri(self.CANCEL_SHAREDBLOCK_SELF_FENCER, self.cancel_sharedblock_self_fencer)
http_server.register_async_uri(self.ALIYUN_NAS_SELF_FENCER, self.setup_aliyun_nas_self_fencer)
http_server.register_async_uri(self.CANCEL_NAS_SELF_FENCER, self.cancel_aliyun_nas_self_fencer)
def stop(self):
pass
def configure(self, config):
self.config = config
@thread.AsyncThread
def report_self_fencer_triggered(self, ps_uuids, vm_uuids_string=None):
url = self.config.get(kvmagent.SEND_COMMAND_URL)
if not url:
logger.warn('cannot find SEND_COMMAND_URL, unable to report self fencer triggered on [psList:%s]' % ps_uuids)
return
host_uuid = self.config.get(kvmagent.HOST_UUID)
if not host_uuid:
logger.warn(
'cannot find HOST_UUID, unable to report self fencer triggered on [psList:%s]' % ps_uuids)
return
def report_to_management_node():
cmd = ReportSelfFencerCmd()
cmd.psUuids = ps_uuids
cmd.hostUuid = host_uuid
cmd.vmUuidsString = vm_uuids_string
cmd.reason = "primary storage[uuids:%s] on host[uuid:%s] heartbeat fail, self fencer has been triggered" % (ps_uuids, host_uuid)
logger.debug(
'host[uuid:%s] primary storage[psList:%s], triggered self fencer, report it to %s' % (
host_uuid, ps_uuids, url))
http.json_dump_post(url, cmd, {'commandpath': '/kvm/reportselffencer'})
report_to_management_node()
@thread.AsyncThread
def report_storage_status(self, ps_uuids, ps_status, reason=""):
url = self.config.get(kvmagent.SEND_COMMAND_URL)
if not url:
logger.warn('cannot find SEND_COMMAND_URL, unable to report storages status[psList:%s, status:%s]' % (
ps_uuids, ps_status))
return
host_uuid = self.config.get(kvmagent.HOST_UUID)
if not host_uuid:
logger.warn(
'cannot find HOST_UUID, unable to report storages status[psList:%s, status:%s]' % (ps_uuids, ps_status))
return
def report_to_management_node():
cmd = ReportPsStatusCmd()
cmd.psUuids = ps_uuids
cmd.hostUuid = host_uuid
cmd.psStatus = ps_status
cmd.reason = reason
logger.debug(
'primary storage[psList:%s] has new connection status[%s], report it to %s' % (
ps_uuids, ps_status, url))
http.json_dump_post(url, cmd, {'commandpath': '/kvm/reportstoragestatus'})
report_to_management_node()
def run_fencer(self, ps_uuid, created_time):
with self.fencer_lock:
if not self.run_fencer_timestamp[ps_uuid] or self.run_fencer_timestamp[ps_uuid] > created_time:
return False
self.run_fencer_timestamp[ps_uuid] = created_time
return True
def setup_fencer(self, ps_uuid, created_time):
with self.fencer_lock:
self.run_fencer_timestamp[ps_uuid] = created_time
def cancel_fencer(self, ps_uuid):
with self.fencer_lock:
self.run_fencer_timestamp.pop(ps_uuid, None)
| apache-2.0 | -99,950,752,034,942,160 | 40.370149 | 140 | 0.548452 | false | 3.787647 | false | false | false |
hatbot-team/hatbot_resources | preparation/resources/Resource.py | 1 | 3889 | from hb_res.storage import get_storage
from copy import copy
import time
__author__ = "mike"
_resource_blacklist = {'Resource'}
_resources_by_trunk = dict()
_built_trunks = set()
_building_trunks = set()
def build_deps(res_obj):
assert hasattr(res_obj, 'dependencies')
for dep in res_obj.dependencies:
assert dep in _resources_by_trunk
assert dep not in _building_trunks, \
'Dependency loop encountered: {} depends on {} to be built, and vice versa'.format(
dep, res_obj.__class__.__name__)
_resources_by_trunk[dep]().build()
def applied_modifiers(res_obj):
generated = set()
for explanation in res_obj:
r = copy(explanation)
for functor in res_obj.modifiers:
if r is None:
break
r = functor(r)
if r is not None and r not in generated:
generated.add(r)
yield r
def generate_asset(res_obj, out_storage):
out_storage.clear()
count = 0
for explanation in applied_modifiers(res_obj):
if count % 100 == 0:
print(count, end='\r')
count += 1
out_storage.add_entry(explanation)
return count
def resource_build(res_obj):
trunk = res_obj.trunk
if trunk in _built_trunks:
print("= Skipping {} generation as the resource is already built".format(trunk))
return
_building_trunks.add(trunk)
build_deps(res_obj)
print("<=> Starting {} generation <=>".format(trunk))
start = time.monotonic()
with get_storage(trunk) as out_storage:
count = generate_asset(res_obj, out_storage)
end = time.monotonic()
print("> {} generated in {} seconds".format(trunk, end - start))
print("> {} explanations have passed the filters".format(count))
_building_trunks.remove(trunk)
_built_trunks.add(trunk)
class ResourceMeta(type):
"""
metaclass for classes which represent resource package
"""
def __new__(mcs, name, bases, dct):
"""
we have to register resource in _registered_resources
"""
assert name.endswith('Resource')
trunk = name[:-len('Resource')]
global _resources_by_trunk
if trunk in _resources_by_trunk.keys():
raise KeyError('Resource with name {} is already registered'.format(name))
old_iter = dct['__iter__']
def iter_wrapped(self):
build_deps(self)
return old_iter(self)
@property
def trunk_prop(_):
return trunk
dct['trunk'] = trunk_prop
dct['build'] = resource_build
dct['__iter__'] = iter_wrapped
res = super(ResourceMeta, mcs).__new__(mcs, name, bases, dct)
if name not in _resource_blacklist:
_resources_by_trunk[trunk] = res
return res
class Resource(metaclass=ResourceMeta):
def __iter__(self):
raise NotImplementedError
def gen_resource(res_name, modifiers, dependencies=()):
def decorator(func):
def __init__(self):
self.modifiers = modifiers
self.dependencies = dependencies
def __iter__(self):
return iter(func())
return ResourceMeta(res_name, tuple(), {'__iter__': __iter__, '__init__': __init__})
return decorator
def trunks_registered():
global _resources_by_trunk
return _resources_by_trunk.keys()
def resources_registered():
global _resources_by_trunk
return _resources_by_trunk.values()
def resource_by_trunk(name) -> Resource:
"""
Returns resource described by its name
:param name: name of desired resource
:return: iterable resource as list of strings
"""
global _resources_by_trunk
resource = _resources_by_trunk.get(name, None)
if resource is None:
raise KeyError('Unknown resource {}'.format(name))
return resource
| mit | -335,135,762,861,733,000 | 26.006944 | 95 | 0.60504 | false | 4.021717 | false | false | false |
ClaudiaSaxer/PlasoScaffolder | src/plasoscaffolder/model/sql_query_model.py | 1 | 1280 | # -*- coding: utf-8 -*-
"""The SQL query model class."""
from plasoscaffolder.model import sql_query_column_model_data
from plasoscaffolder.model import sql_query_column_model_timestamp
class SQLQueryModel(object):
"""A SQL query model."""
def __init__(
self, query: str, name: str,
columns: [sql_query_column_model_data.SQLColumnModelData],
timestamp_columns: [
sql_query_column_model_timestamp.SQLColumnModelTimestamp],
needs_customizing: bool,
amount_events: int
):
""" initializes the SQL query model.
Args:
columns ([sql_query_column_model_data.SQLColumnModelData]): list of
columns for the Query
timestamp_columns ([
sql_query_column_model_timestamp.SQLColumnModelTimestamp]): list of
columns which are timestamp events
name (str): The name of the Query.
query (str): The SQL query.
needs_customizing (bool): if the event for the query needs customizing
amount_events (int): amount of events as result of the query
"""
super().__init__()
self.name = name
self.query = query
self.columns = columns
self.needs_customizing = needs_customizing
self.timestamp_columns = timestamp_columns
self.amount_events = amount_events
| apache-2.0 | -3,229,932,155,820,182,500 | 33.594595 | 77 | 0.673438 | false | 3.987539 | false | false | false |
Eldinnie/ptbtest | examples/test_echobot2.py | 1 | 3680 | from __future__ import absolute_import
import unittest
from telegram.ext import CommandHandler
from telegram.ext import Filters
from telegram.ext import MessageHandler
from telegram.ext import Updater
from ptbtest import ChatGenerator
from ptbtest import MessageGenerator
from ptbtest import Mockbot
from ptbtest import UserGenerator
"""
This is an example to show how the ptbtest suite can be used.
This example follows the echobot2 example at:
https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/echobot2.py
"""
class TestEchobot2(unittest.TestCase):
def setUp(self):
# For use within the tests we nee some stuff. Starting with a Mockbot
self.bot = Mockbot()
# Some generators for users and chats
self.ug = UserGenerator()
self.cg = ChatGenerator()
# And a Messagegenerator and updater (for use with the bot.)
self.mg = MessageGenerator(self.bot)
self.updater = Updater(bot=self.bot)
def test_help(self):
# this tests the help handler. So first insert the handler
def help(bot, update):
update.message.reply_text('Help!')
# Then register the handler with he updater's dispatcher and start polling
self.updater.dispatcher.add_handler(CommandHandler("help", help))
self.updater.start_polling()
# We want to simulate a message. Since we don't care wich user sends it we let the MessageGenerator
# create random ones
update = self.mg.get_message(text="/help")
# We insert the update with the bot so the updater can retrieve it.
self.bot.insertUpdate(update)
# sent_messages is the list with calls to the bot's outbound actions. Since we hope the message we inserted
# only triggered one sendMessage action it's length should be 1.
self.assertEqual(len(self.bot.sent_messages), 1)
sent = self.bot.sent_messages[0]
self.assertEqual(sent['method'], "sendMessage")
self.assertEqual(sent['text'], "Help!")
# Always stop the updater at the end of a testcase so it won't hang.
self.updater.stop()
def test_start(self):
def start(bot, update):
update.message.reply_text('Hi!')
self.updater.dispatcher.add_handler(CommandHandler("start", start))
self.updater.start_polling()
# Here you can see how we would handle having our own user and chat
user = self.ug.get_user(first_name="Test", last_name="The Bot")
chat = self.cg.get_chat(user=user)
update = self.mg.get_message(user=user, chat=chat, text="/start")
self.bot.insertUpdate(update)
self.assertEqual(len(self.bot.sent_messages), 1)
sent = self.bot.sent_messages[0]
self.assertEqual(sent['method'], "sendMessage")
self.assertEqual(sent['text'], "Hi!")
self.updater.stop()
def test_echo(self):
def echo(bot, update):
update.message.reply_text(update.message.text)
self.updater.dispatcher.add_handler(MessageHandler(Filters.text, echo))
self.updater.start_polling()
update = self.mg.get_message(text="first message")
update2 = self.mg.get_message(text="second message")
self.bot.insertUpdate(update)
self.bot.insertUpdate(update2)
self.assertEqual(len(self.bot.sent_messages), 2)
sent = self.bot.sent_messages
self.assertEqual(sent[0]['method'], "sendMessage")
self.assertEqual(sent[0]['text'], "first message")
self.assertEqual(sent[1]['text'], "second message")
self.updater.stop()
if __name__ == '__main__':
unittest.main()
| gpl-3.0 | -2,721,112,711,893,849,600 | 40.348315 | 115 | 0.667663 | false | 3.89418 | true | false | false |
jastarex/DeepLearningCourseCodes | 01_TF_basics_and_linear_regression/tensorflow_basic.py | 1 | 8932 |
# coding: utf-8
# # TensorFlow基础
# In this tutorial, we are going to learn some basics in TensorFlow.
# ## Session
# Session is a class for running TensorFlow operations. A Session object encapsulates the environment in which Operation objects are executed, and Tensor objects are evaluated. In this tutorial, we will use a session to print out the value of tensor. Session can be used as follows:
# In[1]:
import tensorflow as tf
a = tf.constant(100)
with tf.Session() as sess:
print sess.run(a)
#syntactic sugar
print a.eval()
# or
sess = tf.Session()
print sess.run(a)
# print a.eval() # this will print out an error
# ## Interactive session
# Interactive session is a TensorFlow session for use in interactive contexts, such as a shell. The only difference with a regular Session is that an Interactive session installs itself as the default session on construction. The methods [Tensor.eval()](https://www.tensorflow.org/versions/r0.11/api_docs/python/framework.html#Tensor) and [Operation.run()](https://www.tensorflow.org/versions/r0.11/api_docs/python/framework.html#Operation) will use that session to run ops.This is convenient in interactive shells and IPython notebooks, as it avoids having to pass an explicit Session object to run ops.
# In[2]:
sess = tf.InteractiveSession()
print a.eval() # simple usage
# ## Constants
# We can use the `help` function to get an annotation about any function. Just type `help(tf.consant)` on the below cell and run it.
# It will print out `constant(value, dtype=None, shape=None, name='Const')` at the top. Value of tensor constant can be scalar, matrix or tensor (more than 2-dimensional matrix). Also, you can get a shape of tensor by running [tensor.get_shape()](https://www.tensorflow.org/versions/r0.11/api_docs/python/framework.html#Tensor)`.as_list()`.
#
# * tensor.get_shape()
# * tensor.get_shape().as_list()
# In[3]:
a = tf.constant([[1, 2, 3], [4, 5, 6]], dtype=tf.float32, name='a')
print a.eval()
print "shape: ", a.get_shape(), ",type: ", type(a.get_shape())
print "shape: ", a.get_shape().as_list(), ",type: ", type(a.get_shape().as_list()) # this is more useful
# ## Basic functions
# There are some basic functions we need to know. Those functions will be used in next tutorial **3. feed_forward_neural_network**.
# * tf.argmax
# * tf.reduce_sum
# * tf.equal
# * tf.random_normal
# #### tf.argmax
# `tf.argmax(input, dimension, name=None)` returns the index with the largest value across dimensions of a tensor.
#
# In[4]:
a = tf.constant([[1, 6, 5], [2, 3, 4]])
print a.eval()
print "argmax over axis 0"
print tf.argmax(a, 0).eval()
print "argmax over axis 1"
print tf.argmax(a, 1).eval()
# #### tf.reduce_sum
# `tf.reduce_sum(input_tensor, reduction_indices=None, keep_dims=False, name=None)` computes the sum of elements across dimensions of a tensor. Unless `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in reduction_indices. If `keep_dims` is true, the reduced dimensions are retained with length 1. If `reduction_indices` has no entries, all dimensions are reduced, and a tensor with a single element is returned
# In[5]:
a = tf.constant([[1, 1, 1], [2, 2, 2]])
print a.eval()
print "reduce_sum over entire matrix"
print tf.reduce_sum(a).eval()
print "reduce_sum over axis 0"
print tf.reduce_sum(a, 0).eval()
print "reduce_sum over axis 0 + keep dimensions"
print tf.reduce_sum(a, 0, keep_dims=True).eval()
print "reduce_sum over axis 1"
print tf.reduce_sum(a, 1).eval()
print "reduce_sum over axis 1 + keep dimensions"
print tf.reduce_sum(a, 1, keep_dims=True).eval()
# #### tf.equal
# `tf.equal(x, y, name=None)` returns the truth value of `(x == y)` element-wise. Note that `tf.equal` supports broadcasting. For more about broadcasting, please see [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html).
# In[6]:
a = tf.constant([[1, 0, 0], [0, 1, 1]])
print a.eval()
print "Equal to 1?"
print tf.equal(a, 1).eval()
print "Not equal to 1?"
print tf.not_equal(a, 1).eval()
# #### tf.random_normal
# `tf.random_normal(shape, mean=0.0, stddev=1.0, dtype=tf.float32, seed=None, name=None)` outputs random values from a normal distribution.
#
# In[7]:
normal = tf.random_normal([3], stddev=0.1)
print normal.eval()
# ## Variables
# When we train a model, we use variables to hold and update parameters. Variables are in-memory buffers containing tensors. They must be explicitly initialized and can be saved to disk during and after training. we can later restore saved values to exercise or analyze the model.
#
# * tf.Variable
# * tf.Tensor.name
# * tf.all_variables
#
# #### tf.Variable
# `tf.Variable(initial_value=None, trainable=True, name=None, variable_def=None, dtype=None)` creates a new variable with value `initial_value`.
# The new variable is added to the graph collections listed in collections, which defaults to `[GraphKeys.VARIABLES]`. If `trainable` is true, the variable is also added to the graph collection `GraphKeys.TRAINABLE_VARIABLES`.
# In[8]:
# variable will be initialized with normal distribution
var = tf.Variable(tf.random_normal([3], stddev=0.1), name='var')
print var.name
tf.initialize_all_variables().run()
print var.eval()
# #### tf.Tensor.name
# We can call `tf.Variable` and give the same name `my_var` more than once as seen below. Note that `var3.name` prints out `my_var_1:0` instead of `my_var:0`. This is because TensorFlow doesn't allow user to create variables with the same name. In this case, TensorFlow adds `'_1'` to the original name instead of printing out an error message. Note that you should be careful not to call `tf.Variable` giving same name more than once, because it will cause a fatal problem when you save and restore the variables.
# In[9]:
var2 = tf.Variable(tf.random_normal([2, 3], stddev=0.1), name='my_var')
var3 = tf.Variable(tf.random_normal([2, 3], stddev=0.1), name='my_var')
print var2.name
print var3.name
# #### tf.all_variables
# Using `tf.all_variables()`, we can get the names of all existing variables as follows:
# In[10]:
for var in tf.all_variables():
print var.name
# ## Sharing variables
# TensorFlow provides several classes and operations that you can use to create variables contingent on certain conditions.
# * tf.get_variable
# * tf.variable_scope
# * reuse_variables
# #### tf.get_variable
# `tf.get_variable(name, shape=None, dtype=None, initializer=None, trainable=True)` is used to get or create a variable instead of a direct call to `tf.Variable`. It uses an initializer instead of passing the value directly, as in `tf.Variable`. An initializer is a function that takes the shape and provides a tensor with that shape. Here are some initializers available in TensorFlow:
#
# * `tf.constant_initializer(value)` initializes everything to the provided value,
# * `tf.random_uniform_initializer(a, b)` initializes uniformly from [a, b],
# * `tf.random_normal_initializer(mean, stddev)` initializes from the normal distribution with the given mean and standard deviation.
# In[11]:
my_initializer = tf.random_normal_initializer(mean=0, stddev=0.1)
v = tf.get_variable('v', shape=[2, 3], initializer=my_initializer)
tf.initialize_all_variables().run()
print v.eval()
# #### tf.variable_scope
# `tf.variable_scope(scope_name)` manages namespaces for names passed to `tf.get_variable`.
# In[12]:
with tf.variable_scope('layer1'):
w = tf.get_variable('v', shape=[2, 3], initializer=my_initializer)
print w.name
with tf.variable_scope('layer2'):
w = tf.get_variable('v', shape=[2, 3], initializer=my_initializer)
print w.name
# #### reuse_variables
# Note that you should run the cell above only once. If you run the code above more than once, an error message will be printed out: `"ValueError: Variable layer1/v already exists, disallowed."`. This is because we used `tf.get_variable` above, and this function doesn't allow creating variables with the existing names. We can solve this problem by using `scope.reuse_variables()` to get preivously created variables instead of creating new ones.
# In[13]:
with tf.variable_scope('layer1', reuse=True):
w = tf.get_variable('v') # Unlike above, we don't need to specify shape and initializer
print w.name
# or
with tf.variable_scope('layer1') as scope:
scope.reuse_variables()
w = tf.get_variable('v')
print w.name
# ## Place holder
# TensorFlow provides a placeholder operation that must be fed with data on execution. If you want to get more details about placeholder, please see [here](https://www.tensorflow.org/versions/r0.11/api_docs/python/io_ops.html#placeholder).
# In[14]:
x = tf.placeholder(tf.int16)
y = tf.placeholder(tf.int16)
add = tf.add(x, y)
mul = tf.mul(x, y)
# Launch default graph.
print "2 + 3 = %d" % sess.run(add, feed_dict={x: 2, y: 3})
print "3 x 4 = %d" % sess.run(mul, feed_dict={x: 3, y: 4})
| apache-2.0 | -5,786,797,328,990,342,000 | 39.035874 | 604 | 0.716174 | false | 3.335077 | false | false | false |
raphaelvalentin/Utils | functions/system.py | 1 | 3297 | import re, time, os, shutil, string
from subprocess import Popen, PIPE, STDOUT
from random import randint, seed
__all__ = ['find', 'removedirs', 'source', 'tempfile', 'copy', 'rm', 'template, template_dir']
def find(path='.', regex='*', ctime=0):
r = []
regex = str(regex).strip()
if regex == '*': regex = ''
now = time.time()
for filename in os.listdir(path):
try:
if re.search(regex, filename):
tmtime = os.path.getmtime(os.path.join(path, filename))
if ctime>0 and int((now-tmtime)/3600/24) > ctime:
r.append(os.path.join(path, filename))
elif ctime<0 and int((now-tmtime)/3600/24) < ctime:
r.append(os.path.join(path, filename))
elif ctime==0:
r.append(os.path.join(path, filename))
except:
pass
return r
def rm(*files):
# for i, file in enumerate(files):
# try:
# os.system('/bin/rm -rf %s > /dev/null 2>&1'%file)
# except:
# pass
# more pythonic
for src in files:
try:
if os.path.isdir(src):
shutil.rmtree(src)
else:
os.remove(src)
except OSError as e:
print('%s not removed. Error: %s'%(src, e))
def removedirs(*args):
print 'Deprecated: use rm'
rm(*args)
def source(filename):
cmd = "source {filename}; env".format(filename=filename)
p = Popen(cmd, executable='/bin/tcsh', stdout=PIPE, stderr=STDOUT, shell=True, env=os.environ)
stdout = p.communicate()[0].splitlines()
for line in stdout:
if re.search('[0-9a-zA-Z_-]+=\S+', line):
key, value = line.split("=", 1)
os.environ[key] = value
def copy(src, dest, force=False):
try:
if force and os.path.isdir(dest):
# not good for speed
rm(dest)
shutil.copytree(src, dest)
except OSError as e:
# if src is not a directory
if e.errno == errno.ENOTDIR:
shutil.copy(src, dest)
else:
print('%s not copied. Error: %s'%(src, e))
def template(src, dest, substitute={}):
with open(src) as f:
s = string.Template(f.read())
o = s.safe_substitute(substitute)
with open(dest, 'w') as g:
g.write(o)
def template_dir(src, dest, substitute={}):
if src<>dest:
copy(src, dest, force=True)
for root, subdirs, files in os.walk(dest):
file_path = os.path.join(dest, filename)
s = template(file_path, file_path, substitute)
class tempfile:
letters = "ABCDEFGHIJLKMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_"
tempdir = '/tmp/'
seed()
@staticmethod
def randstr(n=10):
return "".join(tempfile.letters[randint(0,len(tempfile.letters)-1)] for i in xrange(n))
@staticmethod
def mkdtemp(prefix='', suffix=''):
n = 7
i = 0
while 1:
try:
path = os.path.join(tempfile.tempdir, prefix + tempfile.randstr(n) + suffix)
os.mkdir(path)
return path
except OSError:
i = i + 1
if i%10==0:
n = n + 1
if n > 12:
raise OSError('cannot create a temporary directory')
| gpl-2.0 | -3,907,913,281,986,276,000 | 29.813084 | 98 | 0.544738 | false | 3.583696 | false | false | false |
rlouf/patterns-of-segregation | bin/plot_gini.py | 1 | 2527 | """plot_gini.py
Plot the Gini of the income distribution as a function of the number of
households in cities.
"""
from __future__ import division
import csv
import numpy as np
import itertools
from matplotlib import pylab as plt
#
# Parameters and functions
#
income_bins = [1000,12500,17500,22500,27500,32500,37500,42500,47500,55000,70000,90000,115000,135000,175000,300000]
# Puerto-rican cities are excluded from the analysis
PR_cities = ['7442','0060','6360','4840']
#
# Read data
#
## List of MSA
msa = {}
with open('data/names/msa.csv', 'r') as source:
reader = csv.reader(source, delimiter='\t')
reader.next()
for rows in reader:
if rows[0] not in PR_cities:
msa[rows[0]] = rows[1]
#
# Compute gini for all msa
#
gini = []
households = []
for n, city in enumerate(msa):
print "Compute Gini index for %s (%s/%s)"%(msa[city], n+1, len(msa))
## Import households income
data = {}
with open('data/income/msa/%s/income.csv'%city, 'r') as source:
reader = csv.reader(source, delimiter='\t')
reader.next()
for rows in reader:
num_cat = len(rows[1:])
data[rows[0]] = {c:int(h) for c,h in enumerate(rows[1:])}
# Sum over all areal units
incomes = {cat:sum([data[au][cat] for au in data]) for cat in range(num_cat)}
## Compute the Gini index
# See Dixon, P. M.; Weiner, J.; Mitchell-Olds, T.; and Woodley, R.
# "Bootstrapping the Gini Coefficient of Inequality." Ecology 68, 1548-1551, 1987.
g = 0
pop = 0
for a,b in itertools.permutations(incomes, 2):
g += incomes[a]*incomes[b]*abs(income_bins[a]-income_bins[b])
pop = sum([incomes[a] for a in incomes])
average = sum([incomes[a]*income_bins[a] for a in incomes])/pop
gini.append((1/(2*pop**2*average))*g)
households.append(pop)
#
# Plot
#
fig = plt.figure(figsize=(12,8))
ax = fig.add_subplot(111)
ax.plot(households, gini, 'o', color='black', mec='black')
ax.set_xlabel(r'$H$', fontsize=30)
ax.set_ylabel(r'$Gini$', fontsize=30)
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
ax.spines['left'].set_position(('outward', 10)) # outward by 10 points
ax.spines['bottom'].set_position(('outward', 10)) # outward by 10 points
ax.spines['left'].set_smart_bounds(True)
ax.spines['bottom'].set_smart_bounds(True)
ax.yaxis.set_ticks_position('left')
ax.xaxis.set_ticks_position('bottom')
ax.set_xscale('log')
plt.savefig('figures/paper/si/gini_income.pdf', bbox_inches='tight')
plt.show()
| bsd-3-clause | 4,102,064,560,333,777,400 | 27.393258 | 114 | 0.651761 | false | 2.804661 | false | false | false |
Jajcus/pyxmpp | pyxmpp/jabber/muccore.py | 1 | 27807 | #
# (C) Copyright 2003-2010 Jacek Konieczny <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License Version
# 2.1 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
"""Jabber Multi-User Chat implementation.
Normative reference:
- `JEP 45 <http://www.jabber.org/jeps/jep-0045.html>`__
"""
__docformat__="restructuredtext en"
import libxml2
from pyxmpp.utils import to_utf8,from_utf8
from pyxmpp.xmlextra import common_doc, common_root, common_ns, get_node_ns_uri
from pyxmpp.presence import Presence
from pyxmpp.iq import Iq
from pyxmpp.jid import JID
from pyxmpp import xmlextra
from pyxmpp.objects import StanzaPayloadWrapperObject
from pyxmpp.xmlextra import xml_element_iter
MUC_NS="http://jabber.org/protocol/muc"
MUC_USER_NS=MUC_NS+"#user"
MUC_ADMIN_NS=MUC_NS+"#admin"
MUC_OWNER_NS=MUC_NS+"#owner"
affiliations=("admin","member","none","outcast","owner")
roles=("moderator","none","participant","visitor")
class MucXBase(StanzaPayloadWrapperObject):
"""
Base class for MUC-specific stanza payload - wrapper around
an XML element.
:Ivariables:
- `xmlnode`: the wrapped XML node
"""
element="x"
ns=None
def __init__(self, xmlnode=None, copy=True, parent=None):
"""
Copy MucXBase object or create a new one, possibly
based on or wrapping an XML node.
:Parameters:
- `xmlnode`: is the object to copy or an XML node to wrap.
- `copy`: when `True` a copy of the XML node provided will be included
in `self`, the node will be copied otherwise.
- `parent`: parent node for the created/copied XML element.
:Types:
- `xmlnode`: `MucXBase` or `libxml2.xmlNode`
- `copy`: `bool`
- `parent`: `libxml2.xmlNode`
"""
if self.ns==None:
raise RuntimeError,"Pure virtual class called"
self.xmlnode=None
self.borrowed=False
if isinstance(xmlnode,libxml2.xmlNode):
if copy:
self.xmlnode=xmlnode.docCopyNode(common_doc,1)
common_root.addChild(self.xmlnode)
else:
self.xmlnode=xmlnode
self.borrowed=True
if copy:
ns=xmlnode.ns()
xmlextra.replace_ns(self.xmlnode, ns, common_ns)
elif isinstance(xmlnode,MucXBase):
if not copy:
raise TypeError, "MucXBase may only be copied"
self.xmlnode=xmlnode.xmlnode.docCopyNode(common_doc,1)
common_root.addChild(self.xmlnode)
elif xmlnode is not None:
raise TypeError, "Bad MucX constructor argument"
else:
if parent:
self.xmlnode=parent.newChild(None,self.element,None)
self.borrowed=True
else:
self.xmlnode=common_root.newChild(None,self.element,None)
ns=self.xmlnode.newNs(self.ns,None)
self.xmlnode.setNs(ns)
def __del__(self):
if self.xmlnode:
self.free()
def free(self):
"""
Unlink and free the XML node owned by `self`.
"""
if not self.borrowed:
self.xmlnode.unlinkNode()
self.xmlnode.freeNode()
self.xmlnode=None
def free_borrowed(self):
"""
Detach the XML node borrowed by `self`.
"""
self.xmlnode=None
def xpath_eval(self,expr):
"""
Evaluate XPath expression in context of `self.xmlnode`.
:Parameters:
- `expr`: the XPath expression
:Types:
- `expr`: `unicode`
:return: the result of the expression evaluation.
:returntype: list of `libxml2.xmlNode`
"""
ctxt = common_doc.xpathNewContext()
ctxt.setContextNode(self.xmlnode)
ctxt.xpathRegisterNs("muc",self.ns.getContent())
ret=ctxt.xpathEval(to_utf8(expr))
ctxt.xpathFreeContext()
return ret
def serialize(self):
"""
Serialize `self` as XML.
:return: serialized `self.xmlnode`.
:returntype: `str`
"""
return self.xmlnode.serialize()
class MucX(MucXBase):
"""
Wrapper for http://www.jabber.org/protocol/muc namespaced
stanza payload "x" elements.
"""
ns=MUC_NS
def __init__(self, xmlnode=None, copy=True, parent=None):
MucXBase.__init__(self,xmlnode=xmlnode, copy=copy, parent=parent)
def set_history(self, parameters):
"""
Set history parameters.
Types:
- `parameters`: `HistoryParameters`
"""
for child in xml_element_iter(self.xmlnode.children):
if get_node_ns_uri(child) == MUC_NS and child.name == "history":
child.unlinkNode()
child.freeNode()
break
if parameters.maxchars and parameters.maxchars < 0:
raise ValueError, "History parameter maxchars must be positive"
if parameters.maxstanzas and parameters.maxstanzas < 0:
raise ValueError, "History parameter maxstanzas must be positive"
if parameters.maxseconds and parameters.maxseconds < 0:
raise ValueError, "History parameter maxseconds must be positive"
hnode=self.xmlnode.newChild(self.xmlnode.ns(), "history", None)
if parameters.maxchars is not None:
hnode.setProp("maxchars", str(parameters.maxchars))
if parameters.maxstanzas is not None:
hnode.setProp("maxstanzas", str(parameters.maxstanzas))
if parameters.maxseconds is not None:
hnode.setProp("maxseconds", str(parameters.maxseconds))
if parameters.since is not None:
hnode.setProp("since", parameters.since.strftime("%Y-%m-%dT%H:%M:%SZ"))
def get_history(self):
"""Return history parameters carried by the stanza.
:returntype: `HistoryParameters`"""
for child in xml_element_iter(self.xmlnode.children):
if get_node_ns_uri(child) == MUC_NS and child.name == "history":
maxchars = from_utf8(child.prop("maxchars"))
if maxchars is not None:
maxchars = int(maxchars)
maxstanzas = from_utf8(child.prop("maxstanzas"))
if maxstanzas is not None:
maxstanzas = int(maxstanzas)
maxseconds = from_utf8(child.prop("maxseconds"))
if maxseconds is not None:
maxseconds = int(maxseconds)
# TODO: since -- requires parsing of Jabber dateTime profile
since = None
return HistoryParameters(maxchars, maxstanzas, maxseconds, since)
def set_password(self, password):
"""Set password for the MUC request.
:Parameters:
- `password`: password
:Types:
- `password`: `unicode`"""
for child in xml_element_iter(self.xmlnode.children):
if get_node_ns_uri(child) == MUC_NS and child.name == "password":
child.unlinkNode()
child.freeNode()
break
if password is not None:
self.xmlnode.newTextChild(self.xmlnode.ns(), "password", to_utf8(password))
def get_password(self):
"""Get password from the MUC request.
:returntype: `unicode`
"""
for child in xml_element_iter(self.xmlnode.children):
if get_node_ns_uri(child) == MUC_NS and child.name == "password":
return from_utf8(child.getContent())
return None
class HistoryParameters(object):
"""Provides parameters for MUC history management
:Ivariables:
- `maxchars`: limit of the total number of characters in history.
- `maxstanzas`: limit of the total number of messages in history.
- `seconds`: send only messages received in the last `seconds` seconds.
- `since`: Send only the messages received since the dateTime (UTC)
specified.
:Types:
- `maxchars`: `int`
- `maxstanzas`: `int`
- `seconds`: `int`
- `since`: `datetime.datetime`
"""
def __init__(self, maxchars = None, maxstanzas = None, maxseconds = None, since = None):
"""Initializes a `HistoryParameters` object.
:Parameters:
- `maxchars`: limit of the total number of characters in history.
- `maxstanzas`: limit of the total number of messages in history.
- `maxseconds`: send only messages received in the last `seconds` seconds.
- `since`: Send only the messages received since the dateTime specified.
:Types:
- `maxchars`: `int`
- `maxstanzas`: `int`
- `maxseconds`: `int`
- `since`: `datetime.datetime`
"""
self.maxchars = maxchars
self.maxstanzas = maxstanzas
self.maxseconds = maxseconds
self.since = since
class MucItemBase(object):
"""
Base class for <status/> and <item/> element wrappers.
"""
def __init__(self):
if self.__class__ is MucItemBase:
raise RuntimeError,"Abstract class called"
class MucItem(MucItemBase):
"""
MUC <item/> element -- describes a room occupant.
:Ivariables:
- `affiliation`: affiliation of the user.
- `role`: role of the user.
- `jid`: JID of the user.
- `nick`: nickname of the user.
- `actor`: actor modyfying the user data.
- `reason`: reason of change of the user data.
:Types:
- `affiliation`: `str`
- `role`: `str`
- `jid`: `JID`
- `nick`: `unicode`
- `actor`: `JID`
- `reason`: `unicode`
"""
def __init__(self,xmlnode_or_affiliation,role=None,jid=None,nick=None,actor=None,reason=None):
"""
Initialize a `MucItem` object.
:Parameters:
- `xmlnode_or_affiliation`: XML node to be pased or the affiliation of
the user being described.
- `role`: role of the user.
- `jid`: JID of the user.
- `nick`: nickname of the user.
- `actor`: actor modyfying the user data.
- `reason`: reason of change of the user data.
:Types:
- `xmlnode_or_affiliation`: `libxml2.xmlNode` or `str`
- `role`: `str`
- `jid`: `JID`
- `nick`: `unicode`
- `actor`: `JID`
- `reason`: `unicode`
"""
self.jid,self.nick,self.actor,self.affiliation,self.reason,self.role=(None,)*6
MucItemBase.__init__(self)
if isinstance(xmlnode_or_affiliation,libxml2.xmlNode):
self.__from_xmlnode(xmlnode_or_affiliation)
else:
self.__init(xmlnode_or_affiliation,role,jid,nick,actor,reason)
def __init(self,affiliation,role,jid=None,nick=None,actor=None,reason=None):
"""Initialize a `MucItem` object from a set of attributes.
:Parameters:
- `affiliation`: affiliation of the user.
- `role`: role of the user.
- `jid`: JID of the user.
- `nick`: nickname of the user.
- `actor`: actor modyfying the user data.
- `reason`: reason of change of the user data.
:Types:
- `affiliation`: `str`
- `role`: `str`
- `jid`: `JID`
- `nick`: `unicode`
- `actor`: `JID`
- `reason`: `unicode`
"""
if not affiliation:
affiliation=None
elif affiliation not in affiliations:
raise ValueError,"Bad affiliation"
self.affiliation=affiliation
if not role:
role=None
elif role not in roles:
raise ValueError,"Bad role"
self.role=role
if jid:
self.jid=JID(jid)
else:
self.jid=None
if actor:
self.actor=JID(actor)
else:
self.actor=None
self.nick=nick
self.reason=reason
def __from_xmlnode(self, xmlnode):
"""Initialize a `MucItem` object from an XML node.
:Parameters:
- `xmlnode`: the XML node.
:Types:
- `xmlnode`: `libxml2.xmlNode`
"""
actor=None
reason=None
n=xmlnode.children
while n:
ns=n.ns()
if ns and ns.getContent()!=MUC_USER_NS:
continue
if n.name=="actor":
actor=n.getContent()
if n.name=="reason":
reason=n.getContent()
n=n.next
self.__init(
from_utf8(xmlnode.prop("affiliation")),
from_utf8(xmlnode.prop("role")),
from_utf8(xmlnode.prop("jid")),
from_utf8(xmlnode.prop("nick")),
from_utf8(actor),
from_utf8(reason),
);
def as_xml(self,parent):
"""
Create XML representation of `self`.
:Parameters:
- `parent`: the element to which the created node should be linked to.
:Types:
- `parent`: `libxml2.xmlNode`
:return: an XML node.
:returntype: `libxml2.xmlNode`
"""
n=parent.newChild(None,"item",None)
if self.actor:
n.newTextChild(None,"actor",to_utf8(self.actor))
if self.reason:
n.newTextChild(None,"reason",to_utf8(self.reason))
n.setProp("affiliation",to_utf8(self.affiliation))
if self.role:
n.setProp("role",to_utf8(self.role))
if self.jid:
n.setProp("jid",to_utf8(self.jid.as_unicode()))
if self.nick:
n.setProp("nick",to_utf8(self.nick))
return n
class MucStatus(MucItemBase):
"""
MUC <item/> element - describes special meaning of a stanza
:Ivariables:
- `code`: staus code, as defined in JEP 45
:Types:
- `code`: `int`
"""
def __init__(self,xmlnode_or_code):
"""Initialize a `MucStatus` element.
:Parameters:
- `xmlnode_or_code`: XML node to parse or a status code.
:Types:
- `xmlnode_or_code`: `libxml2.xmlNode` or `int`
"""
self.code=None
MucItemBase.__init__(self)
if isinstance(xmlnode_or_code,libxml2.xmlNode):
self.__from_xmlnode(xmlnode_or_code)
else:
self.__init(xmlnode_or_code)
def __init(self,code):
"""Initialize a `MucStatus` element from a status code.
:Parameters:
- `code`: the status code.
:Types:
- `code`: `int`
"""
code=int(code)
if code<0 or code>999:
raise ValueError,"Bad status code"
self.code=code
def __from_xmlnode(self, xmlnode):
"""Initialize a `MucStatus` element from an XML node.
:Parameters:
- `xmlnode`: XML node to parse.
:Types:
- `xmlnode`: `libxml2.xmlNode`
"""
self.code=int(xmlnode.prop("code"))
def as_xml(self,parent):
"""
Create XML representation of `self`.
:Parameters:
- `parent`: the element to which the created node should be linked to.
:Types:
- `parent`: `libxml2.xmlNode`
:return: an XML node.
:returntype: `libxml2.xmlNode`
"""
n=parent.newChild(None,"status",None)
n.setProp("code","%03i" % (self.code,))
return n
class MucUserX(MucXBase):
"""
Wrapper for http://www.jabber.org/protocol/muc#user namespaced
stanza payload "x" elements and usually containing information
about a room user.
:Ivariables:
- `xmlnode`: wrapped XML node
:Types:
- `xmlnode`: `libxml2.xmlNode`
"""
ns=MUC_USER_NS
def get_items(self):
"""Get a list of objects describing the content of `self`.
:return: the list of objects.
:returntype: `list` of `MucItemBase` (`MucItem` and/or `MucStatus`)
"""
if not self.xmlnode.children:
return []
ret=[]
n=self.xmlnode.children
while n:
ns=n.ns()
if ns and ns.getContent()!=self.ns:
pass
elif n.name=="item":
ret.append(MucItem(n))
elif n.name=="status":
ret.append(MucStatus(n))
# FIXME: alt,decline,invite,password
n=n.next
return ret
def clear(self):
"""
Clear the content of `self.xmlnode` removing all <item/>, <status/>, etc.
"""
if not self.xmlnode.children:
return
n=self.xmlnode.children
while n:
ns=n.ns()
if ns and ns.getContent()!=MUC_USER_NS:
pass
else:
n.unlinkNode()
n.freeNode()
n=n.next
def add_item(self,item):
"""Add an item to `self`.
:Parameters:
- `item`: the item to add.
:Types:
- `item`: `MucItemBase`
"""
if not isinstance(item,MucItemBase):
raise TypeError,"Bad item type for muc#user"
item.as_xml(self.xmlnode)
class MucOwnerX(MucXBase):
"""
Wrapper for http://www.jabber.org/protocol/muc#owner namespaced
stanza payload "x" elements and usually containing information
about a room user.
:Ivariables:
- `xmlnode`: wrapped XML node.
:Types:
- `xmlnode`: `libxml2.xmlNode`
"""
# FIXME: implement
pass
class MucAdminQuery(MucUserX):
"""
Wrapper for http://www.jabber.org/protocol/muc#admin namespaced
IQ stanza payload "query" elements and usually describing
administrative actions or their results.
Not implemented yet.
"""
ns=MUC_ADMIN_NS
element="query"
class MucStanzaExt:
"""
Base class for MUC specific stanza extensions. Used together
with one of stanza classes (Iq, Message or Presence).
"""
def __init__(self):
"""Initialize a `MucStanzaExt` derived object."""
if self.__class__ is MucStanzaExt:
raise RuntimeError,"Abstract class called"
self.xmlnode=None
self.muc_child=None
def get_muc_child(self):
"""
Get the MUC specific payload element.
:return: the object describing the stanza payload in MUC namespace.
:returntype: `MucX` or `MucUserX` or `MucAdminQuery` or `MucOwnerX`
"""
if self.muc_child:
return self.muc_child
if not self.xmlnode.children:
return None
n=self.xmlnode.children
while n:
if n.name not in ("x","query"):
n=n.next
continue
ns=n.ns()
if not ns:
n=n.next
continue
ns_uri=ns.getContent()
if (n.name,ns_uri)==("x",MUC_NS):
self.muc_child=MucX(n)
return self.muc_child
if (n.name,ns_uri)==("x",MUC_USER_NS):
self.muc_child=MucUserX(n)
return self.muc_child
if (n.name,ns_uri)==("query",MUC_ADMIN_NS):
self.muc_child=MucAdminQuery(n)
return self.muc_child
if (n.name,ns_uri)==("query",MUC_OWNER_NS):
self.muc_child=MucOwnerX(n)
return self.muc_child
n=n.next
def clear_muc_child(self):
"""
Remove the MUC specific stanza payload element.
"""
if self.muc_child:
self.muc_child.free_borrowed()
self.muc_child=None
if not self.xmlnode.children:
return
n=self.xmlnode.children
while n:
if n.name not in ("x","query"):
n=n.next
continue
ns=n.ns()
if not ns:
n=n.next
continue
ns_uri=ns.getContent()
if ns_uri in (MUC_NS,MUC_USER_NS,MUC_ADMIN_NS,MUC_OWNER_NS):
n.unlinkNode()
n.freeNode()
n=n.next
def make_muc_userinfo(self):
"""
Create <x xmlns="...muc#user"/> element in the stanza.
:return: the element created.
:returntype: `MucUserX`
"""
self.clear_muc_child()
self.muc_child=MucUserX(parent=self.xmlnode)
return self.muc_child
def make_muc_admin_quey(self):
"""
Create <query xmlns="...muc#admin"/> element in the stanza.
:return: the element created.
:returntype: `MucAdminQuery`
"""
self.clear_muc_child()
self.muc_child=MucAdminQuery(parent=self.xmlnode)
return self.muc_child
def muc_free(self):
"""
Free MUC specific data.
"""
if self.muc_child:
self.muc_child.free_borrowed()
class MucPresence(Presence,MucStanzaExt):
"""
Extend `Presence` with MUC related interface.
"""
def __init__(self, xmlnode=None,from_jid=None,to_jid=None,stanza_type=None,stanza_id=None,
show=None,status=None,priority=0,error=None,error_cond=None):
"""Initialize a `MucPresence` object.
:Parameters:
- `xmlnode`: XML node to_jid be wrapped into the `MucPresence` object
or other Presence object to be copied. If not given then new
presence stanza is created using following parameters.
- `from_jid`: sender JID.
- `to_jid`: recipient JID.
- `stanza_type`: staza type: one of: None, "available", "unavailable",
"subscribe", "subscribed", "unsubscribe", "unsubscribed" or
"error". "available" is automaticaly changed to_jid None.
- `stanza_id`: stanza id -- value of stanza's "id" attribute
- `show`: "show" field of presence stanza. One of: None, "away",
"xa", "dnd", "chat".
- `status`: descriptive text for the presence stanza.
- `priority`: presence priority.
- `error_cond`: error condition name. Ignored if `stanza_type` is not "error"
:Types:
- `xmlnode`: `unicode` or `libxml2.xmlNode` or `pyxmpp.stanza.Stanza`
- `from_jid`: `JID`
- `to_jid`: `JID`
- `stanza_type`: `unicode`
- `stanza_id`: `unicode`
- `show`: `unicode`
- `status`: `unicode`
- `priority`: `unicode`
- `error_cond`: `unicode`"""
MucStanzaExt.__init__(self)
Presence.__init__(self,xmlnode,from_jid=from_jid,to_jid=to_jid,
stanza_type=stanza_type,stanza_id=stanza_id,
show=show,status=status,priority=priority,
error=error,error_cond=error_cond)
def copy(self):
"""
Return a copy of `self`.
"""
return MucPresence(self)
def make_join_request(self, password = None, history_maxchars = None,
history_maxstanzas = None, history_seconds = None,
history_since = None):
"""
Make the presence stanza a MUC room join request.
:Parameters:
- `password`: password to the room.
- `history_maxchars`: limit of the total number of characters in
history.
- `history_maxstanzas`: limit of the total number of messages in
history.
- `history_seconds`: send only messages received in the last
`seconds` seconds.
- `history_since`: Send only the messages received since the
dateTime specified (UTC).
:Types:
- `password`: `unicode`
- `history_maxchars`: `int`
- `history_maxstanzas`: `int`
- `history_seconds`: `int`
- `history_since`: `datetime.datetime`
"""
self.clear_muc_child()
self.muc_child=MucX(parent=self.xmlnode)
if (history_maxchars is not None or history_maxstanzas is not None
or history_seconds is not None or history_since is not None):
history = HistoryParameters(history_maxchars, history_maxstanzas,
history_seconds, history_since)
self.muc_child.set_history(history)
if password is not None:
self.muc_child.set_password(password)
def get_join_info(self):
"""If `self` is a MUC room join request return the information contained.
:return: the join request details or `None`.
:returntype: `MucX`
"""
x=self.get_muc_child()
if not x:
return None
if not isinstance(x,MucX):
return None
return x
def free(self):
"""Free the data associated with this `MucPresence` object."""
self.muc_free()
Presence.free(self)
class MucIq(Iq,MucStanzaExt):
"""
Extend `Iq` with MUC related interface.
"""
def __init__(self,xmlnode=None,from_jid=None,to_jid=None,stanza_type=None,stanza_id=None,
error=None,error_cond=None):
"""Initialize an `Iq` object.
:Parameters:
- `xmlnode`: XML node to_jid be wrapped into the `Iq` object
or other Iq object to be copied. If not given then new
presence stanza is created using following parameters.
- `from_jid`: sender JID.
- `to_jid`: recipient JID.
- `stanza_type`: staza type: one of: "get", "set", "result" or "error".
- `stanza_id`: stanza id -- value of stanza's "id" attribute. If not
given, then unique for the session value is generated.
- `error_cond`: error condition name. Ignored if `stanza_type` is not "error".
:Types:
- `xmlnode`: `unicode` or `libxml2.xmlNode` or `Iq`
- `from_jid`: `JID`
- `to_jid`: `JID`
- `stanza_type`: `unicode`
- `stanza_id`: `unicode`
- `error_cond`: `unicode`"""
MucStanzaExt.__init__(self)
Iq.__init__(self,xmlnode,from_jid=from_jid,to_jid=to_jid,
stanza_type=stanza_type,stanza_id=stanza_id,
error=error,error_cond=error_cond)
def copy(self):
""" Return a copy of `self`. """
return MucIq(self)
def make_kick_request(self,nick,reason):
"""
Make the iq stanza a MUC room participant kick request.
:Parameters:
- `nick`: nickname of user to kick.
- `reason`: reason of the kick.
:Types:
- `nick`: `unicode`
- `reason`: `unicode`
:return: object describing the kick request details.
:returntype: `MucItem`
"""
self.clear_muc_child()
self.muc_child=MucAdminQuery(parent=self.xmlnode)
item=MucItem("none","none",nick=nick,reason=reason)
self.muc_child.add_item(item)
return self.muc_child
def free(self):
"""Free the data associated with this `MucIq` object."""
self.muc_free()
Iq.free(self)
# vi: sts=4 et sw=4
| lgpl-2.1 | 7,984,173,956,908,392,000 | 33.035496 | 98 | 0.559104 | false | 3.792036 | false | false | false |
mozilla/zamboni | mkt/site/monitors.py | 1 | 8772 | import os
import socket
import StringIO
import tempfile
import time
import traceback
from django.conf import settings
import commonware.log
import elasticsearch
import requests
from cache_nuggets.lib import memoize
from PIL import Image
from lib.crypto import packaged, receipt
from lib.crypto.packaged import SigningError as PackageSigningError
from lib.crypto.receipt import SigningError
from mkt.site.storage_utils import local_storage
monitor_log = commonware.log.getLogger('z.monitor')
def memcache():
memcache = getattr(settings, 'CACHES', {}).get('default')
memcache_results = []
status = ''
if memcache and 'memcache' in memcache['BACKEND']:
hosts = memcache['LOCATION']
using_twemproxy = False
if not isinstance(hosts, (tuple, list)):
hosts = [hosts]
for host in hosts:
ip, port = host.split(':')
if ip == '127.0.0.1':
using_twemproxy = True
try:
s = socket.socket()
s.connect((ip, int(port)))
except Exception, e:
result = False
status = 'Failed to connect to memcached (%s): %s' % (host, e)
monitor_log.critical(status)
else:
result = True
finally:
s.close()
memcache_results.append((ip, port, result))
if (not using_twemproxy and len(hosts) > 1 and
len(memcache_results) < 2):
# If the number of requested hosts is greater than 1, but less
# than 2 replied, raise an error.
status = ('2+ memcache servers are required.'
'%s available') % len(memcache_results)
monitor_log.warning(status)
# If we are in debug mode, don't worry about checking for memcache.
elif settings.DEBUG:
return status, []
if not memcache_results:
status = 'Memcache is not configured'
monitor_log.info(status)
return status, memcache_results
def libraries():
# Check Libraries and versions
libraries_results = []
status = ''
try:
Image.new('RGB', (16, 16)).save(StringIO.StringIO(), 'JPEG')
libraries_results.append(('PIL+JPEG', True, 'Got it!'))
except Exception, e:
msg = "Failed to create a jpeg image: %s" % e
libraries_results.append(('PIL+JPEG', False, msg))
try:
import M2Crypto # NOQA
libraries_results.append(('M2Crypto', True, 'Got it!'))
except ImportError:
libraries_results.append(('M2Crypto', False, 'Failed to import'))
if settings.SPIDERMONKEY:
if os.access(settings.SPIDERMONKEY, os.R_OK):
libraries_results.append(('Spidermonkey is ready!', True, None))
# TODO: see if it works?
else:
msg = "You said spidermonkey was at (%s)" % settings.SPIDERMONKEY
libraries_results.append(('Spidermonkey', False, msg))
# If settings are debug and spidermonkey is empty,
# thorw this error.
elif settings.DEBUG and not settings.SPIDERMONKEY:
msg = 'SPIDERMONKEY is empty'
libraries_results.append(('Spidermonkey', True, msg))
else:
msg = "Please set SPIDERMONKEY in your settings file."
libraries_results.append(('Spidermonkey', False, msg))
missing_libs = [l for l, s, m in libraries_results if not s]
if missing_libs:
status = 'missing libs: %s' % ",".join(missing_libs)
return status, libraries_results
def elastic():
es = elasticsearch.Elasticsearch(hosts=settings.ES_HOSTS)
elastic_results = None
status = ''
try:
health = es.cluster.health()
if health['status'] == 'red':
status = 'ES is red'
elastic_results = health
except elasticsearch.ElasticsearchException:
monitor_log.exception('Failed to communicate with ES')
elastic_results = {'error': traceback.format_exc()}
status = 'traceback'
return status, elastic_results
def path():
# Check file paths / permissions
rw = (settings.TMP_PATH,
settings.NETAPP_STORAGE,
settings.UPLOADS_PATH,
settings.ADDONS_PATH,
settings.GUARDED_ADDONS_PATH,
settings.ADDON_ICONS_PATH,
settings.WEBSITE_ICONS_PATH,
settings.PREVIEWS_PATH,
settings.REVIEWER_ATTACHMENTS_PATH,)
r = [os.path.join(settings.ROOT, 'locale')]
filepaths = [(path, os.R_OK | os.W_OK, "We want read + write")
for path in rw]
filepaths += [(path, os.R_OK, "We want read") for path in r]
filepath_results = []
filepath_status = True
for path, perms, notes in filepaths:
path_exists = os.path.exists(path)
path_perms = os.access(path, perms)
filepath_status = filepath_status and path_exists and path_perms
filepath_results.append((path, path_exists, path_perms, notes))
key_exists = os.path.exists(settings.WEBAPPS_RECEIPT_KEY)
key_perms = os.access(settings.WEBAPPS_RECEIPT_KEY, os.R_OK)
filepath_status = filepath_status and key_exists and key_perms
filepath_results.append(('settings.WEBAPPS_RECEIPT_KEY',
key_exists, key_perms, 'We want read'))
status = filepath_status
status = ''
if not filepath_status:
status = 'check main status page for broken perms'
return status, filepath_results
# The signer check actually asks the signing server to sign something. Do this
# once per nagios check, once per web head might be a bit much. The memoize
# slows it down a bit, by caching the result for 15 seconds.
@memoize('monitors-signer', time=15)
def receipt_signer():
destination = getattr(settings, 'SIGNING_SERVER', None)
if not destination:
return '', 'Signer is not configured.'
# Just send some test data into the signer.
now = int(time.time())
not_valid = (settings.SITE_URL + '/not-valid')
data = {'detail': not_valid, 'exp': now + 3600, 'iat': now,
'iss': settings.SITE_URL,
'product': {'storedata': 'id=1', 'url': u'http://not-valid.com'},
'nbf': now, 'typ': 'purchase-receipt',
'reissue': not_valid,
'user': {'type': 'directed-identifier',
'value': u'something-not-valid'},
'verify': not_valid
}
try:
result = receipt.sign(data)
except SigningError as err:
msg = 'Error on signing (%s): %s' % (destination, err)
return msg, msg
try:
cert, rest = receipt.crack(result)
except Exception as err:
msg = 'Error on cracking receipt (%s): %s' % (destination, err)
return msg, msg
# Check that the certs used to sign the receipts are not about to expire.
limit = now + (60 * 60 * 24) # One day.
if cert['exp'] < limit:
msg = 'Cert will expire soon (%s)' % destination
return msg, msg
cert_err_msg = 'Error on checking public cert (%s): %s'
location = cert['iss']
try:
resp = requests.get(location, timeout=5, stream=False)
except Exception as err:
msg = cert_err_msg % (location, err)
return msg, msg
if not resp.ok:
msg = cert_err_msg % (location, resp.reason)
return msg, msg
cert_json = resp.json()
if not cert_json or 'jwk' not in cert_json:
msg = cert_err_msg % (location, 'Not valid JSON/JWK')
return msg, msg
return '', 'Signer working and up to date'
# Like the receipt signer above this asks the packaged app signing
# service to sign one for us.
@memoize('monitors-package-signer', time=60)
def package_signer():
destination = getattr(settings, 'SIGNED_APPS_SERVER', None)
if not destination:
return '', 'Signer is not configured.'
app_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'nagios_check_packaged_app.zip')
signed_path = tempfile.mktemp()
try:
packaged.sign_app(local_storage.open(app_path), signed_path, None,
False, local=True)
return '', 'Package signer working'
except PackageSigningError, e:
msg = 'Error on package signing (%s): %s' % (destination, e)
return msg, msg
finally:
local_storage.delete(signed_path)
# Not called settings to avoid conflict with django.conf.settings.
def settings_check():
required = ['APP_PURCHASE_KEY', 'APP_PURCHASE_TYP', 'APP_PURCHASE_AUD',
'APP_PURCHASE_SECRET']
for key in required:
if not getattr(settings, key):
msg = 'Missing required value %s' % key
return msg, msg
return '', 'Required settings ok'
| bsd-3-clause | 7,330,923,754,298,873,000 | 33.265625 | 78 | 0.609097 | false | 3.85413 | false | false | false |
Azure/azure-sdk-for-python | sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_api_operation_operations.py | 1 | 28513 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union
import warnings
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat
from ... import models as _models
T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
class ApiOperationOperations:
"""ApiOperationOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.mgmt.apimanagement.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
"""
models = _models
def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config
def list_by_api(
self,
resource_group_name: str,
service_name: str,
api_id: str,
filter: Optional[str] = None,
top: Optional[int] = None,
skip: Optional[int] = None,
tags: Optional[str] = None,
**kwargs
) -> AsyncIterable["_models.OperationCollection"]:
"""Lists a collection of the operations for the specified API.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param api_id: API revision identifier. Must be unique in the current API Management service
instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
:type api_id: str
:param filter: | Field | Usage | Supported operators | Supported
functions |</br>|-------------|-------------|-------------|-------------|</br>| name |
filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>|
displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
|</br>| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith
|</br>| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith,
endswith |</br>| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains,
startswith, endswith |</br>.
:type filter: str
:param top: Number of records to return.
:type top: int
:param skip: Number of records to skip.
:type skip: int
:param tags: Include tags in the response.
:type tags: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either OperationCollection or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.apimanagement.models.OperationCollection]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationCollection"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-12-01"
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list_by_api.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if filter is not None:
query_parameters['$filter'] = self._serialize.query("filter", filter, 'str')
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'int', minimum=1)
if skip is not None:
query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0)
if tags is not None:
query_parameters['tags'] = self._serialize.query("tags", tags, 'str')
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
request = self._client.get(url, query_parameters, header_parameters)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
request = self._client.get(url, query_parameters, header_parameters)
return request
async def extract_data(pipeline_response):
deserialized = self._deserialize('OperationCollection', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.next_link or None, AsyncList(list_of_elem)
async def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
error = self._deserialize(_models.ErrorResponse, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
return pipeline_response
return AsyncItemPaged(
get_next, extract_data
)
list_by_api.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations'} # type: ignore
async def get_entity_tag(
self,
resource_group_name: str,
service_name: str,
api_id: str,
operation_id: str,
**kwargs
) -> bool:
"""Gets the entity state (Etag) version of the API operation specified by its identifier.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param api_id: API revision identifier. Must be unique in the current API Management service
instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
:type api_id: str
:param operation_id: Operation identifier within an API. Must be unique in the current API
Management service instance.
:type operation_id: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: bool, or the result of cls(response)
:rtype: bool
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-12-01"
accept = "application/json"
# Construct URL
url = self.get_entity_tag.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'),
'operationId': self._serialize.url("operation_id", operation_id, 'str', max_length=80, min_length=1),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.head(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
response_headers['ETag']=self._deserialize('str', response.headers.get('ETag'))
if cls:
return cls(pipeline_response, None, response_headers)
return 200 <= response.status_code <= 299
get_entity_tag.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'} # type: ignore
async def get(
self,
resource_group_name: str,
service_name: str,
api_id: str,
operation_id: str,
**kwargs
) -> "_models.OperationContract":
"""Gets the details of the API Operation specified by its identifier.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param api_id: API revision identifier. Must be unique in the current API Management service
instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
:type api_id: str
:param operation_id: Operation identifier within an API. Must be unique in the current API
Management service instance.
:type operation_id: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: OperationContract, or the result of cls(response)
:rtype: ~azure.mgmt.apimanagement.models.OperationContract
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationContract"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-12-01"
accept = "application/json"
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'),
'operationId': self._serialize.url("operation_id", operation_id, 'str', max_length=80, min_length=1),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
response_headers['ETag']=self._deserialize('str', response.headers.get('ETag'))
deserialized = self._deserialize('OperationContract', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, response_headers)
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'} # type: ignore
async def create_or_update(
self,
resource_group_name: str,
service_name: str,
api_id: str,
operation_id: str,
parameters: "_models.OperationContract",
if_match: Optional[str] = None,
**kwargs
) -> "_models.OperationContract":
"""Creates a new operation in the API or updates an existing one.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param api_id: API revision identifier. Must be unique in the current API Management service
instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
:type api_id: str
:param operation_id: Operation identifier within an API. Must be unique in the current API
Management service instance.
:type operation_id: str
:param parameters: Create parameters.
:type parameters: ~azure.mgmt.apimanagement.models.OperationContract
:param if_match: ETag of the Entity. Not required when creating an entity, but required when
updating an entity.
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: OperationContract, or the result of cls(response)
:rtype: ~azure.mgmt.apimanagement.models.OperationContract
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationContract"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-12-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.create_or_update.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'),
'operationId': self._serialize.url("operation_id", operation_id, 'str', max_length=80, min_length=1),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
if if_match is not None:
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(parameters, 'OperationContract')
body_content_kwargs['content'] = body_content
request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
if response.status_code == 200:
response_headers['ETag']=self._deserialize('str', response.headers.get('ETag'))
deserialized = self._deserialize('OperationContract', pipeline_response)
if response.status_code == 201:
response_headers['ETag']=self._deserialize('str', response.headers.get('ETag'))
deserialized = self._deserialize('OperationContract', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, response_headers)
return deserialized
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'} # type: ignore
async def update(
self,
resource_group_name: str,
service_name: str,
api_id: str,
operation_id: str,
if_match: str,
parameters: "_models.OperationUpdateContract",
**kwargs
) -> "_models.OperationContract":
"""Updates the details of the operation in the API specified by its identifier.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param api_id: API revision identifier. Must be unique in the current API Management service
instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
:type api_id: str
:param operation_id: Operation identifier within an API. Must be unique in the current API
Management service instance.
:type operation_id: str
:param if_match: ETag of the Entity. ETag should match the current entity state from the header
response of the GET request or it should be * for unconditional update.
:type if_match: str
:param parameters: API Operation Update parameters.
:type parameters: ~azure.mgmt.apimanagement.models.OperationUpdateContract
:keyword callable cls: A custom type or function that will be passed the direct response
:return: OperationContract, or the result of cls(response)
:rtype: ~azure.mgmt.apimanagement.models.OperationContract
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationContract"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-12-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.update.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'),
'operationId': self._serialize.url("operation_id", operation_id, 'str', max_length=80, min_length=1),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(parameters, 'OperationUpdateContract')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
response_headers['ETag']=self._deserialize('str', response.headers.get('ETag'))
deserialized = self._deserialize('OperationContract', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, response_headers)
return deserialized
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'} # type: ignore
async def delete(
self,
resource_group_name: str,
service_name: str,
api_id: str,
operation_id: str,
if_match: str,
**kwargs
) -> None:
"""Deletes the specified operation in the API.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param service_name: The name of the API Management service.
:type service_name: str
:param api_id: API revision identifier. Must be unique in the current API Management service
instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
:type api_id: str
:param operation_id: Operation identifier within an API. Must be unique in the current API
Management service instance.
:type operation_id: str
:param if_match: ETag of the Entity. ETag should match the current entity state from the header
response of the GET request or it should be * for unconditional update.
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-12-01"
accept = "application/json"
# Construct URL
url = self.delete.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serviceName': self._serialize.url("service_name", service_name, 'str', max_length=50, min_length=1, pattern=r'^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'),
'apiId': self._serialize.url("api_id", api_id, 'str', max_length=256, min_length=1, pattern=r'^[^*#&+:<>?]+$'),
'operationId': self._serialize.url("operation_id", operation_id, 'str', max_length=80, min_length=1),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.delete(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
return cls(pipeline_response, None, {})
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'} # type: ignore
| mit | 6,949,265,218,176,873,000 | 52.295327 | 219 | 0.63792 | false | 4.11978 | true | false | false |
richarddzh/markdown-latex-tools | md2tex/md2tex.py | 1 | 6180 | '''
md2tex.py
- author: Richard Dong
- description: Convert markdown to latex
'''
from __future__ import print_function
import re
import io
import sys
import argparse
import markdown
class State:
NORMAL = 0
RAW = 1
class Handler:
def __init__(self):
self.vars = dict()
self.state = State.NORMAL
self._begin_latex = re.compile(r'^<!-- latex\s*$')
self._set_vars = re.compile(r'^<!-- set(\s+\w+="[^"]+")+\s*-->$')
self._var_pair = re.compile(r'(\w+)="([^"]+)"')
self._escape = re.compile(r'(&|%|\$|_|\{|\})')
self._inline_math = re.compile(r'\$\$(.+?)\$\$')
self._cite = re.compile(r'\[(cite|ref)@\s*([A-Za-z0-9:]+(\s*,\s*[A-Za-z0-9:]+)*)\]')
self._bold = re.compile(r'\*\*(?!\s)(.+?)\*\*')
def convert_text(self, text):
if len(text) == 0 or text.isspace(): return ''
m = self._inline_math.split(text)
s = ''
for i in range(len(m)):
if len(m[i]) == 0 or m[i].isspace(): continue
if i % 2 == 0:
text = self.convert_text_no_math(m[i])
else:
text = '$' + m[i] + '$'
s = s + text
return s
def convert_text_no_math(self, text):
if len(text) == 0 or text.isspace(): return ''
m = self._bold.split(text)
s = ''
for i in range(len(m)):
if len(m[i]) == 0 or m[i].isspace(): continue
if i % 2 == 0:
text = self.convert_text_no_bold(m[i])
else:
text = '\\textbf{' + self.convert_text_no_bold(m[i]) + '}'
s = s + text
return s
def convert_text_no_bold(self, text):
text = self._escape.sub(r'\\\1', text)
text = text.replace(r'\\', r'\textbackslash{}')
text = self._cite.sub(r'\\\1{\2}', text)
return text
def print_label(self):
if 'label' in self.vars:
print('\\label{%s}' % self.vars.pop('label', 'nolabel'))
def get_float_style(self):
fl = self.vars.pop('float', '!ht')
if fl == '!h' or fl == 'h!':
fl = '!ht'
return fl
def on_begin_table(self):
caption = self.convert_text(self.vars.pop('caption', ''))
print('\\begin{table}[%s]' % self.get_float_style())
print('\\caption{%s}' % caption)
self.print_label()
print('\\centering\\begin{tabular}{%s}\\hline' % self.vars.pop('columns', 'c'))
def on_end_table(self):
print('\\hline\\end{tabular}')
print('\\end{table}')
def on_text(self, text):
print(self.convert_text(text))
def on_comment(self, comment):
if self._begin_latex.match(comment):
self.state = State.RAW
elif self.state == State.RAW and '-->' in comment:
self.state = State.NORMAL
elif self.state == State.RAW:
print(comment)
elif self._set_vars.match(comment):
for (k, v) in self._var_pair.findall(comment):
self.vars[k] = v
def on_title(self, **arg):
level = arg['level']
title = self.convert_text(arg['title'])
if level == 1:
print('\\chapter{%s}' % title)
else:
print('\\%ssection{%s}' % ('sub' * (level - 2), title))
def on_image(self, **arg):
url = arg['url']
caption = self.convert_text(arg['caption'])
style = self.vars.pop('style', 'figure')
url = self.vars.pop('url', url)
width = self.vars.pop('width', '0.5')
endline = self.vars.pop('endline', '')
if style == 'figure':
print('\\begin{figure}[%s]' % self.get_float_style())
print('\\centering\\includegraphics[width=%s\\linewidth]{%s}\\caption{%s}' % (width, url, caption))
self.print_label()
print('\\end{figure}')
elif style == 'subfloat':
print('\\subfloat[%s]{\\includegraphics[width=%s\\linewidth]{%s}' % (caption, width, url))
self.print_label();
print('}%s' % endline)
elif style == 'raw':
print('\\includegraphics[width=%s\\linewidth]{%s}%s' % (width, url, endline))
def on_table_line(self):
print('\\hline')
def on_table_row(self, row):
row = [self.convert_text(x) for x in row]
print(' & '.join(row) + ' \\\\')
def on_begin_equation(self):
print('\\begin{equation}')
self.print_label()
def on_end_equation(self):
print('\\end{equation}')
def on_equation(self, equ):
print(equ)
def on_begin_list(self, sym):
if sym[0].isdigit():
print('\\begin{enumerate}')
else:
print('\\begin{itemize}')
def on_end_list(self, sym):
if sym[0].isdigit():
print('\\end{enumerate}')
else:
print('\\end{itemize}')
def on_list_item(self, sym):
print('\\item ', end='')
def on_include(self, filename):
print('\\input{%s.tex}' % filename)
def on_begin_code(self, lang):
params = list()
if lang and not lang.isspace():
params.append('language=%s' % lang)
caption = self.convert_text(self.vars.pop('caption', ''))
if caption and not caption.isspace():
params.append('caption={%s}' % caption)
params = ','.join(params)
if params and not params.isspace():
params = '[' + params + ']'
if lang == 'algorithm':
self.vars['lang'] = 'algorithm'
print('\\begin{algorithm}[%s]' % self.get_float_style())
print('\\caption{%s}' % caption)
self.print_label()
print('\\setstretch{1.3}')
print('\\SetKwProg{Fn}{function}{}{end}')
else:
print('\\begin{lstlisting}' + params)
def on_end_code(self):
lang = self.vars.pop('lang', '')
if lang == 'algorithm':
print('\\end{algorithm}')
else:
print('\\end{lstlisting}')
def on_code(self, code):
print(code)
parser = argparse.ArgumentParser(description='convert markdown to latex.')
parser.add_argument('-c', dest='encoding', help='file encoding', default='utf8')
parser.add_argument('-o', dest='output', help='output file')
parser.add_argument('file', nargs='*', help='input files')
args = parser.parse_args()
if args.output is not None:
sys.stdout = io.open(args.output, mode='wt', encoding=args.encoding)
for f in args.file:
p = markdown.Parser()
p.handler = Handler()
with io.open(f, mode='rt', encoding=args.encoding) as fi:
for line in fi:
p.parse_line(line)
p.parse_line('')
if not args.file:
p = markdown.Parser()
p.handler = Handler()
for line in sys.stdin:
p.parse_line(line)
p.parse_line('')
| gpl-2.0 | -6,809,639,259,904,145,000 | 28.2891 | 105 | 0.571683 | false | 3.174114 | false | false | false |
twestbrookunh/paladin-plugins | core/main.py | 1 | 13912 | #! /usr/bin/env python3
"""
The MIT License
Copyright (c) 2017 by Anthony Westbrook, University of New Hampshire <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
# Core module is responsible for plugin interopability, as well as standard API
import pkgutil
import importlib
import plugins
import pprint
import re
import sys
from core.filestore import FileStore
class PluginDef:
""" Plugin definition to be populated by each plugin via its plugin_init method at load time """
def __init__(self, module):
# Plugin fields
self.module = module
self.name = ""
self.description = ""
self.version_major = 0
self.version_minor = 0
self.version_revision = 0
self.dependencies = list()
# Callbacks
self.callback_args = None
self.callback_init = None
self.callback_main = None
class SamEntry:
""" Store data per individual SAM entry """
FIELD_QNAME = 0
FIELD_FLAG = 1
FIELD_RNAME = 2
FIELD_POS = 3
FIELD_MAPQ = 4
FIELD_CIGAR = 5
FIELD_RNEXT = 6
FIELD_PNEXT = 7
FIELD_TLEN = 8
FIELD_SEQ = 9
FIELD_QUAL = 10
def __init__(self):
self.query = ""
self.flag = 0
self.reference = ""
self.pos = 0
self.mapqual = 0
self.cigar = ""
self.nextref = ""
self.nextpos = 0
self.length = 0
self.sequence = ""
self.readqual = 0
self.frame = ""
@staticmethod
def get_entries(filename, quality):
""" Public API for obtaining SAM data (will handle caching internally) """
# Check if in cache
if not (filename, quality) in SamEntry._entries:
cache = SamEntry.populate_entries(filename, quality)
SamEntry._entries[(filename, quality)] = cache
return SamEntry._entries[(filename, quality)]
@staticmethod
def populate_entries(filename, quality):
""" Store SAM entries filtered for the requested quality """
ret_entries = dict()
# Open SAM file
with open(filename, "r") as handle:
for line in handle:
fields = line.rstrip().split("\t")
# Skip header and malformed lines
if line.startswith("@"):
continue
if len(fields) < 11:
continue
# Filter for minimum quality
if fields[SamEntry.FIELD_RNAME] == "*" and quality != -1:
continue
if quality != -1 and int(fields[SamEntry.FIELD_MAPQ]) < quality:
continue
# Remove PALADIN frame header since best scoring frame may change between alignments
header_match = re.search("(.*?:.*?:.*?:)(.*)", fields[SamEntry.FIELD_QNAME])
entry = SamEntry()
entry.query = header_match.group(2)
entry.flag = int(fields[SamEntry.FIELD_FLAG])
# Fill in entry information if mapped
if entry.is_mapped:
entry.reference = fields[SamEntry.FIELD_RNAME]
entry.pos = SamEntry.get_sam_int(fields[SamEntry.FIELD_POS])
entry.mapqual = SamEntry.get_sam_int(fields[SamEntry.FIELD_MAPQ])
entry.cigar = fields[SamEntry.FIELD_CIGAR]
entry.nextref = fields[SamEntry.FIELD_RNEXT]
entry.nextpos = fields[SamEntry.FIELD_PNEXT]
entry.length = SamEntry.get_sam_int(fields[SamEntry.FIELD_TLEN])
entry.sequence = fields[SamEntry.FIELD_SEQ]
entry.readqual = SamEntry.get_sam_int(fields[SamEntry.FIELD_QUAL])
entry.frame = header_match.group(1)
# Each read can have multiple non-linear/chimeric hits - store as tuple for ease of processing
read_base = header_match.group(2)
hit_idx = 0
while (read_base, hit_idx) in ret_entries:
hit_idx += 1
ret_entries[(read_base, hit_idx)] = entry
return ret_entries
@staticmethod
def get_sam_int(val):
if val.isdigit():
return int(val)
return 0
def is_mapped(self):
return self.flag & 0x04 > 0
_entries = dict()
class PaladinEntry:
""" PALADIN UniProt entry """
FIELD_COUNT = 0
FIELD_ABUNDANCE = 1
FIELD_QUALAVG = 2
FIELD_QUALMAX = 3
FIELD_KB = 4
FIELD_ID = 5
FIELD_SPECIES = 6
FIELD_PROTEIN = 7
FIELD_ONTOLOGY = 11
TYPE_UNKNOWN = 0
TYPE_UNIPROT_EXACT = 1
TYPE_UNIPROT_GROUP = 2
TYPE_CUSTOM = 3
def __init__(self):
self.type = PaladinEntry.TYPE_UNKNOWN
self.id = "Unknown"
self.kb = "Unknown"
self.count = 0
self.abundance = 0.0
self.quality_avg = 0.0
self.quality_max = 0
self.species_id = "Unknown"
self.species_full = "Unknown"
self.protein = "Unknown"
self.ontology = list()
@staticmethod
def get_entries(filename, quality, pattern=None):
""" Public API for obtaining UniProt report data (will handle caching internally) """
# Check if in cache
if not (filename, quality, pattern) in PaladinEntry._entries:
cache = PaladinEntry.populate_entries(filename, quality, pattern)
PaladinEntry._entries[(filename, quality, pattern)] = cache
return PaladinEntry._entries[(filename, quality, pattern)]
@staticmethod
def populate_entries(filename, quality, pattern):
""" Cache this UniProt report data for the requested quality """
ret_entries = dict()
# Open UniProt report, skip header
with open(filename, "r") as handle:
handle.readline()
for line in handle:
fields = line.rstrip().split("\t")
# Filter for minimum quality
if float(fields[PaladinEntry.FIELD_QUALMAX]) < quality:
continue
entry = PaladinEntry()
entry.count = int(fields[PaladinEntry.FIELD_COUNT])
entry.abundance = float(fields[PaladinEntry.FIELD_ABUNDANCE])
entry.qual_avg = float(fields[PaladinEntry.FIELD_QUALAVG])
entry.qual_max = int(fields[PaladinEntry.FIELD_QUALMAX])
entry.kb = fields[PaladinEntry.FIELD_KB]
if len(fields) > 10:
# Existence of fields indicates a successful UniProt parse by PALADIN
if "_9" in entry.kb: entry.type = PaladinEntry.TYPE_UNIPROT_GROUP
else: entry.type = PaladinEntry.TYPE_UNIPROT_EXACT
entry.species_id = entry.kb.split("_")[1]
entry.species_full = fields[PaladinEntry.FIELD_SPECIES]
entry.id = fields[PaladinEntry.FIELD_ID]
entry.protein = fields[PaladinEntry.FIELD_PROTEIN]
entry.ontology = [term.strip() for term in fields[PaladinEntry.FIELD_ONTOLOGY].split(";")]
else:
# Check for custom match
if pattern:
match = re.search(pattern, entry.kb)
if match:
entry.type = PaladinEntry.TYPE_CUSTOM
entry.species_id = match.group(1)
entry.species_full = match.group(1)
ret_entries[fields[PaladinEntry.FIELD_KB]] = entry
return ret_entries
_entries = dict()
# Plugins internal to core, and loaded external modules
internal_plugins = dict()
plugin_modules = dict()
# Standard output and error buffers
output_stdout = list()
output_stderr = list()
console_stdout = False
console_stderr = True
def connect_plugins(debug):
""" Search for all modules in the plugin package (directory), import each and run plugin_connect method """
# Initialize File Store
FileStore.init("pp-", "~/.paladin-plugins", ".", 30)
# Add internal core plugins
internal_plugins["flush"] = render_output
internal_plugins["write"] = render_output
# Import all external plugin modules in package (using full path)
for importer, module, package in pkgutil.iter_modules(plugins.__path__):
try:
module_handle = importlib.import_module("{0}.{1}".format(plugins.__name__, module))
if "plugin_connect" in dir(module_handle):
plugin_modules[module] = PluginDef(module_handle)
except Exception as exception:
if debug:
raise exception
else:
send_output("Error loading \"{0}.py\", skipping...".format(module), "stderr")
# Connect to all external plugins
for plugin in plugin_modules:
plugin_modules[plugin].module.plugin_connect(plugin_modules[plugin])
def args_plugins(plugins):
""" Run argument parsing for each plugin """
for plugin in plugins:
plugin_modules[plugin].callback_args()
def init_plugins(plugins):
""" _initialize plugins being used in this session """
init_queue = set()
init_history = set()
# Scan for plugins and dependencies
for plugin in plugins:
if plugin not in plugin_modules and plugin not in internal_plugins:
if plugin in plugins.modules_disabled:
print("Disabled plugin: {0}".format(plugin))
else:
print("Unknown plugin: {0}".format(plugin))
return False
# _initialize external plugins
if plugin in plugin_modules:
# Look for dependencies
init_queue.update(plugin_modules[plugin].dependencies)
init_queue.add(plugin)
# _initialize
for plugin in init_queue:
if plugin_modules[plugin].callback_init:
if plugin not in init_history:
plugin_modules[plugin].callback_init()
init_history.add(plugin)
return True
#def exec_pipeline(pipeline):
# """ Execute requested plugin pipeline """
# for task in pipeline:
# if task[0] in internal_plugins:
# # Internal plugin
# internal_plugins[task[0]](task[1].strip("\""))
# else:
# # External plugin
# if plugin_modules[task[0]].callback_main:
# plugin_modules[task[0]].callback_main(task[1])
def exec_pipeline(pipeline):
""" Execute requested plugin pipeline """
for task in pipeline:
if task[0] in internal_plugins:
# Internal plugin
internal_plugins[task[0]](task[1].strip("\""))
elif task[0] in plugin_modules:
# External plugin
plugin = plugin_modules[task[0]]
# Process arguments (this may sys.exit if help mode)
if plugin.callback_args:
args = plugin.callback_args(task[1])
# Process dependencies and initialization
for dependency in [plugin_modules[x] for x in plugin.dependencies]:
if dependency.callback_init:
dependency.callback_init()
if plugin.callback_init:
plugin.callback_init()
# Execute
if plugin.callback_main:
plugin.callback_main(args)
else:
# Invalid plugin
send_output("Invalid plugin \"{0}\"".format(task[0]), "stderr")
sys.exit(1)
def render_output(filename="", target="stdout"):
""" The flush internal plugin handles rendering output (to stdout or file) """
if target == "stdout":
render_text = "".join(output_stdout)
del output_stdout[:]
if target == "stderr":
render_text = "".join(output_stderr)
del output_stderr[:]
if not filename:
std_target = sys.stdout if target == "stdout" else sys.stderr
print(render_text, flush=True, file=std_target)
else:
with open(filename, "w") as handle:
handle.write(render_text)
def send_output(output_text, target="stdout", suffix="\n"):
""" API - Record output into the appropriate buffer """
new_content = "{0}{1}".format(output_text, suffix)
if target == "stdout":
if console_stdout:
print(new_content, end="", flush=True)
else:
output_stdout.append(new_content)
else:
if console_stderr:
print(new_content, end="", flush=True, file=sys.stderr)
else:
output_stderr.append(new_content)
def getInteger(val):
""" API - Return value if string is integer (allows negatives) """
try:
return int(val)
except:
return None
def debugPrint(obj):
""" API - Debugging """
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(obj)
| mit | -8,417,711,024,441,444,000 | 33.098039 | 111 | 0.592869 | false | 4.156558 | false | false | false |
dhhagan/ACT | ACT/thermo/visualize.py | 1 | 13306 | """
Classes and functions used to visualize data for thermo scientific analyzers
"""
from pandas import Series, DataFrame
import pandas as pd
import datetime as dt
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import dates as d
import os
import math
import glob
import matplotlib
import warnings
import sys
__all__ = ['diurnal_plot','diurnal_plot_single', 'ThermoPlot']
def diurnal_plot(data, dates=[], shaded=False, title="Diurnal Profile of Trace Gases", xlabel="Local Time: East St. Louis, MO"):
'''
If plotting the entire DataFrame (data), choose all_data=True, else choose all_data=False
and declare the date or dates to plot as a list. `data` should be a pandas core DataFrame
with time index and each trace gas concentration as a column
returns a single plot for NOx, SO2, and O3
>>>
'''
# Check to make sure the data is a valid dataframe
if not isinstance(data, pd.DataFrame):
print ("data is not a pandas DataFrame, thus this will not end well for you.")
exit
# If length of dates is zero, plot everything
if len(dates) == 0:
# Plot everything, yo!
pass
elif len(dates) == 1:
# Plot just this date
data = data[dates[0]]
elif len(dates) == 2:
# Plot between these dates
data = data[dates[0]:dates[1]]
else:
sys.exit("Dates are not properly configured.")
# Add columns for time to enable simple diurnal trends to be found
data['Time'] = data.index.map(lambda x: x.strftime("%H:%M"))
# Group the data by time and grab the statistics
grouped = data.groupby('Time').describe().unstack()
# set the index to be a str
grouped.index = pd.to_datetime(grouped.index.astype(str))
# Plot
fig, (ax1, ax2, ax3) = plt.subplots(3, figsize=(10,9), sharex=True)
# Set plot titles and labels
ax1.set_title(title, fontsize=14)
ax1.set_ylabel(r'$\ [NO_x] (ppb)$', fontsize=14, weight='bold')
ax2.set_ylabel(r'$\ [SO_2] (ppb)$', fontsize=14)
ax3.set_ylabel(r'$\ [O_3] (ppb)$', fontsize=14)
ax3.set_xlabel(xlabel, fontsize=14)
# Make the ticks invisible on the first and second plots
plt.setp( ax1.get_xticklabels(), visible=False)
plt.setp( ax2.get_xticklabels(), visible=False)
# Set y min to zero just in case:
ax1.set_ylim(0,grouped['nox']['mean'].max()*1.05)
ax2.set_ylim(0,grouped['so2']['mean'].max()*1.05)
ax3.set_ylim(0,grouped['o3']['mean'].max()*1.05)
# Plot means
ax1.plot(grouped.index, grouped['nox']['mean'],'g', linewidth=2.0)
ax2.plot(grouped.index, grouped['so2']['mean'], 'r', linewidth=2.0)
ax3.plot(grouped.index, grouped['o3']['mean'], 'b', linewidth=2.0)
# If shaded=true, plot trends
if shaded == True:
ax1.plot(grouped.index, grouped['nox']['75%'],'g')
ax1.plot(grouped.index, grouped['nox']['25%'],'g')
ax1.set_ylim(0,grouped['nox']['75%'].max()*1.05)
ax1.fill_between(grouped.index, grouped['nox']['mean'], grouped['nox']['75%'], alpha=.5, facecolor='green')
ax1.fill_between(grouped.index, grouped['nox']['mean'], grouped['nox']['25%'], alpha=.5, facecolor='green')
ax2.plot(grouped.index, grouped['so2']['75%'],'r')
ax2.plot(grouped.index, grouped['so2']['25%'],'r')
ax2.set_ylim(0,grouped['so2']['75%'].max()*1.05)
ax2.fill_between(grouped.index, grouped['so2']['mean'], grouped['so2']['75%'], alpha=.5, facecolor='red')
ax2.fill_between(grouped.index, grouped['so2']['mean'], grouped['so2']['25%'], alpha=.5, facecolor='red')
ax3.plot(grouped.index, grouped['o3']['75%'],'b')
ax3.plot(grouped.index, grouped['o3']['25%'],'b')
ax3.set_ylim(0,grouped['o3']['75%'].max()*1.05)
ax3.fill_between(grouped.index, grouped['o3']['mean'], grouped['o3']['75%'], alpha=.5, facecolor='blue')
ax3.fill_between(grouped.index, grouped['o3']['mean'], grouped['o3']['25%'], alpha=.5, facecolor='blue')
# Get/Set xticks
ticks = ax1.get_xticks()
ax3.set_xticks(np.linspace(ticks[0], d.date2num(d.num2date(ticks[-1]) + dt.timedelta(hours=3)), 5))
ax3.set_xticks(np.linspace(ticks[0], d.date2num(d.num2date(ticks[-1]) + dt.timedelta(hours=3)), 25), minor=True)
ax3.xaxis.set_major_formatter(matplotlib.dates.DateFormatter('%I:%M %p'))
# Make the layout tight to get rid of some whitespace
plt.tight_layout()
plt.show()
return (fig, (ax1, ax2, ax3))
def diurnal_plot_single(data, model='', dates=[], shaded=False, color1 = 'blue',
title="Diurnal Profile of Trace Gases", xlabel="Local Time: East St. Louis, MO",
ylabel=r'$\ [NO_x] (ppb)$'):
'''
`data` should be a pandas core DataFrame with time index and each trace gas concentration as a column
returns a single plot for one of the three analyzers.
>>>diurnal_plot_single(data,model='o3', ylabel='O3', shaded=True, color1='green')
'''
# Check to make sure the data is a valid dataframe
if not isinstance(data, pd.DataFrame):
sys.exit("data is not a pandas DataFrame, thus this will not end well for you.")
# Check to make sure the model is valid
if model.lower() not in ['nox','so2','o3','sox']:
sys.exit("Model is not defined correctly: options are ['nox','so2','sox','o3']")
# Set model to predefined variable
if model.lower() == 'nox':
instr = 'nox'
elif model.lower() == 'so2' or model.lower() == 'sox':
instr = 'sox'
else:
instr = 'o3'
# If not plotting all the data, truncate the dataframe to include only the needed data
if len(dates) == 0:
# plot everything
pass
elif len(dates) == 1:
# plot just this date
data = data[dates[0]]
elif len(dates) == 2:
# plot between these dates
data = data[dates[0]:dates[1]]
else:
sys.exit("You have an error with how you defined your dates")
# Add columns for time to enable simple diurnal trends to be found
data['Time'] = data.index.map(lambda x: x.strftime("%H:%M"))
# Group the data by time and grab the statistics
grouped = data.groupby('Time').describe().unstack()
# set the index to be a str
grouped.index = pd.to_datetime(grouped.index.astype(str))
# Plot
fig, ax = plt.subplots(1, figsize=(8,4))
# Set plot titles and labels
ax.set_title(title, fontsize=14)
ax.set_ylabel(ylabel, fontsize=14, weight='bold')
ax.set_xlabel(xlabel, fontsize=14)
# Set y min to zero just in case:
ax.set_ylim(0,grouped[instr]['mean'].max()*1.05)
# Plot means
ax.plot(grouped.index, grouped[instr]['mean'], color1,linewidth=2.0)
# If shaded=true, plot trends
if shaded == True:
ax.plot(grouped.index, grouped[instr]['75%'],color1)
ax.plot(grouped.index, grouped[instr]['25%'],color1)
ax.set_ylim(0,grouped[instr]['75%'].max()*1.05)
ax.fill_between(grouped.index, grouped[instr]['mean'], grouped[instr]['75%'], alpha=.5, facecolor=color1)
ax.fill_between(grouped.index, grouped[instr]['mean'], grouped[instr]['25%'], alpha=.5, facecolor=color1)
# Get/Set xticks
ticks = ax.get_xticks()
ax.set_xticks(np.linspace(ticks[0], d.date2num(d.num2date(ticks[-1]) + dt.timedelta(hours=3)), 5))
ax.set_xticks(np.linspace(ticks[0], d.date2num(d.num2date(ticks[-1]) + dt.timedelta(hours=3)), 25), minor=True)
ax.xaxis.set_major_formatter(matplotlib.dates.DateFormatter('%I:%M %p'))
# Make the layout tight to get rid of some whitespace
plt.tight_layout()
plt.show()
return (fig, ax)
class ThermoPlot():
'''
Allows for easy plotting of internal instrument data. Currently supports the
following models:
- NO, NO2, NOx (42I)
- O3 (49I)
- SO2 (43I)
'''
def __init__(self, data):
self.data = data
def debug_plot(self, args={}):
'''
Plots thermo scientific instrument data for debugging purposes. The top plot contains internal
instrument data such as flow rates and temperatures. The bottom plot contains trace gas data for the
instrument.
instrument must be set to either nox, so2, sox, or o3
>>> nox = ThermoPlot(data)
>>> f, (a1, a2, a3) = nox.debug_plot()
'''
default_args = {
'xlabel':'Local Time, East St Louis, MO',
'ylabpressure':'Flow (LPM)',
'ylabgas':'Gas Conc. (ppb)',
'ylabtemp':'Temperature (C)',
'title_fontsize':'18',
'labels_fontsize':'14',
'grid':False
}
# Figure out what model we are trying to plot and set instrument specific default args
cols = [i.lower() for i in self.data.columns.values.tolist()]
if 'o3' in cols:
default_args['instrument'] = 'o3'
default_args['title'] = "Debug Plot for " + r'$\ O_{3} $' + ": Model 49I"
default_args['color_o3'] = 'blue'
elif 'sox' in cols or 'so2' in cols:
default_args['instrument'] = 'so2'
default_args['title'] = "Debug Plot for " + r'$\ SO_{2} $' + ": Model 43I"
default_args['color_so2'] = 'green'
elif 'nox' in cols:
default_args['instrument'] = 'nox'
default_args['title'] = "Debug Plot for " + r'$\ NO_{x} $' + ": Model 42I"
default_args['color_no'] = '#FAB923'
default_args['color_nox'] = '#FC5603'
default_args['color_no2'] = '#FAE823'
else:
sys.exit("Could not figure out what isntrument this is for")
# If kwargs are set, replace the default values
for key, val in default_args.iteritems():
if args.has_key(key):
default_args[key] = args[key]
# Set up Plot and all three axes
fig, (ax1, ax3) = plt.subplots(2, figsize=(10,6), sharex=True)
ax2 = ax1.twinx()
# set up axes labels and titles
ax1.set_title(default_args['title'], fontsize=default_args['title_fontsize'])
ax1.set_ylabel(default_args['ylabpressure'], fontsize=default_args['labels_fontsize'])
ax2.set_ylabel(default_args['ylabtemp'], fontsize=default_args['labels_fontsize'])
ax3.set_ylabel(default_args['ylabgas'], fontsize=default_args['labels_fontsize'])
ax3.set_xlabel(default_args['xlabel'], fontsize=default_args['labels_fontsize'])
# Make the ticks invisible on the first and second plots
plt.setp( ax1.get_xticklabels(), visible=False )
# Plot the debug data on the top graph
if default_args['instrument'] == 'o3':
self.data['bncht'].plot(ax=ax2, label=r'$\ T_{bench}$')
self.data['lmpt'].plot(ax=ax2, label=r'$\ T_{lamp}$')
self.data['flowa'].plot(ax=ax1, label=r'$\ Q_{A}$', style='--')
self.data['flowb'].plot(ax=ax1, label=r'$\ Q_{B}$', style='--')
self.data['o3'].plot(ax=ax3, color=default_args['color_o3'], label=r'$\ O_{3}$')
elif default_args['instrument'] == 'so2':
self.data['intt'].plot(ax=ax2, label=r'$\ T_{internal}$')
self.data['rctt'].plot(ax=ax2, label=r'$\ T_{reactor}$')
self.data['smplfl'].plot(ax=ax1, label=r'$\ Q_{sample}$', style='--')
self.data['so2'].plot(ax=ax3, label=r'$\ SO_2 $', color=default_args['color_so2'], ylim=[0,self.data['so2'].max()*1.05])
else:
m = max(self.data['convt'].max(),self.data['intt'].max(),self.data['pmtt'].max())
self.data['convt'].plot(ax=ax2, label=r'$\ T_{converter}$')
self.data['intt'].plot(ax=ax2, label=r'$\ T_{internal}$')
self.data['rctt'].plot(ax=ax2, label=r'$\ T_{reactor}$')
self.data['pmtt'].plot(ax=ax2, label=r'$\ T_{PMT}$')
self.data['smplf'].plot(ax=ax1, label=r'$\ Q_{sample}$', style='--')
self.data['ozonf'].plot(ax=ax1, label=r'$\ Q_{ozone}$', style='--')
self.data['no'].plot(ax=ax3, label=r'$\ NO $', color=default_args['color_no'])
self.data['no2'].plot(ax=ax3, label=r'$\ NO_{2}$', color=default_args['color_no2'])
self.data['nox'].plot(ax=ax3, label=r'$\ NO_{x}$', color=default_args['color_nox'], ylim=(0,math.ceil(self.data.nox.max()*1.05)))
# Legends
lines, labels = ax1.get_legend_handles_labels()
lines2, labels2 = ax2.get_legend_handles_labels()
plt.legend(lines+lines2, labels+labels2, bbox_to_anchor=(1.10, 1), loc=2, borderaxespad=0.)
ax3.legend(bbox_to_anchor=(1.10, 1.), loc=2, borderaxespad=0.)
# Hide grids?
ax1.grid(default_args['grid'])
ax2.grid(default_args['grid'])
ax3.grid(default_args['grid'])
# More of the things..
plt.tight_layout()
plt.show()
return fig, (ax1, ax2, ax3) | mit | -598,425,282,136,535,900 | 40.070988 | 141 | 0.579964 | false | 3.310774 | false | false | false |
timm/timmnix | pypy3-v5.5.0-linux64/lib-python/3/ctypes/util.py | 1 | 8948 | import sys, os
import contextlib
import subprocess
# find_library(name) returns the pathname of a library, or None.
if os.name == "nt":
def _get_build_version():
"""Return the version of MSVC that was used to build Python.
For Python 2.3 and up, the version number is included in
sys.version. For earlier versions, assume the compiler is MSVC 6.
"""
# This function was copied from Lib/distutils/msvccompiler.py
prefix = "MSC v."
i = sys.version.find(prefix)
if i == -1:
return 6
i = i + len(prefix)
s, rest = sys.version[i:].split(" ", 1)
majorVersion = int(s[:-2]) - 6
minorVersion = int(s[2:3]) / 10.0
# I don't think paths are affected by minor version in version 6
if majorVersion == 6:
minorVersion = 0
if majorVersion >= 6:
return majorVersion + minorVersion
# else we don't know what version of the compiler this is
return None
def find_msvcrt():
"""Return the name of the VC runtime dll"""
version = _get_build_version()
if version is None:
# better be safe than sorry
return None
if version <= 6:
clibname = 'msvcrt'
else:
clibname = 'msvcr%d' % (version * 10)
# If python was built with in debug mode
import importlib.machinery
if '_d.pyd' in importlib.machinery.EXTENSION_SUFFIXES:
clibname += 'd'
return clibname+'.dll'
def find_library(name):
if name in ('c', 'm'):
return find_msvcrt()
# See MSDN for the REAL search order.
for directory in os.environ['PATH'].split(os.pathsep):
fname = os.path.join(directory, name)
if os.path.isfile(fname):
return fname
if fname.lower().endswith(".dll"):
continue
fname = fname + ".dll"
if os.path.isfile(fname):
return fname
return None
if os.name == "ce":
# search path according to MSDN:
# - absolute path specified by filename
# - The .exe launch directory
# - the Windows directory
# - ROM dll files (where are they?)
# - OEM specified search path: HKLM\Loader\SystemPath
def find_library(name):
return name
if os.name == "posix" and sys.platform == "darwin":
from ctypes.macholib.dyld import dyld_find as _dyld_find
def find_library(name):
possible = ['lib%s.dylib' % name,
'%s.dylib' % name,
'%s.framework/%s' % (name, name)]
for name in possible:
try:
return _dyld_find(name)
except ValueError:
continue
return None
elif os.name == "posix":
# Andreas Degert's find functions, using gcc, /sbin/ldconfig, objdump
import re, errno
def _findLib_gcc(name):
import tempfile
expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name)
fdout, ccout = tempfile.mkstemp()
os.close(fdout)
cmd = 'if type gcc >/dev/null 2>&1; then CC=gcc; elif type cc >/dev/null 2>&1; then CC=cc;else exit 10; fi;' \
'LANG=C LC_ALL=C $CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
try:
f = os.popen(cmd)
try:
trace = f.read()
finally:
rv = f.close()
finally:
try:
os.unlink(ccout)
except OSError as e:
if e.errno != errno.ENOENT:
raise
if rv == 10:
raise OSError('gcc or cc command not found')
res = re.search(expr, trace)
if not res:
return None
return res.group(0)
if sys.platform == "sunos5":
# use /usr/ccs/bin/dump on solaris
def _get_soname(f):
if not f:
return None
cmd = "/usr/ccs/bin/dump -Lpv 2>/dev/null " + f
with contextlib.closing(os.popen(cmd)) as f:
data = f.read()
res = re.search(r'\[.*\]\sSONAME\s+([^\s]+)', data)
if not res:
return None
return res.group(1)
else:
def _get_soname(f):
# assuming GNU binutils / ELF
if not f:
return None
cmd = 'if ! type objdump >/dev/null 2>&1; then exit 10; fi;' \
"objdump -p -j .dynamic 2>/dev/null " + f
f = os.popen(cmd)
dump = f.read()
rv = f.close()
if rv == 10:
raise OSError('objdump command not found')
res = re.search(r'\sSONAME\s+([^\s]+)', dump)
if not res:
return None
return res.group(1)
if sys.platform.startswith(("freebsd", "openbsd", "dragonfly")):
def _num_version(libname):
# "libxyz.so.MAJOR.MINOR" => [ MAJOR, MINOR ]
parts = libname.split(".")
nums = []
try:
while parts:
nums.insert(0, int(parts.pop()))
except ValueError:
pass
return nums or [ sys.maxsize ]
def find_library(name):
ename = re.escape(name)
expr = r':-l%s\.\S+ => \S*/(lib%s\.\S+)' % (ename, ename)
with contextlib.closing(os.popen('/sbin/ldconfig -r 2>/dev/null')) as f:
data = f.read()
res = re.findall(expr, data)
if not res:
return _get_soname(_findLib_gcc(name))
res.sort(key=_num_version)
return res[-1]
elif sys.platform == "sunos5":
def _findLib_crle(name, is64):
if not os.path.exists('/usr/bin/crle'):
return None
if is64:
cmd = 'env LC_ALL=C /usr/bin/crle -64 2>/dev/null'
else:
cmd = 'env LC_ALL=C /usr/bin/crle 2>/dev/null'
for line in os.popen(cmd).readlines():
line = line.strip()
if line.startswith('Default Library Path (ELF):'):
paths = line.split()[4]
if not paths:
return None
for dir in paths.split(":"):
libfile = os.path.join(dir, "lib%s.so" % name)
if os.path.exists(libfile):
return libfile
return None
def find_library(name, is64 = False):
return _get_soname(_findLib_crle(name, is64) or _findLib_gcc(name))
else:
def _findSoname_ldconfig(name):
import struct
if struct.calcsize('l') == 4:
machine = os.uname().machine + '-32'
else:
machine = os.uname().machine + '-64'
mach_map = {
'x86_64-64': 'libc6,x86-64',
'ppc64-64': 'libc6,64bit',
'sparc64-64': 'libc6,64bit',
's390x-64': 'libc6,64bit',
'ia64-64': 'libc6,IA-64',
}
abi_type = mach_map.get(machine, 'libc6')
# XXX assuming GLIBC's ldconfig (with option -p)
regex = os.fsencode(
'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type))
try:
with subprocess.Popen(['/sbin/ldconfig', '-p'],
stdin=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
stdout=subprocess.PIPE,
env={'LC_ALL': 'C', 'LANG': 'C'}) as p:
res = re.search(regex, p.stdout.read())
if res:
return os.fsdecode(res.group(1))
except OSError:
pass
def find_library(name):
return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
################################################################
# test code
def test():
from ctypes import cdll
if os.name == "nt":
print(cdll.msvcrt)
print(cdll.load("msvcrt"))
print(find_library("msvcrt"))
if os.name == "posix":
# find and load_version
print(find_library("m"))
print(find_library("c"))
print(find_library("bz2"))
# getattr
## print cdll.m
## print cdll.bz2
# load
if sys.platform == "darwin":
print(cdll.LoadLibrary("libm.dylib"))
print(cdll.LoadLibrary("libcrypto.dylib"))
print(cdll.LoadLibrary("libSystem.dylib"))
print(cdll.LoadLibrary("System.framework/System"))
else:
print(cdll.LoadLibrary("libm.so"))
print(cdll.LoadLibrary("libcrypt.so"))
print(find_library("crypt"))
if __name__ == "__main__":
test()
| mit | 3,323,634,384,645,102,000 | 32.639098 | 118 | 0.486142 | false | 3.87695 | true | false | false |
ForeverWintr/ImageClassipy | clouds/tests/util/util.py | 1 | 1283 | """
Test utils
"""
import tempfile
import PIL
import numpy as np
from clouds.util.constants import HealthStatus
def createXors(tgt):
#create test xor images
xorIn = [
((255, 255, 255, 255), HealthStatus.GOOD),
((255, 255, 0, 0), HealthStatus.CLOUDY),
((0, 0, 0, 0), HealthStatus.GOOD),
((0, 0, 255, 255), HealthStatus.CLOUDY),
]
xorImages = []
for ar, expected in xorIn:
npar = np.array(ar, dtype=np.uint8).reshape(2, 2)
image = PIL.Image.fromarray(npar)
#pybrain needs a lot of test input. We'll make 20 of each image
for i in range(20):
path = tempfile.mktemp(suffix=".png", prefix='xor_', dir=tgt)
image.save(path)
xorImages.append((path, expected))
return xorImages
class MockStream(object):
def __init__(self, inputQueue):
"""
A class used as a replacement for stream objects. As data are recieved on the inputQueue,
make them available to `readline`.
"""
self.q = inputQueue
def read(self):
return [l for l in self.readline()]
def readline(self):
"""
Block until an item appears in the queue.
"""
return self.q.get()
def close(self):
pass
| mit | -8,206,075,774,888,230,000 | 24.156863 | 97 | 0.58067 | false | 3.665714 | false | false | false |
klahnakoski/jx-sqlite | vendor/mo_logs/__init__.py | 1 | 15837 | # encoding: utf-8
#
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Contact: Kyle Lahnakoski ([email protected])
#
from __future__ import absolute_import, division, unicode_literals
import os
import platform
import sys
from datetime import datetime
from mo_dots import Data, FlatList, coalesce, is_data, is_list, listwrap, unwraplist, wrap
from mo_future import PY3, is_text, text
from mo_logs import constants, exceptions, strings
from mo_logs.exceptions import Except, LogItem, suppress_exception
from mo_logs.strings import CR, indent
_Thread = None
if PY3:
STDOUT = sys.stdout.buffer
else:
STDOUT = sys.stdout
class Log(object):
"""
FOR STRUCTURED LOGGING AND EXCEPTION CHAINING
"""
trace = False
main_log = None
logging_multi = None
profiler = None # simple pypy-friendly profiler
error_mode = False # prevent error loops
@classmethod
def start(cls, settings=None):
"""
RUN ME FIRST TO SETUP THE THREADED LOGGING
http://victorlin.me/2012/08/good-logging-practice-in-python/
log - LIST OF PARAMETERS FOR LOGGER(S)
trace - SHOW MORE DETAILS IN EVERY LOG LINE (default False)
cprofile - True==ENABLE THE C-PROFILER THAT COMES WITH PYTHON (default False)
USE THE LONG FORM TO SET THE FILENAME {"enabled": True, "filename": "cprofile.tab"}
profile - True==ENABLE pyLibrary SIMPLE PROFILING (default False) (eg with Profiler("some description"):)
USE THE LONG FORM TO SET FILENAME {"enabled": True, "filename": "profile.tab"}
constants - UPDATE MODULE CONSTANTS AT STARTUP (PRIMARILY INTENDED TO CHANGE DEBUG STATE)
"""
global _Thread
if not settings:
return
settings = wrap(settings)
Log.stop()
cls.settings = settings
cls.trace = coalesce(settings.trace, False)
if cls.trace:
from mo_threads import Thread as _Thread
_ = _Thread
# ENABLE CPROFILE
if settings.cprofile is False:
settings.cprofile = {"enabled": False}
elif settings.cprofile is True:
if isinstance(settings.cprofile, bool):
settings.cprofile = {"enabled": True, "filename": "cprofile.tab"}
if settings.cprofile.enabled:
from mo_threads import profiles
profiles.enable_profilers(settings.cprofile.filename)
if settings.profile is True or (is_data(settings.profile) and settings.profile.enabled):
Log.error("REMOVED 2018-09-02, Activedata revision 3f30ff46f5971776f8ba18")
# from mo_logs import profiles
#
# if isinstance(settings.profile, bool):
# profiles.ON = True
# settings.profile = {"enabled": True, "filename": "profile.tab"}
#
# if settings.profile.enabled:
# profiles.ON = True
if settings.constants:
constants.set(settings.constants)
logs = coalesce(settings.log, settings.logs)
if logs:
cls.logging_multi = StructuredLogger_usingMulti()
for log in listwrap(logs):
Log.add_log(Log.new_instance(log))
from mo_logs.log_usingThread import StructuredLogger_usingThread
cls.main_log = StructuredLogger_usingThread(cls.logging_multi)
@classmethod
def stop(cls):
"""
DECONSTRUCTS ANY LOGGING, AND RETURNS TO DIRECT-TO-stdout LOGGING
EXECUTING MULUTIPLE TIMES IN A ROW IS SAFE, IT HAS NO NET EFFECT, IT STILL LOGS TO stdout
:return: NOTHING
"""
main_log, cls.main_log = cls.main_log, StructuredLogger_usingStream(STDOUT)
main_log.stop()
@classmethod
def new_instance(cls, settings):
settings = wrap(settings)
if settings["class"]:
if settings["class"].startswith("logging.handlers."):
from mo_logs.log_usingHandler import StructuredLogger_usingHandler
return StructuredLogger_usingHandler(settings)
else:
with suppress_exception:
from mo_logs.log_usingLogger import make_log_from_settings
return make_log_from_settings(settings)
# OH WELL :(
if settings.log_type == "logger":
from mo_logs.log_usingLogger import StructuredLogger_usingLogger
return StructuredLogger_usingLogger(settings)
if settings.log_type == "file" or settings.file:
return StructuredLogger_usingFile(settings.file)
if settings.log_type == "file" or settings.filename:
return StructuredLogger_usingFile(settings.filename)
if settings.log_type == "console":
from mo_logs.log_usingThreadedStream import StructuredLogger_usingThreadedStream
return StructuredLogger_usingThreadedStream(STDOUT)
if settings.log_type == "mozlog":
from mo_logs.log_usingMozLog import StructuredLogger_usingMozLog
return StructuredLogger_usingMozLog(STDOUT, coalesce(settings.app_name, settings.appname))
if settings.log_type == "stream" or settings.stream:
from mo_logs.log_usingThreadedStream import StructuredLogger_usingThreadedStream
return StructuredLogger_usingThreadedStream(settings.stream)
if settings.log_type == "elasticsearch" or settings.stream:
from mo_logs.log_usingElasticSearch import StructuredLogger_usingElasticSearch
return StructuredLogger_usingElasticSearch(settings)
if settings.log_type == "email":
from mo_logs.log_usingEmail import StructuredLogger_usingEmail
return StructuredLogger_usingEmail(settings)
if settings.log_type == "ses":
from mo_logs.log_usingSES import StructuredLogger_usingSES
return StructuredLogger_usingSES(settings)
if settings.log_type.lower() in ["nothing", "none", "null"]:
from mo_logs.log_usingNothing import StructuredLogger
return StructuredLogger()
Log.error("Log type of {{log_type|quote}} is not recognized", log_type=settings.log_type)
@classmethod
def add_log(cls, log):
cls.logging_multi.add_log(log)
@classmethod
def note(
cls,
template,
default_params={},
stack_depth=0,
log_context=None,
**more_params
):
"""
:param template: *string* human readable string with placeholders for parameters
:param default_params: *dict* parameters to fill in template
:param stack_depth: *int* how many calls you want popped off the stack to report the *true* caller
:param log_context: *dict* extra key:value pairs for your convenience
:param more_params: *any more parameters (which will overwrite default_params)
:return:
"""
timestamp = datetime.utcnow()
if not is_text(template):
Log.error("Log.note was expecting a unicode template")
Log._annotate(
LogItem(
context=exceptions.NOTE,
format=template,
template=template,
params=dict(default_params, **more_params)
),
timestamp,
stack_depth+1
)
@classmethod
def unexpected(
cls,
template,
default_params={},
cause=None,
stack_depth=0,
log_context=None,
**more_params
):
"""
:param template: *string* human readable string with placeholders for parameters
:param default_params: *dict* parameters to fill in template
:param cause: *Exception* for chaining
:param stack_depth: *int* how many calls you want popped off the stack to report the *true* caller
:param log_context: *dict* extra key:value pairs for your convenience
:param more_params: *any more parameters (which will overwrite default_params)
:return:
"""
timestamp = datetime.utcnow()
if not is_text(template):
Log.error("Log.warning was expecting a unicode template")
if isinstance(default_params, BaseException):
cause = default_params
default_params = {}
if "values" in more_params.keys():
Log.error("Can not handle a logging parameter by name `values`")
params = Data(dict(default_params, **more_params))
cause = unwraplist([Except.wrap(c) for c in listwrap(cause)])
trace = exceptions.get_stacktrace(stack_depth + 1)
e = Except(exceptions.UNEXPECTED, template=template, params=params, cause=cause, trace=trace)
Log._annotate(
e,
timestamp,
stack_depth+1
)
@classmethod
def alarm(
cls,
template,
default_params={},
stack_depth=0,
log_context=None,
**more_params
):
"""
:param template: *string* human readable string with placeholders for parameters
:param default_params: *dict* parameters to fill in template
:param stack_depth: *int* how many calls you want popped off the stack to report the *true* caller
:param log_context: *dict* extra key:value pairs for your convenience
:param more_params: more parameters (which will overwrite default_params)
:return:
"""
timestamp = datetime.utcnow()
format = ("*" * 80) + CR + indent(template, prefix="** ").strip() + CR + ("*" * 80)
Log._annotate(
LogItem(
context=exceptions.ALARM,
format=format,
template=template,
params=dict(default_params, **more_params)
),
timestamp,
stack_depth + 1
)
alert = alarm
@classmethod
def warning(
cls,
template,
default_params={},
cause=None,
stack_depth=0,
log_context=None,
**more_params
):
"""
:param template: *string* human readable string with placeholders for parameters
:param default_params: *dict* parameters to fill in template
:param cause: *Exception* for chaining
:param stack_depth: *int* how many calls you want popped off the stack to report the *true* caller
:param log_context: *dict* extra key:value pairs for your convenience
:param more_params: *any more parameters (which will overwrite default_params)
:return:
"""
timestamp = datetime.utcnow()
if not is_text(template):
Log.error("Log.warning was expecting a unicode template")
if isinstance(default_params, BaseException):
cause = default_params
default_params = {}
if "values" in more_params.keys():
Log.error("Can not handle a logging parameter by name `values`")
params = Data(dict(default_params, **more_params))
cause = unwraplist([Except.wrap(c) for c in listwrap(cause)])
trace = exceptions.get_stacktrace(stack_depth + 1)
e = Except(exceptions.WARNING, template=template, params=params, cause=cause, trace=trace)
Log._annotate(
e,
timestamp,
stack_depth+1
)
@classmethod
def error(
cls,
template, # human readable template
default_params={}, # parameters for template
cause=None, # pausible cause
stack_depth=0,
**more_params
):
"""
raise an exception with a trace for the cause too
:param template: *string* human readable string with placeholders for parameters
:param default_params: *dict* parameters to fill in template
:param cause: *Exception* for chaining
:param stack_depth: *int* how many calls you want popped off the stack to report the *true* caller
:param log_context: *dict* extra key:value pairs for your convenience
:param more_params: *any more parameters (which will overwrite default_params)
:return:
"""
if not is_text(template):
sys.stderr.write(str("Log.error was expecting a unicode template"))
Log.error("Log.error was expecting a unicode template")
if default_params and isinstance(listwrap(default_params)[0], BaseException):
cause = default_params
default_params = {}
params = Data(dict(default_params, **more_params))
add_to_trace = False
if cause == None:
causes = None
elif is_list(cause):
causes = []
for c in listwrap(cause): # CAN NOT USE LIST-COMPREHENSION IN PYTHON3 (EXTRA STACK DEPTH FROM THE IN-LINED GENERATOR)
causes.append(Except.wrap(c, stack_depth=1))
causes = FlatList(causes)
elif isinstance(cause, BaseException):
causes = Except.wrap(cause, stack_depth=1)
else:
causes = None
Log.error("can only accept Exception, or list of exceptions")
trace = exceptions.get_stacktrace(stack_depth + 1)
if add_to_trace:
cause[0].trace.extend(trace[1:])
e = Except(context=exceptions.ERROR, template=template, params=params, cause=causes, trace=trace)
raise_from_none(e)
@classmethod
def _annotate(
cls,
item,
timestamp,
stack_depth
):
"""
:param itemt: A LogItemTHE TYPE OF MESSAGE
:param stack_depth: FOR TRACKING WHAT LINE THIS CAME FROM
:return:
"""
item.timestamp = timestamp
item.machine = machine_metadata
item.template = strings.limit(item.template, 10000)
item.format = strings.limit(item.format, 10000)
if item.format == None:
format = text(item)
else:
format = item.format.replace("{{", "{{params.")
if not format.startswith(CR) and format.find(CR) > -1:
format = CR + format
if cls.trace:
log_format = item.format = "{{machine.name}} (pid {{machine.pid}}) - {{timestamp|datetime}} - {{thread.name}} - \"{{location.file}}:{{location.line}}\" - ({{location.method}}) - " + format
f = sys._getframe(stack_depth + 1)
item.location = {
"line": f.f_lineno,
"file": text(f.f_code.co_filename),
"method": text(f.f_code.co_name)
}
thread = _Thread.current()
item.thread = {"name": thread.name, "id": thread.id}
else:
log_format = item.format = "{{timestamp|datetime}} - " + format
cls.main_log.write(log_format, item.__data__())
def write(self):
raise NotImplementedError
def _same_frame(frameA, frameB):
return (frameA.line, frameA.file) == (frameB.line, frameB.file)
# GET THE MACHINE METADATA
machine_metadata = wrap({
"pid": os.getpid(),
"python": text(platform.python_implementation()),
"os": text(platform.system() + platform.release()).strip(),
"name": text(platform.node())
})
def raise_from_none(e):
raise e
if PY3:
exec("def raise_from_none(e):\n raise e from None\n", globals(), locals())
from mo_logs.log_usingFile import StructuredLogger_usingFile
from mo_logs.log_usingMulti import StructuredLogger_usingMulti
from mo_logs.log_usingStream import StructuredLogger_usingStream
if not Log.main_log:
Log.main_log = StructuredLogger_usingStream(STDOUT)
| mpl-2.0 | -3,171,591,599,001,485,000 | 35.916084 | 200 | 0.612111 | false | 4.150157 | false | false | false |
inside-track/pemi | pemi/fields.py | 1 | 7300 | import decimal
import datetime
import json
from functools import wraps
import dateutil
import pemi.transforms
__all__ = [
'StringField',
'IntegerField',
'FloatField',
'DateField',
'DateTimeField',
'BooleanField',
'DecimalField',
'JsonField'
]
BLANK_DATE_VALUES = ['null', 'none', 'nan', 'nat']
class CoercionError(ValueError): pass
class DecimalCoercionError(ValueError): pass
def convert_exception(fun):
@wraps(fun)
def wrapper(self, value):
try:
coerced = fun(self, value)
except Exception as err:
raise CoercionError('Unable to coerce value "{}" to {}: {}: {}'.format(
value,
self.__class__.__name__,
err.__class__.__name__,
err
))
return coerced
return wrapper
#pylint: disable=too-few-public-methods
class Field:
'''
A field is a thing that is inherited
'''
def __init__(self, name=None, **metadata):
self.name = name
self.metadata = metadata
default_metadata = {'null': None}
self.metadata = {**default_metadata, **metadata}
self.null = self.metadata['null']
@convert_exception
def coerce(self, value):
raise NotImplementedError
def __str__(self):
return '<{} {}>'.format(self.__class__.__name__, self.__dict__.__str__())
def __eq__(self, other):
return type(self) is type(other) \
and self.metadata == other.metadata \
and self.name == other.name
class StringField(Field):
def __init__(self, name=None, **metadata):
metadata['null'] = metadata.get('null', '')
super().__init__(name=name, **metadata)
@convert_exception
def coerce(self, value):
if pemi.transforms.isblank(value):
return self.null
return str(value).strip()
class IntegerField(Field):
def __init__(self, name=None, **metadata):
super().__init__(name=name, **metadata)
self.coerce_float = self.metadata.get('coerce_float', False)
@convert_exception
def coerce(self, value):
if pemi.transforms.isblank(value):
return self.null
if self.coerce_float:
return int(float(value))
return int(value)
class FloatField(Field):
@convert_exception
def coerce(self, value):
if pemi.transforms.isblank(value):
return self.null
return float(value)
class DateField(Field):
def __init__(self, name=None, **metadata):
super().__init__(name=name, **metadata)
self.format = self.metadata.get('format', '%Y-%m-%d')
self.infer_format = self.metadata.get('infer_format', False)
@convert_exception
def coerce(self, value):
if hasattr(value, 'strip'):
value = value.strip()
if pemi.transforms.isblank(value) or (
isinstance(value, str) and value.lower() in BLANK_DATE_VALUES):
return self.null
return self.parse(value)
def parse(self, value):
if isinstance(value, datetime.datetime):
return value.date()
if isinstance(value, datetime.date):
return value
if not self.infer_format:
return datetime.datetime.strptime(value, self.format).date()
return dateutil.parser.parse(value).date()
class DateTimeField(Field):
def __init__(self, name=None, **metadata):
super().__init__(name=name, **metadata)
self.format = self.metadata.get('format', '%Y-%m-%d %H:%M:%S')
self.infer_format = self.metadata.get('infer_format', False)
@convert_exception
def coerce(self, value):
if hasattr(value, 'strip'):
value = value.strip()
if pemi.transforms.isblank(value) or (
isinstance(value, str) and value.lower() in BLANK_DATE_VALUES):
return self.null
return self.parse(value)
def parse(self, value):
if isinstance(value, datetime.datetime):
return value
if isinstance(value, datetime.date):
return datetime.datetime.combine(value, datetime.time.min)
if not self.infer_format:
return datetime.datetime.strptime(value, self.format)
return dateutil.parser.parse(value)
class BooleanField(Field):
# when defined, the value of unknown_truthiness is used when no matching is found
def __init__(self, name=None, **metadata):
super().__init__(name=name, **metadata)
self.true_values = self.metadata.get(
'true_values',
['t', 'true', 'y', 'yes', 'on', '1']
)
self.false_values = self.metadata.get(
'false_values',
['f', 'false', 'n', 'no', 'off', '0']
)
@convert_exception
def coerce(self, value):
if hasattr(value, 'strip'):
value = value.strip()
if isinstance(value, bool):
return value
if pemi.transforms.isblank(value):
return self.null
return self.parse(value)
def parse(self, value):
value = str(value).lower()
if value in self.true_values:
return True
if value in self.false_values:
return False
if 'unknown_truthiness' in self.metadata:
return self.metadata['unknown_truthiness']
raise ValueError('Not a boolean value')
class DecimalField(Field):
def __init__(self, name=None, **metadata):
super().__init__(name=name, **metadata)
self.precision = self.metadata.get('precision', 16)
self.scale = self.metadata.get('scale', 2)
self.truncate_decimal = self.metadata.get('truncate_decimal', False)
self.enforce_decimal = self.metadata.get('enforce_decimal', True)
@convert_exception
def coerce(self, value):
if pemi.transforms.isblank(value):
return self.null
return self.parse(value)
def parse(self, value):
dec = decimal.Decimal(str(value))
if dec != dec: #pylint: disable=comparison-with-itself
return dec
if self.truncate_decimal:
dec = round(dec, self.scale)
if self.enforce_decimal:
detected_precision = len(dec.as_tuple().digits)
detected_scale = -dec.as_tuple().exponent
if detected_precision > self.precision:
msg = ('Decimal coercion error for "{}". ' \
+ 'Expected precision: {}, Actual precision: {}').format(
dec, self.precision, detected_precision
)
raise DecimalCoercionError(msg)
if detected_scale > self.scale:
msg = ('Decimal coercion error for "{}". ' \
+ 'Expected scale: {}, Actual scale: {}').format(
dec, self.scale, detected_scale
)
raise DecimalCoercionError(msg)
return dec
class JsonField(Field):
@convert_exception
def coerce(self, value):
if pemi.transforms.isblank(value):
return self.null
try:
return json.loads(value)
except TypeError:
return value
#pylint: enable=too-few-public-methods
| mit | -8,599,383,492,297,377,000 | 28.918033 | 85 | 0.574521 | false | 4.133635 | false | false | false |
ijat/Hotspot-PUTRA-Auto-login | PyInstaller-3.2/PyInstaller/hooks/hook-PyQt5.QtWebEngineWidgets.py | 1 | 2207 | #-----------------------------------------------------------------------------
# Copyright (c) 2014-2016, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
import os
from PyInstaller.utils.hooks import get_qmake_path
import PyInstaller.compat as compat
hiddenimports = ["sip",
"PyQt5.QtCore",
"PyQt5.QtGui",
"PyQt5.QtNetwork",
"PyQt5.QtWebChannel",
]
# Find the additional files necessary for QtWebEngine.
# Currently only implemented for OSX.
# Note that for QtWebEngineProcess to be able to find icudtl.dat the bundle_identifier
# must be set to 'org.qt-project.Qt.QtWebEngineCore'. This can be done by passing
# bundle_identifier='org.qt-project.Qt.QtWebEngineCore' to the BUNDLE command in
# the .spec file. FIXME: This is not ideal and a better solution is required.
qmake = get_qmake_path('5')
if qmake:
libdir = compat.exec_command(qmake, "-query", "QT_INSTALL_LIBS").strip()
if compat.is_darwin:
binaries = [
(os.path.join(libdir, 'QtWebEngineCore.framework', 'Versions', '5',\
'Helpers', 'QtWebEngineProcess.app', 'Contents', 'MacOS', 'QtWebEngineProcess'),
os.path.join('QtWebEngineProcess.app', 'Contents', 'MacOS'))
]
resources_dir = os.path.join(libdir, 'QtWebEngineCore.framework', 'Versions', '5', 'Resources')
datas = [
(os.path.join(resources_dir, 'icudtl.dat'),''),
(os.path.join(resources_dir, 'qtwebengine_resources.pak'), ''),
# The distributed Info.plist has LSUIElement set to true, which prevents the
# icon from appearing in the dock.
(os.path.join(libdir, 'QtWebEngineCore.framework', 'Versions', '5',\
'Helpers', 'QtWebEngineProcess.app', 'Contents', 'Info.plist'),
os.path.join('QtWebEngineProcess.app', 'Contents'))
]
| gpl-3.0 | 6,505,215,117,670,279,000 | 44.040816 | 106 | 0.589488 | false | 4.027372 | false | false | false |
loli/medpy | bin/medpy_diff.py | 1 | 3675 | #!/usr/bin/env python
"""
Compares the pixel values of two images and gives a measure of the difference.
Copyright (C) 2013 Oskar Maier
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>."""
# build-in modules
import sys
import argparse
import logging
# third-party modules
import scipy
# path changes
# own modules
from medpy.core import Logger
from medpy.io import load
from functools import reduce
# information
__author__ = "Oskar Maier"
__version__ = "r0.1.0, 2012-05-25"
__email__ = "[email protected]"
__status__ = "Release"
__description__ = """
Compares the pixel values of two images and gives a measure of the difference.
Also compares the dtype and shape.
Copyright (C) 2013 Oskar Maier
This program comes with ABSOLUTELY NO WARRANTY; This is free software,
and you are welcome to redistribute it under certain conditions; see
the LICENSE file or <http://www.gnu.org/licenses/> for details.
"""
# code
def main():
args = getArguments(getParser())
# prepare logger
logger = Logger.getInstance()
if args.debug: logger.setLevel(logging.DEBUG)
elif args.verbose: logger.setLevel(logging.INFO)
# load input image1
data_input1, _ = load(args.input1)
# load input image2
data_input2, _ = load(args.input2)
# compare dtype and shape
if not data_input1.dtype == data_input2.dtype: print('Dtype differs: {} to {}'.format(data_input1.dtype, data_input2.dtype))
if not data_input1.shape == data_input2.shape:
print('Shape differs: {} to {}'.format(data_input1.shape, data_input2.shape))
print('The voxel content of images of different shape can not be compared. Exiting.')
sys.exit(-1)
# compare image data
voxel_total = reduce(lambda x, y: x*y, data_input1.shape)
voxel_difference = len((data_input1 != data_input2).nonzero()[0])
if not 0 == voxel_difference:
print('Voxel differ: {} of {} total voxels'.format(voxel_difference, voxel_total))
print('Max difference: {}'.format(scipy.absolute(data_input1 - data_input2).max()))
else: print('No other difference.')
logger.info("Successfully terminated.")
def getArguments(parser):
"Provides additional validation of the arguments collected by argparse."
return parser.parse_args()
def getParser():
"Creates and returns the argparse parser object."
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument('input1', help='Source volume one.')
parser.add_argument('input2', help='Source volume two.')
parser.add_argument('-v', dest='verbose', action='store_true', help='Display more information.')
parser.add_argument('-d', dest='debug', action='store_true', help='Display debug information.')
parser.add_argument('-f', dest='force', action='store_true', help='Silently override existing output images.')
return parser
if __name__ == "__main__":
main() | gpl-3.0 | 8,040,638,095,303,360,000 | 35.76 | 128 | 0.673469 | false | 3.955867 | false | false | false |
alphagov/stagecraft | stagecraft/apps/dashboards/models/dashboard.py | 1 | 14599 | from __future__ import unicode_literals
import uuid
from django.core.validators import RegexValidator
from django.db import models
from stagecraft.apps.organisation.models import Node
from stagecraft.apps.users.models import User
from django.db.models.query import QuerySet
def list_to_tuple_pairs(elements):
return tuple([(element, element) for element in elements])
class DashboardManager(models.Manager):
def by_tx_id(self, tx_id):
filter_string = '"service_id:{}"'.format(tx_id)
return self.raw('''
SELECT DISTINCT dashboards_dashboard.*
FROM dashboards_module
INNER JOIN dashboards_dashboard ON
dashboards_dashboard.id = dashboards_module.dashboard_id,
json_array_elements(query_parameters::json->'filter_by') AS filters
WHERE filters::text = %s
AND data_set_id=(SELECT id FROM datasets_dataset
WHERE name='transactional_services_summaries')
AND dashboards_dashboard.status='published'
''', [filter_string])
def get_query_set(self):
return QuerySet(self.model, using=self._db)
def for_user(self, user):
return self.get_query_set().filter(owners=user)
class Dashboard(models.Model):
objects = DashboardManager()
id = models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True)
slug_validator = RegexValidator(
'^[-a-z0-9]+$',
message='Slug can only contain lower case letters, numbers or hyphens'
)
slug = models.CharField(
max_length=1000,
unique=True,
validators=[
slug_validator
]
)
owners = models.ManyToManyField(User)
dashboard_types = [
'transaction',
'high-volume-transaction',
'service-group',
'agency',
'department',
'content',
'other',
]
customer_types = [
'',
'Business',
'Individuals',
'Business and individuals',
'Charity',
]
business_models = [
'',
'Department budget',
'Fees and charges',
'Taxpayers',
'Fees and charges, and taxpayers',
]
straplines = [
'Dashboard',
'Service dashboard',
'Content dashboard',
'Performance',
'Policy dashboard',
'Public sector purchasing dashboard',
'Topic Explorer',
'Service Explorer',
]
dashboard_type = models.CharField(
max_length=30,
choices=list_to_tuple_pairs(dashboard_types),
default=dashboard_types[0]
)
page_type = models.CharField(max_length=80, default='dashboard')
status = models.CharField(
max_length=30,
default='unpublished'
)
title = models.CharField(max_length=256)
description = models.CharField(max_length=500, blank=True)
description_extra = models.CharField(max_length=400, blank=True)
costs = models.CharField(max_length=1500, blank=True)
other_notes = models.CharField(max_length=1000, blank=True)
customer_type = models.CharField(
max_length=30,
choices=list_to_tuple_pairs(customer_types),
default=customer_types[0],
blank=True
)
business_model = models.CharField(
max_length=31,
choices=list_to_tuple_pairs(business_models),
default=business_models[0],
blank=True
)
# 'department' is not being considered for now
# 'agency' is not being considered for now
improve_dashboard_message = models.BooleanField(default=True)
strapline = models.CharField(
max_length=40,
choices=list_to_tuple_pairs(straplines),
default=straplines[0]
)
tagline = models.CharField(max_length=400, blank=True)
_organisation = models.ForeignKey(
'organisation.Node', blank=True, null=True,
db_column='organisation_id')
@property
def published(self):
return self.status == 'published'
@published.setter
def published(self, value):
if value is True:
self.status = 'published'
else:
self.status = 'unpublished'
@property
def organisation(self):
return self._organisation
@organisation.setter
def organisation(self, node):
self.department_cache = None
self.agency_cache = None
self.service_cache = None
self.transaction_cache = None
self._organisation = node
if node is not None:
for n in node.get_ancestors(include_self=True):
if n.typeOf.name == 'department':
self.department_cache = n
elif n.typeOf.name == 'agency':
self.agency_cache = n
elif n.typeOf.name == 'service':
self.service_cache = n
elif n.typeOf.name == 'transaction':
self.transaction_cache = n
# Denormalise org tree for querying ease.
department_cache = models.ForeignKey(
'organisation.Node', blank=True, null=True,
related_name='dashboards_owned_by_department')
agency_cache = models.ForeignKey(
'organisation.Node', blank=True, null=True,
related_name='dashboards_owned_by_agency')
service_cache = models.ForeignKey(
'organisation.Node', blank=True, null=True,
related_name='dashboards_owned_by_service')
transaction_cache = models.ForeignKey(
'organisation.Node', blank=True, null=True,
related_name='dashboards_owned_by_transaction')
spotlightify_base_fields = [
'business_model',
'costs',
'customer_type',
'dashboard_type',
'description',
'description_extra',
'other_notes',
'page_type',
'published',
'slug',
'strapline',
'tagline',
'title'
]
list_base_fields = [
'slug',
'title',
'dashboard_type'
]
@classmethod
def list_for_spotlight(cls):
dashboards = Dashboard.objects.filter(status='published')\
.select_related('department_cache', 'agency_cache',
'service_cache')
def spotlightify_for_list(item):
return item.spotlightify_for_list()
return {
'page-type': 'browse',
'items': map(spotlightify_for_list, dashboards),
}
def spotlightify_for_list(self):
base_dict = self.list_base_dict()
if self.department_cache is not None:
base_dict['department'] = self.department_cache.spotlightify()
if self.agency_cache is not None:
base_dict['agency'] = self.agency_cache.spotlightify()
if self.service_cache is not None:
base_dict['service'] = self.service_cache.spotlightify()
return base_dict
def spotlightify_base_dict(self):
base_dict = {}
for field in self.spotlightify_base_fields:
base_dict[field.replace('_', '-')] = getattr(self, field)
return base_dict
def list_base_dict(self):
base_dict = {}
for field in self.list_base_fields:
base_dict[field.replace('_', '-')] = getattr(self, field)
return base_dict
def related_pages_dict(self):
related_pages_dict = {}
transaction_link = self.get_transaction_link()
if transaction_link:
related_pages_dict['transaction'] = (
transaction_link.serialize())
related_pages_dict['other'] = [
link.serialize() for link
in self.get_other_links()
]
related_pages_dict['improve-dashboard-message'] = (
self.improve_dashboard_message
)
return related_pages_dict
def spotlightify(self, request_slug=None):
base_dict = self.spotlightify_base_dict()
base_dict['modules'] = self.spotlightify_modules()
base_dict['relatedPages'] = self.related_pages_dict()
if self.department():
base_dict['department'] = self.spotlightify_department()
if self.agency():
base_dict['agency'] = self.spotlightify_agency()
modules_or_tabs = get_modules_or_tabs(request_slug, base_dict)
return modules_or_tabs
def serialize(self):
def simple_field(field):
return not (field.is_relation or field.one_to_one or (
field.many_to_one and field.related_model))
serialized = {}
fields = self._meta.get_fields()
field_names = [field.name for field in fields
if simple_field(field)]
for field in field_names:
if not (field.startswith('_') or field.endswith('_cache')):
value = getattr(self, field)
serialized[field] = value
if self.status == 'published':
serialized['published'] = True
else:
serialized['published'] = False
if self.organisation:
serialized['organisation'] = Node.serialize(self.organisation)
else:
serialized['organisation'] = None
serialized['links'] = [link.serialize()
for link in self.link_set.all()]
serialized['modules'] = self.serialized_modules()
return serialized
def __str__(self):
return self.slug
def serialized_modules(self):
return [m.serialize()
for m in self.module_set.filter(parent=None).order_by('order')]
def spotlightify_modules(self):
return [m.spotlightify() for m in
self.module_set.filter(parent=None).order_by('order')]
def spotlightify_agency(self):
return self.agency().spotlightify()
def spotlightify_department(self):
return self.department().spotlightify()
def update_transaction_link(self, title, url):
transaction_link = self.get_transaction_link()
if not transaction_link:
self.link_set.create(
title=title,
url=url,
link_type='transaction'
)
else:
link = transaction_link
link.title = title
link.url = url
link.save()
def add_other_link(self, title, url):
self.link_set.create(
title=title,
url=url,
link_type='other'
)
def get_transaction_link(self):
transaction_link = self.link_set.filter(link_type='transaction')
if len(transaction_link) == 1:
return transaction_link[0]
else:
return None
def get_other_links(self):
return self.link_set.filter(link_type='other').all()
def validate_and_save(self):
self.full_clean()
self.save()
class Meta:
app_label = 'dashboards'
def organisations(self):
department = None
agency = None
if self.organisation is not None:
for node in self.organisation.get_ancestors(include_self=False):
if node.typeOf.name == 'department':
department = node
if node.typeOf.name == 'agency':
agency = node
return department, agency
def agency(self):
if self.organisation is not None:
if self.organisation.typeOf.name == 'agency':
return self.organisation
for node in self.organisation.get_ancestors():
if node.typeOf.name == 'agency':
return node
return None
def department(self):
if self.agency() is not None:
dept = None
for node in self.agency().get_ancestors(include_self=False):
if node.typeOf.name == 'department':
dept = node
return dept
else:
if self.organisation is not None:
for node in self.organisation.get_ancestors():
if node.typeOf.name == 'department':
return node
return None
class Link(models.Model):
id = models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True)
title = models.CharField(max_length=100)
url = models.URLField(max_length=200)
dashboard = models.ForeignKey(Dashboard)
link_types = [
'transaction',
'other',
]
link_type = models.CharField(
max_length=20,
choices=list_to_tuple_pairs(link_types),
)
def link_url(self):
return '<a href="{0}">{0}</a>'.format(self.url)
link_url.allow_tags = True
def serialize(self):
return {
'title': self.title,
'type': self.link_type,
'url': self.url
}
class Meta:
app_label = 'dashboards'
def get_modules_or_tabs(request_slug, dashboard_json):
# first part will always be empty as we never end the dashboard slug with
# a slash
if request_slug is None:
return dashboard_json
module_slugs = request_slug.replace(
dashboard_json['slug'], '').split('/')[1:]
if len(module_slugs) == 0:
return dashboard_json
if 'modules' not in dashboard_json:
return None
modules = dashboard_json['modules']
for slug in module_slugs:
module = find_first_item_matching_slug(modules, slug)
if module is None:
return None
elif module['modules']:
modules = module['modules']
dashboard_json['modules'] = [module]
elif 'tabs' in module:
last_slug = module_slugs[-1]
if last_slug == slug:
dashboard_json['modules'] = [module]
else:
tab_slug = last_slug.replace(slug + '-', '')
tab = get_single_tab_from_module(tab_slug, module)
if tab is None:
return None
else:
tab['info'] = module['info']
tab['title'] = module['title'] + ' - ' + tab['title']
dashboard_json['modules'] = [tab]
break
else:
dashboard_json['modules'] = [module]
dashboard_json['page-type'] = 'module'
return dashboard_json
def get_single_tab_from_module(tab_slug, module_json):
return find_first_item_matching_slug(module_json['tabs'], tab_slug)
def find_first_item_matching_slug(item_list, slug):
for item in item_list:
if item['slug'] == slug:
return item
| mit | -177,456,948,202,694,270 | 30.875546 | 81 | 0.575108 | false | 4.125177 | false | false | false |
ottermegazord/ottermegazord.github.io | onexi/data_processing/s05_genPlots.py | 1 | 1460 | import pandas as pd
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import os
import pdb
import sys
plt.style.use("ggplot")
os.chdir("..")
ipath = "./Data/Final_Data/"
ifile = "Final_Data"
opath = "./Data/Final_Data/Neighborhoods/"
imgpath = "./Plots/Neighborhood_TS/"
ext = ".csv"
input_var = raw_input("Run mode (analysis/plot): ")
if input_var == "analysis":
df = pd.read_csv(ipath + ifile + ext, low_memory=False)
df2 = df.groupby(["TIME", "NEIGHBORHOOD"]).mean().unstack()
time = df["TIME"].unique().tolist()
nhood = df["NEIGHBORHOOD"].unique().tolist()
nhood = [x for x in nhood if str(x) != 'nan']
for n in nhood:
mean = []
for t in time:
mean.append(df2.loc[t, ("AV_PER_SQFT", n)])
out_df = pd.DataFrame({'TIME': time, 'MEAN_AV_PER_SQFT': mean})
out_df.to_csv(opath + n + ext, index=False)
elif input_var == "plot":
def makePlot(x, y, xlabel, ylabel, title, filename):
x_pos = [i for i, _ in enumerate(x)]
plt.bar(x_pos, y, color='green')
plt.ylabel(ylabel)
plt.xlabel(xlabel)
plt.title(title)
plt.xticks(x_pos, x, fontsize=8)
plt.savefig(filename, bbox_inches="tight", dpi=300)
plt.close()
nhood_files = os.listdir(opath)
for f in nhood_files:
nhood = f[:-4]
df = pd.read_csv(opath + f, low_memory=False)
makePlot(x=df["TIME"].tolist(), y=df["MEAN_AV_PER_SQFT"].tolist(), ylabel="AVG LAND VALUE ($/sqft)", xlabel="TIME (year)", title=nhood, filename=imgpath + nhood +".png")
| mit | 1,006,559,307,171,647,600 | 27.076923 | 171 | 0.650685 | false | 2.570423 | false | false | false |
Subsets and Splits