VMware Cloud Community
pfuhli
Enthusiast
Enthusiast

VI-Client Sessions getIPs

Hi there,

did you ever wondered from which IP addresses your vSphere clients are connecting?

Ok, you have the session list in your vSphere client but there you only are able to determine the username and the logon time. But what if you have role-based logins (the same logins a few times) and you need to know where a certain connection is coming from?

I found out that there is obviously no way to get the source IP of a vSphere client login through the VMware API nevertheless there are some ugly methods to find out about the IPs from the logs.

Please comment if you are in need of a PowerShell function to find out the client IP of a vSphere client.

Hopefully this will result in a feature request to be fullfilled by VMware 😉

So please spread the word if you find this usefull, comment on this thread why you need this info and give a '+1'

Best regards,

daniel

P.S. Thanks to peetz and schepp for providing work arounds.

Tags (2)
Reply
0 Kudos
13 Replies
peetz
Leadership
Leadership

+1 from me!

I want to know on what client machines the vSphere client is installed, and I also like to see this information in the vSphere Client (ADministration / Sessions) !

- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Reply
0 Kudos
LucD
Leadership
Leadership

I agree that this info would be useful and that it should be in the SessionManager somewhere.

So a +1 from me.

In the mean time, there is a way to get at this info, have a look at my Get complete vCenter session info post


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

pfuhli
Enthusiast
Enthusiast

Great work Luc!!! Thanks a lot - you are a guru!! Smiley Wink

This is exactly the information i was searching for.

...nevertheless it would be great to have that function/cmdlet integratet into PowerCLI out of the box.

So if you like that - please keep on voting!!

Reply
0 Kudos
hank-ger
Enthusiast
Enthusiast

Also +1 from me.

beacause it ist very usefull for my daily work.

hope these feature request will be implementet soon.

Reply
0 Kudos
Vaiper
Enthusiast
Enthusiast

+1 from me!

@LucD nice work! You are the PowerCLI god 😉

Have a nice day!

best regards

sven

don't forget: if answers are helpful, please award points
Reply
0 Kudos
stony007_de
Enthusiast
Enthusiast

+1 from here...

@LucD perfect!!

best regards

stephan

Reply
0 Kudos
mishradhananjay
Contributor
Contributor

+1 from me as well because its really helpfull for day to day working

Reply
0 Kudos
peetz
Leadership
Leadership

Thanks Luc, outstanding job!

Your script is a more than acceptable work-around, but I also like the voting to continue ...

- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee

Thanks for your comments and raising this feature, I will make sure it gets looked at and will see if we can do anything to include this in a future version of PowerCLI.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
pfuhli
Enthusiast
Enthusiast

Alan,

thanks for taking it into account.

Best regards,

daniel

Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee

No problem, we always enjoy ideas like this where we can make PowerCLI a better experience for users.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
JP_M
Contributor
Contributor

Hi Daniel I have an active session in vSphere 4.1, when I terminate the session it will re appear within 2 min. Could you send on your PowerShell function to find out where this session is coming from.

Thanks

JP_M

Reply
0 Kudos
LucD
Leadership
Leadership

There is a link to the script in my blog post (see my earlier reply).


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

Reply
0 Kudos