Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions powershell/check-hcl-poc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Foreach ($vmHost in $vmHosts) {
# ...need more Hardware to test.
#If ($HostModel -eq $server.model) { # Works vor HP and Dell, where string matches 100%
$ModelFound = $false
$ModelMatch = $server.model
if ($HostModel.StartsWith("UCS") -and $ModelMatch.Contains("UCS")){
$HostLen=$HostModel.Length

Expand All @@ -96,7 +97,6 @@ Foreach ($vmHost in $vmHosts) {
}
}

$ModelMatch = $server.model
$ModelMatch = $ModelMatch -replace "IBM ","" # IBM writes "IBM" in front of models sometimes. Need to remove it
$ModelMatch = ("*"+$ModelMatch+"*") # Not all entries are 100% matches. Simple wildcard matching
#Write-Host "Model Match String:" $ModelMatch
Expand Down Expand Up @@ -161,4 +161,4 @@ Foreach ($vmHost in $vmHosts) {
Write-Host " --- HCL Link: $($obj.url)"
}
}
}
}