Home > ISCSI, NetApp, SnapDrive > HOWTO: Silent Installation for NetApp Windows Host Utilities 6.0.2

HOWTO: Silent Installation for NetApp Windows Host Utilities 6.0.2

This document will assist with silently installing NetApp Windows Host Utilities 6.0.2.  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:

· netapp_windows_host_utilities_6.0.2_x64.msi and/or netapp_windows_host_utilities_6.0.2_x86.msi 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-07794_A0 – Installation and Setup Guide.pdf from NetApp NOW site

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

· The following Windows HotFixes:

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008\Windows6.0-KB2684681-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008\Windows6.0-KB2754704-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2\Windows6.1-KB2520235-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2\Windows6.1-KB2528357-v2-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2\Windows6.1-KB2684681-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2\Windows6.1-KB2754704-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2\Windows6.1-KB979711-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2SP1\Windows6.1-KB2528357-v2-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2SP1\Windows6.1-KB2684681-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008R2SP1\Windows6.1-KB2754704-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008SP2\Windows6.0-KB2684681-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008SP2\Windows6.0-KB2754704-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2008SP2\Windows6.0-KB968675-x64.msu

I:\INSTALLS\NETAPP\Windows Host Utilities 6.0.2\WINDOWS_HOTFIXES\2012\Windows8-RT-KB2796995-x64.msu

o NOTE: the Folder path for the HotFixes from Microsoft MUST be:

§ IN the installation folder

§ IN a folder called “WINDOWS_HOTFIXES”

§ IN folders based on OS of 2008, 2008SP2, 2008R2, 2008R2SP1, 2012 (there are no 2012R2 hotfixes required)

· Links to obtain the hotfixes are located in the Administration Guide, on Page 56.  Links will have a HF # only, eg: “2796995”.  These links may include downloads for multiple OS’s (eg: Vista/Windows 7 – equal to 2008 and 2008 R2), and each must be downloaded and located separately.  These hotfixes will unfortunately be named such as “457359_intl_x64_zip.exe” for KB2796995.  This is unfortunate as it is near impossible to correlate the versions and the files.  I would recommend saving the files as “KB2796995-457359_intl_x64_zip.exe” with the KB######## as the prefix.  Upon downloading, UNZIP the files in the same folder/folder structure, and you will note the final output of “Windows8-RT-KB2796995.msu”.  You will quickly be able to tell if you have only downloaded one version if you see “Windows6.1” for a 2008 file and “Windows6.0 for a 2008R2” file, etc.

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

This process has been tested and confirmed on:

· Windows 2012

· Windows 2008 R2 SP1

Other flavours may result in an update to this document, if required.

=== INSTALL_NETAPP_HOST_UTILS602.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\Windows Host Utilities v6.0.2

set PRODUCT_NAME=NetApp Windows Host Utilities 6.0.2

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

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 NOTE: The PRODUCT is “6.0.2” but the VERSION is “6.0.4649.1236” – fun stuff…

REM

wmic product where "Name like ‘%%NetApp Windows Host Utilities%%’ and Version like ‘6.0.4649.1236’" get Name, Version | find /i "6.0.4649.1236"

if %ERRORLEVEL%==1 goto CHECK_PREVIOUS_VERSION

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

goto CLEANUP

:CHECK_PREVIOUS_VERSION

wmic product where "Name like ‘%%NetApp Windows Host Utilities%%’ and Version like ‘6.0.4424.1239’" get Name, Version | find /i "6.0.4424.1239"

if %ERRORLEVEL%==1 goto CHECK_OS_VERSION

if %ERRORLEVEL%==0 goto REMOVE_PREVIOUS_VERSION

goto CHECK_OS_VERSION

:REMOVE_PREVIOUS_VERSION

echo %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% removing v6.0.4424.1239 version >>%LOG_FILE%

start /w MsiExec.exe /qb /X{203B48A2-023D-4E77-B586-E5FCB2E4A382}

goto CHECK_OS_VERSION

:CHECK_OS_VERSION

echo %COMPUTERNAME% %DATE% %TIME% – %PRODUCT_NAME% has no previous version installed. >>%LOG_FILE%

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_PREREQ_HOTFIXES

: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%\HOSTUTIL.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%\HOSTUTIL.INST /b’) do start /w wusa.exe %temp%\HOSTUTIL.INST\%%A /quiet /norestart

goto INSTALL_HOST_UTIL

:INSTALL_HOST_UTIL

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

mkdir %TEMP%\HOSTUTIL.INST

xcopy "%INSTALL_FOLDER%"\"netapp_windows_host_utilities_6.0.2_x64.msi" %TEMP%\HOSTUTIL.INST /s /e /c /k /i /y

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

start /w "HOST_UTIL" msiexec.exe /quiet /i"%TEMP%\HOSTUTIL.INST\netapp_windows_host_utilities_6.0.2_x64.msi" /l*v %TEMP%\%~n0.LOG MULTIPATHING=1 /NORESTART

wmic product where "Name like ‘%%NetApp Windows Host Utilities%%’ and Version like ‘6.0.4649.1236’" get Name, Version | find /i "6.0.4649.1236"

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%\HOSTUTIL.INST rmdir %TEMP%\HOSTUTIL.INST /q /s

ECHO. >>%LOG_FILE%

=== INSTALL_NETAPP_HOST_UTILS602.BAT ===

=== OUTPUT – LOG FILE ===

SRVDC217B Thu 09/11/2014 16:30:02.27 – NetApp Windows Host Utilities 6.0.2 already installed!

SRVDC217B Thu 09/11/2014 16:30:02.27 – NetApp Windows Host Utilities 6.0.2 cleaning up installation files locally

SRVDC113B 11/09/2014 16:47:14.10 – NetApp Windows Host Utilities 6.0.2 removing v6.0.4424.1239 version

SRVDC113B 11/09/2014 16:47:42.27 – NetApp Windows Host Utilities 6.0.2 has no previous version installed.

SRVDC113B 11/09/2014 16:47:42.27 – NetApp Windows Host Utilities 6.0.2 copying pre-requisite hotfixes locally

SRVDC113B 11/09/2014 16:47:42.36 – NetApp Windows Host Utilities 6.0.2 installing pre-requisite hotfixes

SRVDC113B 11/09/2014 16:47:57.42 – NetApp Windows Host Utilities 6.0.2 copying installation files locally

SRVDC113B 11/09/2014 16:47:57.57 – NetApp Windows Host Utilities 6.0.2 installing main application

SRVDC113B 11/09/2014 16:50:15.93 – NetApp Windows Host Utilities 6.0.2 reports as INSTALLED

SRVDC113B 11/09/2014 16:50:15.93 – NetApp Windows Host Utilities 6.0.2 cleaning up installation files locally

=== OUTPUT – LOG FILE ===

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: