X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fdrac-reset.creole;h=9a15bcb7a78ae8c62e040ba7c9553a3b9b800e4f;hb=4748598a49ca95a8569fb7638db087e00821ddeb;hp=78f1a4a7bb60e3eddf37341ce15a7958acb0c1fb;hpb=d8f5fbecb161c065c85746608523c4ad195a3605;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/drac-reset.creole b/input/howto/drac-reset.creole index 78f1a4a..9a15bcb 100644 --- a/input/howto/drac-reset.creole +++ b/input/howto/drac-reset.creole @@ -7,50 +7,50 @@ 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 + 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 + 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 + # 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 + # 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 + # 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 + # 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" + # 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 + # 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 + # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm racreset }}}