You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host"Connected to $VIFQDN"-ForegroundColor Green
96
+
# Note that we connected to vCenter so we can disconnect upon termination
93
97
$ConnectVc=$True
94
98
}
95
99
catch {
100
+
# If we could not connect to vCenter report that and exit the script
96
101
Write-Host"Failed to connect to $VIFQDN"-BackgroundColor Red
97
102
Write-Host$Error
98
103
Write-Host"Terminating the script "-BackgroundColor Red
104
+
# Note that we did not connect to vCenter Server
99
105
$ConnectVc=$False
100
106
return
101
107
}
@@ -160,7 +166,7 @@ if ($clusterChoice -match "[yY]") {
160
166
$Hosts=Get-VMHost|Sort-Object Name
161
167
}
162
168
163
-
169
+
# Begin the main execution of the script
164
170
$errorHosts=@()
165
171
Write-Host"Executing..."
166
172
Add-Content$Logfile"Iterating through all ESXi hosts..."
@@ -270,12 +276,22 @@ Foreach ($Esx in $Hosts)
270
276
Add-Content$Logfile" Checking for FlashArray iSCSI targets and verify their configuration on the host. Only misconfigured iSCSI targets will be reported."
271
277
$iscsitofix=@()
272
278
$flasharrayiSCSI=$false
279
+
280
+
# Get a list of all of the Pure Storage iSCSI Targets (if any)
0 commit comments