6.3. Command Reference

This section describes all available shell commands that can be used for administering the ABC SBC .

% sbc-restart  group

This command restarts sevices from the specified group.

group is one of the follwoing:

  • sig - Restart signalling services (sems processes)
  • mgmt - Restart system management services (syslog-ng, monit, collectd)
  • mgmt-net - Restart system services depending on IMI management services (snmpd, webmin)
  • ha - Apply pacemaker high-availability resources configuration
  • all - Restart all the SBC services
% sbc-create-config module

This command regenerates configuration files from their templates. Either a specific module (e.g. “sems“) or a group of modules (“sig”) can be used. Run the command without options to get list of supported modules.

Example: sbc-create-config sig

% sbc-set-master

This command enables the server where run to act as the main ABC SBC configuration master, where the main web GUI for common SBC configuration will be accessible. This script is part of installation procedure. It can be also used to disable node being configuration master, when moving this functionality to another node.

% sbc-init-config

This command configures ip address or dns name of the main configuration node, from which ABC SBC node will automatically get configuration. It has to be run on all SBC nodes. This script is part of installation procedure.

% sbc-events

This command is used for a custom search through the SBC events. Even though the GUI provides several conditions for filtering event database content, this scripts provide more flexibility to select the events.

Available parameters are: [-e] [-u] [-w] (<URI>|MR)

  • -e operates in “explain mode”
  • -u forms a UNION query (or-query otherwise)
  • -w wipes the events related to an URI
  • <URI> SIP URI that appears in events; if no switches are used, events relating to the URI are dumped
  • MR stands for most recent events

Example: sbc-events sip:alice@example.com

% sbc-init-services

Regenerates the configuration files and restarts all the processes managed by systemd, see Sec. Overview of Monitoring and Troubleshooting Techniques. It is automatically executed during the ABC SBC software install or upgrade.

% sbc-loglevel action [loglevel]

Shows or sets the logging level for the ABC SBC signalling handling process.

action can be one of the follwoing:

  • get: show the current log level for each category
  • set: set the log level of a certain category to the loglevel  value

loglevel takes a single log level category (as defined in Reference of Global Configuration Parameters for Log level) and its log level value.

Example: sbc-loglevel set SDP:Parser=3

Log files are located in the “/var/log/frafos“ directory.

% sbc-ha-clean

Completely removes/cleans the Pacemaker HA configuration. It has to be executed on both cluster nodes. It can be used in the case when some of the resources (services) managed by Pacemaker, see Sec. Overview of Monitoring and Troubleshooting Techniques, are not correctly loaded and the complete HA configuration has to be regenerated using the sbc-ha-init command.

% sbc-db-backup

Creates manual SBC database backup of master config “sbcconf” database. Can be used on the master config node only. The file “db_dump.sql” with Mariadb DB content is stored to “/var/lib/sbc/configs“ directory.

Table Of Contents

Previous topic

6.2. Server Administration

Next topic

6.4. Backup and Restore Operations

This Page