Get VMware vCenter Scheduled Tasks with PowerCLI

PowerCLI logoVMware vSphere PowerCLI is missing cmdlets to work with VMware vCenter Scheduled Tasks. In a series of blog posts I will show you some PowerShell advanced functions that you can use to work with vCenter Scheduled Tasks. The first function is Get-VCScheduledTask. You can use this function to retrieve one or more scheduled tasks from your vCenter Server. Read more of this post

Advertisement

Use PowerCLI to consolidate snapshots in vSphere 5

PowerCLI logoIn vSphere 5 a virtual machine can have a “Virtual machine disks consolidation is needed” Configuration Issue warning in the Summary tab. How can you use PowerCLI to see which virtual machines have this warning? And how can you automate the consolidation of the virtual machine’s disks? Read more of this post

1st Dutch PowerShell User Group (DuPSUG) meeting

  • PowerShell logoFriday, November 23, 2012 the first Dutch PowerShell User group (DuPSUG) meeting will be held in Eindhoven, The Netherlands. Speakers are:
    Microsoft Scripting Guy Ed Wilson, PowerShell MVP Richard Siddaway, Bert Wolters, Stefan Stranger and Jeff Wouters.

    Session topics are:

    • Using Windows PowerShell 3.0 to manage the remote Windows 8 workstation
    • PowerShell and WMI
    • What’s new in PowerShell 3.0
    • Protect your PowerShell scripts with version control
    • From command, to script, to function, to advanced function, to tool

    More information can be found at: 1st DuPSUG meeting.

  • PowerShell 3.0 is available for download

    PowerShell logoSince September 4th 2012 is PowerShell 3.0 available for download. PowerShell 3.0 is included in the Windows Management Framework 3.0 that contains also WMI and WinRM. It can be installed on Windows 7 SP1, Windows Server 2008 R2 SP1 and Windows Server 2008 SP2. Windows Management Framework 3.0 requires Microsoft .NET Framework 4.0. PowerShell 3.0 is a standard component of Windows 8 and Windows Server 2012. Read more of this post

    How to list all the PowerCLI ESXCLI commands

    PowerCLI logoLast week there was a question in the VMware VMTN Communities VMware vSphere PowerCLI forum from Papires who asked how you can convert the ESXCLI command ‘esxcli storage vmfs snapshot mount -l “DATASTORE”‘ into a PowerCLI command. I had not done very much with ESXCLI in PowerCLI, but I knew that it was something like ‘$esxcli.storage.vmfs.snapshot.mount’. However I was struggling with the ‘-l “DATASTORE”‘ part.

    There is not much documentation available about the ESXCLI commands in PowerCLI. And also a search in Google did not help me very much. Finally I found the right answer using the PowerShell Get-Member cmdlet. Read more of this post

    Use Performance Monitor to get VM performance statistics

    PowerShell logoIn PowerCLI you can use the Get-Stat cmdlet to get performance statistics. But for Microsoft Windows virtual machines with the VMware Tools installed there is another way to get the statistics. Even without using PowerCLI. Read more of this post

    Use PowerCLI to find the datastore from a disk name

    PowerCLI logoRecently we get vSphere alarms in our environment that say for instance:

    “[VMware vCenter – Alarm Host error] Issue detected on host in datastore: ScsiDeviceIO: 2368: Failed write command to write-quiesced partition naa.600a0b8000111155000021c53f97784e:1 (42:01:04:07.994 cpu7:5191)”

    There seems to be a problem on a partition. But which datastore is on this partition? We can use PowerCLI to find the datastore involved. Read more of this post

    PowerShell function to get disk SCSI Lun number

    PowerShell logoFor our Boot From SAN servers we wanted to know the SCSI Lun number of the disks. You can get this information via WMI. But to retrieve it you need four different WMI objects. I made a PowerShell advanced function that combines these four WMI objects to relate the disk with the LUN number. Read more of this post

    VMware vExpert 2012

    This week VMware announced the vExperts for 2012 and I am proud to be one of them. Last year I didn’t make it. But this morning I received the following e-mail from Alex Maier who is the VMware vExpert Program Manager:

    I am pleased to inform you that you have been designated a vExpert 2012 in recognition of your contribution to the VMware, virtualization, and cloud computing community.

    You’ve done work above and beyond, helping others succeed with VMware, and we here in the Social Media and Communities team are delighted to welcome you to the program.

    VMware vExperts are a special group, a network of peers, who communicate with each other and VMware closely, share resources, and get other opportunities for greater interaction throughout the year.

    Thanks for all you do. The vExpert Program is going to be great this year. Keep on rocking!

    With kind regards,
    Alex Maier (vExpert Program Manager) and the VMware Social Media and Communities Team

    Many thanks to Alex and John Mark Troyer, who started the vExpert program three years ago.

    I am proud to be part of the VMware vExperts. And I look forward to work with VMware and the other vExperts more closely.

    Congratulations to all the other vExperts 2012!

    More information about the VMware vExpert program can be found at the vExpert Directory.

    Top Blog 2012 results

    Today Eric Siebert announced the Top Blog 2012 results. When I nominated my blog for the Top Blog voting I was a little bit afraid that I might end up last. But I didn’t.

    My results

    Here are my results:

    Category Place Votes
    Overall 145 19
    Favorite Scripting Blog 10 21
    Favorite New Blog 12 38
    Favorite Independent Blogger Not listed

    Table1. My results at the Top Blog 2012 voting.

    There were 187 blogs nominated in total. So I’m very happy with place 145.

    This result stimulates me to try to write a lot of good blog posts this year. And I hope to do it even better in the Top Blog voting next year.

    Thank you to all who voted for my blog!