Command Line Tools
Ring2All provides a command-line utility called ss_cmd for administrative tasks that need to be performed directly on the server.
Overview
The ss_cmd command is installed automatically with the Softswitch API package and is available system-wide at /usr/local/bin/ss_cmd.
Usage
Available Commands
- reset-pwd - Reset web GUI password for a user
- make-backup - Create a backup using a backup job ID
- list-backups - Display available backup jobs
- help - Show help message
---
Reset User Password
Use this command when a user has forgotten their password or when you need to reset the admin password.
Syntax
Parameters
- username (required): The email address of the user account
- password (optional): The new password. If omitted, a random password is generated
Examples
Reset admin password with auto-generated password:Output:
Reset password with specific value:Output:
Note: When using a specific password, ensure it meets the password requirements (minimum 8 characters).
---
Backup Management
List Available Backup Jobs
View all configured backup jobs:
Output:
Execute a Backup
Run a backup job manually:
Example:
Output:
---
Troubleshooting
Command Not Found
If ss_cmd is not found, verify the installation:
If missing, reinstall the API package:
API Not Running
The command requires the Softswitch API to be installed. Verify:
Permission Denied
Ensure you are running the command as root or with sudo: