HP SSA CLI on Debian 11

Zaczynamy 🙂

HPE Public Keys
It is suggested that you enroll all keys to verify current and older versions of packages hosted in SDR repositories:

      hpPublicKey2048.pub	for packages published during 2014	fingerprint: 5CE2D476
      hpPublicKey2048_key1.pub	for packages published during 2015	fingerprint: B1275EA3
      hpePublicKey2048_key1.pub	for packages published after 2015	fingerprint: 26C2B797

Możemy zainstalować wszystkie klucze 😉

curl http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -

Czas na repo od HP

root@debian:~# vi /etc/apt/sources.list.d/mcp.list

Musimy tam wstawić poniższa zawartość, podstawiając pod dist/project_ver właściwe wartości:

Where:

   dist             bullseye, focal, buster, bionic, xenial, precise, stretch, jessie
   project_ver      current, 12.20, 12.05, 12.00, 11.30, 11.21, 11.05

Np.

root@debian:~# cat /etc/apt/sources.list.d/mcp.list
# HPE Management Component Pack
deb http://downloads.linux.hpe.com/SDR/repo/mcp bullseye/current non-free


Czas na aktualizacje źródeł

root@debian:~# apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Ign:2 http://downloads.linux.hpe.com/SDR/repo/mcp bullseye/current InRelease
Get:3 http://downloads.linux.hpe.com/SDR/repo/mcp bullseye/current Release [6,053 B]
Get:4 http://downloads.linux.hpe.com/SDR/repo/mcp bullseye/current Release.gpg [490 B]
Get:5 http://downloads.linux.hpe.com/SDR/repo/mcp bullseye/current/non-free amd64 Packages [2,224 B]
Fetched 8,767 B in 1s (6,644 B/s)
Reading package lists... Done

Gotowe, wiec czas na HP SSA CLI

root@debian:~# apt-get install ssacli
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libeatmydata1
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  ssacli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.3 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://downloads.linux.hpe.com/SDR/repo/mcp bullseye/current/non-free amd64 ssacli amd64 5.10-44.0 [11.3 MB]
Fetched 11.3 MB in 31s (369 kB/s)
Selecting previously unselected package ssacli.
(Reading database ... 77295 files and directories currently installed.)
Preparing to unpack .../ssacli_5.10-44.0_amd64.deb ...
Unpacking ssacli (5.10-44.0) ...
Setting up ssacli (5.10-44.0) ...
Processing triggers for man-db (2.9.4-2) ...

Sprawdźmy czy działa 🙂

root@debian:~# ssacli ctrl all show

Smart Array P420 in Slot 7                (sn: PDSXK0ARH4ZXXX)
Smart Array P420 in Slot 9                (sn: PDSXK0ARH4XXXX)

Działa 🙂