pagsh: 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/lib/heimdal/bin/pagsh - from package: heimdal-workstation

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