oscap: 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/oscap - from package: openscap-scanner

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

On Debian possible default full paths are:

/usr/bin/oscap - from package: libopenscap8

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