#
# settings for SmartClient inventar2ldap.pl
#
# $Id: inventar2ldap 2 2010-01-19 14:09:19Z joergs $
#

#
# inventarisation of single integers
#   command must return TRUE or FALSE
#

# floppy drive
INVENTAR2LDAP_InventarBoolean01="bash -c 'if hwinfo --floppy  | grep -q -i "floppy"; then printf "TRUE"; else printf "FALSE"; fi'"



#
# inventarisation of single integers
#

# CPU speed
INVENTAR2LDAP_InventarInteger01="hwinfo --cpu | sed -n 's/\s*Clock:\s*\([0-9]*\)\s*.*/\1/p'"

# RAM
INVENTAR2LDAP_InventarInteger02="hwinfo --memory | sed -n 's/\s*Memory Size:\s*\([0-9]*\)\s*.*/\1/p'"

# harddisk size
# get harddisk detected during netboot
INVENTAR2LDAP_InventarInteger03="source /var/lib/smartclient/netboot_vars; /usr/bin/calc_disc_size.pl $SC_DISK_DEV"



#
# inventarisation of single strings
#
INVENTAR2LDAP_InventarString01="/sbin/lspci"
INVENTAR2LDAP_InventarString02="/bin/cat /proc/cpuinfo"
INVENTAR2LDAP_InventarString03="hwinfo --monitor"
INVENTAR2LDAP_InventarString04="hwinfo --cdrom | grep 'Model:\|Device File:\|Features:'"

#
# inventarisation of multi values
#
INVENTAR2LDAP_InventarStringMulti01="rpm -qa"
INVENTAR2LDAP_InventarStringMulti02="df --local --print-type --exclude-type=tmpfs --human-readable | sed -n '2,$p'"
