Server Management - Remote Server Management
1748051 Members
5134 Online
108758 Solutions
New Discussion

iLO cmdlets within Visual Studio Code?

 
rmay_bk
Valued Contributor

iLO cmdlets within Visual Studio Code?

I routinely use Invoke-HPiLORIBCLCommand to rehabilitate naughty iLO4 devices.  It works fine via regular PowerShell but errors out within VS Code:

 

Get-ErrorDetail : Error - 192.168.1.10  server.foo.bar - Error in format/values returned from iLO. 
You cannot call a method on a null-valued expression.

At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:25614 char:5
+                 throw $retobject.err
+                 ~~~~~~~~~~~~~~~~~~~~
        +CategoryInfo          :OperationStopped: (You cannot call...ed expression.
:String) [], RuntimeException
        +FullyQualifiedErrorId :You cannot call a method on a null-valued expression.

 

 

Any known fixes for this?

1 REPLY 1
Pra_Sah
HPE Pro

Re: iLO cmdlets within Visual Studio Code?

Hello rmay_bk,

As per the ILO cmdlets, we can only see powershell as supported platform. You can refer to ILO cmdlets user guide for more information.
Link:- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-a00045034en_us&withFrame

In case you need further help, please log a support ticket with HPE Technical Support.

I am an HPE employee

Accept or Kudo