Output Format
Changing the output format of CLI commands
Default Output Format
JSON Output Format
vmq-admin listener show --format=json{"table":[{"type":"vmq","status":"running","address":"0.0.0.0","port":"44053","mountpoint":"","max_conns":10000,"active_conns":0,"all_conns":0},{"type":"mqtt","status":"running","address":"127.0.0.1","port":"1883","mountpoint":"","max_conns":10000,"active_conns":0,"all_conns":0},{"type":"mqttws","status":"running","address":"127.0.0.1","port":"1887","mountpoint":"","max_conns":10000,"active_conns":0,"all_conns":0},{"type":"http","status":"running","address":"127.0.0.1","port":"8888","mountpoint":"","max_conns":10000,"active_conns":0,"all_conns":0}],"type":"table"}%vmq-admin listener show --format=json | jq '.table'[
{
"type": "vmq",
"status": "running",
"address": "0.0.0.0",
"port": "44053",
"mountpoint": "",
"max_conns": 10000,
"active_conns": 0,
"all_conns": 0
},
{
"type": "mqtt",
"status": "running",
"address": "127.0.0.1",
"port": "1883",
"mountpoint": "",
"max_conns": 10000,
"active_conns": 0,
"all_conns": 0
},
{
"type": "mqttws",
"status": "running",
"address": "127.0.0.1",
"port": "1887",
"mountpoint": "",
"max_conns": 10000,
"active_conns": 0,
"all_conns": 0
},
{
"type": "http",
"status": "running",
"address": "127.0.0.1",
"port": "8888",
"mountpoint": "",
"max_conns": 10000,
"active_conns": 0,
"all_conns": 0
}
]Last updated
Was this helpful?