Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Apr 19, 2024 3:51 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Mon Oct 20, 2008 8:36 pm 
Offline
Newbie

Joined: Tue Oct 14, 2008 8:31 pm
Posts: 28
I'm not sure if that applies to ALL VMWare-based systems, or just to my SuSE 11.0 32-bit that is hosted on a 64-bit Linux server.

lshal does not return any smbios information on my VMWare appliance.

Solution: if smbios.system.uuid is empty, use system.hardware.uuid instead. That does exist on my VMWare guest.


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 21, 2008 10:05 am 
Offline
Contributor

Joined: Fri Jul 04, 2008 6:46 am
Posts: 153
Location: USA - WI
This root cause seems to be because some HAL keys were deprecated after a certain version. See ... http://dkukawka.blogspot.com/2008/02/ha ... -keys.html

I modified my audit_linux.sh script to account for it by checking the HAL version then using the deprecated key if it's using an old HAL...

[code]
OA_Trace "Auditor..."

# Audit Information

case $uuid_type in
uuid)
if [ "$OA_HAL_MISSING" != "yes" ] && ! echo "$HAL_VERSION" | $OA_GREP -qE "0\.[0-5]\.([0-9]|10)\.[0-9]"; then
UUID=$($OA_HAL_GET --udi $PC --key system.hardware.uuid)
elif [ "$OA_HAL_MISSING" != "yes" ] && echo "$HAL_VERSION" | $OA_GREP -qE "0\.[0-5]\.([0-9]|10)\.[0-9]"; then
UUID=$($OA_HAL_GET --udi $PC --key smbios.system.uuid)
elif [ "$OA_DMIDECODE_MISSING" != "yes" ]; then
UUID=$($OA_DMIDECODE --string system-uuid)
fi;;
mac)
UUID=$($OA_IFCONFIG eth0 | $OA_AWK '/HWaddr/{print $5}');;
*)
UUID="$HOSTNAME.$NET_DOMAIN";;
esac

# If it fails to set the UUID somehow, set a failsafe one.
if [ "$UUID" = "" ]; then
UUID="$HOSTNAME.$NET_DOMAIN"
fi

AUDIT_DATE="$($OA_DATE +%Y%m%d)$($OA_DATE +%H%M%S)"
DATE="$($OA_DATE +%d/%m/%Y)$($OA_DATE +%H:%M:%S)"
AUDIT_USER=$($OA_WHOAMI)

echo "audit^^^$HOSTNAME^^^$AUDIT_DATE^^^$UUID^^^$AUDIT_USER^^^y^^^y^^^" >> $ReportFile
[/code]

_________________
OA Server: Debian Squeeze w/ Apache2
Auditing: 700 Workstations, 250 or so Retail Terminals, about 75 Servers
OS's: Windows XP/2003/2008/2008 R2/Vista/7, Debian
LDAP: Active Directory 2008 R2


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group