VMware Cloud Community
lElOUCHE_79
Enthusiast
Enthusiast
Jump to solution

Get vcenter users session history

some times when I use to check users session history, usualy I go through https://[your_vcenter_server]/mob?moid=SessionManager

I'm asking if there's a way to script this, I'm not sure if that is possible but I would like to find a smarter way to identify user connectivity to vcenters 

0 Kudos
2 Solutions

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Do you mean history or the current sessions (SessionList)?
For the history you can look at events, see for example Solved: Re: Get user logon/logoff history - VMware Technology Network VMTN


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

View solution in original post

LucD
Leadership
Leadership
Jump to solution

The Get-VIEvent cmdlet also has a Finish parameter.
You can ask for those 2 day by using Start and Finish


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

View solution in original post

3 Replies
LucD
Leadership
Leadership
Jump to solution

Do you mean history or the current sessions (SessionList)?
For the history you can look at events, see for example Solved: Re: Get user logon/logoff history - VMware Technology Network VMTN


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

lElOUCHE_79
Enthusiast
Enthusiast
Jump to solution

Thank you very much it's what I'm looking for except that I would like to find a way to get history for specific date.

for example let say I would like to only show for 2 days, like 10 & 11 of Marsh

if I use (Get-Date).AddDays(-14) I think it will take a long time to generate details, I'm right?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

The Get-VIEvent cmdlet also has a Finish parameter.
You can ask for those 2 day by using Start and Finish


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