<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That example is meant to be run from the POX CLI/interpreter (that is, it expects you ran the "py" component), not as a standalone component.<div><br></div><div>You could turn it into a component with a little work (it has already been discussed on the mailing list). However, there's a "Statistics Collector Example" in the "Third Party" section of the manual wiki which has already done this (and expanded on the original a bit).</div><div><br></div><div>Hope that helps.</div><div><br></div><div>-- Murphy<br><div><br><div><div>On Jul 29, 2013, at 9:26 AM, Kouvakas Alexandros wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div class="gmail_default" style="font-family:garamond,serif">Hello,<br></div><div class="gmail_default" style="font-family:garamond,serif">I am trying to collect statistics from the ovs. I tried to run the Example - Web flow statistics but I get the following error<br>
<br></div><i>[inria_nepi@planetlab2 pox]$ ./pox.py samples.pretty_log forwarding.l2_learning flow-stats<br>POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.<br>Traceback (most recent call last):<br> File "/home/inria_nepi/pox/pox/boot.py", line 89, in do_import2<br>
__import__(name, globals(), locals())<br> File "/home/inria_nepi/pox/ext/flow-stats.py", line 2, in <module><br> log = core.getLogger("WebStats")<br>NameError: name 'core' is not defined<br>
Could not import module: flow-stats</i><br><br></div>I<div class="gmail_default" style="font-family:garamond,serif;display:inline"> am using the betta branch, but I don't think it matters as I get the same error with carp branch.<br>
<br></div><div class="gmail_default" style="font-family:garamond,serif;display:inline">Does anybody knows what happens?<br>Also every suggestion for modules that get statistics from the switch are very welcome.<br><br></div>
<div class="gmail_default" style="font-family:garamond,serif;display:inline">Thanks a lot!</div><h4 id="POXWiki-Example-WebFlowStatistics"><br></h4><br>-- <br>Kouvakas Alexandros
</div>
</blockquote></div><br></div></div></body></html>