source: ProjectBuilder/projects/proliantusbkey/devel/ssstk/ilo.sh@ 1331

Last change on this file since 1331 was 1331, checked in by Bruno Cornec, 13 years ago

Adds a new proliantusbkey project

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/bash
2
3DISK_LABEL="LiveUSB"
4
5clear
6echo "*** Deploying iLO Configuration only ***"
7
8HWDISC_FILE=/tmp/hpdiscovery.xml
9export TMPDIR=$(mktemp -t -d liveusb.XXXXXX)
10mount -t vfat /dev/disk/by-label/${DISK_LABEL} $TMPDIR
11
12echo ""
13echo "Loading storage drivers for hardware"
14./load_modules.sh
15
16echo ""
17echo "Pausing to allow drivers to finish loading"
18sleep 15
19echo ""
20
21## rerun hardware discovery
22./hpdiscovery -f ${HWDISC_FILE}
23echo "Hardware Discovery saved to ${HWDISC_FILE}"
24
25## use hwquery to fetch the SystemName from hardware discovery file. ( extra " " are required )
26export "`./hwquery ${HWDISC_FILE} allboards.xml SERVERTYPE=SystemName`";
27
28echo "Server Type: ${SERVERTYPE}"
29
30./ifhw ${HWDISC_FILE} allboards.xml "PCI:Integrated Lights-Out" 2> /dev/null
31if [ $? = 0 ] ; then
32 modprobe hpilo
33 # First reset iLO to factory default
34 # hponcfg -r
35 # The apply minimal config
36 hponcfg -f ${TMPDIR}/data_files/ilo.dat
37 if [ $? = 0 ] ; then
38 echo "Integrated Lights-Out Configuration data_files/ilo.dat APPLIED"
39 fi
40fi
41./stop.sh
Note: See TracBrowser for help on using the repository browser.