@@ -1,8 +1,8 @@
#!/bin/bash
# Inventory System
# Author: Carsten Schoene
-# $LastChangedDate: 2012-11-01 21:23:16 +0100 (Thu, 01 Nov 2012) $
-# $Rev: 4204 $
+# $LastChangedDate: 2012-11-07 17:54:40 +0100 (Wed, 07 Nov 2012) $
+# $Rev: 4263 $
#
# Default options (can be changed by inventory-system.conf)
DEBUG="yes"
@@ -406,6 +406,18 @@
echo ${SYSMANUF}
}
+# get express service code for dell systems
+function get_system_dell_express_service_code {
+ [ "`is_disabled $FUNCNAME`" == "1" ] && return
+ if [ -n "`get_system_manufacturer | grep -i dell`" ] ; then
+ ST=`get_system_serial`
+ if [ -n "${ST}" ] ; then
+ EC=$((36#${ST}))
+ debug "SYSTEM-DELL-EXPRESS-SERVICE-CODE: ${EC}"
+ echo "${EC}"
+ fi
+ fi
+}
# get system bios version
function get_system_biosversion {
[ "`is_disabled $FUNCNAME`" == "1" ] && return
@@ -617,6 +629,7 @@
get_system_cpu \
get_system_memory \
get_system_manufacturer \
+ get_system_dell_express_service_code \
get_system_productname \
get_system_biosversion \
get_system_net_info \
|
@@ -1,6 +1,6 @@
<?php
-$config["isdf"]["postvars"] = array("get_system_uuid","get_system_serial","get_system_cpu","get_system_memory","get_system_manufacturer","get_system_productname","get_system_biosversion","get_system_net_info","get_system_default_ip","get_system_ipv4","get_system_ipv6","get_system_hostname","get_system_mgmt_mac","get_system_mgmt_ip","get_system_type","get_system_kernelversion","get_system_arch","get_system_os","get_system_software","get_system_date","get_system_disk_size_bootdev","get_system_disk_sizes");
+$config["isdf"]["postvars"] = array("get_system_uuid","get_system_serial","get_system_cpu","get_system_memory","get_system_manufacturer","get_system_productname","get_system_biosversion","get_system_net_info","get_system_default_ip","get_system_ipv4","get_system_ipv6","get_system_hostname","get_system_mgmt_mac","get_system_mgmt_ip","get_system_type","get_system_kernelversion","get_system_arch","get_system_os","get_system_software","get_system_date","get_system_disk_size_bootdev","get_system_disk_sizes","get_system_dell_express_service_code");
$config["isdf"]["dhcp"]["macblacklist"] = array("00:00:00:00:00:00","ff:ff:ff:ff:ff:ff");
$config["isdf"]["dhcp"]["intblacklist"] = array("virbr0");
|