Open-AudIT
http://www.open-audit.org/phpBB3/

[help] audit_esxi.sh /bi: not found
http://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6424
Page 1 of 1

Author:  shanimal [ Wed Apr 08, 2015 12:59 am ]
Post subject:  [help] audit_esxi.sh /bi: not found

I've used snmp scans for the esxi servers and have never been able to successfully use the audit script. When I try to use the latest version 1.6.2 I get "/bi: not found" errors (see attached screenshot which halts the script, and nothing ever gets uploaded to the server. Any ideas? thanks

Attachments:
audit_esxi.jpg
audit_esxi.jpg [ 109.07 KiB | Viewed 2693 times ]

Author:  Mark [ Wed Apr 08, 2015 12:29 pm ]
Post subject:  Re: [help] audit_esxi.sh /bi: not found

What version of ESXi are you running?
On line 466 of audit_esxi.sh, can you replace
Code:
start_time=$(timer)

with
Code:
start_time=`timer`

Then re-run the script and see if line 466 generates an error.

Author:  shanimal [ Wed Apr 08, 2015 11:57 pm ]
Post subject:  Re: [help] audit_esxi.sh /bi: not found

Running esxi 5 update 3 aka Releasebuild-1311175

I made the change, the error didn't change

Attachments:
audit_esxi2.jpg
audit_esxi2.jpg [ 132.46 KiB | Viewed 2673 times ]

Author:  Mark [ Fri Apr 10, 2015 8:50 am ]
Post subject:  Re: [help] audit_esxi.sh /bi: not found

That's weird. I can't see why it would do that.
If anyone else has any idea's, now would be a nice time to chime in.
I "might" be able to run up an image of the same version and test it.

Author:  shanimal [ Thu Jun 25, 2015 12:22 am ]
Post subject:  Re: [help] audit_esxi.sh /bi: not found

Checking into this further. Looking at the esxi audit script OA_DMIDECODE

Code:
OA_DMIDECODE=`which dmidecode 2>/dev/null`
   if [ "$OA_DMIDECODE" = "" ] || [ "$OA_DMIDECODE" = " " ] || [ -z "$OA_DMIDECODE" ]; then
      if [ -f "/usr/local/sbin/dmidecode" ]; then
         OA_DMIDECODE="/usr/local/sbin/dmidecode"
      fi
   fi


On our esxi 5 hosts the location of sbin is /usr/sbin (not /usr/local/sbin) attached (sbin.JPG) are the files found at /usr/sbin

According to ablogpost I found http://nutanix.blogspot.com/2013/06/esxi-kvm-commands-equivalent.html smbiosDump is an alternative to dmidecode

Attachments:
sbin.JPG
sbin.JPG [ 94.26 KiB | Viewed 2415 times ]

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/