🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Unable to list all the queues using SEMP v2

vignesh
vignesh Member Posts: 2
edited February 2023 in General Discussions #1

I am trying to list out all the queues in a vpn using SEMP. But it display only the first 10 queues in the vpn. Why does it not display all queues? Am I missing anything in command below

$ curl -s -u admin:password http://solacepub.xxx.com:80/SEMP/v2/monitor/msgVpns/default/queues | grep -i queuename
      "queueName":"MyQueue1",
      "queueName":"RSM-IN-Q-1",
      "queueName":"RSM-IN-Q-2",
      "queueName":"RSM-IN-Q-3",
      "queueName":"RSM-IN-Q-4",
      "queueName":"RSM-IN-Q-5",
      "queueName":"td-log-utility",
      "queueName":"osb-nm-bypass-incoming-queue",
      "queueName":"osb-nm-bypass-output",
      "queueName":"osb-nm-distributor-input-queue",
$ 


Comments

  • amackenzie
    amackenzie Member, Employee Posts: 269 Solace Employee

    Hello,

    SEMP has a few tricks up its sleeve for getting you results closer to what you need.

    10 is the default for count of returned objects. So if you want more than that, you would need to set count=n .

    Also, there is no need to grep for the queueName as you can add that to the select like so: select=queueName.

    So my full query is: /SEMP/v2/monitor/msgVpns/connectors/queues?select=queueName&count=20

    Hope that helps. The added parameters are discussed in the preamble of the SEMP APIs page.

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 541 admin

    Hey @vignesh - as Andrew mentioned I would suggest checking the SEMP API docs for further customization and fine tuning of the SEMP calls.

    Also, for future posts on the community, I have modified your post to have code formatting on your code block :)

  • vignesh
    vignesh Member Posts: 2

    Hello, thanks for the reply. Even after using the below I am not able to list more than 10 queue created in a VPN. : /SEMP/v2/monitor/msgVpns/connectors/queues?select=queueName&count=20

    What I am trying to achieve is to get all the queue in a VPN and monitor their specific attribute (Eg: Count). Meanwhile I am still going through SEMP API docs

This Week's Leaders