[CentOS] virtdown script

Tue May 3 17:54:13 UTC 2011
Tim Dunphy <bluethundr at jokefire.com>

hi and thanks for your reply.. either $1 or $2 seems to do it on the command line. virsh shutdown / xm shutdown takes both. I am simply trying to get this command to work in script form. thanks!


----- Original Message -----
From: "Johnny Hughes" <johnny at centos.org>
To: "CentOS mailing list" <centos at centos.org>
Sent: Tuesday, May 3, 2011 1:33:14 PM
Subject: Re: [CentOS] virtdown script

On 05/03/2011 09:39 AM, Tim Dunphy wrote:
> virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'

Do you want the "ID Number" or the "Name" to pass in?  That gives you
the number, I think you want the name ... that would be $2 not $1.

CentOS mailing list
CentOS at centos.org