Posts Tagged ‘powershell’

HP refreshes server management with HP OneView

September 30th, 2013 No comments

HP has announced a new product to manage HP BladeSystem and ProLiant G7/Gen 8 infrastructure called HP OneView which is due to be released in October.

HP thinks the existing way of deploying and managing servers is built on models from 20 years ago and is in need of an update. This is certainly true particularly with HP servers despite HP having a number of tools such as HP Systems Insight Manager (HP SIM), HP Virtual Connect Enterprise Manager (VCEM), HP Insight Control and HP Intelligent Provisioning.

HP OneView has been built from the ground up to simplify and speed up the server deployment and management process for servers, networking and storage. OneView runs as a self contained virtual appliance and you connect via a web browser.

HP says the user interface is a “consumer-inspired user experience” built on a “software-defined architecture” with an “open extensible platform”. HP says it has been four years in the making and has been built with the input of more than 150 of HPs biggest customers.

OneView will be a licensed product per physical server it manages starting at about £571 for a single license including three years support and updates. There will be an upgrade available from iLO Advanced, Insight Control and VCEM.

Read more…

NetApp PowerShell Toolkit, DataONTAP 3 released with new Performance Monitoring and full ONTAP 8.2 API Support

August 9th, 2013 No comments

NetApp has updated its PowerShell Toolkit, DataONTAP to version 3.

Two major features have been added:
A new cmdlet Invoke-NcSysstat which is like Invoke-NaSysstat and allows you to monitor cluster system performance stats for:  System, FCP, NFSv3, NFSv4, CIFS, iSCSI, Volume, Ifnet, LUN, and Disk.

Invoke-NcSysstat works in both the cluster and Vserver context for Data ONTAP 8.2 and up. For Data ONTAP versions previous to 8.2, Invoke-NcSysstat must be run in the cluster context. Ifnet and Disk performance stats aren’t available when running against the Vserver context.


Invoke-NcSysstat can also aggregate performance stats for selected objects.

imageONTAP 8.2 API support is now complete with 67 new cmdlets in the clustered ONTAP set and 27 cmdlets with new parameters for Data ONTAP 8.2for a total of 1738 cmdlets.

Read more…

VMware releases PowerCLI 5.1 Release 2

February 12th, 2013 No comments

VMware has released PowerCLI 5.1 Release 2 which is  the latest update to its PowerShell interface which includes support for Virtual Distributed Switches, vCloud Director 5.1 and PowerShell 3.

Virtual Distributed Switches

This new release now includes 14 new cmdlets to manage VMware Virtual Distributed Switches, something people have been waiting eagerly for:

    • Get-VDSwitch
    • New-VDSwitch
    • Remove-VDSwitch
    • Set-VDSwitch
    • Export-VDSwitch
    • Get-VDPortGroup
    • New-VDPortGroup
    • Remove-VDPortGroup
    • Set-VDPortGroup
    • Export-VDPortGroup
    • Add-VDSwitchPhysicalNetworkAdapter
    • Remove-VDSwitchPhysicalNetworkAdapter
    • Add-VDSwitchVMHost
    • Remove-VDSwitchVMHost

There are also enhancements to existing cmdlets such as Set-VMHostNetworkAdapter and Set-NetworkAdapter to support distributed port groups.

vCloud Director 5.1

vCloud Director 5.1 support has also been added with a new snap-in which include cmdlets to:

    • Connect to a vCloud Director Server
    • Create, Manage, Modify and Retrieve Organizations
    • Create, Manage, Modify and Retrieve Organization Virtual Datacenters
    • Create, Manage, Modify and Retrieve Organization Networks
    • Importing vApps & Creating vApp Templates
    • Create, Manage, Modify and Retrieve a vApp
    • Create, Manage, Modify and Retrieve vApp Networks
    • Create and Manage Access Control Rules

PowerShell 3

PowerCLI 5.1 Release 2 also now includes support for PowerShell 3 which is Microsoft’s latest update to its phenomenal scripting environment. Version 3 enhancement include Workflows & Scheduled Jobs, simpler where-object formatting, a new web-based console, persistent sessions, enhanced IDE,  Module Auto-Loading and plenty of new and enhanced cmdlets.


Something I have spotted that is still missing is support for the new vSphere Web Client tags which would be useful.


