• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
The Citrix Blog
Personal Blog
Ewan Mellor
Related Tags
Version 4 by Ewan Mellor
on Sep 16, 2008 12:33.


compared with
Current by Ewan Mellor
on Jan 26, 2009 09:49.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

 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 with private beta testers now, and will be available through this site very soon.
  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.
 {code:javascript}
 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>
 {code}