You might find this interesting

Or I might be wrong

Parsing HP - RHEL System Information via SSH

| Comments

I’m often asked to give specifications quickly for systems I manage. I don’t often know this off the top of my head… that’s what computers are for.

This script assumes a few things:

  • You are running the script against an HP system with hpacucli installed
  • It’s running against RHEL 5 or 6.

You can likely adapt it to fit your needs. ┬áIt’s pretty simple, but gives a quick rundown of what most people ask about. Here’s the output:

`System Info
Model Name: ProLiant DL380 G6`

CPU Info
Model Name: Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
Physical CPUs: 2
Cores per CPU: 4
Total Processing Cores: 8
Total Threads (including HT): 16

Memory Info
Installed Memory: 72 GB
Total Memory Slots: 18
Memory Type: DDR3
Memory Speed: 1333 MHz
Memory Size(s):
4096 MB (18)

Disk Info
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (136.7 GB, RAID 1, OK)
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
array B (SAS, Unused Space: 0 MB)
logicaldrive 2 (279.4 GB, RAID 1, OK)
physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 300 GB, OK)
physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 300 GB, OK)

Software Information
Operating System: Red Hat Enterprise Linux Server release 6.3 (Santiago)

And here’s the script:

[gist id=“4982876”]