Fwconsole SangomaConnect

What are the fwconsole commands for Sangoma Connect? More specifically, is there a way to trigger the CloudConnect Agent action, or disable/enable via fwconsole or command line? The help option doesn’t show anything, but the documentation for this is non-existent so I figured I would ask here.

[root@localhost ~]$ fwconsole sc --help
______                   ______ ______ __   __
|  ___|                  | ___ \| ___ \\ \ / /
| |_    _ __   ___   ___ | |_/ /| |_/ / \ V /
|  _|  | '__| / _ \ / _ \|  __/ | ___ \ /   \
| |    | |   |  __/|  __/| |    | |_/ // /^\ \
\_|    |_|    \___| \___|\_|    \____/ \/   \/

Usage:
  sangomaconnect [options] [--] <cmd> [<opt>]
  sc

Arguments:
  cmd                   Command to run (see --help)
  opt                   Some commands will require to use this field

Options:
      --list            List supervisor users
      --delete=DELETE   Delete the supervisor user by uid
      --type=TYPE       Delete the supervisor user by Features Call/Queue
      --uselicense      Start using portal Lic instead of Beta lic
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Valid Commands:
  logout [email] : This will force a logout to the user that is associated to the requested e-mail address.
  fwrules [create|remove] : Will add or remove the necessary IPS that we need in order to connect from the cloud to this PBX.
  su [list|delete|uselicense] : This Command is for Listing  the Supervisor user and deleting them by uid given in the listing. (uselicense) Use Portal License and remove any local license managed during beta period and check the Supervisors usage

Hi @adell4444

As of now we do not have any console command to disable/enable or trigger cloud connect agent via CLI.
Can you please share your requirement so we can think to add this into our roadmap to improve further.

Best Regards,
Kapil

We will occassionally have an issue where the Cloud Connect agent needs to be started because it is stopped. This happens intermittently and I haven’t found a root cause for it. I would like to be able to program a check for the status, and if needed run a start command programmatically.

thanks @adell4444 for sharing your use case, will raise JIRA internally to add console commands for performing basic operations.

Regards,
Kapil

If there’s another way to do it that is currently available not in fwconsole that would be useful as well. The CloudConnect agent stopping is a regular occurrence and I would like to be able to start it more proactively then I currently am.

Hi @adell4444
fwconsole command has implemented and is available in the following versions
sangomaconnect version 16.0.51.31
sangomaconnect version 17.0.3.36

fwconsole sangomaconnect cloudagent [start|stop|restart]

Thank you @jphilip and @kgupta for adding this functionality. I appreciate the time and effort.

Without the ability to programmatically check to see if the cloudconnect agent is running or not, these commands aren’t as helpful as they could be since I still need to check the status manually.

so adding status

fwconsole sangomaconnect cloudagent [start|stop|restart|status]

…would be helpful ?

Yes it would.

Hi @adell4444 , Status option added on the following versions
sangomaconnect version 17.0.3.37
sangomaconnect version 16.0.51.32

fwconsole sangomaconnect cloudagent [start|stop|restart|status]

2 Likes

Looks great. Thank you!

[root@localhost ~]$ fwconsole sc cloudagent status
Cloud agent status: Stopped
[root@localhost ~]$ fwconsole sc cloudagent start
Cloud agent start action completed successfully
[root@localhost ~]$ fwconsole sc cloudagent status
Cloud agent status: Running
1 Like