Home > ISCSI, NetApp, SnapDrive > HOWTO: Verify NetApp SnapDrive for Windows 7.0.3 Installations were successful

HOWTO: Verify NetApp SnapDrive for Windows 7.0.3 Installations were successful

This script is intended to be able to validate and confirm that the NetApp SnapDrive for Windows v7.0.3 upgrade completed as expected.  This can either be run interactively post installation or can be run via automation (eg: via PSEXEC, against a list of known servers) – as it logs to both console and to log file.   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 processes are verified:

· Data ONTAP DSM for Windows MPIO is installed and displays version 4.1.4348.1209

· NetApp Windows Host Utilities 6.0.2 is installed and displays version 6.0.4649.1236

o NOTE: Yes, the Program NAME includes the string “…6.0.2” even though the Version is “6.0.4…”

· SnapDrive is installed and displays version 7.0.3.6341

· REG key HKLM\System\CurrentControlSet\Services\ontapdsm\Parameters /v PDORemovePeriod is set to 190 seconds

· REG key HKLM\SYSTEM\CurrentControlSet\Services\Disk /v TimeoutValue is set to 190 seconds

o NOTE: this is the Windows MPIO setting, and is typically only found if NetApp DSM is not installed.  Setting both options ensures that in either case, 190 seconds is the corporate default.

Potential improvements could include:

· Validate or test MPIO Failover Policy matches (Previously recorded version?  Preferred version?  Known required version for this host and is recorded somewhere?)

· INSTALL_*.BAT, INSTALL_*.LOG, and this VERIFY*.BAT/LOG location could be better standardized.  For now, I am utilizing the default software share locations. 

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.

=== VERIFY_NETAPP_SDW_703.BAT ===

@ECHO OFF

set INSTALL_FOLDER=\\NETWISE.CA\DFS\INSTALLLS\NetApp\

REM %~n0 is a special variable that means “CALLING BATCH FILE NAME”

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

ECHO.

ECHO. >>%LOG_FILE%

ECHO This should display:     Data ONTAP DSM for Windows MPIO  4.1.4348.1209

wmic product where "Name like ‘%%DSM%%’ and Version like ‘4.1.4348.1209’" get Name, Version | find /i "4.1.4348.1209"

if %ERRORLEVEL%==1 echo %COMPUTERNAME% %DATE% %TIME% – Data ONTAP DSM for Windows MPIO  4.1.4348.1209 – NOT PRESENT! >>%LOG_FILE%

if %ERRORLEVEL%==0 echo %COMPUTERNAME% %DATE% %TIME% – Data ONTAP DSM for Windows MPIO  4.1.4348.1209 – SUCCESS! >>%LOG_FILE%

ECHO.

ECHO. >>%LOG_FILE%

ECHO This should display:     NetApp Windows Host Utilities 6.0.2  6.0.4649.1236

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% – NetApp Windows Host Utilities 6.0.2  6.0.4649.1236 – NOT PRESENT! >>%LOG_FILE%

if %ERRORLEVEL%==0 echo %COMPUTERNAME% %DATE% %TIME% – NetApp Windows Host Utilities 6.0.2  6.0.4649.1236 – SUCCESS! >>%LOG_FILE%

ECHO.

ECHO. >>%LOG_FILE%

ECHO This should display:     SnapDrive  7.0.3.6341

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% – SnapDrive  7.0.3.6341 – NOT PRESENT! >>%LOG_FILE%

if %ERRORLEVEL%==0 echo %COMPUTERNAME% %DATE% %TIME% – SnapDrive  7.0.3.6341 – SUCCESS! >>%LOG_FILE%

ECHO.

ECHO. >>%LOG_FILE%

ECHO This should display:     PDORemovePeriod    REG_DWORD    0xbe

REG query HKLM\System\CurrentControlSet\Services\ontapdsm\Parameters /v PDORemovePeriod | find /i "0xbe"

