Automation

 View Only
  • 1.  Get vcenter users session history

    Posted Mar 24, 2023 11:04 AM

    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 



  • 2.  RE: Get vcenter users session history
    Best Answer

    Posted Mar 24, 2023 11:25 AM

    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



  • 3.  RE: Get vcenter users session history

    Posted Mar 24, 2023 12:11 PM

    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?



  • 4.  RE: Get vcenter users session history
    Best Answer

    Posted Mar 24, 2023 12:54 PM

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