-
Notifications
You must be signed in to change notification settings - Fork 6
Simple wrapper(filter) for StorCLI utility
License
slystopad/storcli-wrapper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
usage: storcli_wrapper.py [-h] [--pd-list | --vd-list | --pd-count | --vd-count | --missing-count | --sample-config] [--file FILE] [--storcli-version] Parser for LSI Storage Command Line Tool optional arguments: -h, --help show this help message and exit --pd-list Get status of Physical Drives (default mode) --vd-list Get status of Virtual Drives --pd-count Get number of Physical Drives --vd-count Get number of Virtual Drives --missing-count Get number of Missing(failed) drives --sample-config Show example config for Telegraf --file FILE JSON file to get data from file instead of getting it from controller. Usually you don't need this option --storcli-version Get version and location of storcli tool The tool is simple wrapper around Storage Command Line Tool. It is intended to be run by Telegraf `exec` input module to collect metrics for Physical Drives (PD) and Virtual Drives (VD/RAID arrays) connected to LSI controllers known to Storage Command Line Tool (StorCLI). Actually it works as simple filter to normalize data it gets from StorCLI. It run StorCLI utility to get data from controller. The tool looks for StorCLI binary in the following directories: current directory /opt/MegaRAID/storcli $PATH Tested with folowing RAID controllers: LSI 3108 MegaRAID Cisco 12G SAS Modular Raid Controller and Storage Command Line Tool Ver 1.03.11 Jan 30, 2013 Storage Command Line Tool Ver 007.0205.0000.0000 March 27, 2017 Links: Telegraf https://docs.influxdata.com/telegraf/ StorCLI https://www.broadcom.com/support/download-search (search by `storcli`) Limitations: only one controller is supported at the time --sample-config is broken must be run via `sudo` If you receive 65534 as disk state please open bug and provide example of storcli output Known issues: with some combination of storcli version and controller you may get an error as shown below or similar. Try to use another version of storcli and feel free to open bug for storcli-wrapper. Got error from controller: { "Status": "Failure", "Detailed Status": [ { "Status": "Failed", "ErrCd": 255, "ErrMsg": "Failed to get Controller information", "Ctrl": 0 } ], "Controller": 0, "Description": "None" } Credits: https://medium.com/@lcx_at for storcli `J` option
About
Simple wrapper(filter) for StorCLI utility
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published