sg_stpg: 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/sg_stpg - from package: sg3_utils

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

On Debian possible default full paths are:

/usr/bin/sg_stpg - from package: sg3-utils

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