Note, by default a maximum of 100 results are returned. This is a mechanism to protect the from overload as there can be millions of retained messages. Use --limit=<RowLimit> to override the default value.
Besides listing the retained messages it is also possible to filter them:
See the full set of options and documentation by invoking vmq-admin retain show --help:
$ sudo vmq-admin retain --help
Usage: vmq-admin retain show
Show and filter MQTT retained messages.
Default options:
--payload --topic
Options
--limit=<NumberOfResults>
Limit the number of results returned. Defaults is 100.
--payload
--topic
--mountpoint