Linux command can get the outputs easily also use that output for shell scripts or know the details, If your server has been installed with xen kernel and want to check your virtual server usage by xm top or xentop command same as 'top' command unable to get directly it's possibility to save the output from "xm top" command to a file.
# xentop -b -i 1 -d 1 > /tmp/xentop_output.txt
# cat /tmp/xentop_output.txt
# cat xentop_output.txt
# cat /tmp/xentop_output.txt
# cat xentop_output.txt
NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR VBD_RSECT VBD_WSECT SSID
userna --b--- 22 0.0 256000 6.3 4194304 103.4 1 1 5178 0 2 0 2248 1678 78900 17440 0
Domain-0 -----r 8583 0.0 2103296 51.9 no limit n/a 4 0 0 0 0 0 0 0 0 0 0
userli --b--- 24 0.0 296960 7.3 4194304 103.4 1 1 5174 0 2 0 3811 1764 91996 18928 0
linuxfaq --b--- 61 0.0 256000 6.3 4194304 103.4 1 1 7133 2425 2 0 4660 2977 99572 30600 0
newbies --b--- 27 0.0 256000 6.3 4194304 103.4 1 1 5313 194 2 0 2306 1800 80060 18424 0
Comments (0)