Dear

I have installed kamcli through apt-get install kamcli.

Not able to execute the command.

sipsecure@kamailio:/etc$ sudo kamcli config install
Usage: kamcli config [OPTIONS] COMMAND [ARGS]...
Try 'kamcli config --help' for help.

Error: No such command 'install'.


Then Do I need to uninstall kamcli from apt and install it through git repo ?

Best Regards,

On Thursday, March 17, 2022 11:09 CET, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
 
 

Maybe you didn't install the config file, in the source directory of kamcli, run:

kamcli config install

You should use/install latest version kamcli.

I tried it on my debian 10 and works.

Daniel

On 17.03.22 10:24, Youssef Boujraf wrote:
Dear,

Yes all are available.
When using : "etc$ sudo kamcli moni" I got error.

It's look like jsonrpc issue.

sipsecure@kamailio:/etc$ sudo kamcli moni
Traceback (most recent call last):
  File "/usr/bin/kamcli", line 11, in <module>
    load_entry_point('kamcli==2.0.0', 'console_scripts', 'kamcli')()
  File "/usr/lib/python3/dist-packages/click/core.py", line 829, in call
    return self.main(args, kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
    return callback(args, kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 73, in new_func
    return ctx.invoke(f, obj, *args, kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/kamcli/commands/cmd_moni.py", line 36, in cli
    command_ctl(ctx, 'stats.get_statistics', slist, {"func": cmd_moni_result_print})
  File "/usr/lib/python3/dist-packages/kamcli/iorpc.py", line 387, in command_ctl
    if ctx.gconfig.get('jsonrpc', 'transport') == 'socket':
  File "/usr/lib/python3.9/configparser.py", line 781, in get
    d = self._unify_values(section, vars)
  File "/usr/lib/python3.9/configparser.py", line 1149, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'jsonrpc'

Best Regards,

On Thursday, March 17, 2022 08:34 CET, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
 
 

Hello,

be sure the common cli tools are installed: grep, egrep, awk, sed, ... Also, it may require to use bash.

The alternative, try to use kamcli.

Cheers,
Daniel

On 17.03.22 00:40, Youssef Boujraf wrote:
Dear,
 
Kamailio : 5.5.4
OS : Debian 11
kamailio.cfg
loadmodule "kex.so" is included

Any idea what is missing in the configuration.

Best Regards,
Youssef
 
On Wednesday, March 16, 2022 13:02 CET, "Youssef Boujraf" <yboujraf@by-research.be> wrote:
 
 

Dear

I am tying to monitor the kamailio with "kamctl monitor" and I got this error.

-e [cycle #: 1; if constant make sure server lives]
-e Kamailio Runtime Details:
kamailio 5.5.4 (x86_64/linux)
    now:  Wed Mar 16 12:44:43 2022
    up_since: Wed Mar 16 12:39:51 2022
    uptime: 292

-e Transaction Statistics:
/usr/sbin/kamctl: 245: column: not found

-e Stateless Server Statistics:
/usr/sbin/kamctl: 259: column: not found

-e UsrLoc Statistics:
/usr/sbin/kamctl: 273: column: not found

-e Core Statistics:
/usr/sbin/kamctl: 287: column: not found

-e Shared Memory Statistics:
/usr/sbin/kamctl: 301: column: not found

Any idea

Best Regards

--
Youssef
 
__________________________________________________________
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
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/



--
Youssef
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/



--
Youssef BOUJRAF | Managing Director

Direct Line: +32 (0)2 880 33 30

Mobile: +32 (0)477 94 86 89
Dubai Mobile : +971 (0)55 9928871
Fax: +32 (0)2 318 82 21
Skype: y_boujraf
Email: yboujraf@by-research.be
Web : www.by-systems.be/

BY-SYSTEMS sprl| Avenue Charles Plisnier 13 | B-1070 Anderlecht | Belgium | TVA: BE 0819.832.617

This communication, issued by BY-SYSTEMS SPRL, is confidential and we do not waive confidentiality by mistransmission. If you have received it by mistake please notify the sender immediately by reply and then delete it permanently from your system without copying it, using it for any purposes or disclosing its contents to any other person. Thank you for your cooperation. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of BY-SYSTEMS SPRL. Emails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, lost or destroyed, or contain viruses. Anyone who communicates with us by email is taken to accept these risks.