VMware Cloud Community
GreenIT
Enthusiast
Enthusiast

PowerCLI question

Hello,

I am looking to get the following information using PowerCLI 4.1 at the datacenter level (Vsphere 4)

1. Total available and used CPU

2. Total available and used RAM

3. The date when the VM was last accessed.

Thanks in advance!

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership

Point 1 and 2 is no problem, but point 3 is something you would need to look for inside the OS running on the guest.

Unless you mean powered on by access ?


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

Reply
0 Kudos
GreenIT
Enthusiast
Enthusiast

We end up creating VM's which the requestor never uses. So basically looking at the usage.  

Reply
0 Kudos
LucD
Leadership
Leadership

You could look at CPU usage, but that is in my opinion not a good indicator.

Are these VMs powered on all the time (even if they are not used) ?

How do your users access these VMs ? Do they connect via the vSphere client console ? Or do they do a RDP session ?

Is there a Windows OS running on these VMs ? Can you do WMI calls to the OS in the guest ?


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

Reply
0 Kudos
GreenIT
Enthusiast
Enthusiast

Yes these VM's are always powered on  even if they are not used.

Users connect through RDP and putty as we have both windows and and linux guests.

For windows we can do a WMI call.

Reply
0 Kudos