hp-firmware: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/hp-firmware - from package: hplip

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/hp-firmware - from package: hplip

You may install the required package with command apt-get install {package}
Error in other languages:
hp-firmware: bevel nie gevind nie
hp-firmware: comandă negăsită
hp-firmware: comando não encontrado
hp-firmware: commande introuvable
hp-firmware: command not found
hp-firmware: käsku ei ole
hp-firmware: không tìm thấy lệnh
hp-firmware: komanda nerasta
hp-firmware: Kommando nicht gefunden.
hp-firmware: kommandot finns inte
hp-firmware: komut yok
hp-firmware: nie znaleziono polecenia
hp-firmware: níor aimsíodh an t-ordú
hp-firmware: no se encontró la orden
hp-firmware: no s'ha trobat l'ordre
hp-firmware: opdracht niet gevonden
hp-firmware: parancs nem található
hp-firmware: perintah tidak ditemukan
hp-firmware: príkaz nenájdený
hp-firmware: příkaz nenalezen
hp-firmware: команда не найдена
hp-firmware: командата не е открита
hp-firmware: 命令找不到
hp-firmware: コマンドが見つかりません