VMware Cloud Community
niceguy001
Enthusiast
Enthusiast

get-vievent and get-task to acquire a task's information?

i'm trying to use powercli to search and show description of a specific task, such as the result of snapshot-removing. The best result would be showing the full content of the description just like what vCenter tells you.

As shown below: 

niceguy001_0-1685538982238.png

however, the "get-vievent" only shows some of the information of this task, as shown below:

 

PS C:\Users\admin> get-vievent -entity test_host1 -types info -maxsamples 1


Info                 : VMware.Vim.TaskInfo
Key                  : 19461
ChainId              : 19461
CreatedTime          : 5/26/2023 11:37:27 AM
UserName             : VSPHERE.LOCAL\Administrator
Datacenter           : VMware.Vim.DatacenterEventArgument
ComputeResource      : VMware.Vim.ComputeResourceEventArgument
Host                 : VMware.Vim.HostEventArgument
Vm                   : VMware.Vim.VmEventArgument
Ds                   :
Net                  :
Dvs                  :
FullFormattedMessage : Task: Remove snapshot
ChangeTag            :

 

And the "get-task" seemed not helping because what i see is very limited answers from output.

 

Does anyone know methods to extract complete description of a specific task in vCenter?

 

0 Kudos
1 Reply
LucD
Leadership
Leadership