For those here who are running Ubuntu Linux 16.04 or HiveOS on HP Servers here is how to install HP Support Software and access very useful data from those servers:
Open Shellinabox to the HiveOS server or on Ubuntu go to a command line prompt:
Do the following commands/editing:
Hint: for those using Shellinabox rather than typing it is easier to copy (CTRL C) the text then right click in the Shellinabox and select "Paste from Browser"
#1 sudo mc
#1a go to /etc/apt/sources.list.d directory
#1b touch hp-proliant-support-pack.list
#1c add this line into the above file: deb
http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu xenial/current non-free
#1d F2 to save file, F10 to exit edit, F10 to exit MC
#2: sudo apt-get update
#3: sudo apt-get install hpsmh hp-snmp-agents hp-smh-templates hponcfg hp-health
Now you can access server data using the HPASMCLI Commands
HP ProLiant Servers - HPASMCLI Commands
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03474917To access the power consumption readings on a server running a Linux operating system (OS), sum the “Power” data from all power supplies that are present. The Linux command below will return the power supply data needed:
hpasmcli -s "show powersupply"
This is an example from one of my HP DL580 G7 Servers:
root@dl580_g7_1:~# hpasmcli -s "show powersupply"
Power supply #1
Present : Yes
Redundant: No
Condition: Ok
Hotplug : Supported
Power : 390 Watts
Power supply #2
Present : Yes
Redundant: No
Condition: Ok
Hotplug : Supported
Power : 425 Watts
Power supply #3
Power Supply not present
Power supply #4
Power Supply not present
I currently am on 120 VAC so these power supplies can only supply 900 watts. The above 815 watts is too close to that limit so I am running the system using the "Balanced Power Mode" which shares load between the power supplies.
When I get these on 240 VAC the power supplies can supply 1200 watts each so I will switch to "High Efficiency Mode" which will pull power from only one supply and have the other in redundant very low power mode. This will save me some watts. I like that I can use this command to see my power usage even when running on 240 VAC.
Another interesting feature is that when you switch mining algorithms or add additional GPUs you can see the power usage differences. I have two of my HP DL580's using 8x GTX 750's while one still only has four GTX 750's. The power difference between them is 170 watts so I know that each GTX 750 is using 42.5 watts.
Original details on how to do this was found here:
Install HP Support Software in your Ubuntu Server
https://thejoyofstick.com/blog/2013/04/28/install-hp-support-software-in-your-ubuntu-server/I modified the above to fix installation errors.
Other interesting HP commands:
hpasmcli -s "show temp"
hpasmcli -s "show IML"
hpasmcli -s "show fans"
Note: doing this command: hpasmcli -s "clear IML"
will cause a "*** buffer overflow detected ***: hpasmcli terminated " and stack trace but does clear the IML log
root@dl580_g7_1:~# hpasmcli -s "show IML"
The IML Log is empty.
Clearing the log is useful if you purchased the system used. That way any issues that get logged now are from when you were using the system and not stale issues from before you had the system.