<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Ravi,<br>
<br>
That is the whole point - you do not define that var in
opensipsctlrc (you let it undefine). And you set it as env var
when running the opensipsctl tool. Like:<br>
<br>
#> </tt><tt>OSIPS_FIFO=/tmp/opensips1 opensipsctl fifo ps<br>
<br>
Even more, you can create 2 shell scripts as wrappers around
opensipctl to define</tt><tt><tt> OSIPS_FIFO to the correct value.</tt>
<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 07.01.2016 20:48, Ravitez Ravi
wrote:<br>
</div>
<blockquote
cite="mid:CANs_LF-PNnPhSD7J51WByMpkXJL8fVE2MVEETpWh2X5SfoxacA@mail.gmail.com"
type="cite">
<div dir="ltr"><font color="#073763">Hello Bogdan,</font>
<div><font color="#073763"> Thank you for the
help,but i'm unable to find where to update OSIPS_FIFO other
then in opensipsctrl,</font></div>
<div><br>
</div>
<div><font color="#073763">Config :</font><br>
<p class="MsoNormal"><font color="#ff0000">binary :
opensips1</font></p>
<p class="MsoNormal"><font color="#ff0000">Config File :
opensips1.cfg</font></p>
<p class="MsoNormal" style="text-indent:0px"><span
style="text-indent:0.5in"><font color="#ff0000">
modparam("mi_fifo",
"fifo_name", "/tmp/opensips1")</font></span></p>
<p class="MsoNormal"><font color="#ff0000">
modparam("mi_fifo", "fifo_mode", 0666)</font></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><font color="#ff9900">binary :
opensips2</font></p>
<p class="MsoNormal"><font color="#ff9900">Config File :
opensips2.cfg</font></p>
<p class="MsoNormal"
style="margin-left:0.5in;text-indent:0.5in"><font
color="#ff9900">modparam("mi_fifo",
"fifo_name", "/tmp/opensips2")</font></p>
<p class="MsoNormal"><font color="#ff9900">
modparam("mi_fifo", "fifo_mode", 0666)</font></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><font color="#073763">binary :
opensipsctl</font></p>
<p class="MsoNormal"><font color="#073763">Config File :
opensipsctlrc</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">ase 1:</font></p>
<p class="MsoNormal"><font color="#073763">Config :</font></p>
<p class="MsoNormal"><font color="#073763">## path to FIFO
file</font></p>
<p class="MsoNormal"><font color="#073763">#OSIPS_FIFO="/tmp/opensips_fifo"
(commented out)</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">FIFO Command : <span class="" style="white-space:pre">        </span>opensipsctl
fifo arg</font></p>
<p class="MsoNormal"><font color="#073763">Output : <span class="" style="white-space:pre">                 </span>"ERROR:
/tmp/opensips_fifo does not exist"</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">Case 2:</font></p>
<p class="MsoNormal"><font color="#073763">Config :</font></p>
<p class="MsoNormal"><font color="#073763">## path to FIFO
file</font></p>
<p class="MsoNormal"><font color="#073763">OSIPS_FIFO="/tmp/opensips1"</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">FIFO Command : <span class="" style="white-space:pre">        </span>opensipsctl
fifo arg</font></p>
<p class="MsoNormal"><font color="#073763">Output : <span class="" style="white-space:pre">                 </span>Displays
valid data</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">Case 3 :</font></p>
<p class="MsoNormal"><font color="#073763">Config :</font></p>
<p class="MsoNormal"><font color="#073763">## path to FIFO
file</font></p>
<p class="MsoNormal"><font color="#073763">OSIPS_FIFO="/tmp/opensips2"</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">FIFO Command : <span class="" style="white-space:pre">        </span>opensipsctl
fifo arg</font></p>
<p class="MsoNormal"><font color="#073763">Output : <span class="" style="white-space:pre">                 </span>Displays
valid data</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">We have only one
opensipsctl binary,is there a way that we can have two
opensipsctlrc files and pass it as an argument to</font></p>
<p class="MsoNormal"><font color="#073763">opensipsctl,which
will prevent us from modifying opensipsctlrc.Thank you for
your time.</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763"><br>
</font></p>
<p class="MsoNormal"><font color="#073763">Regards,</font></p>
<p class="MsoNormal"><font color="#073763">Ravitez.D</font></p>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jan 7, 2016 at 9:40 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></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"> <tt>Assuming you use
FIFO backend for MI, have you configured different fifo
files in the 2 instances ? If so, you can do <br>
<br>
OSIPS_FIFO=/tmp_my_fifo opensipsctl fifo ps<br>
<br>
be sure you have no FIFO defined in the opensipsctlrc
file (by default it;s not)<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>On 07.01.2016 15:08, Ravitez Ravi wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">Hello Bogdan,<br>
Good Day,<br>
It's over MI, say if I execute
"opensipctrl fifo ps" it shows data related to
"opensips2",is there a way to specify which process to
get data from.<br>
Thank you.</p>
<p dir="ltr">Regards,<br>
Ravitez.D</p>
<div class="gmail_quote">On Jan 7, 2016 3:09 AM,
"Bogdan-Andrei Iancu" <<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Hi Ravi,<br>
<br>
When you say "picks up data from opensips2" - it
is data over MI or data from DB ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>On 06.01.2016 23:04, Ravitez Ravi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello All,
<div> Good Day and a Happy New
Year.</div>
<div> I have two instances of
openSips(V1.11) executable running say
"opensips1" and "opensips2"</div>
<div> when i execute opensipsctl it
always picks up data from "opensips2" is
there a way that we can</div>
<div> choose which executable to
pick.Thank you for the help.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Ravitez.D</div>
<div> </div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>