Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] How to use cmd in code script to ping hosts and show the results

Soliman Awad Alshra´a Abdullah TU Ilmenau Abdullah.Alshraa at tu-ilmenau.de
Tue May 29 05:40:44 PDT 2018


Dear,
I have 10 hosts and 1 server

I need the hosts to ping the server many times (for example, 100 times )

how can I do that when I write my code script. () without using CLI
can I use cmd command
and If I can, how to show the results.

I think to do something like this

for I in range(0,100)
   H(i).cmd('ping -c1 %s'% server)

and I don't know how to show the results


could anyone guide me.
Thanks
A.Soliman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20180529/86abc0b4/attachment.html>


More information about the mininet-discuss mailing list