tag:blogger.com,1999:blog-1978652979840829013.post7930191023774375804..comments2024-02-13T07:05:41.069-08:00Comments on sFlow: Mininet dashboardPeterhttp://www.blogger.com/profile/00856599914190257147noreply@blogger.comBlogger43125tag:blogger.com,1999:blog-1978652979840829013.post-62579728832923678992021-10-21T23:02:33.125-07:002021-10-21T23:02:33.125-07:00The sflow.py script is in the sflow-rt/extras/ dir...The sflow.py script is in the sflow-rt/extras/ directory. If you are running the mininet command from your home directory you should use the command:<br /><br />sudo mn --custom sflow-rt/extras/sflow.py ...<br />Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-48572989221970615562021-10-21T21:56:33.788-07:002021-10-21T21:56:33.788-07:00
Caught exception. Cleaning up...
Exception: coul...<br />Caught exception. Cleaning up...<br /><br />Exception: could not find custom file: extras/sflow.py<br />xiaozhiwenhttps://www.blogger.com/profile/11274245336711183079noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-71875573511495946712021-07-12T07:19:53.040-07:002021-07-12T07:19:53.040-07:00Mininet flow analytics includes the Python equival...<a href="https://blog.sflow.com/2016/05/mininet-flow-analytics.html" rel="nofollow">Mininet flow analytics</a> includes the Python equivalent of the JavaScript large flow detection script in this article.<br /><br /><a href="https://sflow-rt.com/writing_applications.php" rel="nofollow">Writing Applications</a> describes sFlow-RT REST APIs using Python examples. There are examples of defininig flows, settings thresholds, and receiving events.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-63339446380897289862021-07-11T16:46:50.989-07:002021-07-11T16:46:50.989-07:00hi peter,
please i want to know how can i use the...hi peter, <br />please i want to know how can i use the output of the EventHander(ip source and ip destination) as an input in another python script and how can i combine with them ..<br />for example : when the sflow-rt detect an elephant flow in the topology and receive an event, the python script must run simultaneously (the python script need the ip source and ipdestination of the elephant flow to run)<br /> is it possible ?<br />thanksRayanehttps://www.blogger.com/profile/08645040055214290208noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-12810555570727059632021-01-27T23:07:40.016-08:002021-01-27T23:07:40.016-08:00This comment has been removed by the author.Testhttps://www.blogger.com/profile/12066618761398021192noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-49128600839157509512021-01-02T08:16:37.766-08:002021-01-02T08:16:37.766-08:00Since you are running the mn command in your home ...Since you are running the mn command in your home directory you need to specify the path as sflow-rt/extras/sflow.pyPeterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-44243743035988900192021-01-01T23:49:26.138-08:002021-01-01T23:49:26.138-08:00Hi Peter,
I am trying to run sudo mn --custom ext...Hi Peter,<br /><br />I am trying to run sudo mn --custom extras/sflow.py --link tc,bw=10 --topo tree,depth=2,fanout=2<br /><br />but i am getting the similar issue posted in thread <br /><br />eepak@deepak-virtual-machine:~$ sudo bash<br />root@deepak-virtual-machine:/home/deepak# cd ..<br />root@deepak-virtual-machine:/home# sudo mn --custom extras/sflow.py --link tc,bw=10 --topo tree,depth=2,fanout=2<br />--------------------------------------------------------------------------------<br />Caught exception. Cleaning up...<br /><br />Exception: could not find custom file: extras/sflow.py<br />--------------------------------------------------------------------------------<br /><br />However i am running the current version of 3.0-1545<br /><br />2021-01-02T13:14:48+05:30 INFO: Starting sFlow-RT 3.0-1545<br />2021-01-02T13:14:50+05:30 INFO: Version check, running latest<br />2021-01-02T13:14:50+05:30 INFO: Listening, sFlow port 6343<br />2021-01-02T13:14:51+05:30 INFO: Listening, HTTP port 8008<br />2021-01-02T13:14:51+05:30 INFO: extras/mark.js started<br />2021-01-02T13:14:51+05:30 WARNING: extras/mark.js File not found extras/mark.js<br />2021-01-02T13:14:51+05:30 INFO: extras/mark.js stopped<br /><br />Please guide if possibleAnonymoushttps://www.blogger.com/profile/04963583257225017743noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-41726684945640958812020-03-27T10:09:11.523-07:002020-03-27T10:09:11.523-07:00What is the error you are getting? You don't n...What is the error you are getting? You don't need to put your custom topology in the sflow-rt/extras directory.<br /><br />The article <a href="https://blog.sflow.com/2019/06/mininet-flow-analytics-with-custom.html" rel="nofollow">Mininet flow analytics with custom scripts</a> should help.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-40436768661446085312020-03-27T06:48:01.378-07:002020-03-27T06:48:01.378-07:00When i execute custom topology im getting error
I...When i execute custom topology im getting error <br />Im not able to keep my customtopology.py file inside sflow-rt/extras folder. Fancyhttps://www.blogger.com/profile/08761025764209127399noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-21385550932078897232020-02-05T12:17:14.381-08:002020-02-05T12:17:14.381-08:00I just posted 3.0-1461, please give it a try and l...I just posted 3.0-1461, please give it a try and let me know if it fixes the Python 3 issues.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-83478523708619711812020-02-05T07:01:38.035-08:002020-02-05T07:01:38.035-08:00I'll take a look at the new error.I'll take a look at the new error.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-39447390984306578042020-02-05T06:52:25.325-08:002020-02-05T06:52:25.325-08:00If you download the latest release, 3.0-1461, it s...If you download the latest release, 3.0-1461, it should fix the issue.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-39683436192750169172020-02-05T01:16:57.735-08:002020-02-05T01:16:57.735-08:00I have tried again. after reinstalling now I get
...I have tried again. after reinstalling now I get <br />Caught exception <br />Type Error: a byte-like object is required, not 'str'<br /><br />Salma Atifhttps://www.blogger.com/profile/07257098713987100476noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-45557186628762603962020-02-05T00:45:15.057-08:002020-02-05T00:45:15.057-08:00Hi Peter
Let me know if you have already pushed t...Hi Peter<br /><br />Let me know if you have already pushed the new release? Can I download and install it again?Salma Atifhttps://www.blogger.com/profile/07257098713987100476noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-78756556335869960452020-01-30T06:51:08.926-08:002020-01-30T06:51:08.926-08:00The syntax error identifies line 42, a print state...The syntax error identifies line 42, a print statement, as the problem. The script was written for Python 2.7 but it appears you are using Python 3. Print statements need to use function notation, so you can change the three lines 42, 46, and 50 to use the syntax print(). I will fix this and push a new release.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-89655831008690294332020-01-30T05:01:05.897-08:002020-01-30T05:01:05.897-08:00Hi Peter sflow.py is available but when i try to e...Hi Peter sflow.py is available but when i try to execute it. I get this error/Salma Atifhttps://www.blogger.com/profile/07257098713987100476noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-73486706265054874662020-01-29T14:54:58.215-08:002020-01-29T14:54:58.215-08:00The extras/sflow.py script is distributed as part ...The extras/sflow.py script is distributed as part of the sflow-rt tarball distribution. If you installed sFlow-RT as a .deb or .rpm, then you won't have the file. The instructions assume you unpacked the tarball under your home directory.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-15584454828076125022020-01-29T14:21:52.311-08:002020-01-29T14:21:52.311-08:00Hello
when I tried to run the above command
sudo...Hello<br /><br />when I tried to run the above command <br />sudo mn --custom extras/sflow.py --link tc,bw=10 --topo tree,depth=2,fanout=2 --test iperf<br /><br />I am getting an exception couldnot find sflow-rt/extras/sflow.py file.<br />I have even tried with the absolute path but always giving the same error<br /> and if I try to run via home directory i am getting a syntax error on line 42.Salma Atifhttps://www.blogger.com/profile/07257098713987100476noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-22964768577734446312019-06-30T08:25:52.541-07:002019-06-30T08:25:52.541-07:00Data sets from production networks tend to be conf...Data sets from production networks tend to be confidential. I am not aware of any publicly available sources. <a href="https://blog.sflow.com/2018/11/mininet-onos-and-segment-routing.html" rel="nofollow">Mininet, ONOS, and segment routing</a> describes how to emulate and monitor a data center SDN leaf-spine fabric.<br />Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-42031955589458416282019-06-29T23:21:02.621-07:002019-06-29T23:21:02.621-07:00hello
how i can get a dataset of an SDN datacente...hello <br />how i can get a dataset of an SDN datacenter ?<br /><br />thank you in advancecent-rthttps://www.blogger.com/profile/01317360668559946518noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-44108868290002556052019-06-10T06:56:22.770-07:002019-06-10T06:56:22.770-07:00The sflow.py script posts a JSON representation of...The sflow.py script posts a JSON representation of the Mininet topology to sFlow-RT when Mininet starts up. sFlow-RT does not store the topology to disk, so it will be lost if you restart.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-72294239018423003452019-06-10T02:41:54.363-07:002019-06-10T02:41:54.363-07:00@ peter thanks , but what you are meaning loses th...@ peter thanks , but what you are meaning loses the topology ? please can you explain to merarehttps://www.blogger.com/profile/12385527140287224189noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-83873369693738211422019-06-08T17:25:13.616-07:002019-06-08T17:25:13.616-07:00The article, Ryu measurement based control, provid...The article, <a href="https://blog.sflow.com/2018/10/ryu-measurement-based-control.html" rel="nofollow">Ryu measurement based control</a>, provides an example.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-41494682461818639722019-06-08T17:23:36.240-07:002019-06-08T17:23:36.240-07:00If you restart sFlow-RT is loses the topology that...If you restart sFlow-RT is loses the topology that the sflow.py script sends when Mininet was started. The topology is used to de-duplicate traffic crossing multiple links in the topology and so the reported values will be inaccurate. It is best to leave sFlow-RT running, but if you must restart it, restart Mininet afterward.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-76744670935189096942019-06-08T16:22:46.328-07:002019-06-08T16:22:46.328-07:00hello again if i want to detect the large flows (e...hello again if i want to detect the large flows (elephant flows) with sflow-rt and ryu and mininet can i ust this script elephant.py and where i put this script and is i run the simple_switch13.py and ofctl_rest.py in another terminal please can somebody guide me or help me thanksrarehttps://www.blogger.com/profile/12385527140287224189noreply@blogger.com