VMware Cloud Community
vmk2014
Expert
Expert

Error While Running vCheck from Power cli

HI,

  I am trying to run vCheck health report but after executing the script its doesn't move forward or even its move it it doesn't show  any output. Also, it keeps evaluating plugins.

Thanks in advance for your help!

Thanks

vm2014

Reply
0 Kudos
16 Replies
LucD
Leadership
Leadership

Are you connecting to a vCenter ?

Which vSphere/PowerCLI versions are you running this against ?


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

Reply
0 Kudos
vmk2014
Expert
Expert

LuCd,

   Yes, i am connecting the VC when i am running the script. I am using Power Cli version 6 Release 1. Need your help here.

VC version is 5.5

thanks

vm2014

Reply
0 Kudos
LucD
Leadership
Leadership

I could only reproduce this error when I kill the connection to the vCenter while the vCheck script is running.

The 1st line seems to indicate you experienced a drop of the connection as well.


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

Reply
0 Kudos
vmk2014
Expert
Expert

Hi LucD,

      PFA the screenshot. Its doesn't move forward. Thanks

thanks

vm2014

Reply
0 Kudos
LucD
Leadership
Leadership

Could this be caused by the amount of events the script is trying to retrieve ?

How many days did you specify to go back for events ?


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

Reply
0 Kudos
vmk2014
Expert
Expert

Lucd,

  I want to retrieve weekly report.

thanks

vm2014

Reply
0 Kudos
LucD
Leadership
Leadership

Could you try with 1 day ?

Just to check if it could be resource thing ?


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

Reply
0 Kudos
vmk2014
Expert
Expert

LucD,

   Can you please let me know where i need to make changes for 1 day ?

Thanks

vm2014

Reply
0 Kudos
vmk2014
Expert
Expert

LucD,

   Could you please let me know how to try with 1 day ? Thanks.

Thanks

vmk

Reply
0 Kudos
LucD
Leadership
Leadership

Have a look at variable $VCEventAge in plugin 42.

The default is 1 day, but perhaps you changed it when you first ran vCheck.


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

Reply
0 Kudos
vmk2014
Expert
Expert

Hi LucD,

    After changing to Day 1, the script was executed successfully but I am not able to find the output. Any idea where will be the output path ?

Thanks

vmk2014

Reply
0 Kudos
LucD
Leadership
Leadership

If you didn't pass an OutputPath parameter on the invocation, it should be in the Temp folder ($env:Temp)

$Env:TEMP + "\" + $Server + "_vCheck_" + $Date.Day + "-" + $Date.Month + "-" + $Date.Year + ".htm"


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

Reply
0 Kudos
vmk2014
Expert
Expert

LucD,

      Please find the screenshot while generating final output.I don't find any report in temp folder. Output file name ?

Thanks

vmk2014

Reply
0 Kudos
LucD
Leadership
Leadership

The Get-ReportHtml function is defined in the Style.ps1 files (these can be found under the Styles folders


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

Reply
0 Kudos
vmk2014
Expert
Expert

Thanks LucD,

        Its seems it failed or no output generated. Does the script failed to generate output ? Let me know how to set path for output if i again run the script.

Thanks

vmk2014

Reply
0 Kudos
sneddo
Hot Shot
Hot Shot

Did you update your style as @LucD mentioned? You won't get any output until you do that. It needs to be Version 1.1 at least (1.3 is the latest) due to the change in style handling.


As for your original issue, this is something that has been discussed here: https://github.com/alanrenouf/vCheck-vSphere/issues/217

There are some tweaks that may help resolve this for you.

Reply
0 Kudos