WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] RE: Run a powershell command on VM from xenserver

To: Amit Shah <amit.shah@xxxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] RE: Run a powershell command on VM from xenserver
From: Rabin Karki <rabin.karki@xxxxxxxxxx>
Date: Fri, 22 Jul 2011 16:36:21 -0400
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Fri, 22 Jul 2011 13:36:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <3D9D6453A157D1439F58AFECB361FED979F60B1CFA@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <3D9D6453A157D1439F58AFECB361FED979F60B1CFA@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcxIrfgrk79VdfTOSsiRoYIUztUH4AAAGC6g
Thread-topic: Run a powershell command on VM from xenserver

I don’t think there’s anything like that. When I had to do something like that, I used SSH to run commands remotely. It becomes a little trickier if it’s a Windows machine though. You might have to install cygwin to be able to run an SSH server.

 

From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Amit Shah
Sent: Friday, July 22, 2011 4:29 PM
To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Run a powershell command on VM from xenserver

 

Hi All,
Is there any xe command or API to run a powershell command/script on a VM from xenserver without actually connecting to the VM via RDP or console.

eg: If i want to say create a directory on a VM or change some registry setting. So is there an xe command like
xe vm-run-command vm-name=test command="mkdir c:\test"

I would appreciate any ideas to accomplish this.

Thanks
Amit

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>