RaviMV's Posts

Could you please gimme the correct syntax ?
Hi Luc, Good to see that script you have provided. its worked for entire VM in a cluster/ VCenter.  I'm looking for the script that can provide the report, only list of the VMs. Eg : ... See more...
Hi Luc, Good to see that script you have provided. its worked for entire VM in a cluster/ VCenter.  I'm looking for the script that can provide the report, only list of the VMs. Eg : VM1 VM3 VM10 VM14 .... Could you please help me out on this ?
Finally below script is working... $vCenter = Read-Host "Enter vCenter Server name" Connect-VIServer $vCenter $file = "C:\Temp\vm_list.txt" $vms = Get-Content $file Get-VM $vms | Get... See more...
Finally below script is working... $vCenter = Read-Host "Enter vCenter Server name" Connect-VIServer $vCenter $file = "C:\Temp\vm_list.txt" $vms = Get-Content $file Get-VM $vms | Get-view |Select-Object @{N=”VM Name”;E={$_.Name}},@{Name=”VMware Tools”;E={$_.Guest.ToolsStatus}} | Export-CSV  C:\Temp\VMwareToolsStatus.csv
Hi Spoon, Any update on this plz.........
PS C:\Users\Ravi> C:\Users\Ravi\Desktop\VMtools-Script\Check-VMtools.ps1 Enter vCenter Server name: indvcenter01 Write-Host Name of Cluster: : cluster01 Name Port User  ---- ---- -... See more...
PS C:\Users\Ravi> C:\Users\Ravi\Desktop\VMtools-Script\Check-VMtools.ps1 Enter vCenter Server name: indvcenter01 Write-Host Name of Cluster: : cluster01 Name Port User  ---- ---- ----  Indvcenter01 443 VCLASS\vcadmin  Get-VM : 06-Nov-15 5:26:39 AM Get-VM VM with name 'vcsa' was not found using the specified filter(s).  At C:\Users\Ravi\Desktop\VMtools-Script\Check-VMtools.ps1:30 char:34 + Get-Cluster $ClusterName | Get-VM $_.name | Get-View | Select-O ... + ~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException   + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM Get-VM : 06-Nov-15 5:26:39 AM Get-VM VM with name 'winxp' was not found using the specified filter(s).  At C:\Users\Ravi\Desktop\VMtools-Script\Check-VMtools.ps1:30 char:34 + Get-Cluster $ClusterName | Get-VM $_.name | Get-View | Select-O ... + ~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException   + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM  
Thanks!, I'll check and update you soon..
Sure. I'll awaiting for your reply. I have modified few changes .. Not sure this will work out. Get-Content c:\Temp\vmlist.txt | where {$_.powerstate -ne "PoweredOff" } | where {$_.Guest.T... See more...
Sure. I'll awaiting for your reply. I have modified few changes .. Not sure this will work out. Get-Content c:\Temp\vmlist.txt | where {$_.powerstate -ne "PoweredOff" } | where {$_.Guest.ToolsVersionStatus -ne "guestToolsCurrent"} | % { get-view $_.id } | select Name, @{ Name="ToolsVersion"; Expression={$_.config.tools.toolsVersion}}, @{ Name="ToolStatus"; Expression={$_.Guest.ToolsVersionStatus}} | Export-Csv -NoTypeInformation -UseCulture -Path C:\Temp\VMHWandToolsInfo.csv
Thanks for quick response. $VC = Read-Host "Enter vCenter Server name" $Clustername = Read-Host Write-Host "Name of Cluster: " $VMName = "VM1","VM2" Instead of mentioning the VM's one b... See more...
Thanks for quick response. $VC = Read-Host "Enter vCenter Server name" $Clustername = Read-Host Write-Host "Name of Cluster: " $VMName = "VM1","VM2" Instead of mentioning the VM's one by one. Can't we put it in one .txt file ? Like  Get-Contain C:\temp\Vm.txt  ???  so that it will easy to paste in one txt file. Is it possible to add in the script ?
Also the VM's are not in single VCenter.. totally we have 4 VCenter.
I want run this script in production environment, before that I want it check on my home lab.. Totally we have 1500 VMs. in that there are 800+ are not updated.. So in this scenario I can't c... See more...
I want run this script in production environment, before that I want it check on my home lab.. Totally we have 1500 VMs. in that there are 800+ are not updated.. So in this scenario I can't check all the server status, I want it in simple way which run the script with provided VM's.. I have script to enable " the check the upgrade vmtools during power cycle" for VM's. its only selected VMs. So the same way I'm looking for where can use script for to check the status only provided VM's.  Can you help on this.. I have script syntax which need to be modify for provided servers $vCenter = Read-Host "Enter vCenter Server name" Connect-VIServer $vCenter Write-Host "Name of Cluster: " -nonewline; $Clustername = Read-Host Get-VM | Get-View | Select-Object @{N=”VM Name”;E={$_.Name}},@{Name=”VMware Tools”;E={$_.Guest.ToolsStatus}} | Export-CSV c:\temp\VMwareToolsStatus.csv
When I run the script I found below error message PS C:\Users\Ravi> C:\Users\Ravi\Desktop\Update Check-VMtools.ps1   Name Port User  ---- ---- ----  Indvcenter01 443 VCLAS... See more...
When I run the script I found below error message PS C:\Users\Ravi> C:\Users\Ravi\Desktop\Update Check-VMtools.ps1   Name Port User  ---- ---- ----  Indvcenter01 443 VCLASS\vcadmin  New-VIProperty : Parameter set cannot be resolved using the specified named parameters. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:20 char:1 + New-VIProperty -Name ToolsVersion -ObjectType VirtualMachine + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   + CategoryInfo : InvalidArgument: (:) [New-VIProperty], ParameterBindingException   + FullyQualifiedErrorId : AmbiguousParameterSet,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVIProperty -ValueFromExtensionProperty : The term '-ValueFromExtensionProperty' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:21 char:1 + -ValueFromExtensionProperty 'Config.tools.ToolsVersion' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (-ValueFromExtensionProperty:String) [], CommandNotFoundException   + FullyQualifiedErrorId : CommandNotFoundException -Force : The term '-Force' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:22 char:1 + -Force > $Null + ~~~~~~   + CategoryInfo : ObjectNotFound: (-Force:String) [], CommandNotFoundException   + FullyQualifiedErrorId : CommandNotFoundException New-VIProperty : Parameter set cannot be resolved using the specified named parameters. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:25 char:1 + New-VIProperty -Name ToolsVersionStatus -ObjectType VirtualMachine + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   + CategoryInfo : InvalidArgument: (:) [New-VIProperty], ParameterBindingException   + FullyQualifiedErrorId : AmbiguousParameterSet,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVIProperty -ValueFromExtensionProperty : The term '-ValueFromExtensionProperty' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:26 char:1 + -ValueFromExtensionProperty 'Guest.ToolsVersionStatus' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (-ValueFromExtensionProperty:String) [], CommandNotFoundException   + FullyQualifiedErrorId : CommandNotFoundException -Force : The term '-Force' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:27 char:5 + -Force > $Null + ~~~~~~   + CategoryInfo : ObjectNotFound: (-Force:String) [], CommandNotFoundException   + FullyQualifiedErrorId : CommandNotFoundException Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'V' was not found using the specified filter(s).  At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException   + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'C' was not found using the specified filter(s).  At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException   + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'S' was not found using the specified filter(s).  At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException   + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'A' was not found using the specified filter(s).  At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~   + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException   + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM
Thank you for the blog. This is any there options to check only for selected VM's not all.
Hello Team I need a script which fetch the VMtools updated report for selected servers. Regards, Ravi
VMware KB: Diagnosing the vSphere Client when it fails to connect to an ESX/ESXi host or vCenter Server
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1013507 I've pasted the links, Plz check it might helpfull to you.
VMware KB: vCenter Server and Update Manager check new notifications task continually fails
VMware KB: vCenter Service Status displays an error for com.vmware.converter
Try this one. VMware KB: Error after upgrading to vCenter Server 5.x : com.vmware.converter alert unable to retrieve health data
VMware KB: VMware vCenter Server displays the alarm: VMware critical notification