Queue to Topic Mapping List For Solace VPN

Abhikesh
Abhikesh Member Posts: 34 ✭✭

We use Solace queue to topic subscription mapping extensively in our Solace Ecosystem and most of time Application is not aware about underling queue and whenever application face any issue they provide VPN name and topic to administration team to check !

Now from here main pain point begin, because we have multiple queue’s under VPN and same topic might be mapped with multiple queue and it is manual effort to check each queue to find out what all topic Subscription with queue.

Is there any CLI command, which list all queue under VPN, which has topic mapping for provide topic name in CLI command !

Tagged:

Comments

  • Abhikesh
    Abhikesh Member Posts: 34 ✭✭

    I got answer from Solace Support team..

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

    Thanks @Abhikesh for the update! Could you please share your solution here incase someone else in the community comes across the same question? Thanks!

  • Abhikesh
    Abhikesh Member Posts: 34 ✭✭
    edited August 2021 #4

    Sure @Tamimi

    We can use command as below to list all queues under VPN has topic mapping for provided topic name in command.

    solace# show smrp subscription message-vpn queue topic

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 508 admin

    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

  • Abhikesh
    Abhikesh Member Posts: 34 ✭✭
    edited August 2021 #6

    Thanks @Aaron for details information and don't move to support team ;);) , else we will miss Informative solace youtube videos. B)

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

    lets goooo #teamAaron!