Document how to fix BASE-IS-OLD
[mirror/dsa-wiki.git] / input / howto / drac-reset.creole
1 = reset drac passwords/settings =
2
3 * Get a copy of the {{{drac-stuff}}} directory in root's homedir on grieg,
4 rautavaara etc.  It contains {{{racadm}}}, {{{racsvc}}} with needed
5 dependencies.
6
7 * Communications with the drac from the host goes over a serial device, which
8 you need to serialsetup first: To do that run
9 {{{
10         sh -x drac-stuff/etc/init.d/racsvc start
11 }}}
12 it will fail in a few places but it will figure out which ttySXX it is, and it
13 will do a sersetup on it.
14
15 * Start ravscv using
16 {{{
17         LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" drac-stuff/usr/sbin/racsvc  -d /dev/ttyS2
18 }}}
19 or whatever ttyS it is in this case.  It will need ia32-libs if you are on amd64.
20 ("File not found" tells you that.)
21
22 * get the current config:
23 {{{
24         # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm getconfig -p -f drac-config
25 }}}
26
27 * reset all config:
28 {{{
29         # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm racresetcfg
30 }}}
31
32 * enable dhcp:
33 {{{
34         # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm setniccfg -d
35 }}}
36
37 * or set static addresses:
38 {{{
39         # 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
40 }}}
41
42 * set a root password (root is user #1 by default):
43 {{{
44         # typeset HISTCONTROL=ignoreboth
45         #       LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 1 "swordfish"
46 }}}
47
48 * inspect the new config:
49 {{{
50         # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm getconfig -p -f drac-config-after
51 }}}
52
53 * reboot the drac:
54 {{{
55         # LD_LIBRARY_PATH="/root/drac-stuff/usr/lib" /root/drac-stuff/usr/sbin/racadm racreset
56 }}}