HP ProLiant Server

Instlal hponcfg

#curl -s https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | sudo  apt-key add -
wget -q https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub -O-| sudo  apt-key add
 
#sudo add-apt-repository -y 'deb [arch=amd64,i386] 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-nonfree.list
 
apt update
 
# sudo apt-get install amsd
sudo apt-get install -y hponcfg 

Configure IPMI / iLo password

cat <<EOF> pass.xml
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="x" PASSWORD="x">
  <USER_INFO MODE="write">
    <MOD_USER USER_LOGIN="Administrator">
      <PASSWORD value="pa$$word"/>
    </MOD_USER>
  </USER_INFO>
  </LOGIN>
</RIBCL>
EOF
 
sudo hponcfg -f pass.xml
<code>
 
<strong>Format NAND</strong>
<code>
cat <<EOF> ResetNAND.xml 
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="Administrator" PASSWORD="xxxxx">
<RIB_INFO MODE="write">
<FORCE_FORMAT VALUE="all" />
</RIB_INFO>
</LOGIN>
</RIBCL>
EOF
 
hponcfg -f ResetNAND.xml 

Flash IPMI

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://downloads.linux.hpe.com/SDR/project/mcp/
https://wiki.phoenixlzx.com/page/ssacli/
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03493210

sudo ntpdate -u ntp.ubuntu.com 
 
# install ssacli
apt install -y gpg-agent
wget http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub -qO-| apt-key add -
https://downloads.linux.hpe.com/SDR/keys.html
#echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp bionic/current non-free" > /etc/apt/sources.list.d/hp.list
echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp jessie/current non-free" > /etc/apt/sources.list.d/hp.list
apt update
apt install -y ssacli
 
# or
wget https://downloads.linux.hpe.com/SDR/repo/mcp/pool/non-free/ssacli-6.30-8.0_amd64.deb
dpkg -i ssacli-*_amd64.deb
 
 
# 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, remove logical devices first)
ssacli controller slot=0 modify hbamode=on forced
 
ssacli controller slot=0 show config detail
 
# clear previous raid
ssacli controller slot=0 modify clearconfigdata
ssacli ctrl slot=0 pd all show 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
 
# create raid1
ssacli ctrl slot=0 create type=ld drives=1I:2:1,1I:2:2 raid=1
 
# boot volume
ssacli controller slot=0 ld 1 modify bootvolume=primary

sas cli
https://wiki.phoenixlzx.com/page/ssacli/
https://gist.github.com/mrpeardotnet/a9ce41da99936c0175600f484fa20d03

Harddrive LED

Off - Not Configured
Solid Green - Configured
Blinking Green - Rebuilding
Blinking Green\Amber - Configured & Predictive Failure
Blinking Amber - Predictive Failure
Solid Amber - Failed

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

IPMI

# Enable IPMI remote access
Administration > IPMI/DCMI over LAN Access > "IPMI/DCMI over LAN Access"

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