25 feb 2009

why i'm blogging?

I blog for myself!
So you can stop reading here right now!

In the first place the blog-site is a place for me where i can write down my solutions for commen problems.when i have a simular problem in the feature i will grab back to my blogs to fix it.

an old blog from me:http://elconomeno.tripod.com/blog/

Automatic Export of XenServers

i found my inspiration of my script here :

http://forums.citrix.com/thread.jspa?threadID=153158

BACKUP.CMD
SET PATH=%PATH%;"C:\Program Files\Citrix\XenCenter"
SET VMEXPORT=SERV-SG
SET XENUSER=root
SET XENPASS=blablabla

SET XENHOST=172.16.1.1

xe -s %XENHOST% -u %XENUSER% -pw %XENPASS% vm-shutdown vm=%VMHOSTNAME%

xe -s %XENHOST% -u %XENUSER% -pw %XENPASS% event-wait class=vm name-label=%VMHOSTNAME% power-state=halted
xe -s %XENHOST% -u %XENUSER% -pw %XENPASS% vm-export filename=E:\xen\%VMHOSTNAME%.XVA vm=%VMHOSTNAME%
xe -s %XENHOST% -u %XENUSER% -pw %XENPASS% vm-start vm=%VMHOSTNAME%