cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3712
Views
0
Helpful
0
Replies

UCS Health Check Script for Version 4.0

moulasaleem
Level 1
Level 1

Dear All,

 

We are having UCSM Infra version 3.0x and we were using health check 7.1 power shell script for the health check report and it was working fine. But recently we have updated our UCSM Infra to 4.0 4b after which the script is failing with below errors. Kindly provide the solution

 

Connect-Ucs : Connect-Ucs: x.x.x.x 300:The remote server returned an error: (403) Forbidden..

At D:\UCS-HC\UCS-HealthCheck-v7.1.ps1:38 char:12

+ $handle1 = Connect-Ucs $ucsmaddr -NotDefault -Credential $ucsmcreds

+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Connect-Ucs], Exception

    + FullyQualifiedErrorId : Cisco.Ucsm.Cmdlets.ConnectUcs

 

Get-UcsNetworkElement : Cannot validate argument on parameter 'Ucs'. The argument is null. Provide a valid value for

the argument, and then try running the command again.

At D:\UCS-HC\UCS-HealthCheck-v7.1.ps1:157 char:28

+ Get-UcsNetworkElement -Ucs $handleArray | Select-Object Ucs,Rn,OobIfI ...

+                            ~~~~~~~~~~~~

    + CategoryInfo          : InvalidData: (:) [Get-UcsNetworkElement], ParameterBindingValidationException

    + FullyQualifiedErrorId : ParameterArgumentValidationError,Cisco.Ucsm.Cmdlets.GetUcsNetworkElement

 

Get-Content : Cannot find path 'D:\UCS-HC\ucsfis.html' because it does not exist.

At D:\UCS-HC\UCS-HealthCheck-v7.1.ps1:158 char:1

+ Get-Content ucsfis.html | Add-Content $ReportFile

+ ~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (D:\UCS-HC\ucsfis.html:String) [Get-Content], ItemNotFoundException

    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

 

0 Replies 0