
@echo off
rem ********************************************************************************
rem *
rem * USRVARS.BAT
rem *
rem * This file contains the user variables for controlling the ServerGuide Scripting 
rem * Toolkit.  Setting these variables allows the user to customize the 
rem * the ServerGuide Scripting Toolkit processes.
rem *
rem * This batch file is called by the autoexec.bat.
rem *
rem ********************************************************************************


REM [General_Toolkit]
    rem *********************************************************************
    rem * Defines the fully qualified path to Scripting Toolkit assembly 
    rem * directory
    rem *********************************************************************
    set TAS_PATH=%TKDRV%\%TASDIR%

    rem *********************************************************************
    rem * Defines the fully qualified path to Scripting Toolkit files
    rem *********************************************************************
    set TK_PATH=%TAS_PATH%\%TKDIR%


    rem *********************************************************************
    rem * Defines the type of deployment.
    rem * Valid values are: 
    rem *     
    rem *   1 - Deployment via a writable media - disable media during process.
    rem *       
    rem *       Boot media will be disabled during the deployment process 
    rem *       by running alboot.exe, allowing for automation of the 
    rem *       deployment process.
    rem *     
    rem *   2 - Deployment via a non-writable media - user will be prompted
    rem *     
    rem *       The boot media is write protected, user will be prompted to 
    rem *       remove the non-writable boot media.  
    rem *       (REQUIRED for bootable CDs)
    rem *     
    rem *   3 - Deployment will be via a virtual floppy.
    rem *     
    rem *       Deployment is either through a RSA-II adapter or a BladeCenter
    rem *       Management Module.  The deployment process will exit 
    rem *       automatically so that the boot media can be unmounted.
    rem *     
    rem *   4 - Deployment using Altiris(R) Deployment Solution.
    rem *     
    rem *       The Scripting Toolkit will be used in conjunction with the 
    rem *       Altiris Deployment Solution product.
    rem *     
    rem *   5 - Deployment using Microsoft(R) Automated Deployment Services.
    rem *     
    rem *       The Scripting Toolkit will be used in conjunction with the 
    rem *       Microsoft Automated Deployment Services product.
    rem *********************************************************************
    set DPLY_TYPE=4


REM [Windows_Install]
    rem *********************************************************************
    rem * Defines the fully qualified path to the OS i386 directory
    rem *********************************************************************
    set OS_PATH=%TAS_PATH%\os\w2k_srv

    rem *********************************************************************
    rem * Defines the fully qualified path to the ServerGuide set of device 
    rem * drivers index file, DRVSET.INI.
    rem *********************************************************************
    set DSET_PATH=%TAS_PATH%\drvs\w2k_drv

    rem *********************************************************************
    rem * Defines the fully qualified path to the directory which contains 
    rem * the Windows unattended installation file (unattend.txt).
    rem *********************************************************************
    set ANS_PATH=%TK_PATH%\examples\%NOSDIR%\ansfiles

    rem *********************************************************************
    rem * Defines the file name for the unattend.txt file.
    rem *********************************************************************
    set ANS_FILE=win2000.txt

    rem *********************************************************************
    rem * Defines the NOS partition size in MB
    rem *********************************************************************
    set PART_SZ=4000

    rem *********************************************************************
    rem * Defines the NOS installation drive
    rem *********************************************************************
    set NOSDRV=C:

    rem *********************************************************************
    rem * Defines the working target directory to be used for temporary 
    rem * storage during the installation process.   This directory will be 
    rem * removed during the deployment process.
    rem *********************************************************************
    set WRK_DIR=wininst

    rem *********************************************************************
    rem * Defines the target directory where Application files will be copied
    rem * during the installation process.   
    rem *********************************************************************
    set APPS_DIR=apps

REM [Custom_Apps_Install]
    rem *********************************************************************
    rem * Determine whether to install Director Agent. Valid values:
    rem *   N - No, do not install Director Agent.
    rem *   Y - Yes, install Director Agent.
    rem *********************************************************************
    set DAINST=N


REM [Toolkit_Updates]
    rem *********************************************************************
    rem * Determine whether to perform ANY updates or not.
    rem * Valid values:
    rem *   N - No, do not perform any updates.
    rem *   Y - Yes, perform any updates.
    rem *********************************************************************
    set DO_UPDS=N

    rem *********************************************************************
    rem * Defines whether to perform system BIOS updates or not.
    rem * Valid values:
    rem *   N - No, do not perform system BIOS updates.
    rem *   Y - Yes, perform system BIOS updates.
    rem *********************************************************************
    set UPD_BIOS=N

    rem *********************************************************************
    rem * Defines whether to perform IBM ServeRAID firmware updates or not.
    rem * Valid values:
    rem *   N - No, do not perform IBM ServeRAID firmware updates.
    rem *   Y - Yes, perform IBM ServeRAID firmware updates.
    rem *********************************************************************
    set UPD_SR=N

    rem *********************************************************************
    rem * Defines the base directory for the BIOS update files to use. This 
    rem * value will be combined with UPD_PATH to define the fully qualified
    rem * path to the BIOS update files.
    rem *********************************************************************
    set UPD_BDIR=%MACHTYPE%\BIOS

    rem *********************************************************************
    rem * Defines the base directory for the ServeRAID update files to use.
    rem * This value will be combined with UPD_PATH to define the fully
    rem * qualified path to the ServeRAID firmware update files.
    rem *********************************************************************
    set UPD_SDIR=SRVRAID

    rem *********************************************************************
    rem * Defines the fully qualified path to the BIOS/firmware files
    rem * to be used for the updates.
    rem *********************************************************************
    set UPD_PATH=%TAS_PATH%\updates


REM [RAID_Configuration]
    rem *********************************************************************
    rem * Defines whether to perform ANY type of RAID configuration.
    rem * Valid values are:
    rem *   N - No, do not perform any RAID configuration.
    rem *   Y - Yes, Perform RAID configuration.
    rem *********************************************************************
    set CFG_RD=N

    rem *********************************************************************
    rem * Defines whether to reset RAID controller to factory defaults before
    rem * attempting to perform RAID configuration on that controller.
    rem * Valid values are:
    rem *   N - No, do not reset the RAID controller to factory defaults.
    rem *   Y - Yes, reset the RAID controller to factory defaults.
    rem *********************************************************************
    set RD_RFD=Y

    rem *********************************************************************
    rem * Defines whether or not to ignore RAID configuration errors.  Set to
    rem * yes, if multiple RAID configuration files are provided, but where
    rem * ONLY one configuration file may be valid.  As long as 1 RAID
    rem * configuration is performed, the SCripting Toolkit process will not
    rem * stop.
    rem * Valid values are:
    rem *   N - No, do not ignore RAID configuration errors.  Stop if
    rem *       encounter error.
    rem *   Y - Yes, ignore RAID configuration errors.  Do not stop unless
    rem *       no RAID controller can be configured.
    rem *********************************************************************
    set RD_IE=Y

    rem *********************************************************************
    rem * Defines the fully qualified path to the RAID configuration files.
    rem *********************************************************************
    set RD_PATH=%TK_PATH%\examples\raid

    rem *********************************************************************
    rem * Defines the stub name of the RAID configuration files.
    rem *   Example: RDCFG for RDCFG1.bat, RDCFG2.bat, etc
    rem *********************************************************************
    set RD_STUB=