It’s worth look at the release notes for some of the Known Issues and also understanding which PowerCLI cmdlets only work with the 32-bit version.

Also of use is the User Guide .PDF which has some example scripts.

Great update, VMware, keep ’em coming!

NetApp releases its Virtual Storage Console (VSC) PowerShell Toolkit 1.0

December 5th, 2012 No comments

NetApp has extended its PowerShell management to its virtual center plug-in, the Virtual Storage Console. The toolkit can be downladed from here.

NetApp currently has a PowerShell toolkit called DataONTAP for managing its controllers but this new toolkit has been developed to manage the VSC directly.

As this is a 1.0 release not all VSC functionality is available. Currently it can do the Provisioning & Cloning operations of VSC such as creating and deleting datastores and starting a rapid VSC clone and redeploy. Also included is the new ability in VSC 4.1 to do a vCloud Director vApp clone.

Going forward NetApp are working on exposing more of the VSC functionality through an API which will be available to the toolkit so expect plenty more to come.

This is a great addition from NetApp as it allows you to include the cleverness of the VSC along with your PowerCLI automation in the same scripts.

Here is a list of the available Cmdlets

  • Connect-vsc: Connect to the web service hosting the VSC Provisioning and Cloning APIs.
  • Get-vscManagedObjectRef: Get the managed object reference (aka MORef) string for a vCenter object.
  • Get-vscVirtualMachine: Get vmSpec objects for all virtual machines that were created based on the virtual machine specified.
  • Get-vscVmFileSpec: Get vmFileSpec objects that define a virtual machine clone source.
  • Get-VCloudCredentialStatus: Verifies vCloud Director connection status.
  • Get-VCloudVCenterCredentialsStatus: Verifies vCenter(s) connection status information.
  • New-vscControllerSpec: Convenience cmdlet to create a controllerSpec object with the ability to prompt for credentials.
  • New-vscDatastore: Create a new VMware datastore.
  • New-VAppClone: Perform vApp cloning or provisioning operation.
  • Remove-vscDatastore: Delete a VMware datastore.
  • Remove-VCloudCredentials: Remove vCloud Director credentials.
  • Remove-VCloudVCenterCredentials: Remove vCenter credentials.
  • Set-vscDatastoreSize: Resize a VMware datastore.
  • Set-VCloudCredentials: Set vCloud Director credentials.
  • Set-VCloudVCenterCredentials: Set vCenter credentials.
  • Start-vscClone: Start a vsc rapid cloning operation.
  • Start-vscRedeploy: Start a vsc virtual machine redeploy operation.

NetApp PowerShell Toolkit, DataONTAP 2 released supporting ONTAP 8.1 Cluster Mode & more vdisk conversions

May 2nd, 2012 No comments

It seems like only yesterday (well, OK 3 months ago) that NetApp updated it’s Powershell Toolkit, DataONTAP to version 1.7.

Well, today, now we have Powershell Toolkit, DataONTAP version 2.0

The major features include:

  • Data ONTAP 8.1 (Cluster-Mode) support – Cluster Mode Powershell architecture is now said to be stable and complete, 86 new cmdlets
  • Dynamic VHD to fixed VHD conversion – Use rapid copy-offload with ConvertTo-NaVhd to convert a dynamic VHD to a thin, fixed VHD to fix alignment issues without using more space for both LUNs and CIFS shares
  • LUN to VHD file conversion – ConvertTo-NaVhd can convert an entire LUN to a VHD file in another LUN, great for P2Vs.
  • VHD file to LUN conversion – new cmdlet ConvertTo-NaLun to convert a VHD file to a LUN for a V2P if you need to
  • NDMP copy client – 4 new cmdlets to monitor NDMP copy operations.
  • More CIFS shares support – building in support for Windows Server 2012 supporting Hyper-V over SMB.

Read more…

NetApp PowerShell Toolkit, DataONTAP 1.7 released with VHD/VMDK file conversion and VHD alignment

February 2nd, 2012 No comments

NetApp has today updated it’s Powershell Toolkit, DataONTAP to version 1.7.

I’ve said it before but a rebranding to PowerONTAP would be a much cooler!

The major features include:

