Re: [SR-Users] get kamailio sip processes id

2022-02-09 Thread Patrick Karton
thanks a lot Daniel. great and more clean output indeed.

De : Daniel-Constantin Mierla 
Envoyé : mercredi 9 février 2022 08:24
À : Kamailio (SER) - Users Mailing List ; Patrick 
Karton 
Objet : Re: [SR-Users] get kamailio sip processes id


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.


Cheers,
Daniel


On 08.02.22 17:39, Patrick Karton wrote:
thanks a lot james.

De : sr-users 
<mailto:sr-users-boun...@lists.kamailio.org>
 de la part de James Browne <mailto:ja...@frideo.com>
Envoyé : mardi 8 février 2022 13:31
À : Kamailio (SER) - Users Mailing List 
<mailto:sr-users@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 
<mailto:patrickar...@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@lists.kamailio.org<mailto:sr-users@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@lists.kamailio.org<mailto:sr-users@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@lists.kamailio.org<mailto:sr-users@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


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@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


Re: [SR-Users] get kamailio sip processes id

2022-02-08 Thread Daniel-Constantin Mierla
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.


Cheers,
Daniel


On 08.02.22 17:39, Patrick Karton wrote:
> thanks a lot james.
> 
> *De :* sr-users  de la part de
> James Browne 
> *Envoyé :* mardi 8 février 2022 13:31
> *À :* Kamailio (SER) - Users Mailing List 
> *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 
> 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@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@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@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

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@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


Re: [SR-Users] get kamailio sip processes id

2022-02-08 Thread Patrick Karton
thanks a lot james.

De : sr-users  de la part de James Browne 

Envoyé : mardi 8 février 2022 13:31
À : Kamailio (SER) - Users Mailing List 
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  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@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@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@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


Re: [SR-Users] get kamailio sip processes id

2022-02-08 Thread James Browne
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  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@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@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


[SR-Users] get kamailio sip processes id

2022-02-08 Thread Patrick Karton
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@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