wmi: 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/wmi - from package: whereami

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