Manage XenServer from command line with xe

xe command is used to manage XenServer from command line

[root@ns319379 ~]# xe help
Usage: xe  [-s server] [-pw passwd] [-p port] [-u user] [-pwf password-file]

To get help on a specific command: xe help To get a full listing of commands: xe help –all Common command list ——————- cd-list, diagnostic-vm-status, network-list, snapshot-clone snapshot-copy, snapshot-disk-list, snapshot-export-to-template snapshot-reset-powerstate, snapshot-revert, snapshot-uninstall, sr-list template-export, template-uninstall, vm-cd-add, vm-cd-eject vm-cd-insert, vm-cd-list, vm-cd-remove, vm-checkpoint, vm-clone vm-compute-maximum-memory, vm-copy, vm-disk-add, vm-disk-list vm-disk-remove, vm-export, vm-import, vm-install, vm-list, vm-migrate vm-pause, vm-reboot, vm-reset-powerstate, vm-resume, vm-shutdown vm-snapshot, vm-snapshot-with-quiesce, vm-start, vm-suspend vm-uninstall, vm-unpause, vm-vif-list [root@ns319379 ~]#

To list VM, run

Advertisement

[root@ns319379 ~]# xe vm-list
uuid ( RO)           : 18e4994d-e536-9ab1-5fd3-ed3ba98cafa2
     name-label ( RW): XOA
    power-state ( RO): running


uuid ( RO)           : 1c8c3087-9afa-f040-4544-f77be88f0d83
     name-label ( RW): XOA
    power-state ( RO): halted


uuid ( RO)           : 7461bdf5-8986-471d-9067-01d12bf38f99
     name-label ( RW): Control domain on host: stock.ovh.net
    power-state ( RO): running


uuid ( RO)           : 56e60d30-15a7-ed07-c526-a17a81d692b4
     name-label ( RW): centos-webmin
    power-state ( RO): halted


[root@ns319379 ~]#
Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement