Incorporating the Scripting Toolkit with your existing process

To incorporate the Scripting Toolkit procedures into an existing deployment process, use the HWDETECT utility to determine if the combined process is being executed on Scripting Toolkit supported hardware. You can then add appropriate branches in the batch files to use either the existing process or the Scripting Toolkit process.

For example, you might use the -s option of HWDETECT to determine if the current system is an IBM server, as shown in the following example:
hwdetect -s 	
if errorlevel 1 goto NONIBM 	
if errorlevel 0 goto IBM  	

:NONIBM 	
rem Perform non-IBM equipment specific processing here. 	 	

:IBM 	
rem Perform IBM eServer or xSeries equipment specific processing here.