Users Guide

Capturing the RAC conguration with the RACCAP or
raccap.sh sample script
If your system has a RAC, you can replicate the RAC conguration from the RAC of a source Dell system to an identical target Dell system
with an identical RAC.
NOTE: For the script to complete successfully, the source system must have access to the network share that includes the pre-
built DTK directory structure.
Running RACCAP.BAT or raccap.sh
To run the RACCAP.BAT or raccap.sh sample script to capture the RAC conguration information in the raccfg.ini le:
1 Edit the startnet.cmd le (on your Windows PE image) or start-up script le (on your embedded Linux image) to call the RACCAP.BAT
or raccap.sh script after the network share with the pre-built DTK directory structure is mounted. For example, add:
On systems running Windows:
Z:\Dell\x64\Toolkit\Template\Scripts\RACCAP.BAT Z:\raccfg.ini
On systems running Linux:
/opt/dell/toolkit/template/scripts/raccap.sh
2 Boot the source system into Windows PE or embedded Linux.
The script runs and saves the conguration information in the \Toolkit\Systems\<target system> directory on systems running
Windows and /opt/dell/toolkit/systems/<target system> directory on systems running Linux.
3 Edit the startnet.cmd le (Windows PE image) or start-up script le (embedded Linux image) to remove the text you added in step 1.
NOTE
: The RAC conguration le is referred to as the .cfg le in the
The Integrated Dell Remote Access Controller 9
(iDRAC9) User's Guide
. See these guides for additional information about manually creating a RAC conguration le.
NOTE: Do not replicate the RAC IP address when creating a .cfg le. Replicating the RAC IP address can leave the
system inaccessible because multiple systems are congured with the same IP address.
NOTE: The racrep.sh and sysrep.sh have duplicate functions. If you run racrep.sh followed by sysrep.sh, the latter
overwrites the former settings.
RACCAP.BAT or raccap.sh
The RACCAP.BAT or raccap.sh sample script captures RAC conguration settings and saves them to a specied location. An optional user
input can be passed as a parameter. You can provide the path or le name as an input to this script. The default variable values used in this
script are set to the correct default values to perform a scripted deployment. On systems running Windows, the RACCAP.BAT uses the
RACADM.EXE utility to retrieve RAC conguration settings from the source system and to save it in raccfg.ini le at \Toolkit\Systems
\<target system>. On systems running Linux, the raccap.sh script uses the racadm wrapper script or the syscfg utility (depending on the
RAC version on your system) to retrieve RAC conguration settings from the source system and to save it in raccfg.ini at /opt/dell/toolkit/
systems/<target system>.
NOTE
: Ensure that you run RACCAP.BAT in a writable environment. If you run RACCAP.BAT in a read-only environment, DTK
displays the message <filename.ini> has been generated.
Preparing the script les 53