PowerCLI

  • 1.  How to get ESXi Tasks info from all Hosts

    Posted Dec 18, 2024 03:40 AM

    Hi,

    How to get the Tasks and Events Informaiton of all ESXi hosts from last 7 days. I tried Get-Taskplus function, it is not showing ESX tasks related to changes made on the ESXi, HA changes, etc

    Please help!!



  • 2.  RE: How to get ESXi Tasks info from all Hosts

    Posted Dec 18, 2024 03:41 AM

    How did you call the function?



    ------------------------------


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


    ------------------------------



  • 3.  RE: How to get ESXi Tasks info from all Hosts

    Posted Dec 18, 2024 05:12 AM

    LucD,

    I called as below

    Get-TaskPlus -Start (Get-Date).AddDays(-7) -MaxSamples ([int]::MaxValue) -Details | Export-Excel -Path "D:\reports\Prod_All_Tasks_Info.xlsx"




  • 4.  RE: How to get ESXi Tasks info from all Hosts

    Posted Dec 18, 2024 08:27 AM

    I observed the same.
    It looks as if not all Tasks shown in the VCSA are kept under the TaskManager anymore.

    I'll check if I can find how to list all tasks



    ------------------------------


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


    ------------------------------



  • 5.  RE: How to get ESXi Tasks info from all Hosts

    Posted Dec 18, 2024 09:38 AM

    Thank you LucD. I will wait for your update.




  • 6.  RE: How to get ESXi Tasks info from all Hosts

    Posted Dec 18, 2024 02:57 PM

    I did some further testing and it looks as if the TaskManager has no option of providing all the Tasks that the Web Client is showing.
    The only way I can get those Tasks is by retrieving all TaskEvent entries with Get-VIEvent or my Get-VIEventPlus function.



    ------------------------------


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


    ------------------------------