Getting error while running a Cisco UCS PowerShell script to get health Check Report of any UCS Domain, Script Named "UCS-HealthCheck-v7.1.ps1" and can be found here
PS C:\Networking> .\UCS-HealthCheck-v7.1.ps1
Import-Module : The specified module 'CiscoUcsPS' was not loaded because no valid module file was found in any module
directory.
At C:\Networking\UCS-HealthCheck-v7.1.ps1:16 char:1
+ Import-Module CiscoUcsPS
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (CiscoUcsPS:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Although you have installed the latest Cisco's UCS power shell modules.
This issue occurs because the script is import UCS module "CiscoUcsPS" and which has been replaced with "Cisco.UCSManager" in the new releases of Cisco's PowerShell tools.
So all you have to do is to edit the Scrip file and replace the 'CiscoUcsPS' with 'Cisco.UCSManager' and run the command again.
After correcting Cisco PowerShell Module Name I could successfully run the script and import all the health Check report from UCS Platform emulator 4.04e.
Comments
Post a Comment