oh i give up. make that TWO typos. :-)

jason andrade jason at dstc.edu.au
Tue Apr 16 20:22:01 CDT 2002

this isn't a good day... :-).  oh well, better to admit i can't
type than to let people run a faulty script.  this last one finally
appears to work properly.  the joys of creating stuff in an environment
things are already installed into.

*hangs head in shame*



------------cut here--------------

# script to install server administrator 1.0 under linux
# by jason andrade <jason at planetmirror.com> on
# Wed Apr 17 10:50:33 EST 2002

# version 1.0.2
# derived from work by steve boley, michael brown, matt domsch
# jacob and others at # dell - i have no idea exactly who, but
# they put a lot # of work in coming up with a working procedure
# i have assumed you are running a fully patched system as of the
# above date, including the latest versions # of ucd-snmp AND
# linux-kernel 2.4.9-31.  if you aren't # then please do so.

# create appropriate directories
cd /usr/src
# typo fix
mkdir -p dell/build dell/dist
cd /usr/src/dell/dist

# fetch the files we need
wget -nv http://planetmirror.com/pub/dell/linux/server-administrator/server-administrator-1.0.tar.gz
wget -nv http://planetmirror.com/pub/dell/linux/server-administrator/Makefile.patch.txt
wget -nv http://planetmirror.com/pub/dell/linux/server-administrator/dellomsaesm.patch.txt
wget -nv http://planetmirror.com/pub/redhat/linux/7.2/en/os/i386/RedHat/RPMS/compat-libstdc++-6.2-

# start installing - this assumes we have patch already installed
rpm -ivh /usr/src/dell/dist/compat-libstdc++-6.2-

# unpack the files
cd ../build
tar xfz ../dist/server-administrator-1.0.tar.gz
cd /usr/src/dell/build/DOMNA01/sa451/linux
rpm -ivh dellomsa-4.51-3417.i386.rpm dellomsa-drivers-4.51-3417.i386.rpm ServerAdministrator-1.0-0.i386.rpm

# copy patch files into the appropriate places
# fix second typo - should be dist, not build
cd /usr/src/dell/dist
cp Makefile.patch.txt /usr/lib/dell/openmanage/omsa/drivers/open_src/Makefile.patch
cp dellomsaesm.patch.txt /usr/lib/dell/openmanage/omsa/dellomsaesm.patch

# for some reason the original docs are slightly wrong - you only need to run patch once
# for each file - ignore the failures.
cd /usr/lib/dell/openmanage/omsa/drivers/open_src
patch -p0 < Makefile.patch
cd /usr/lib/dell/openmanage/omsa
patch -p0 < dellomsaesm.patch

# the original docs are slightly wrong here too - this file already exists
# but it's unpatched/the wrong one, so lets link the right one in
cd /etc/init.d
mv dellomsaesm dellomsaesm.old
ln -s /usr/lib/dell/openmanage/omsa/dellomsaesm

# ok, now for the fun stuff
service dellomsa start

# i wish i knew why they need you to reinstall this - it installs perfectly
# without errors the first time.. but mine is not to question why if it works..
cd /usr/src/dell/build/DOMNA01/sa451/linux
rpm -ivh --force --nodeps dellomsa-drivers-4.51-3417.i386.rpm
cd /usr/lib/dell/openmanage/omsa/drivers/open_src
patch -p0 < Makefile.patch
cd /usr/lib/dell/openmanage/omsa
patch -p0 < dellomsaesm.patch
service dellomsa start
cd /usr/src/dell/build/DOMNA01
service dellomsa restart

# you can now test this by going to your favourite browser and plugging in
# https://machine.name:1311/
# don't forget you might need to configure ipchains to allow access
# i recommend you do this manually and put it in the right section.. and
# for sanity, only allow specific hosts or networks to access it.
# echo '-A input -s 0/0 -d 0/0 1311 -p tcp -y -j ACCEPT' >> /etc/sysconfig/ipchains
# /etc/rc3.d/S08ipchains start
------------cut here--------------

More information about the Linux-PowerEdge mailing list