VMware Cloud Community
dnaeher
Contributor
Contributor

When I run KB89619_Verify_Unsigned_VIBs_on_ESXi_(ver_1.2) in the CLI I get and error.

When I run KB89619_Verify_Unsigned_VIBs_on_ESXi_(ver_1.2) in the CLI, the script seems to run, but in the results file I am getting the following error.  "You cannot call a method on a null-valued expression."

0 Kudos
3 Replies
LucD
Leadership
Leadership

Can you provide the full error message, including the line number?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
dnaeher
Contributor
Contributor

I see no errors when I run the command, seems to run find, but when I look at the results I am not seeing what I should.

 

HostNameOverallStatusFound_Unsigned_VIBsHostConnectionStateVIB_IDVIB_AcceptanceLevelVIB_SignatureVerificationERRORsVIB_NameVIB_Vendor
MY IPSkippedSkippedConnectedNANANAYou cannot call a method on a null-valued expression.NANA
0 Kudos
LucD
Leadership
Leadership

You are not seeing PS errors because the script uses a Try-Catch, which intercepts terminating exceptions.
It does look like the Get-EsxCli doesn't return an object, hence the "You cannot call ..." entry in the table.

I assume that ESXi node is connected in the vCenter?
Because the script only looks at connected ESXi nodes.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos