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."
Can you provide the full error message, including the line number?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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.
HostName | OverallStatus | Found_Unsigned_VIBs | HostConnectionState | VIB_ID | VIB_AcceptanceLevel | VIB_SignatureVerification | ERRORs | VIB_Name | VIB_Vendor |
MY IP | Skipped | Skipped | Connected | NA | NA | NA | You cannot call a method on a null-valued expression. | NA | NA |
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