[SR-Users] get kamailio sip processes id

Patrick Karton patrickarton at hotmail.com
Tue Feb 8 17:39:47 CET 2022


thanks a lot james.
________________________________
De : sr-users <sr-users-bounces at lists.kamailio.org> de la part de James Browne <james at frideo.com>
Envoyé : mardi 8 février 2022 13:31
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Objet : Re: [SR-Users] get kamailio sip processes id

Maybe you can try the `kamcmd ps` command. Something like this may work for you.

top -c -p $(kamcmd ps | grep receiver | awk '{ print $1 }' | xargs | tr ' ' ,)

James

On Tue, 8 Feb 2022 at 11:26, Patrick Karton <patrickarton at hotmail.com> wrote:
>
> hello,
> as we are all aware kamailio create a lot of processes for many tasks.
>
> im using kamailio in kubernetes and i would like to monitor only sip processes with top command.
>
> i only need a way to get only kamailio sip processes id (udp receiver that handle sip request) .
>
> but i dont knwo how to get it.
>
> top -c -p id1,id2,id3,id4
>
>
> Thanks
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users at lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220208/1eb1c170/attachment.htm>


More information about the sr-users mailing list