@@ -1,8 +1,8 @@
#!/bin/bash
# Inventory System
# Author: Carsten Schoene
-# $LastChangedDate: 2012-07-20 17:07:50 +0200 (Fri, 20 Jul 2012) $
-# $Rev: 1618 $
+# $LastChangedDate: 2012-07-21 10:21:33 +0200 (Sat, 21 Jul 2012) $
+# $Rev: 1621 $
#
# Default options (can be changed by inventory-system.conf)
DEBUG="yes"
@@ -127,7 +127,7 @@
if [ "${TYPE}" == "" ] ; then
TYPE="baremetal"
fi
- debug "SYSTEM-TYOE: ${TYPE}"
+ debug "SYSTEM-TYPE: ${TYPE}"
echo ${TYPE}
else
debug "VIRT-WHAT ERROR: ${RETVAL}"
@@ -277,14 +277,13 @@
${MODPROBE} ipmi_si 2>/dev/null
${IPMITOOL} lan print 1 2>&1 >/dev/null
if [ $? == 0 ] ; then
- IP=`${IPMITOOL} lan print 1 | ${GREP} -E '(^IP Address) ' | ${AWK} '{print $NF}'`
+ MGMTIP=`${IPMITOOL} lan print 1 | ${GREP} -E '(^IP Address) ' | ${AWK} '{print $NF}'`
fi
if [ -z "${IP}" ] ; then
- IP="none"
+ MGMTIP="none"
fi
- debug "SYSTEM-MGMT-IP: ${IP}"
- echo ${IP}
-
+ debug "SYSTEM-MGMT-IP: ${MGMTIP}"
+ echo ${MGMTIP}
}
# get rpm package list
|