01-22-2014 06:51 AM
Is it possible to change the log file location for silentpatch.cmd?
the file states:
REM --------------------------------------
REM Do not change anything after this line
REM Install logs will be saved to %ALLUSERSPROFILE%\Symantec\NetBackup\InstallLogs
REM --------------------------------------
Any advice would be great :)
Solved! Go to Solution.
01-22-2014 07:41 AM
i have not tested it..
but you can try adding below if you wish too
SET LOGFILE="%TEMP%\NetBackup Install.log" --> or someother path that you wish what..
01-22-2014 07:41 AM
i have not tested it..
but you can try adding below if you wish too
SET LOGFILE="%TEMP%\NetBackup Install.log" --> or someother path that you wish what..
01-22-2014 09:17 AM
in the slientpatch.cmd file you will see:
01-23-2014 01:22 AM
This is the generic silentpatch.cmd file that comes with the release:
REM $Id: silentpatch.cmd,v 1.6 2010/06/04 23:07:29 $
REM
REM bcpyrght
REM *******************************************************************************
REM $VRTScprght: Copyright 2013 Symantec Corporation, All Rights Reserved $
REM *******************************************************************************
REM ecpyrght
REM
@ECHO OFF
REM --------------------------------------
REM Do not change anything after this line
REM Install logs will be saved to %ALLUSERSPROFILE%\Symantec\NetBackup\InstallLogs
REM --------------------------------------
SET RESPFILENAME=%TEMP%\%COMPUTERNAME%_silentclient.resp
IF EXIST %RESPFILENAME% del %RESPFILENAME%
@ECHO REBOOT:ReallySuppress>> %RESPFILENAME%
@ECHO SILENTINSTALL:1>> %RESPFILENAME%
@ECHO PBXCONFIGURECS:FALSE>> %RESPFILENAME%
setup.exe -s /REALLYLOCAL /RESPFILE:'%RESPFILENAME%'
SET MSIEXEC_STATUS=%ERRORLEVEL%
IF EXIST %RESPFILENAME% del %RESPFILENAME%
exit /B %MSIEXEC_STATUS%
*********************************
I added the following lines to write to the resp file :
@ECHO SET LOGFILE="C:\BuildLogs\NetBackup_MP1_test_Install.log"
@ECHO SET LOG=/l*v %LOGFILE%
but it still writes the log to the default location.
I tried running
SETUP.EXE -s /REALLYLOCAL /REBOOT:ReallySuppress /LOGFILE:"C:\BuildLogs\Netbackup_test_patch.log" /PBXCONFIGURECS:FALSE
but it seemed to ignore any switches and use the default location :(
03-01-2014 09:16 PM
I realize that this is a month later - seems everyone missed your post above.
If you look at Nagalla and SymTerry's posts, you need to change or add this line:
SET LOGFILE=......
I agree that a silentpatch.cmd for a 7.5 patch does not have the line by default, but have you tried to simply add it?