iwgetid: 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:

/sbin/iwgetid - from package: wireless-tools

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

On Debian possible default full paths are:

/sbin/iwgetid - from package: wireless-tools

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