Tagged: PowerCLI Toggle Comment Threads | Keyboard Shortcuts

  • Chris 11:18 pm on January 1, 2011 Permalink | Reply
    Tags: postaweek2011, PowerCLI, ,   

    Get the Local Time for your VMHost 

    Hi Folks ,

    Quick one liner to get the local time of your vmhost . Its good to check to make sure that your host is not out of sync because your VM’s depend on it.

    get-vmhost -Name (FQDN of Host ) | % {Get-View $_.ExtensionData.ConfigManager.DateTimeSystem} | %{$_.QueryDateTime().ToLocalTime()}

    Happy New Year 🙂

    Chris

    Advertisements
     
    • Glenn 11:38 pm on March 20, 2011 Permalink

      Hey Chris,

      I was so happy to find this “one liner”. It is (almost) exactly what I was trying to do. I am trying to run this across all hosts on a VC by removing the -Name.

      I am trying to work out how to include the host name (before or after) on the same line as the date /time. Any ideas? I am only new to powercli and having trouble working it out.

      Regards

      Glenn

  • Chris 9:38 pm on October 23, 2010 Permalink | Reply
    Tags: PowerCLI, Snapshots, vHow,   

    vHow : VMware List all snapshots in your virtual infrastructure. 

    Hi All ,

    Finding out what snapshots you have can be a very important house keeping step to keep your virtual infrastructure running smoothly .

    Here is how :

    1) Install PowerCLI from here : http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli

    2) Launch powercli

    3) connect to your vcenter server

    connect-VIServer -Server ServerName

    4) List snapshots

    get-vm | get-snapshots

    Have Fun!

     
    • marcelo 7:14 pm on January 29, 2013 Permalink

      Thanks Chris for the tip!

    • Chris Neale 7:33 am on March 11, 2013 Permalink

      Hi chris, just a point
      it’s “snapshot” not “snapshots”
      🙂

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel