Angels Technology

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, August 8, 2012

Find what vms have out of date vmware tools

Posted on 12:43 PM by Unknown

    Method 1:
    PowerCli Command

    Get-VM | Where-Object {$_.ExtensionData.Guest.ToolsStatus -eq "toolsOld"}
    Notes in <http://communities.vmware.com/message/2094175#2094175>









    Method2:
    Rvtools

    Use Rvtools to find what  hosts don’t have tools installed or an in need of updating..










    Other method: PowerCLI Script
    I put it up because its good to decode code to understand powercli better
    It does the same thing as method 1



    #Description: This function checks for VMs with out-of-date VMware tools
    #Purpose: Discovering VMs that require VMTools updated
    #Designed to be added as function into $profile for quick-admin tasks, run from commandline


    #Author: Kirk Munro, extracted from VMware powerpack: http://www.powergui.org/entry.jspaexternalID=1802&categoryID=290
    #Tested with: ESX4.1
    #Last edit by: MsMiller on 11/08/2011
    function func_VMs_with_Out_of_Date_Tools()
    {
    $noConnection = $true
    if ($defaultVIServers) {
     foreach ($managedHost in $defaultVIServers) {
      $noConnection = $false
      Get-VM -Server $managedHost | Get-View | ForEach-Object {
       if ($_.Guest.ToolsStatus -eq "ToolsOld"){
        $_.PSObject.TypeNames.Insert(0,"$($_.PSObject.TypeNames[0])#VmwarePowerPackExtension")
        $_ `
         | Add-Member -MemberType NoteProperty -Name ToolsStatus -Value $_.Guest.ToolsStatus -PassThru `
         | Add-Member -MemberType NoteProperty -Name ToolsVersion -Value $_.Guest.ToolsVersion -PassThru `
         | Add-Member -MemberType NoteProperty -Name ManagedHost -Value $managedHost.Name -PassThru
       }
      }
     }
    }
    if ($noConnection){
     Show-MessageBox -Text 'You must connect to one or more vSphere servers before you can run the VMs with Out of Date Tools

    best practice query on those servers. Please click on the ''Managed Hosts'' node, connect to one or more of the vSphere

    servers you have configured there, and then try again.' -Caption 'Connection not established' -Buttons 'OK' -Icon

    'Information' | Out-Null
    }
    }

     func_VMs_with_Out_of_Date_Tools | Select-Object -property 'Name', 'ToolsStatus', 'ToolsVersion', 'ManagedHost'


    From: http://ingamiller.blogspot.com/2011/08/checks-for-vms-with-out-of-date-vmware.html













    *note:
    VMware Tools do not always change significantly when the ESX build is updated and to avoid unnecessary virtual machine restarts the tools are only marked Out of Date when a major change has occurred.
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1008121
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in command line, esxi, rvtools, vmware, vmware tools, vsphere | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Copy and paste clipboard items to and from your vsphere virtual machines and your pc
    Wanted to copy and paste text between your pc and a vm? Now you can. Power off your VM. Go to the vm properties->Options->Advanced-...
  • Interesting look at Win cpu usage vs Vmware CPU usage
    I came across this scenario: The windows task manager shows the cpu of the vm pegged at 100%. The vmware performance monitor says that ...
  • Storage comparison
    One of Cormac Hogan s posts provides a good basis for compares of different storage types for vmware Vsphere and how they stack up. He dis...
  • E1000 vs e1000e in vmware : notes
    Performance difference " The performance should be about the same, the reason for the change is that Intel is not longer supporting the...
  • vCenter and Hosts Disconnected -- Reason: Cannot verify the SSL thumbprint
    Just saw this over on the forums, but if your hosts are getting this error: Cannot syncronize the host <hostname.fqdn>, Reason: Cannot...
  • Vmware esxi : Intel Pro/1000 ET quad port adapter and ISCSI
    I've seen issues pop up with intel quad ports here and there on the forums so I thought it would be good to note down what worked here...
  • Vmware DRS anti affinity rules wont let you enter maintenance mode for a esxi host
    You have a DRS rule that specifies that 2 vms need to be kept apart: In this case: 250-FT and 250sql3 For larger clusters with multiple...
  • Snapshot creation /reversion/ deletion/ listing with vim-cmd
    Here we are going to use the command line on a esxi host to create, revert, and delete snapshots. First ssh into your host. Important thi...
  • shutdown your esxi host using powercli
    if you want to shutdown a host using powercli: Set-VMhost -VMhost HOSTNAME -State Maintenance get-vmhost HOSTNAME | Foreach {Get-View $_.ID}...
  • Setting your esxi host to restart automatically after crash or purple screen aka psod
    The default and recommended setting is to leave the purple screen of death up to help you notice that het host has died and also leave t...

Categories

  • 5.1
  • backup
  • cloud
  • cluster
  • command line
  • console
  • converter
  • cpu
  • datacenter
  • datastore
  • datastore. rdm
  • DCUI
  • dell
  • disaster recovery
  • display
  • DR
  • e1000
  • e1000e
  • ec2
  • esx
  • esxi
  • esxtop
  • extent
  • Good for enterprise
  • HA
  • hcl
  • host
  • HP
  • ibm
  • iometer
  • iscsi
  • iso
  • linked mode
  • logs
  • MAC
  • memory
  • NFS
  • NIC
  • NTP
  • ova
  • ovf
  • p2v
  • pcie
  • performance
  • phone
  • powercli
  • powershell
  • PSOD
  • raid
  • RDM
  • resource pool
  • rvtools
  • scsi
  • sddc
  • snapshots
  • SQL
  • SRM
  • ssh
  • storage
  • svmotion
  • syslog collector
  • v2v
  • vapp
  • vcenter
  • vcloud
  • vcp
  • veeam
  • VI console
  • vm
  • vmdk
  • VMFS
  • vmkfstools
  • vmotion
  • VMUG
  • vmware
  • vmware tools
  • vmware.esxi
  • vmxnet3
  • vsphere
  • vum
  • web client
  • windows

Blog Archive

  • ►  2013 (28)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (14)
    • ►  May (1)
    • ►  April (1)
    • ►  March (5)
    • ►  February (1)
    • ►  January (1)
  • ▼  2012 (138)
    • ►  December (2)
    • ►  November (13)
    • ►  October (26)
    • ►  September (19)
    • ▼  August (35)
      • Cannot find adaptec raid controllers on the vmware...
      • Storage Vmotion completes in zero seconds : no act...
      • Esxi : do logs persist after reboots if there is a...
      • What’s New in VMware vSphere 5.1?
      • ESXi How to backup restore the host configuration ...
      • Adding a SCSI controller to a virtual machine (VM)...
      • Dell server PCIE card not working with esxi install
      • Can a virtual machine (vm) have more ram allocated...
      • VMDK : Thin vs thick disks : is there a performanc...
      • Increase disk space of vmdk with snapshots : possi...
      • windows notes: Teamviewer free for home users
      • Can you vmotion the vpshere vcenter server host to...
      • How to update a esxi host that is not connected to...
      • Misc powercli commands I have found useful
      • powershell script to move pc to a ou
      • performance issues and problems: set Write back mo...
      • Adding / increasing disk space of a vmdk, to power...
      • Remove a datastore that no longer exists from inve...
      • Vmware VMDK disk: Convert raw mapped lun from a v...
      • HP custom esxi iso cd download page ESX also
      • How to read PSOD errors on your esxi host
      • PSOD : Getting the Purple screen of death for test...
      • Download older versions of vmware tools for vms on...
      • Find what vms have out of date vmware tools
      • Vmware hardening: Preventing Other Users from View...
      • VSA : Vsphere Storage Appliance use Raid 5 and Raid 6
      • Esxi : Find which host has a lock on a file using ...
      • Repeated characters when typing in remote console ...
      • Why use OVA or OVF to export virtual machines and ...
      • Creating a ovf or ova file of a virtual machine f...
      • Check esxi host's disk latency / storage performan...
      • Copy and paste clipboard items to and from your vs...
      • Interesting windows links
      • Dell customized esxi iso
      • E1000 vs e1000e in vmware : notes
    • ►  July (34)
    • ►  June (9)
Powered by Blogger.

About Me

Unknown
View my complete profile