pkcs11_inspect: 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/pkcs11_inspect - from package: pam_pkcs11

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

On Debian possible default full paths are:

/usr/bin/pkcs11_inspect - from package: libpam-pkcs11

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