#351 Issue closed: Regression due to commit : created a new function define_HPSSACLI to find proper Smart Storage ...

Labels: bug

Florent38 opened issue at 2013-12-19 07:34:

Hi,
Running rear mkbackup -Sv

Press ENTER to include '/usr/share/rear/layout/save/GNU/Linux/27_hpraid_layout.sh' ...
ERROR: HP Smart Storage Administrator CLI not found: hpacucli nor hpssacli
Aborting due to an error, check /var/log/rear/rear-cuba13.log for details

The beginning of /usr/share/rear/layout/save/GNU/Linux/27_hpraid_layout.sh

 # Code to recreate HP SmartArray controllers

define_HPSSACLI  # call function to find proper Smart Storage Administrator CLI command - define $HPSSACLI var

Rear call the define_HPSSACLI command.

function define_HPSSACLI() {
    # HP Smart Storage Administrator CLI is either hpacucli or hpssacli
    if has_binary hpacucli ; then
        HPSSACLI=hpacucli
    elif has_binary hpssacli ; then
        HPSSACLI=hpssacli
    else
        Error "HP Smart Storage Administrator CLI not found: hpacucli nor hpssacli"
    fi
}

On my workstation :

type hpacucli
type: hpacucli : not found

type hpssacli
type: hpssacli : not found

So I always get this error message.

See 4ddb027623bf5a8885ea532540bde3ca368a0bee


[Export of Github issue for rear/rear.]