xpstat: 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/xpstat - from package: expectk

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

On Debian possible default full paths are:

/usr/bin/xpstat - from package: expect

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