Probably we should put this information somewhere in the wiki, for now here is sort of short presentation for each:
1) kamctl and kamdbctl are related, both being shell scripts (developed over the time from the old serctl/openserctl), the first is for interacting with a kamailio instances, the second is only for creating (and managing) the database structure needed by kamailio
2) kamcmd is practically only a binary rpc client that interacts with ctl module from kamailio -- this was developed by SER project during 2005-2008 (when we were separately)
3) kamcli is written in Python and aims to become a (better) alternative to kamctl (and kamdbctl), with a plugin like architecture to extend it with new subcommands, more flexibility (e.g., modules/libs from python that can be used) and better error handling
For example, adding a new subcommand for kamcli means adding a python script inside commands folder. This comes handy if you have a kamailio installation using a custom database table that you access via sqlops -- with few lines of python script you can add a subcommand to manage its records (add/remove/update), doing validation of the values with python expressions to avoid inserting invalid records...
Another nice feature of kamcli vs kamctl is the ability to choose the format for output -- e.g., jsonrpc response can be presented in a compact form as yaml instead of json.
Overall, kamctl and kamdbctl are part of kamailio source tree and packaged inside kamailio debs/rpms, likely to stay so, no plans to replace/remove them, at least in the near future.
kamcli is a separate repository (https://github.com/kamailio/kamcli) and it is going to have its own deb/rpm file (actually Victor already built the deb package, available via deb.kamailio.org repositories).
Cheers, Daniel
On 16.10.18 15:41, Samuel F. wrote:
Great and thank you!
Is there a writeup on how these tools differ and what one should use?
kamcmd kamcli kamctl kamdbctl
*From:* sr-users sr-users-bounces@lists.kamailio.org on behalf of Daniel-Constantin Mierla miconda@gmail.com *Sent:* Tuesday, October 16, 2018 10:03 *To:* Kamailio (SER) - Devel Mailing List; Kamailio (SER) - Users Mailing List; business@lists.kamailio.org *Subject:* [SR-Users] kamcli v1.1.0 released Hello,
kamcli tool just got its first official release, a step forward in the process of packaging it.
It is a command line tool that aims to be a modern alternative to the venerable kamctl, being written in Python and having already a large set of implemented sub-commands, such as:
* subscriber – manage SIP subscribers * ul – manage user location records * address – manage permissions address records * aliasdb – manage database aliases * db – manage kamailio database content * dialog – manage active calls (dialog) * dialplan – manage dialplan records * dispatcher – manage load balancer (dispatcher) * group – manage group membership records (acl) * moni – continuous refresh of the values for a list of statistics * mtree – manage memory trees (mtree) * ps – print the details for kamailio running processes * rpc – interact with kamailio via jsonrpc control commands (alias of jsonrpc) * rpcmethods – return the list of available RPC methods (commands) * speeddial – manage speed dial records * srv – server management commands (sockets, aliases, …) * stats – get kamailio internal statistics * tls – management commands for TLS profiles and connections * uptime – print the uptime for kamailio instance
The news article for this release is available at:
* https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamail...
The corresponding tag in the github repository being:
* https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com...
How to install kamcli and examples of usage can be found at:
* https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com...
Cheers, Daniel
-- Daniel-Constantin Mierla -- https://eur04.safelinks.protection.outlook.com/?url=www.asipto.com&data=... https://eur04.safelinks.protection.outlook.com/?url=www.twitter.com%2Fmicond... -- https://eur04.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2F... Kamailio World Conference -- https://eur04.safelinks.protection.outlook.com/?url=www.kamailioworld.com&am... Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- https://eur04.safelinks.protection.outlook.com/?url=www.asipto.com&data=...
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kama...