Muni
June 30, 2023, 7:49am
1
Hi All,
How do you find out list of consumers of a particular topic? Would we be able to search who all consuming the given topic?
Let us say, I have below queues subcritpion
Q1 - hello/first
Q2 - hello/second
Q3 - hello/first
Q4 - hello/first
How do you find out the list of Queues who are consuming topics hello/first?
Hey @Muni > - you can leverage the details exposed by SMRP (solace Subscription Management and Routing Protocol) to get a list of queues subscribed to the topic of choice
show smrp subscriptions topic hello/first
You can also check further details here
Aaron:
Yup, good ol’ SMRP (Solace’s Subscription Management and Routing Protocol )…! ?
Note that if you’re looking specifically for queue subscriptions , then I’d suggest adding the term “persistent” to your command. E.g.: show smrp subscriptions message-vpn [VPN] topic [TOPIC] persistent
Also, the typo above (subscription vs. subscriptions).
When providing the TOPIC
to look for, you can use the wildcard asterisk *
. But this is not the same a the topic wildcard… it will match any number of chars. And >
doesn’t work as a wildcard either:
0c6dd5f754be> show smrp subscriptions message-vpn default topic solace* persistent
Flags Legend:
T - Destination Type (C=local-client, Q=local-queue
T=local-topic-endpoint, R=remote-router)
P - Subscription Persistence (P=persistent, N=non-persistent)
R - Redundancy Type for Local Destinations (P=primary, B=backup
S=static -=not-applicable)
Message VPN : default (exported: No; 100% complete)
Destination Name Flags BlkID DTO Subscription
T P R Prio
------------------------ - - - ----- ---- ------------------------------------
q1 Q P P 0 DA solace/*
q_pers_processor Q P P 0 DA solace/samples/*/pers/pub/>
q_samples Q P P 0 DA solace/samples/*/pers/>
q_samples Q P P 0 DA solace/samples/*/pers/pub/>
0c6dd5f754be>
Finally, there is a SEMPv1 command for this, rather than having to use the CLI:
<rpc semp-version="soltr/9_9VMR">
<show>
<smrp>
<subscriptions>
<vpn-name>default</vpn-name>
<topic></topic>
<topic-str>solace*</topic-str>
<persistent></persistent>
</subscriptions>
</smrp>
</show>
</rpc>
Hope that helps anybody else in the future.
Maybe I should join the Support team?? haha
Hint: if you search for SMRP in the solace community you will get quite a few interesting posts as well that might be helpful.