Home > ISCSI, NetApp, SnapDrive > HOWTO: Silent Installation for NetApp SnapDrive for Windows v7.0.3

HOWTO: Silent Installation for NetApp SnapDrive for Windows v7.0.3

This document will assist with silently installing NetApp SnapDrive for Windows v7.0.3.  These processes should be performed in the following order:

1) HOWTO: Silent Installation for NetApp Data ONTAP DSM for Windows MPIO v4.1

2) HOWTO: Silent Installation for NetApp Windows Host Utilities 6.0.2

3) HOWTO: Silent Installation for NetApp SnapDrive for Windows v7.0.3

4) HOWTO: Verify NetApp SnapDrive for Windows 7.0.3 Installations were successful

The following pre-requisites and requirements are assumed:

· SnapDrive7.0.3_x64.exe and/or SnapDrive7.0.3_x86.exe downloads from the NetApp NOW site

o NOTE: NO testing has been done for 32 bit OS, and no provisions exist in the current batch file.  It is assumed that you are on an actual modern server OS, and it is x64.  If not… perform the installation manually.

· 215-07929_B0 – SnapDrive® 7.0 for Windows® Installation Guide.pdf from NetApp NOW site

· .NET 3.5 SP1 is *ALREADY* installed.  This could be expanded to put in scope tests for .NET 3.5 and/or installs, but the reality is this is going to be used for upgrades of already installed SDW installations, so we’re safe to assume .NET 3.5 is installed.  This process will require updating and testing to validate and test for .NET 3.5 presence and install it

· This is complicated by the fact that Windows Updates to update .NET must be installed after.  For sites that utilize Microsoft’s Windows Update, or a local WSUS this is fine.  Those that utilize SCCM would require a re-push/re-detection of current updates post-.NET installation, updates, reboot, and then continuation of the installation for SDW.  Understandably, this is out of scope for today…

· As this was intended for UPGRADES of systems with at least SnapDrive for Windows, we are assuming that the .NET 3.5 pre-requisite has been met.  Additional work will be required in order to provide the error checking and installation processes for .NET 3.5, as each OS has a slightly different method of doing so.  I’d recommend creating a standardized “INSTALL_DOTNET_35.BAT” that could be called by any other installation that requires it, to keep the process modular.

· As SDW gets upgraded AFTER DSM MPIO and Host Utilities, which both check for, and install, the associated HotFixes, we do not also check for it here.  The portion of the script is still present though, for uniformity.  Also note there is a command line parameter for the actual installer to “SKIP_HOTFIX_CHECK=1”

The general process in the installation batch file is:

· LOG output is in the PRODUCT_FOLDER as %BATCH%.LOG

· MSI LOG is to %TEMP% as %BATCH%.LOG, and is NOT cleaned up after installation.  Use for troubleshooting.

· Check if the product is already installed, using WMIC.  If installed, jumps to CLEANUP

· Check for OS version to determine what hotfixes are required

· Copy hotfixes locally – they will not run properly via a UNC path as they update the system via DISM and the machine account likely has no rights to the share

· Run the installers for the hotfixes and wait for each to complete – it does not check if they are missing or already present

· Copy installation MSI locally

· Run the installer for the MSI and wait for complete

· Cleans up local files

=== INSTALL_NETAPP_SDW_703.BAT ===

@echo off

REM

REM Enter the path to the installation folder – does not require quotes, quotes are assumed, with or without spaces – MUST not contain training "\"

REM

set INSTALL_FOLDER=\\NETWISE.CA\DFS\INSTALLS\NetApp\SnapDrive for Windows v7.0.3

set PRODUCT_NAME=NetApp SnapDrive for Windows v7.0.3

set LOG_FILE="%INSTALL_FOLDER%\%~n0.LOG"

REM

REM MUST UPDATE THE SERVICE ACCOUNT and PASSWORD!

REM

set SVCUSERNAME=<DOMAIN>\<USERNAME>

set SVCUSERPASSWORD=XXXXXXXXXXXXX

set ESXUSERNAME=

set ESXUSERPASSWORD=

set TRANSPORTUSERNAME=

set TRANSPORTPASSWORD=

set ESXIPADDRESS=

set SMVIIPADDRESS=

ECHO. >>%LOG_FILE%

:CHECK_ALREADY_INSTALLED

REM

REM Use a Product Name substring search and the exact version number.  Note the double percent characters are correct

REM

wmic product where "Name like ‘%%SnapDrive%%’ and Version like ‘7.0.3.6341’" get Name, Version | find /i "7.0.3"

if %ERRORLEVEL%==1 goto CHECK_OS_VERSION

if %ERRORLEVEL%==0 echo %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% already installed! >>%LOG_FILE%

goto CLEANUP

:CHECK_OS_VERSION

REM

REM Check for OS Version

REM

set OS_VER=0

set OS_NAME=0

for /f "tokens=1-5* delims=[] " %%A in (‘ver’) do set OS_VER=%%D

