<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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="moz-cite-prefix">On 08.02.22 17:39, Patrick Karton
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM0PR0402MB37789589B15FA425EB0B38C7DF2D9@AM0PR0402MB3778.eurprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>De :</b>
sr-users <a class="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="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="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="BodyFragment"><font size="2"><span
style="font-size:11pt;">
<div class="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="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="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"
moz-do-not-send="true" class="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="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"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</span></font></div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="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="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="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="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="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>
</body>
</html>