The only alternative format is JSON. You can request it by adding the --format=json
key to a command.
Copy vmq-admin listener show --format=json
Copy {"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"}%
Copy vmq-admin listener show --format=json | jq '.table'
Copy [
{
"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
}
]