<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
thanks a lot Daniel. great and more clean output indeed.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> Daniel-Constantin Mierla <miconda@gmail.com><br>
<b>Envoyé :</b> mercredi 9 février 2022 08:24<br>
<b>À :</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Patrick Karton <patrickarton@hotmail.com><br>
<b>Objet :</b> Re: [SR-Users] get kamailio sip processes id</font>
<div> </div>
</div>
<div>
<p>The approach is similar, but you can use 'kamctl ps' which returns a json document that can be parsed with jq for a more structured navigation.</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">On 08.02.22 17:39, Patrick Karton wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
thanks a lot james.</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> sr-users
<a class="x_moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.kamailio.org">
<sr-users-bounces@lists.kamailio.org></a> de la part de James Browne <a class="x_moz-txt-link-rfc2396E" href="mailto:james@frideo.com">
<james@frideo.com></a><br>
<b>Envoyé :</b> mardi 8 février 2022 13:31<br>
<b>À :</b> Kamailio (SER) - Users Mailing List <a class="x_moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org">
<sr-users@lists.kamailio.org></a><br>
<b>Objet :</b> Re: [SR-Users] get kamailio sip processes id</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Maybe you can try the `kamcmd ps` command. Something like this may work for you.<br>
<br>
top -c -p $(kamcmd ps | grep receiver | awk '{ print $1 }' | xargs | tr ' ' ,)<br>
<br>
James<br>
<br>
On Tue, 8 Feb 2022 at 11:26, Patrick Karton <a class="x_moz-txt-link-rfc2396E" href="mailto:patrickarton@hotmail.com">
<patrickarton@hotmail.com></a> wrote:<br>
><br>
> hello,<br>
> as we are all aware kamailio create a lot of processes for many tasks.<br>
><br>
> im using kamailio in kubernetes and i would like to monitor only sip processes with top command.<br>
><br>
> i only need a way to get only kamailio sip processes id (udp receiver that handle sip request) .<br>
><br>
> but i dont knwo how to get it.<br>
><br>
> top -c -p id1,id2,id3,id4<br>
><br>
><br>
> Thanks<br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
>   * <a class="x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">
sr-users@lists.kamailio.org</a><br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
>   * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" class="x_moz-txt-link-freetext">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a class="x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">
sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" class="x_moz-txt-link-freetext">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</span></font></div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="x_moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="x_moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="x_moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="x_moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="x_moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * <a class="x_moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</div>
</body>
</html>