I am sure this is something environmental on my CentOS release 5.8 (Final) box's, just looking for a point in the right direction. When I run the script i receive the following output.
System Info
./audit_linux.sh: line 513: -s: command not found
./audit_linux.sh: line 517: -s: command not found
./audit_linux.sh: line 527: -s: command not found
BIOS Info
Processor Info
./audit_linux.sh: line 695: -t: command not found
./audit_linux.sh: line 718: -t: command not found
On my Ubuntu 12.0.4 TLS box's it runs perfect.
Also on the network side I receive the following.
Network Cards Info
/bin/cat: /sys/class/net/44 bond0/address: No such file or directory
audit_linux.sh: line 1028: -vms: command not found
audit_linux.sh: line 1032: -vms: command not found
audit_linux.sh: line 1042: 44 bond0: command not found
/bin/cat: /sys/class/net/44 bond0/operstate: No such file or directory
audit_linux.sh: line 1008: addr: command not found
audit_linux.sh: line 1008: addr: command not found
/bin/cat: /sys/class/net/32 bonding_masters/address: No such file or directory
audit_linux.sh: line 1028: -vms: command not found
audit_linux.sh: line 1032: -vms: command not found
audit_linux.sh: line 1042: 32 bonding_masters: command not found
/bin/cat: /sys/class/net/32 bonding_masters/operstate: No such file or directory
audit_linux.sh: line 1008: addr: command not found
audit_linux.sh: line 1008: addr: command not found
/bin/cat: /sys/class/net/50 eth0/address: No such file or directory
audit_linux.sh: line 1028: -vms: command not found
audit_linux.sh: line 1032: -vms: command not found
audit_linux.sh: line 1042: 50 eth0: command not found
/bin/cat: /sys/class/net/50 eth0/operstate: No such file or directory
audit_linux.sh: line 1008: addr: command not found
audit_linux.sh: line 1008: addr: command not found
/bin/cat: /sys/class/net/48 eth1/address: No such file or directory
audit_linux.sh: line 1028: -vms: command not found
audit_linux.sh: line 1032: -vms: command not found
audit_linux.sh: line 1042: 48 eth1: command not found
/bin/cat: /sys/class/net/48 eth1/operstate: No such file or directory
audit_linux.sh: line 1008: addr: command not found
audit_linux.sh: line 1008: addr: command not found
/bin/cat: /sys/class/net/48 eth2/address: No such file or directory
audit_linux.sh: line 1028: -vms: command not found
audit_linux.sh: line 1032: -vms: command not found
audit_linux.sh: line 1042: 48 eth2: command not found
/bin/cat: /sys/class/net/48 eth2/operstate: No such file or directory
audit_linux.sh: line 1008: addr: command not found
audit_linux.sh: line 1008: addr: command not found
/bin/cat: /sys/class/net/48 eth3/address: No such file or directory
audit_linux.sh: line 1028: -vms: command not found
audit_linux.sh: line 1032: -vms: command not found
audit_linux.sh: line 1042: 48 eth3: command not found
/bin/cat: /sys/class/net/48 eth3/operstate: No such file or directory
audit_linux.sh: line 1008: addr: command not found
audit_linux.sh: line 1008: addr: command not found
/bin/cat: /sys/class/net/48 sit0/address: No such file or directory
audit_linux.sh: line 1028: -vms: command not found
audit_linux.sh: line 1032: -vms: command not found
audit_linux.sh: line 1042: 48 sit0: command not found
/bin/cat: /sys/class/net/48 sit0/operstate: No such file or directory
audit_linux.sh: line 1008: addr: command not found
audit_linux.sh: line 1008: addr: command not found
Any help would be greatly appreciated.