source: ProjectBuilder/projects/proliantusbkey/devel/ssstk/deploy.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.5 KB
Line 
1#!/bin/bash
2
3clear
4echo "*** Deploying Configuration ***"
5
6HWDISC_FILE=/tmp/hpdiscovery.xml
7export TMPDIR=$(mktemp -t -d liveusb.XXXXXX)
8mount -t vfat /dev/disk/by-label/LiveUSB $TMPDIR
9
10echo ""
11echo "Loading storage drivers for hardware"
12./load_modules.sh
13
14echo ""
15echo "Pausing to allow drivers to finish loading"
16sleep 15
17echo ""
18
19## rerun hardware discovery
20./hpdiscovery -f ${HWDISC_FILE}
21echo "Hardware Discovery saved to ${HWDISC_FILE}"
22
23## use hwquery to fetch the SystemName from hardware discovery file. ( extra " " are required )
24export "`./hwquery ${HWDISC_FILE} allboards.xml SERVERTYPE=SystemName`";
25
26echo "Server Type: ${SERVERTYPE}"
27
28./conrep -l -f${TMPDIR}/data_files/conrep.dat
29if [ $? = 0 ] ; then
30 echo "System Configuration data_files/conrep.dat APPLIED"
31else
32 echo "System Configuration data_files/conrep.dat FAILED"
33fi
34
35./ifhw ${HWDISC_FILE} allboards.xml "PCI:Smart Array" 2> /dev/null
36if [ $? = 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
43else
44 echo "No Smart Array detected, no ACU Configuration applied."
45fi
46
47./ifhw ${HWDISC_FILE} allboards.xml "PCI:Integrated Lights-Out" 2> /dev/null
48if [ $? = 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
54fi
55
56./stop.sh
Note: See TracBrowser for help on using the repository browser.