VHD/VMDK file conversion. You can use ConvertTo-NaVhd and ConvertTo-NaVmdk to use NetApp FlexClone to convert between VHD files used on Hyper-V & XenServer and VMDK files on VMware. That could make any hypervisor migrations so much easier.

VHD partition detection and alignment using Get-NaVirtualDiskAlignment and Repair-NaVirtualDiskAlignment on MBR fixed VDH files.

Data ONTAP 8.1 Cluster-Mode Support with 227 new cmdlets, yes that is 227 NEW cmdlets bringing the total Cluster-Mode cmdlets to 375.

CIFS rapid file cloning so you can duplicate files within CIFS shares (great for say refreshing test datasets from prod) using file level FlexClone.

Cluster Shared Volumes (CSV) Space reclamation so you can now reclaim space not just in NTFS LUNs but also in CSVs.

Read more…

VMware PowerCLI 5.01 released adding vCloud Director Automation

January 10th, 2012 No comments

VMware has released what at first looks like a minor update to their PowerShell snapin, PowerCLI to version 5.01. Although just a .01 release which brings the usual changes and bug fixes which are listed here,  the big news is that VMware has added a whole bunch of cmdlets for managing vCloud Director.

A whole new snapin has been created called VMware.VimAutomation.Cloud and this initial release focuses more on the reporting side, so being able to retrieve information from vCD rather than setting things but also does have cmdlets for importing VMs, Templates and .OVFs from vSphere into your vCD environment. This is a great step forward as cloud computing relies so much on automation and having PowerCLI also available means you have so many more options to tie together your automation workflows.

Read more…

SRM for free with PowerCLI & DataONTAP– Part 2: iSCSI

September 14th, 2011 2 comments

My updated previous NFS post talked about implementing part of the functionality of SRM in Powershell using PowerCLI and NetApp’s DataONTAP for NFS datastores.

This post is an update to my previous iSCSI post in which I had only looked at the VMware side of the automation and so it’s time for an update to include the important part of handling the underlying storage. I’m going to use NetApp storage as an example but any storage vendor that exposes their API to Powershell can be used if you can find the relevant commands.

You will obviously need both PowerCLI and Netapp’s DataONTAP installed. See my previous post: Pimping your Powershell Profile for getting everything installed.

For the storage automation, all you really have to do is connect to the filer and then quiesce and break the storage mirror so it is writeable at the BR site. After you’ve connected this is a single line:

Get-NaSnapmirror "FilerName" | Invoke-NaSnapmirrorQuiesce | Invoke-NaSnapmirrorBreak -Confirm:$false

Read more…

What’s new in VMware vSphere PowerCLI 5.0

August 25th, 2011 No comments

Today’s the day that vSphere 5 has officially been released.  There are going to be a million other blog posts talking at length about the full release of vCenter, ESXi, new licensing etc. so I’ll avoid repeating what everyone else is saying.

However, as part of the vSphere 5 release, vSphere PowerCLI 5.0 has also been released and since the vSphere 5 announcement, I haven’t noticed anything written as yet about the new PowerCLI. VMware is consolidating their API

vSphere PowerCLI 5.0 can be downloaded from here.

The changelog has a detailed list of all the changes but it’s probablky a little easier to see the Release Notes:

Read more…

Adding .VMX Files to vCenter Inventory with PowerCLI gets even easier

August 11th, 2011 10 comments

Update: I’ve since found out that mattboren actually found out about this before me and posted something on the VMware communities which I missed. Well found Matt.

A fairly common request is to be able to register existing VMs in a datastore in the vCenter inventory.

This can be a life saver if you have had storage issues and have had to present a backup copy of a datastore which has a different name and need to add the VMs to the inventory, a very laborious process if done manually with right-click Add to Inventory.

This can also be useful in a business recovery process when you need to add VMs that have been mirrored by storage replication over to a secondary site and you need to add them into your inventory.

PowerCLI guru, Luc Dekens has developed a fantastic script called Raiders of the Lost VMX which searches a datastore for .VMX files, and adds them to the vCenter inventory. This script has been updated over the years with even more clever functionality.

Adding the VM to the inventory involved running the RegisterVM_Task Method against the VM Folder in VC.

By accident I discovered there’s actually an updated easier way to add existing VMs to the inventory if you have the .VMX file path. I’m not sure when this was added to PowerCLI but I found it when writing a script to add a new VM.

Read more…