Related Tags
Permalink |
Post to Twitter |
Comments (1) |
Views (12600) |
16 Sep 2008 09:14 AM EDT
posted by Ewan Mellor
Now that XenServer and XenCenter 5.0 have been released, we turn our attention to other things. One of those new projects is a PowerShell SnapIn for XenServer, which I'm pleased to announce today.
The new SnapIn is now available publicly, at http://community.citrix.com/cdn/xs/sdks.
Here are a few basic examples. Over the next few days, I'll post some increasingly interesting examples, to help you get a feel for the new SnapIn.
PS> Get-Credential | Connect-XenServer -url https://<servername>
PS> Get-XenServer:VM -name Debian | Format-Table uuid,name_label,is_a_template,power_state
uuid name_label is_a_template power_state
---- ---------- ------------- -----------
2b676031-29b0-35... Debian Sarge 3.1 True Halted
b20f5359-1c5a-7b... Debian Etch 4.0 True Halted
9b14ee57-47fd-af... Debian Sarge 3.1... False Halted
04738c85-0bb7-ce... Debian Sarge 3.1 False Suspended
4b76320b-404b-0c... Debian Etch 4.0 (1) False Running
3e0982ed-0cfe-1e... Debian Sarge 3.1 False Suspended
PS> Get-XenServer:VM -name Debian -properties @{ is_a_template="false" } |
>> Format-Table uuid,name_label,power_state
uuid name_label power_state
---- ---------- -----------
9b14ee57-47fd-afc6-e057... Debian Sarge 3.1 (1) Halted
04738c85-0bb7-ce5a-40bc... Debian Sarge 3.1 Suspended
4b76320b-404b-0cdf-1583... Debian Etch 4.0 (1) Running
3e0982ed-0cfe-1ef5-7e5c... Debian Sarge 3.1 Suspended
PS> Invoke-XenServer:VM.start -vm "Debian Sarge 3.1 (1)"
PS> Get-XenServer:VM -name Debian -properties @{ is_a_template="false" } |
>> Format-Table uuid,name_label,power_state
uuid name_label power_state
---- ---------- -----------
9b14ee57-47fd-afc6-e057... Debian Sarge 3.1 (1) Running
04738c85-0bb7-ce5a-40bc... Debian Sarge 3.1 Suspended
4b76320b-404b-0cdf-1583... Debian Etch 4.0 (1) Running
3e0982ed-0cfe-1ef5-7e5c... Debian Sarge 3.1 Suspended
PS> Disconnect-XenServer -url https://<servername>
Comments (1)
Sep 16, 2008
Vishal Ganeriwala says:
Hi Ewan This is great news! I can't wait to release the PowerShell snapin v...Hi Ewan
This is great news! I can't wait to release the PowerShell snapin via CDN.
Add Comment