Deploying Debian GNU/Linux with ICE-Linux

14
set `dmidecode | grep "Product ID"`
ProductID=${5:0:6}
set `dmidecode | grep "Serial Number"`
SerialNum=${3:0:11}
###########################################
#
# Make some Info for HP SIM
#
HostGUID=$ProductID$SerialNum
###########################################
# Determine OS for HP SIM
#
osname="Debian 4.0 r3 $arch"
###########################################
#
# Assign the OID Info
#
cat <<EOF2 > /etc/snmp/CntlrAgentLocation.sh
#!/bin/sh
echo .1.3.6.1.4.1.232.9.2.2.10.0
echo integer
echo 1
EOF2
cat <<EOF3 > /etc/snmp/ProductName.sh
#!/bin/sh
echo .1.3.6.1.4.1.232.2.2.4.2.0
echo string
echo "$ProductNM"
EOF3
cat <<EOF4 > /etc/snmp/MibStatusArray.sh
#!/bin/sh
echo .1.3.6.1.4.1.232.11.2.10.1.0
echo octet_str
echo "01 02 08 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 02
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
00 00 00 00 00 00 00 00 00 00"
EOF4
cat <<EOF5 > /etc/snmp/HostGUID.sh
#!/bin/sh
echo .1.3.6.1.4.1.232.11.2.10.3.0
echo string
echo "$HostGUID"
EOF5
cat <<EOF6 > /etc/snmp/OsName.sh
#!/bin/sh
echo .1.3.6.1.4.1.232.11.2.2.1.0