Coder Social home page Coder Social logo

1741816447 / svcstats.py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mezantrop/svcstats.py

0.0 2.0 0.0 46 KB

Report IBM SVC/Storwize storage system detailed performance statistics in CLI

Home Page: https://mezzantrop.wordpress.com/portfolio/svcstats-py/

Shell 30.22% CSS 2.56% Python 67.22%

svcstats.py's Introduction

svcstats.py

svcstats.py - Report IBM SVC/Storwize storage system performance statistics for nodes, vdisks, mdisks or drives in CLI using SMI-S interface

Installation

Download all files, then run: python3 setup.py install

Virtual environment installation

In order not to modify system python3 environment, you may consider virtual environment.

mkdir svcstats
cd svcstats
# Copy all svcstats.py files into svcstats directory
python3 -m venv venv
source venv/bin/activate
(venv) python3 setup.py install

If you have installed svcstats.py into a virtual environment, do not forget to activate it with "source /path/to/venv/bin/activate" command, for each session you are running svcstats.py.

  • Requires Python 3 with 'pywbem' module
  • Before running svcstats.py, enable statistic on SVC/Storwize system: svctask startstats -interval <1-60 minutes>
Usage:
    svcstats.py -n|-v|-m|-d -a address -u user -p password [-f minutes] [-ht]

Options:
    -n, -v, -m or -d
option -q not recognized 
Show nodes, vdisks, mdisks or drives performance statistics.

    -a address -u user -p password
Valid IP/DNS address, username and passwors to connect with IBM SVC/Storwize storage system
    [-f minutes]
Optional report frequency interval. Must not be less then default "StatisticsFrequency" value.
    [-h]
Disable column headers.
    [-t]
Show report date/time creation timestamp on the storage system

IBM SVC/Storwize CIM agent documentation

scstat_ssh.py - Report IBM SVC/Storwize Cluster-level performance statistics using SSH

Requires:

  • Python 3
  • paramiko module
Usage:
	scstat_ssh.py -a address -u user -p password [-f seconds][-s count][-o stat|csv][-z]

Options:
	-a address -u user -p password
Valid IP/DNS address, username and password to connect with IBM SVC/Storwize storage system
	[-f seconds]
Report frequency interval: 1 to 60 seconds. Default is 5
	[-s count]
Stop statistic collection after "count" times and exit
	[-o stat|csv]
Output format style. Default is "stat"
	[-z]
Show lines with zero values

scstat.sh - Report IBM SVC/Storwize Cluster-level performance statistics using SSH (light version)

  • Requires keys for SSH authorisation or use SSH wrapper
Usage:
 scstat.sh <user> <target>

2rrd/2rrd_scstat-controller.sh

An example script to feed RRD database with IBM SVC/Storwize Controller level statistics and create a simple HTML report

svcstats.py's People

Contributors

mezantrop avatar

Watchers

 avatar  avatar

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.