The values that you are interested in are msgSpoolUsage
and msgs count. To see the value for currently spooled messages, you can run
the following command:
curl -X GET --user admin:admin
“[1]http://xx.yy.zz.ss:8080/SEMP/v2/monitor/msgVpns//queues?count=25&select=queueName,msgs.count,msgSpoolUsage” -H
“content-type: application/json”
Regarding the output of the number of queues, SEMP will limit the number of
objects returned in the response to 10 by default. If you are retrieving a
large number of objects, it is suggested that you use paging to retrieve a
subset of the information at a time. For details, please refer to the
documentation found here in the paging section
[2]SEMP and here in the
cursor section
[3]SEMP API Reference.
While paging is the recommended approach for performance reasons, for a
smaller number of objects but greater than 10, it is possible to increase the
count of objects retrieved by using the `count’ query parameter as I have
shown in the above command. Please refer to the count section in the
documentation regarding this feature:
[4]SEMP API Reference