Reference Guide 8. General Root Commands
Version 7.2 197 Mediant MSBR
8.7 output-format
This command enables the output of certain show commands to be displayed in JSON
format.
Syntax
output-format
Command Description
Displays the output in JSON format.
Displays the output in regular plain text format.
Note
The JSON format is supported only by certain show commands. For filtering the output, see
the first, last, range and descending commands in Section 3.4 on page 32.
Command Mode
Basic User and Privileged User
Example
The example displays only the first two calls and in JSON format:
output-format json
show voip calls history sbc first 2
{
"History" : [
{
"CallEndTime": "08:21:41.376 UTC Wed Mar 28 2018",
"IpGroup": "Linux",
"Caller": "sipp",
"Callee": "service",
"Direction": "Incoming",
"Duration": "00:00:17",
"RemoteIP": "10.33.5.141",
"TermReas": "NORMAL_CALL_CLEAR",
"SessionId": "3c71d9:152:621"
},
{
"CallEndTime": "08:21:41.366 UTC Wed Mar 28 2018",
"IpGroup": "Linux",
"Caller": "sipp",
"Callee": "service",
"Direction": "Outgoing",
"Duration": "00:00:17",
"RemoteIP": "10.33.5.141",
"TermReas": "NORMAL_CALL_CLEAR",