if %ERRORLEVEL%==1 echo %COMPUTERNAME% %DATE% %TIME% – Registry HKLM\System\CurrentControlSet\Services\ontapdsm\Parameters PDORemovePeriod at 190 seconds – NOT PRESENT! >>%LOG_FILE%

if %ERRORLEVEL%==0 echo %COMPUTERNAME% %DATE% %TIME% – Registry HKLM\System\CurrentControlSet\Services\ontapdsm\Parameters PDORemovePeriod at 190 seconds – SUCCESS! >>%LOG_FILE%

ECHO.

ECHO. >>%LOG_FILE%

ECHO This should display:     TimeoutValue    REG_DWORD    0xbe

REG query HKLM\SYSTEM\CurrentControlSet\Services\Disk /v TimeoutValue | find /i "0xbe"

if %ERRORLEVEL%==1 echo %COMPUTERNAME% %DATE% %TIME% – Registry HKLM\SYSTEM\CurrentControlSet\Services\Disk\TimeoutValue at 190 seconds – NOT PRESENT! >>%LOG_FILE%

if %ERRORLEVEL%==0 echo %COMPUTERNAME% %DATE% %TIME% – Registry HKLM\SYSTEM\CurrentControlSet\Services\Disk\TimeoutValue at 190 seconds – SUCCESS! >>%LOG_FILE%

ECHO.

ECHO. >>%LOG_FILE%

=== VERIFY_NETAPP_SDW_703.BAT ===

=== OUTPUT – SCREEN/CONSOLE ===

This should display:    Data ONTAP DSM for Windows MPIO  4.1.4348.1209

Data ONTAP DSM for Windows MPIO  4.1.4348.1209

This should display:    NetApp Windows Host Utilities 6.0.2  6.0.4649.1236

NetApp Windows Host Utilities 6.0.2  6.0.4649.1236

This should display:    SnapDrive  7.0.3.6341

SnapDrive  7.0.3.6341

This should display:    PDORemovePeriod    REG_DWORD    0xbe

    PDORemovePeriod    REG_DWORD    0xbe

This should display:    TimeoutValue    REG_DWORD    0xbe

    TimeoutValue    REG_DWORD    0xbe

=== OUTPUT – SCREEN/CONSOLE ===

=== OUTPUT – LOG FILE ===

SRVD511 Thu 09/11/2014 17:16:07.26 – Data ONTAP DSM for Windows MPIO  4.1.4348.1209 – SUCCESS!

SRVD511 Thu 09/11/2014 17:16:24.00 – NetApp Windows Host Utilities 6.0.2  6.0.4649.1236 – SUCCESS!

SRVD511 Thu 09/11/2014 17:16:40.28 – SnapDrive  7.0.3.6341 – SUCCESS!

SRVD511 Thu 09/11/2014 17:16:40.30 – Registry HKLM\System\CurrentControlSet\Services\ontapdsm\Parameters PDORemovePeriod at 190 seconds – SUCCESS!

SRVD511 Thu 09/11/2014 17:16:40.31 – Registry HKLM\SYSTEM\CurrentControlSet\Services\Disk\TimeoutValue at 190 seconds – SUCCESS!

SRVD513 Thu 09/11/2014 17:33:57.96 – Data ONTAP DSM for Windows MPIO  4.1.4348.1209 – NOT PRESENT!

SRVD513 Thu 09/11/2014 17:34:11.03 – NetApp Windows Host Utilities 6.0.2  6.0.4649.1236 – NOT PRESENT!

SRVD513 Thu 09/11/2014 17:34:24.07 – SnapDrive  7.0.3.6341 – NOT PRESENT!

SRVD513 Thu 09/11/2014 17:34:24.12 – Registry HKLM\System\CurrentControlSet\Services\ontapdsm\Parameters PDORemovePeriod at 190 seconds – SUCCESS!

SRVD513 Thu 09/11/2014 17:34:24.14 – Registry HKLM\SYSTEM\CurrentControlSet\Services\Disk\TimeoutValue at 190 seconds – NOT PRESENT!

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