sg_rmsn: 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_rmsn - 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_rmsn - from package: sg3-utils

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