#!/bin/bash

vmLabel=$1

domainId=$(xm list | awk '$1 == vmLabel { print $2 }' vmLabel=$vmLabel)
xm shutdown $domainId 
