Content
Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This CLI script provides an implementation of the XML-RPC interface, and allows the user to manage the redirections of his phones. It is Open Source and given to the users - just like the underlying service - without any warranty whatsoever. Feel free to edit the script according to your requirements. Installation and Run CLIIn order to use the Snom redirection service command line interface (CLI) you need to have Python installed. Python is preinstalled on many Linux distributions and on Mac OS X. However it is also available for all other major operating systems. You can find the current Python installation for your system here.
Login to SRAPSThe CLI will ask for your SRAPS credentials. If you do not have yet a user account, you can sign up online at https://sraps.snom.com.
with YourUsername being your personal SRAPS user name. Working with the CLIThe CLI provides a help command which can be used in two different ways:
Listing available commandsIn order to list all available commands type:
If you want to get a short description of the command, type help <command>:
Managing redirectionsThe actions you can execute to manage redirections are the following:
Create a new redirection - the add commandIn order to create a new redirection for a given phone use the add command:
Deleting a redirection - the remove commandIn order to delete an existing redirection use the remove command:
Changing redirections - the update commandChanging a redirection is a two-step process:
Both steps are handled by the update command seamlessly. Update the redirection for one phone In order to update the redirection for one phone call the update command with the same syntax as the add command:
Checking redirection status - the check commandIn order to check if a redirection for a given phone exists use the
Listing active redirections - the list commandIn order to list your active redirections you can use the list command. Listing all active redirections Use list all to list all active redirections. Please note that this command takes a couple of seconds to execute as it needs to query all phone types.
Using local variablesThe CLI supports basic local variables allowing you to save some typing. Setting a variable valueIn order to assign a variable value use the
Accessing variable valuesAfter you have set a variable value you can use it in all commands:
would be executed as
Showing variable values - the print commandYou can use the
or
Finishing your workWhen you are done you can use the exit or logout command to exit the CLI.
|
Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This CLI script provides an implementation of the XML-RPC interface, and allows the user to manage the redirections of his phones. It is Open Source and given to the users - just like the underlying service - without any warranty whatsoever. Feel free to edit the script according to your requirements. Installation and Run CLIIn order to use the Snom redirection service command line interface (CLI) you need to have Python installed. Python is preinstalled on many Linux distributions and on Mac OS X. However it is also available for all other major operating systems. You can find the current Python installation for your system here.
Login to SRAPSThe CLI will ask for your SRAPS credentials. If you do not have yet a user account, you can sign up online at https://sraps.snom.com.
with YourUsername being your personal SRAPS user name. Working with the CLIThe CLI provides a help command which can be used in two different ways:
Listing available commandsIn order to list all available commands type:
If you want to get a short description of the command, type help <command>:
Managing redirectionsThe actions you can execute to manage redirections are the following:
Create a new redirection - the add commandIn order to create a new redirection for a given phone use the add command:
Deleting a redirection - the remove commandIn order to delete an existing redirection use the remove command:
Changing redirections - the update commandChanging a redirection is a two-step process:
Both steps are handled by the update command seamlessly. Update the redirection for one phone In order to update the redirection for one phone call the update command with the same syntax as the add command:
Checking redirection status - the check commandIn order to check if a redirection for a given phone exists use the
Listing active redirections - the list commandIn order to list your active redirections you can use the list command. Listing all active redirections Use list all to list all active redirections. Please note that this command takes a couple of seconds to execute as it needs to query all phone types.
Using local variablesThe CLI supports basic local variables allowing you to save some typing. Setting a variable valueIn order to assign a variable value use the
Accessing variable valuesAfter you have set a variable value you can use it in all commands:
would be executed as
Showing variable values - the print commandYou can use the
or
Finishing your workWhen you are done you can use the exit or logout command to exit the CLI.
|