|
Last change
on this file since 1466 was 1331, checked in by Bruno Cornec, 14 years ago |
|
Adds a new proliantusbkey project
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | clear
|
|---|
| 4 | echo "*** Deploying Configuration ***"
|
|---|
| 5 |
|
|---|
| 6 | HWDISC_FILE=/tmp/hpdiscovery.xml
|
|---|
| 7 | export TMPDIR=$(mktemp -t -d liveusb.XXXXXX)
|
|---|
| 8 | mount -t vfat /dev/disk/by-label/LiveUSB $TMPDIR
|
|---|
| 9 |
|
|---|
| 10 | echo ""
|
|---|
| 11 | echo "Loading storage drivers for hardware"
|
|---|
| 12 | ./load_modules.sh
|
|---|
| 13 |
|
|---|
| 14 | echo ""
|
|---|
| 15 | echo "Pausing to allow drivers to finish loading"
|
|---|
| 16 | sleep 15
|
|---|
| 17 | echo ""
|
|---|
| 18 |
|
|---|
| 19 | ## rerun hardware discovery
|
|---|
| 20 | ./hpdiscovery -f ${HWDISC_FILE}
|
|---|
| 21 | echo "Hardware Discovery saved to ${HWDISC_FILE}"
|
|---|
| 22 |
|
|---|
| 23 | ## use hwquery to fetch the SystemName from hardware discovery file. ( extra " " are required )
|
|---|
| 24 | export "`./hwquery ${HWDISC_FILE} allboards.xml SERVERTYPE=SystemName`";
|
|---|
| 25 |
|
|---|
| 26 | echo "Server Type: ${SERVERTYPE}"
|
|---|
| 27 |
|
|---|
| 28 | ./conrep -l -f${TMPDIR}/data_files/conrep.dat
|
|---|
| 29 | if [ $? = 0 ] ; then
|
|---|
| 30 | echo "System Configuration data_files/conrep.dat APPLIED"
|
|---|
| 31 | else
|
|---|
| 32 | echo "System Configuration data_files/conrep.dat FAILED"
|
|---|
| 33 | fi
|
|---|
| 34 |
|
|---|
| 35 | ./ifhw ${HWDISC_FILE} allboards.xml "PCI:Smart Array" 2> /dev/null
|
|---|
| 36 | if [ $? = 0 ] ; then
|
|---|
| 37 | hpacuscripting -reset -i ${TMPDIR}/data_files/cpqacuxe.dat
|
|---|
| 38 | if [ $? = 0 ] ; then
|
|---|
| 39 | echo "Array Configuration data_files/cpqacuxe.dat APPLIED"
|
|---|
| 40 | else
|
|---|
| 41 | echo "Array Configuration data_files/cpqacuxe.dat FAILED"
|
|---|
| 42 | fi
|
|---|
| 43 | else
|
|---|
| 44 | echo "No Smart Array detected, no ACU Configuration applied."
|
|---|
| 45 | fi
|
|---|
| 46 |
|
|---|
| 47 | ./ifhw ${HWDISC_FILE} allboards.xml "PCI:Integrated Lights-Out" 2> /dev/null
|
|---|
| 48 | if [ $? = 0 ] ; then
|
|---|
| 49 | modprobe hpilo
|
|---|
| 50 | hponcfg -f ${TMPDIR}/data_files/hponcfg.dat
|
|---|
| 51 | if [ $? = 0 ] ; then
|
|---|
| 52 | echo "Integrated Lights-Out Configuration data_files/hponcfg.dat APPLIED"
|
|---|
| 53 | fi
|
|---|
| 54 | fi
|
|---|
| 55 |
|
|---|
| 56 | ./stop.sh
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.