Thanks for the reply. I too believe that physical port to be removed from the port-channel, but is there any vmware article or KB to confirm this? I found this William's post https://www.virt...
See more...
Thanks for the reply. I too believe that physical port to be removed from the port-channel, but is there any vmware article or KB to confirm this? I found this William's post https://www.virtuallyghetto.com/2017/11/moving-esxi-hosts-with-lacplag-between-vcenter-servers.html that says it can be moved just like that to VSS without removing physical port from port channel, but this never works. Interested to know what is the VMware supported way of doing this.
I have a cluster of 8 nodes running in vCenter 6.5 and want it to move to another vCenter. The VM traffic phy uplinks (two of them) are configured with a LAG in DVS. i have created a VSS in ever...
See more...
I have a cluster of 8 nodes running in vCenter 6.5 and want it to move to another vCenter. The VM traffic phy uplinks (two of them) are configured with a LAG in DVS. i have created a VSS in every host and respective portgroups. in order to move them between vCenter's, i need to move the VM's to standard switch, for this if i remove a uplink from LAG and connect to standard switch, and change the VM portgroup to VSS, the virtual machine never comes into network. Even in some hosts i observed, the moment i remove a uplink from LAG the VM's in the host stops responding to network all of a sudden. what is the correct procedure to be followed to move the VM's from DVS with LAG configured to standard switch?
That "average" was confusing there. Sorry i just need CPU ready summation and CPU ready percentage value on 1 min interval for a time period of any specified five hours on previous day.
Want to collect CPU ready summation and average percentage specifically for a few hours in the day. Its relatively easy to pull out the summation but need a script which will show up average per...
See more...
Want to collect CPU ready summation and average percentage specifically for a few hours in the day. Its relatively easy to pull out the summation but need a script which will show up average percentage also. For example, CPU ready summation and avg percentage values of all vm's in a cluster for specific consecutive five hours in a day with 1min interval exported to CSV.
Thank Luc, works good. Actually i went in to extensiondata before posting this question, i had a look into configuration, configurationex and had a inside look into drsconfig, drsvmconfig but ig...
See more...
Thank Luc, works good. Actually i went in to extensiondata before posting this question, i had a look into configuration, configurationex and had a inside look into drsconfig, drsvmconfig but ignored summary section, never imagined it would be there
Thanks Luc, its this one I was looking for. Just one question how to "numeric" sort the field Instance? When I use sort-object on instance it sorts like 0,1,11,12... Instead I need 0,1,2,3,4.......
See more...
Thanks Luc, its this one I was looking for. Just one question how to "numeric" sort the field Instance? When I use sort-object on instance it sorts like 0,1,11,12... Instead I need 0,1,2,3,4.... Should we declare "instance" as [int] ?
Thanks for replying Luc. This script gives only one value per ESXi, I believe its average of all processor usage. But my requirement was CPU usage "per processor" in my ESXi at the time I run...
See more...
Thanks for replying Luc. This script gives only one value per ESXi, I believe its average of all processor usage. But my requirement was CPU usage "per processor" in my ESXi at the time I run the script. Basically i'm trying to get something like PCPU USED% in ESXTOP where it shows up all 32 processor usage individually in a line and a average atlast. This can also been seen in vcenter when we select a ESXi host and then performance CPU in realtime. We can see all the processor named as 0,1,2.... and we can see the average for every processor.
Hi, I have esxi server with 32 processor (logical, HT enabled) and how do I get per processor usage average using powercli (same as displayed in vcenter CPU realtime usage stats)
We had a ESXi 5.5 cluster which has 8 hosts and the CPU usage (NOT speaking about CPU Util) was around 50% for each host. We upgraded the vCenter and ESXi to 6.0 version. vCenter build 3339083 a...
See more...
We had a ESXi 5.5 cluster which has 8 hosts and the CPU usage (NOT speaking about CPU Util) was around 50% for each host. We upgraded the vCenter and ESXi to 6.0 version. vCenter build 3339083 and ESXi build 3568940. Right after upgrading the CPU usage for each host stands steady at 100% at vCenter and the ESXtop still shows %USED as around 50% as before. In vCenter, for CPU usage reatime data, there are 32 cores (0 -31) all have average of around 50% but when i select host entry the usage is 100%. Confused how 32 cores are showing up 50% average and the host entry which is a sum of all core entry shows 100% usage after upgrading to ESXi 6? Whether to believe ESXTOP or vCenter performance data?
Thanks for the code. But is a migrate VM task required for powered on VM's after hardening? I believe on and after powercli 5.5 and esxi 5.5 versions, these hardening applies on the fly. For exa...
See more...
Thanks for the code. But is a migrate VM task required for powered on VM's after hardening? I believe on and after powercli 5.5 and esxi 5.5 versions, these hardening applies on the fly. For example if i limit the remote console connections to 1, and try to take two console it immediately prohibits the second connection without reboot or migration of the VM. Even VMware support says no reboot / migration required anymore.
This is the code to fetch IP from XML and set to NIC, I have vmtoolsd.exe in my windows environment path variable. I have four dynamic properties defined IP, Mask, Gateway and DNS.
$comman...
See more...
This is the code to fetch IP from XML and set to NIC, I have vmtoolsd.exe in my windows environment path variable. I have four dynamic properties defined IP, Mask, Gateway and DNS.
$command = @'
cmd.exe /C vmtoolsd.exe --cmd "info-get guestinfo.ovfEnv" > C:\temp\poolip.txt
'@
Invoke-Expression -Command:$command
$cont = @()
$cont = Get-Content c:\temp\poolip.txt
$regex = [regex] "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
$ips = $regex.matches($cont)
$dns = $ips[0].value
$ipaddr = $ips[1].value
$mask = $ips[2].value
$gateway = $ips[3].value
Invoke-command{
netsh interface ip set address "Local Area Connection" static $ipaddr $mask $gateway
netsh interface ip add dns "Local Area Connection" $dns}
Thanks Again!
Thanks Craig. VM is connected to a port group mapped to IP POOL but somehow the web client do not show dynamic properties. But noticed in vSphere Windows client works perfect. Already started ...
See more...
Thanks Craig. VM is connected to a port group mapped to IP POOL but somehow the web client do not show dynamic properties. But noticed in vSphere Windows client works perfect. Already started working on a powershell script to extract IP details fetched from vmware tools. Currently deeply reading powershell regex Thanks a Ton!
I have tried this, but getting struck at dynamic properties. In you "edit property settings" screen shot in the field "category" i see Network value. But in my environment (vsphere 5.5, vmvers...
See more...
I have tried this, but getting struck at dynamic properties. In you "edit property settings" screen shot in the field "category" i see Network value. But in my environment (vsphere 5.5, vmversion 10) the list box is empty. Also down below, in "Macro" field i get only one option "Vcenter server ip Address" Can you please shed some light on this?
Yes you are correct, ip pools hurt badly You have nailed the 2 points which i was hunting for with clear screenshots, on how to add that dynamic property and on how to read ovf properties fro...
See more...
Yes you are correct, ip pools hurt badly You have nailed the 2 points which i was hunting for with clear screenshots, on how to add that dynamic property and on how to read ovf properties from inside the win guest machine. Going to try this right away will post back if have any doubt or struck any where. You are brilliant! this piece of info is not available with VMware support even believe me! Thanks a Zillion for replying!!!
There is a example here http://www.v-front.de/2014/01/building-self-configuring-nested-esxi.html which uses a python script to assign to nested ESXi created on the VM. Need similar one for Windo...
See more...
There is a example here http://www.v-front.de/2014/01/building-self-configuring-nested-esxi.html which uses a python script to assign to nested ESXi created on the VM. Need similar one for Windows VM to pull IP from IP pool and set to NIC adapter.