snmptrapfmt: 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

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 Debian possible default full paths are:

/usr/sbin/snmptrapfmt - from package: snmptrapfmt

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