From: Peter Palfrader Date: Sat, 23 Jan 2010 13:29:19 +0000 (+0100) Subject: document the drac stuff X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=commitdiff_plain;h=d8f5fbecb161c065c85746608523c4ad195a3605 document the drac stuff --- diff --git a/input/howto/drac-reset.creole b/input/howto/drac-reset.creole new file mode 100644 index 0000000..78f1a4a --- /dev/null +++ b/input/howto/drac-reset.creole @@ -0,0 +1,56 @@ += reset drac passwords/settings = + +* Get a copy of the {{{drac-stuff}}} directory in root's homedir on grieg, +rautavaara etc. It contains {{{racadm}}}, {{{racsvc}}} with needed +dependencies. + +* Communications with the drac from the host goes over a serial device, which +you need to serialsetup first: To do that run +{{{ + sh -x drac-stuff/etc/init.d/racsvc start +}}} +it will fail in a few places but it will figure out which ttySXX it is, and it +will do a sersetup on it. + +* Start ravscv using +{{{ + LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" drac-stuff/usr/sbin/racsvc -d /dev/ttyS2 +}}} +or whatever ttyS it is in this case. It will need ia32-libs if you are on amd64. +("File not found" tells you that.) + +* get the current config: +{{{ + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm getconfig -p -f drac-config +}}} + +* reset all config: +{{{ + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm racresetcfg +}}} + +* enable dhcp: +{{{ + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm setniccfg -d +}}} + +* or set static addresses: +{{{ + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm setniccfg -s 192.0.2.011 255.255.255.0 192.0.2..1 +}}} + +* set a root password (root is user #1 by default): +{{{ + # typeset HISTCONTROL=ignoreboth + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 1 "swordfish" +}}} + +* inspect the new config: +{{{ + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm getconfig -p -f drac-config-after +}}} + +* reboot the drac: +{{{ + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm racreset +}}} diff --git a/input/index.mdwn b/input/index.mdwn index 4bf7725..1d1c261 100644 --- a/input/index.mdwn +++ b/input/index.mdwn @@ -37,6 +37,7 @@ VCS repositories for ud-ldap and all our other stuff can be found at * [[howto/postgres]]: Random postgres stuff * [[howto/add-guest]]: How to add guests to ud-ldap * [[howto/swarm-kernel]]: How to build kernels for our swarm boxes +* [[howto/drac-reset]]: How to beat the radacm rootk^Wbinary only software. ## ports