XenServer Linux Commands
XenServer Linux Commands
ls l less /var/log/dmesg xe host-dmesg tail f /var/log/xensource.log tail f /var/log/xensource.log | grep xxx tail f [log name] > [target filename] cat /etc/xensource-inventory xen-bugtool --yes xe-backup-metadata -d u [uuid of SR] tcpdump i [inf] vvv w [filename] top xentop mpstat 5 vmstat 2 netstat s iostat -d 2 6 list_domains fdisk l hdparm t /dev/sda3 pvs ll /dev/disks/by-id lvs vgs cd /var/run/sr-mount df -h dd if=/dev/sdb of=/dev/null iflag=direct bs=1M count=512 dd if=/dev/zero of=/dev/sdb oflag=direct bs=1M count=4096 ifconfig brctl show ethtool eth0 mii-tool iscsiadm -m discovery --type sendtargets -port 192.168.250.14 iscsiadm m session history !136 history -w history-list.txt Use Show a list of XenServer CLI commands Runs up the XenServer text based console Restarts the XenServer management tools List files in a Directory Display Boot Messages from Linux Xen Hypervisor Boot messages Look at xapi messages as they happen Look at xapi messages only for vm uuid xxx Send output to a file for analysis later Display XenSource Inventory info Build a status report when xapi is down Back up Pool metadata for all VMs Get a Packet trace from [inf]. E.g. Inf=eth0, xenbr0, vif2.0 etc. List the top processes running in Dom0 List top Xen processes Processor stats in Dom0 Virtual memory in Dom0 Networking statistics Storage traffic stats Lists VMs that are running List the disk partitions Device read times for sda3 (normally local SR) Show local and remote LVHD SRs Look at disk partitions List logical volumes (virtual disks) List LVM volume groups Look at NFS SRs Shows how much disk space you have left Read data performance from sdb. Write performance on sdb. * Dont use on disks with VMs on them! Show info on NICs, virtual switches and vNICs Show info on virtual switches Info for NIC eth0 Info on NIC bonding Discover iSCSI targets available to this server Open iscsi sessions Lists the history of commands youve used Executes command #136 in the history Writes the history info to a text file