You can combine a silent installation with a Tivoli Storage Manager configuration using a batch file. The following sample batch and configuration macro files show how silent installation and initial configuration can be automated. If you do not want to configure TSM now, you can skip the configuration macro file and comment out references to it in the batch file. You can use the following example to get started. Comments describe what is done at each step.
rem =========================================== rem Sample TSM silent install script. rem Assumes TSM is on CD and rem previously generated response file is rem in server directory on the CD. rem =========================================== echo off cls rem =========================================== rem Create output log file. rem =========================================== echo "Starting TSM Silent Install." > adsmcfg.log rem =========================================== rem Define the destination directory. rem Update this value to indicate where you rem want to have the package installed. rem =========================================== set dest_dir=c:\"program files"\tivoli\tsm rem =========================================== rem Start the silent install and wait until rem it is complete. rem You can specify a different name or rem location for Setup.log by adding the -f2 rem switch on the setup command line. rem The following command assumes that q: is the rem CD-ROM drive. rem =========================================== cd /d q:\server setup -SMS -s rem =========================================== rem Perform the configuration. rem Issue a net stop to ensure the TSM rem server is not running as a service. rem May need to introduce a delay between rem the net stop and dsmserver commands to rem allow the server some time to shut down rem if it was running. rem =========================================== if not exist %dest_dir%\server goto cancelled net stop "TSM Server" copy c:\adsmcfg.mac %dest_dir%\server cd /d %dest_dir%\server dsmserv runfile adsmcfg.mac 1>> adsmcfg.log 2>>&1 goto done rem =========================================== rem Cleanup. rem =========================================== :cancelled echo "TSM Silent Install cancelled" 1>> adsmcfg.log 2>>$1 goto end :done echo "TSM Silent Install completed" 1>> adsmcfg.log 2>>$1 :end set %dest_dir%= cd ..
register node myclient myclientpwd register admin myadmin myadminpwd grant authority myadmin class=system define schedule standard late_night desc="Late night backup" action=incremental duration=2 duru=hours period=1 perunits=days dayofweek=any define association standard late_night myclient