HP ProLiant Server

Install repository

echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp bionic/current non-free" | sudo tee /etc/apt/sources.list.d/hp-nonfree.list
curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | sudo apt-key add -
sudo apt update
sudo apt-get install -y hponcfg
 
cat <<EOF> /tmp/update_firmware.xml
<RIBCL VERSION="2.0">
    <LOGIN USER_LOGIN="${BMC_USER}" PASSWORD="${BMC_PASS}">
        <RIB_INFO MODE="write">
            <UPDATE_RIB_FIRMWARE IMAGE_LOCATION="http://${ARCHIVE_HOST}/ilo4_270.bin" />
        </RIB_INFO>
    </LOGIN>
</RIBCL>
EOF

MicroServer Gen8
http://www.hardwareluxx.de/community/f101/hp-proliant-g8-g1610t-g2020t-i3-3240-e3-1220lv2-microserver-963207.html#download

HP Tools repository
https://downloads.linux.hpe.com/SDR/project/mcp/

HP Tools (install with pip)
https://pypi.org/project/proliantutils/

iLO (IPMI)
http://www.panticz.de/ilo

RAID (storage)
https://wiki.phoenixlzx.com/page/ssacli/
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03493210

# install ssacli
wget http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub -qO-| apt-key add -
apt-add-repository 'deb http://downloads.linux.hpe.com/SDR/repo/mcp bionic/current non-free'
#echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp bionic/current non-free" | sudo tee /etc/apt/sources.list.d/hp-bionic-current.list
#apt update
apt install -y ssacli
 
# show physical devices
ssacli ctrl slot=0 pd all show status
 
# show logical devices
ssacli ctrl slot=0 ld all show status
 
# enable HBA mode (if supported)
ssacli controller slot=0 modify hbamode=on forced
 
ssacli controller slot=0 show config detail
 
ssacli controller rescan
 
ssacli ctrl slot=0 ld 1 show
ssacli ctrl slot=0 ld 1 delete
 
# create raid0
ssacli ctrl slot=0 create type=ld drives=1I:1:1 raid=0
ssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0
ssacli ctrl slot=0 create type=ld drives=1I:1:3 raid=0
ssacli ctrl slot=0 create type=ld drives=1I:1:4 raid=0
ssacli ctrl slot=0 create type=ld drives=2I:1:5 raid=0
ssacli ctrl slot=0 create type=ld drives=2I:1:6 raid=0
ssacli ctrl slot=0 create type=ld drives=2I:1:7 raid=0
ssacli ctrl slot=0 create type=ld drives=2I:1:8 raid=0
 
# create
ssacli ctrl slot=0 create type=ld drives=1I:1:1 #raid=0 forced

sas cli
https://wiki.phoenixlzx.com/page/ssacli/

hponcfg
https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_5ab6295f49964f16a699064f29

Ansible
- name: Add HPE repository
apt_repository:
repo: deb http://downloads.linux.hpe.com/SDR/repo/mcp {{ ansible_distribution_release|lower }}/current non-free
update_cache: yes

Service Pack for ProLiant (SPP) download (registration required)
http://h17007.www1.hpe.com/us/en/enterprise/servers/products/service_pack/spp/index.aspx

Identify server
https://partsurfer.hpe.com/Search.aspx?SearchText=xxxx

Enable HBA storage controler
https://kb.gtkc.net/hp-smart-array-cli-commands/
https://www.busche.org/index.php/2016/07/14/hba-modus-auf-hp-p420-aktivieren/

F10
Scripting Toolkit Windows PE 64 Bit Mode

hpssacli ctrl all show config
hpssacli ctrl slot=0 ld 0 show
hpssacli ctrl slot=0 ld 0 delete
hpssacli controller slot=2 modify hbamode=on forced

Links
https://github.com/CSCfi/ansible-role-hp-spp
https://github.com/mrlesmithjr/ansible-hp-mcp