Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Query: VMparameter script working on 1 vcenter but not on another vCenter

$
0
0

I have created a script to retrieve  VM paramters "VM Name, DNS Name, Creation Date, Power State ,OS Full Name ,VM Hardware Version , Tools Version , VM Tools Status ,

 

 

CPU HOT Enabled, Memory Hot Enabled , Thin Provisioned, HardDiskName, CPU Reservation, CPU Limits, Memory Limits and Memory Reservation". The script is working on 1

 

 

vCenter but not on another vcenter.

 

If I run manually one by one parameter on the powercli command prompt, i'm getting values. But if i try to get all the parameter values in a script, getting empty CSV

 

 

file

 

    $VMview =Get-VM VMNAME | Get-View

$VMMemReservationsGB = $VMView.Config.MemoryAllocation.Reservation/1024

 

What might be the reason..

I'm not getting any error message while executing the script. Could you please let us know what are pointer we have to check.

 

Thanks in Advance..


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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