Thursday, July 26, 2012

XEN Server Status Monitoring Command

The xm command is the main command line interface for managing Xen guest domains. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains, enable or pin VCPUs, and attach or detach virtual block devices.

Please note that before running any one of the following command you must run xend ( Xen control daemon aka service) and must be run as privileged user. Running xm command as non root will return an error.

I hope following XEN status monitoring cheat sheet will save your time.

Displays uptime for a domain

xm uptime

Monitors a host and its domains in real time

xm top

Displays domain information

xm list

Displays host information

xm info

Lists domain virtual processors

xm vcpu-list

Lists domain virtual network interfaces

xm network-list

Displays node information

virsh nodeinfo

Displays domain virtual processor information

virsh vcpuinfo

Displays the xend log

xm log

Displays domain information

virsh dominfo

Reads the xend daemon’s message buffer just like dmesg

xm dmesg

No comments:

Post a Comment