Giter VIP home page Giter VIP logo

perc-status's Introduction

perc-status

This is a simple script that takes the information about a Dell PowerEdge RAID Controller (PERC) from Dell OpenManage Server Administrator and presents that information is a more succinct way than omreport does. Its output is strongly influenced by ZFS's zpool status command.

Usage

You need to have OpenManage Server Administrator installed.

Simply run the perc-status script. If omreport isn't in your path, pass its location to the script with the -r command line parameter.

You can limit the program's output to a single controller with the -c command line parameter.

The -b command line parameter will show the bus protocol (SAS, SATA, IDE, etc.) for each physical disk. Similarly, the -m parameter will show each disk's model number.

Examples

A few examples of the script's output:

PERC H310 Mini (0)  Ready  Ok
  Virtual Disk 0 (0) at /dev/sda
    RAID-1    Ready   Ok  931.00 GiB
      0:1:0   Online  Ok  931.00 GiB
      0:1:1   Online  Ok  931.00 GiB
PERC 6/E Adapter (1)  Degraded  Non-Critical
  data (0) at /dev/sdb
    RAID-60      Ready   Ok    9.09 TiB
      Span 0
        0:0:0    Online  Ok  931.00 GiB
        0:0:1    Online  Ok  931.00 GiB
        0:0:2    Online  Ok  931.00 GiB
        0:0:3    Online  Ok  931.00 GiB
        0:0:4    Online  Ok  931.00 GiB
        0:0:5    Online  Ok  931.00 GiB
        0:0:6    Online  Ok  931.00 GiB
      Span 1
        0:0:7    Online  Ok  931.00 GiB
        0:0:8    Online  Ok  931.00 GiB
        0:0:9    Online  Ok  931.00 GiB
        0:0:10   Online  Ok  931.00 GiB
        0:0:11   Online  Ok  931.00 GiB
        0:0:12   Online  Ok  931.00 GiB
        0:0:13   Online  Ok  931.00 GiB
    Spares
      0:0:14     Ready   Ok  931.00 GiB
PERC 6/E Adapter (1)  Ready  Ok
  Virtual Disk 0 (0) at /dev/sdb
    RAID-5    Degraded    Non-Critical    8.18 TiB
      1:0:0   Online      Ok            698.12 GiB
      1:0:1   Online      Ok            698.12 GiB
      1:0:2   Online      Ok            698.12 GiB
      1:0:3   Online      Ok            698.12 GiB
      1:0:4   Online      Ok            698.12 GiB
      1:0:5   Online      Ok            698.12 GiB
      1:0:6   Online      Ok            698.12 GiB
      1:0:7   Online      Ok            698.12 GiB
      1:0:8   Online      Ok            698.12 GiB
      1:0:9   Online      Ok            698.12 GiB
      1:0:10  Online      Ok            698.12 GiB
      1:0:11  Online      Ok            698.12 GiB
      1:0:13  Rebuilding  Ok            698.12 GiB  20%
  Virtual Disk 1 (1) at /dev/sdc
    RAID-5    Ready       Ok              8.18 TiB
      0:0:0   Online      Ok            698.12 GiB
      0:0:1   Online      Ok            698.12 GiB
      0:0:2   Online      Ok            698.12 GiB
      0:0:3   Online      Ok            698.12 GiB
      0:0:4   Online      Ok            698.12 GiB
      0:0:5   Online      Ok            698.12 GiB
      0:0:6   Online      Ok            698.12 GiB
      0:0:7   Online      Ok            698.12 GiB
      0:0:8   Online      Ok            698.12 GiB
      0:0:9   Online      Ok            698.12 GiB
      0:0:10  Online      Ok            698.12 GiB
      0:0:11  Online      Ok            698.12 GiB
      0:0:12  Online      Ok            698.12 GiB
    Spares
      0:0:13  Ready       Ok            698.12 GiB
  Global Spares
    0:0:14    Ready       Ok            698.12 GiB
  Unused
    1:0:12    Clear       Ok            698.12 GiB  18%
    1:0:14    Ready       Ok            698.12 GiB

Bugs

This script relies on the undocumented XML output from omreport. Meanings of various things have been reverse engineered and are likely to be incomplete.

In particular, device states and statuses are represented as plain integers in the XML. The script contains mappings for all of the values known to the author, but there are many values still unaccounted-for.

If you run the script and it shows a value of "Unknown" with a number next to it, please email [email protected] with the output of the script and the output of omreport for the device in question. (If in doubt about the specific device, simply capture the entire output of omreport storage controller controller=_x_, where "x" is the number of the controller to which the device is attached.)

perc-status's People

Contributors

asciipip avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fcantournet

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.