Giter Site home page Giter Site logo

sentry_cdu_dumper's Introduction

Sentry CDU Dumper

GPLv2 license Maintenance

ServerTech Sentry CDU dump power data

Options

-m regex -- match outlet name against regex and filter out non-matches

-s -- total corresponding master and slave ports such as A12 and B12

-t -- total numeric columns

Environment

PDU_PASS -- PDU password if changed from the default

Examples

$ export PDU_PASS=your_nondefault_password
$ sentry-cdu-dumper 10.24.0.112
# [ full output with no filtering or totals ]

$ sentry-cdu-dumper 10.24.0.112 -m rtbd
id      outlet_name     status  load_amps       voltage_volts   power_watts
A7      A:rtbdserv-v02-10a      On      0.45    207.8   73
B7      B:rtbdserv-v02-10a      On      0.30    206.9   43

$ sentry-cdu-dumper 10.24.0.112 -m rtbd -t
id      outlet_name     status  load_amps       voltage_volts   power_watts
A7      A:rtbdserv-v02-10a      On      0.43    207.8   71
B7      B:rtbdserv-v02-10a      On      0.30    206.9   45
N/A     SUMMED TOTALS   N/A     0.73    414.7   116    

$ sentry-cdu-dumper 10.24.0.112 -m 3 -s
id      outlet_name     status  load_amps       voltage_volts   power_watts
A3,B3   TowerA_Outlet3,TowerB_Outlet3   On,On   0.78    414.7   122
A13,B13 TowerA_Outlet13,TowerB_Outlet13 On,On   0       414.4   0
A23,B23 TowerA_Outlet23,TowerB_Outlet23 On,On   1.64    415.2   324

Useful Links

python version

The python version of the dumper script started as an effort for me to improve my python skills. It is currently at feature parity with the Perl version, but only lightly tested. If you want something with a few months more testing the Perl version is for you. But if you hate Perl or like to live on the bleeding edge, try the python version and let me know how it goes.

sentry_cdu_dumper's People

Contributors

chicks-net avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

devincharles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.