Guest

Preview Tool

Cisco Bug: CSCus05055 - Install-Nexus1000V-VSMCertificate.ps1 does not work

Last Modified

Aug 11, 2018

Products (1)

  • Cisco Nexus 1000V Switch for VMware vSphere

Known Affected Releases

5.2(1)SM1(5.2c)

Description (partial)

Symptom:
The script to install the VSM certificate on the SCVMM server does not work

Conditions:
PS C:\Program Files\Cisco\Nexus1000V\Scripts\VMMConfig> .\Install-Nexus1000V-VSMCertificate.ps1
DEBUG:    1+  >>>> .\Install-Nexus1000V-VSMCertificate.ps1

cmdlet Install-Nexus1000V-VSMCertificate.ps1 at command pipeline position 1
Supply values for the following parameters:
ip: 14.17.121.172
DEBUG:   17+  >>>> $ConnectionString = "https://" + $ip
DEBUG:   20+  >>>> $build =  ([Environment]::OSVersion).Version.build
DEBUG:   21+   if ( >>>> $build -lt 9600) {
DEBUG:   25+        >>>> $url = $ConnectionString
DEBUG:   30+  >>>> [Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
DEBUG:   31+  >>>> [System.Uri] $u = New-Object System.Uri($url)
DEBUG:   32+  >>>> [Net.ServicePoint] $sp = [Net.ServicePointManager]::FindServicePoint($u);
DEBUG:   33+  >>>> [System.Guid] $groupName = [System.Guid]::NewGuid()
DEBUG:   36+  >>>> [Net.HttpWebRequest] $req = [Net.WebRequest]::create($url)
DEBUG:   37+  >>>> $req.Method = "GET"
DEBUG:   39+  >>>> $req.Timeout = 300
DEBUG:   40+  >>>> $req.ConnectionGroupName = $groupName
DEBUG:   46+  >>>> [Net.HttpWebResponse] $result = $req.GetResponse()
DEBUG:   30+ [Net.ServicePointManager]::ServerCertificateValidationCallback =  >>>> {$true}
DEBUG:   30+ [Net.ServicePointManager]::ServerCertificateValidationCallback = { >>>> $true}
DEBUG:   30+ [Net.ServicePointManager]::ServerCertificateValidationCallback = {$true >>>> }
DEBUG:   52+          >>>> Write-Host -ForegroundColor RED "`n-----------------------------------ERROR
CAUSE-----------------------------------"

-----------------------------------ERROR CAUSE-----------------------------------
DEBUG:   53+          >>>> Write-Host -ForegroundColor Yellow "INFO: Invalid URL '$url'. Verify the same!!"
INFO: Invalid URL 'https://14.17.121.172'. Verify the same!!
DEBUG:   54+          >>>> break
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.