<div dir="ltr"><div><div><div><div><div><div>Hi Roger,<br><br></div>You can simply use NS_LOG and print all information you want. For instance, assume you're using "ndn-consumer.cc" and "ndn-producer.cc", which are predefined files under this directory: "src/ndnSIM/apps", as applications in your scenario. After assigning <i>consumer</i> application to you nodes, and perhaps <i>producer</i> application to some other of them, you can type below command in the bash and run it:<br><br></div>NS_LOG=ndn.Consumer:ndn.Producer ./waf --run [<i>name of your file</i>]<br><br></div>Now, you'll see that there are a lot of information printed on your screen which one of is packet arrival. Here number of your nodes and their topology is not important, at all. So, for any similar purpose you can simply use NS_LOG environment variable and print any kind of information on the screen.<br><br></div>Anyway, if you wanted to save printed lines, you can easily use below command (according to above example):<br><br>NS_LOG=ndn.Consumer ./waf --run [<i>name of your file</i>] > test.txt<br><br></div>which will save all printed lines in <i>test.txt</i> file.<br><br></div>Good luck<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 6:04 PM, roger <span dir="ltr"><<a href="mailto:youngroger64@gmail.com" target="_blank">youngroger64@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I have a scenario with multiple consumers. I am looking to capture the packet arrival times on the consumers and save them to a file.. how do i go about this, thank you.<br>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><span><font color="#888888"><div><div dir="ltr"><div><div dir="ltr"><span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><i style="color:rgb(0,0,0)"><b>Chavoosh Ghasemi</b></i><br><span style="color:rgb(153,153,0)"><br><font style="color:rgb(102,102,0)" size="2">Master of Information Technology </font></span></span><font style="color:rgb(102,102,0)" size="2">- </font></font></font></span><span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><span style="color:rgb(153,153,0)"><font style="color:rgb(102,102,0)" size="2">Computer Network<font color="#888888">s</font> </font></span></span></font></font></span><br style="font-family:georgia,serif"><span><font><font color="#888888"><span style="color:rgb(0,0,153);font-family:georgia,serif"><font style="color:rgb(102,102,0)" size="2">Sharif University of Technology (SUT) - Computer Engineering Department</font></span></font></font></span><font size="1"><b><i style="color:rgb(102,102,0)"><span><br></span></i></b></font></div><div><font size="1"><b><i style="color:rgb(102,102,0)"><span>Address:  Department of Computer Engineering,<br></span></i></b></font></div><div><font size="1"><b><i style="color:rgb(102,102,0)"><span>                Sharif University of Tech, Tehran, Iran<br></span></i></b></font></div><div dir="ltr"><font size="1"><b><i style="color:rgb(102,102,0)"><span><br><span style="color:rgb(153,153,0)">"The </span><i style="color:rgb(153,153,0)">quieter</i><span style="color:rgb(153,153,0)"> you become, the </span><i style="color:rgb(153,153,0)">more you can hear"</i></span></i></b></font><br></div></div></div></div>
</font></span>
</div></div>
</div>