Below command can be used.
Below is example output of above command.
clear;for i in `xm uptime|egrep -v 'Name|Domain-0' |awk '{print $2}'`;do
h=`xm uptime $i|egrep -v Name|awk '{print $1}'`;z=`xm uptime $i|egrep
-v Name|awk '{print $3}'`;y=`xm uptime $i|egrep -v Name|awk '{print
$4}'`;j=`find /OVS/ -name $h`;o=`grep OVM_simple_name $j/vm.cfg|awk
'{print $3}'`;echo VM Name: $o VM UUID: $h Uptime: $z $y;done
Below is example output of above command.
VM Name: 'NodeManager' VM UUID: 0004fb00000600001ec36fa6da3a1473 Uptime: 18 days,
VM Name: 'infi-1' VM UUID: 0004fb00000600002b1f8fd5ee95897d Uptime: 4 days,
VM Name: 'net-6' VM UUID: 0004fb000006000042f4d8d5087a8f4c Uptime: 4 days,
VM Name: 'net-2' VM UUID: 0004fb000006000045a845ecff3d8554 Uptime: 4 days,
VM Name: 'infi-1' VM UUID: 0004fb00000600002b1f8fd5ee95897d Uptime: 4 days,
VM Name: 'net-6' VM UUID: 0004fb000006000042f4d8d5087a8f4c Uptime: 4 days,
VM Name: 'net-2' VM UUID: 0004fb000006000045a845ecff3d8554 Uptime: 4 days,
Products to which Article Applies
Oracle Virtual Server (OVS)
tarun boyella
No comments:
Post a Comment