<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Unfortunately I’m a newbie in Linux, so „a little grep magic” is already too much for me </span><span lang=EN-US style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>L</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Up until now I managed to list all state-transitions ( cat vm.log | grep “New VM state is” ), but how could I now get the times out of those lines, and more importantly, how can I subtract the time of RUNNING with the time of MIGRATE?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Any help would be appreciated, since I’m kind of stuck here </span><span lang=EN-US style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>L</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Carlos Martín Sánchez [mailto:cmartin@opennebula.org] <br><b>Gesendet:</b> Freitag, 24. Juni 2011 10:39<br><b>An:</b> Adnan Pasic<br><b>Cc:</b> users@lists.opennebula.org<br><b>Betreff:</b> Re: [one-users] measuring the diration of a migration<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi,<br><br>That times can be extracted from oned.log or <vm-id>/vm.log with a bit of grep magic, just look for the state transitions and take a look at the VM life-cycle documentation [1].<br><br>Or you could modify the vmm scripts and log the operations to your own file.<br><br>Regards.<br><br>[1] <a href="http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle">http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle</a><br clear=all><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#888888'>--<br>Carlos Martín, MSc<br>Project Major Contributor<br></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222;background:#FFFFCC'>OpenNebula</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#888888'> - The Open Source Toolkit for Cloud Computing<br><a href="http://www.opennebula.org/" target="_blank"><span style='color:#2A5DB0'>www.</span><span style='color:#222222;background:#FFFFCC'>OpenNebula</span><span style='color:#2A5DB0'>.org</span></a> | <a href="mailto:cmartin@opennebula.org" target="_blank"><span style='color:#2A5DB0'>cmartin@</span><span style='color:#222222;background:#FFFFCC'>opennebula</span><span style='color:#2A5DB0'>.org</span></a></span><br><br><o:p></o:p></p><div><p class=MsoNormal>On Tue, Jun 14, 2011 at 12:23 PM, Adnan Pasic <<a href="mailto:pqado@yahoo.de">pqado@yahoo.de</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Hello,<br>i have following problem - i need to perform several hundred migrations (cold and live) and make notes of the duration.<br>since this is a tedious task i wanted to automatize this. any idea how i could get these infos?<br>Im using opennebula on ubuntu..Thanks<br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>