kni_socketcommands: 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/kni_socketcommands - from package: libkni3-examples

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