Thanks for the info Daniel.<div><br></div><div>I have implemented mi_datagram module and defined it with the following parameters:</div><div><br></div><div>modparam("mi_datagram", "socket_name", "udp:<a href="http://2.2.2.2:8033">2.2.2.2:8033</a>")</div>
<div><br></div><div>When i run the below command from a remote server:</div><div><br></div><div>echo -ne ":address_dump:\n\n" | nc -w 1 -u 2.2.2.2 8033</div><div><br></div><div>i don't receive an output, but when i monitor all traffic on the local machine:</div>
<div><br></div><div>ngrep -q -t -P "" -W byline -d any host 2.2.2.2 and udp</div><div><br></div><div>i observe the output:</div><div><br></div><div><div>U 2012/08/27 12:41:36.735094 <a href="http://1.1.1.1:55621">1.1.1.1:55621</a> -> <a href="http://2.2.2.2:8033">2.2.2.2:8033</a></div>
<div>:address_dump:</div><div><br></div><div><br></div><div>U 2012/08/27 12:41:36.735201 <a href="http://2.2.2.2:47024">2.2.2.2:47024</a> -> <a href="http://1.1.1.1:55621">1.1.1.1:55621</a></div><div>200 OK</div><div> 71 <1, xx.xx.xx.xx, 0> [1]</div>
<div> 72 <1, yy.yy.yy.yy, 0> [4]</div></div><div><br></div><div><br></div><div>Seems like the command is accepted from remote server and executed on local machine but not relayed back to the remote server. Looks like mi_datagram replies on different port other than 8033. Is there a way to force the reply on source port 8033?</div>
<div><br></div><div>Thanks</div><div>Phillip</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Aug 27, 2012 at 9:58 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
if you want to execute from a remote server, maybe it is better to
use mi_datagram or xmlrpc modules to run MI/RPC commands.<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<br>
<div>On 8/22/12 12:02 PM, phillman25 wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">Dear List
<div><br>
</div>
<div>I am trying to run the below command from a REMOTE server
where i use Cacti to graph all my data. I am trying to graph on
a per trunk basis.<br>
<div><br>
</div>
<div>kamctl fifo profile_get_size trunk | awk -F '=' '{print
$4}'</div>
</div>
<div><br>
</div>
<div>This command yields an output on the local server.</div>
<div><br>
</div>
<div>Could someone perhaps point me in the right direction?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks!</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a></pre>
</font></span></div>
</blockquote></div><br></div>