cancel
Showing results for 
Search instead for 
Did you mean: 

Netbackup 7.5 silentpatch.cmd parameters

garrawam
Level 2

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 :)

 

1 ACCEPTED SOLUTION

Accepted Solutions

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

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..

View solution in original post

4 REPLIES 4

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

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..

SymTerry
Level 6
Employee Accredited

in the slientpatch.cmd file you will see:

REM --------------------------------------
REM Do not change anything after this line
REM --------------------------------------
REM Package File name
SET PACKAGEFILE="VERITAS NetBackup Client.msi"
SET LOGFILE="%TEMP%\NetBackup Install.log"
SET LOG=/l*v %LOGFILE%
SET MSIEXEC="%SYSTEMROOT%\System32\msiexec.exe"
 
It does state to not change the logfile, but leaves you the values to change it. As Nagalla said, testing would be a good idea.

garrawam
Level 2

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 :(

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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?