Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dpi:dpi_components:platform:subscriber_management:subsman_json:start [2020/01/22 11:19] – edrudichgmailcom | en:dpi:dpi_components:platform:subscriber_management:subsman_json:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 11 Output of control commands using the JSON format ====== | ||
| - | {{indexmenu_n> | ||
| - | Output in JSON format is provided to simplify the parsing of command output when integrating with external platforms and WEB. | ||
| - | To do that you should specify an additional option: | ||
| - | < | ||
| - | |||
| - | For the convenience of working with json, we recommend installing the jq utility: | ||
| - | < | ||
| - | yum-config-manager --disable epel | ||
| - | yum --enablerepo epel install jq</ | ||
| - | |||
| - | **Examples** | ||
| - | |||
| - | Formatted output of the result of the command | ||
| - | < | ||
| - | |||
| - | View usage statistics for different policing profiles | ||
| - | < | ||
| - | |||
| - | or the same in json format by jq | ||
| - | < | ||
| - | |||
| - | For later use, you can turn this into a bash function | ||
| - | < | ||
| - | |||
| - | and then just call this function from the command line | ||
| - | < | ||
| - | |||
| - | For regular use of functions you can save them in a .bash_profile file. | ||