if %OS_VER%==6.3.9200 set OS_NAME=2012R2

if %OS_VER%==6.2.9200 set OS_NAME=2012

if %OS_VER%==6.0.6001 set OS_NAME=2008

if %OS_VER%==6.0.6002 set OS_NAME=2008SP2

if %OS_VER%==6.1.7600 set OS_NAME=2008R2

if %OS_VER%==6.1.7601 set OS_NAME=2008R2SP1

goto INSTALL_SDW

:INSTALL_PREREQ_HOTFIXES

REM

REM Will copy ALL *.MSU files locally from matching folder name to OS_NAME list above, and then install ALL *.MSU files from the local drive,

REM waiting for each to complete before continuing. 

REM

ECHO %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% copying pre-requisite hotfixes locally >>%LOG_FILE%

xcopy "%INSTALL_FOLDER%"\WINDOWS_HOTFIXES\%OS_NAME%\*.msu %TEMP%\SDW.INST /s /e /c /k /i /y

ECHO %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% installing pre-requisite hotfixes >>%LOG_FILE%

for /f "tokens=1* delims=" %%A in (‘dir %temp%\SDW.INST /b’) do start /w wusa.exe %temp%\%%A /quiet /norestart

goto INSTALL_SDW

:INSTALL_SDW

ECHO %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% copying installation files locally >>%LOG_FILE%

mkdir %TEMP%\SDW.INST

xcopy "%INSTALL_FOLDER%"\"SnapDrive7.0.3_x64.exe" %TEMP%\SDW.INST /s /e /c /k /i /y

ECHO %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% installing main application >>%LOG_FILE%

start /w "SDW_INSTALL" "%TEMP%\SDW.INST\SnapDrive7.0.3_x64.exe" /s /v"/qb SILENT_MODE=1 /Li %TEMP%\%~n0.LOG INSTALLDIR=\"c:\Program Files\NetApp\SnapDrive\" SVCUSERNAME=%SVCUSERNAME% SVCUSERPASSWORD=%SVCUSERPASSWORD% SVCCONFIRMUSERPASSWORD=%SVCUSERPASSWORD% IGNORE_COMPMGMT_RUNNING=1 SDW_WEBSRV_TCP_PORT=808 SDW_WEBSRV_HTTP_PORT=4094 SDW_WEBSRV_HTTPS_PORT=4095 TRANSPORT_SETTING_ENABLE=1 TRANSPORT_PRT_SELECTION=1 SKIP_HOTFIX_CHECK=1 ADD_WINDOWS_FIREWALL=1"

wmic product where "Name like ‘%%SnapDrive%%’ and Version like ‘7.0.3.6341’" get Name, Version | find /i "7.0.3"

if %ERRORLEVEL%==1 echo %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% reports as NOT INSTALLED >>%LOG_FILE%

if %ERRORLEVEL%==0 echo %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% reports as INSTALLED >>%LOG_FILE%

goto CLEANUP

:CLEANUP

REG QUERY "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations | find /i "C:"

if %ERRORLEVEL%==0 ECHO %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% HAS a reboot pending… >>%LOG_FILE%

ECHO %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% cleaning up installation files locally >>%LOG_FILE%

if exist %TEMP%\SDW.INST rmdir %TEMP%\SDW.INST /q /s

ECHO. >>%LOG_FILE%

=== INSTALL_NETAPP_SDW_703.BAT ===

=== SAMPLE LOG OUTPUT ===

SRVDC113B 11/09/2014 16:52:26.38 – NetApp SnapDrive for Windows v7.0.3 already installed!

SRVDC113B 11/09/2014 16:52:26.38 – NetApp SnapDrive for Windows v7.0.3 cleaning up installation files locally

SRVD511 Thu 09/11/2014 16:53:55.57 – NetApp SnapDrive for Windows v7.0.3 reports as INSTALLED

SRVD511 Thu 09/11/2014 16:53:55.59 – NetApp SnapDrive for Windows v7.0.3 HAS a reboot pending…

SRVD511 Thu 09/11/2014 16:53:55.59 – NetApp SnapDrive for Windows v7.0.3 cleaning up installation files locally

SRVD513 Thu 09/11/2014 17:47:28.82 – NetApp SnapDrive for Windows v7.0.3 copying installation files locally

SRVD513 Thu 09/11/2014 17:47:29.00 – NetApp SnapDrive for Windows v7.0.3 installing main application

SRVD513 Thu 09/11/2014 17:50:23.21 – NetApp SnapDrive for Windows v7.0.3 reports as INSTALLED

SRVD513 Thu 09/11/2014 17:50:23.21 – NetApp SnapDrive for Windows v7.0.3 HAS a reboot pending…

SRVD513 Thu 09/11/2014 17:50:23.21 – NetApp SnapDrive for Windows v7.0.3 cleaning up installation files locally

=== SAMPLE LOG OUTPUT ===

Advertisements
Categories: ISCSI, NetApp, SnapDrive
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: