Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246801

PowerCLI objects "cold" not "hot"?

$
0
0

I think I just discovered that something embarrassingly fundamental has eluded me about PowerCLI. Previously, I thought that an object representing a VM (for example) was at all times a hot window into the state right now of the VM, dynamically refreshed by the system when necessary. I never tested this; it was just my assumption. But I'm coming to the conclusion, based on experimentation, that it's a cold record of the VM's state at the time Get-VM was called. Am I right here?

 

On research, I found that if you do $myview = Get-View $vm.ID, you can call $myview.UpdateViewData() and then get fresh information. As far as I can tell, there's no "update" or "refresh" method for just plain ol' VM objects, correct? I would just need to repeat the Get-VM operation.

 

Thanks to anybody who can let me know whether I'm on the right track.


Viewing all articles
Browse latest Browse all 246801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>