-1

How remove client by semp in solace.I try it like follows:

<rpc xmlns="http://www.solacesystems.com/semp/topic_routing/d35m1">
<no><client-username><username>user1</username>    
<vpn-name>jiavpn</vpn-name>   </client-username></no></rpc>

but it alert me "Command is not allowed via SEMP over the message bus", did it have some relation with the SEMP TOPIC,my topic is #SEMP/soalce1/SHOW. thanks for answer

Insane Skull
  • 9,220
  • 9
  • 44
  • 63
Jeffrey
  • 105
  • 3
  • 11
  • You can use SEMP over HTTP. See [here](http://stackoverflow.com/questions/36878813/how-do-i-programmatically-disconnect-clients-which-are-connected-to-solace-appli/36907954?noredirect=1#comment61588750_36907954) – Koon Sang May 06 '16 at 14:05

2 Answers2

0

Answer is invalid. There is an error with the documentation which will be fixed in the next major release.


The disconnect SEMP over message bus command is an Client Admin EXEC command, and needs to be sent to #SEMP/<router name>/ADMIN/CLIENT instead of #SEMP/<router name>/SHOW.

From the user guide,

• Client Admin EXEC commands—These commands enable applications to clear and reset the given client’s event notification for a specified one-shot event or to disconnect the client. The following client admin EXEC commands can be executed over the message bus:
- admin client <name> message-vpn <vpn-name> [primary][backup] [static] clear-event <event-name>
- admin client <name> message-vpn <vpn-name> [primary][backup] disconnect

...

• #SEMP/<router name>/ADMIN/CLIENT—The command topic destination for Client Admin EXEC commands, which enable applications to clear and reset the given client’s event notification for a specified one-shot event or to disconnect the client.

Note that you will need to enable Admin and Client SEMP over Message Bus Commands for the message VPN. Refer to the screenshot below for an example of how to do this.

Enable Admin and Client Commands

Also note that the client application might be configured to automatically reconnect after a disconnect.

Russell Sim
  • 1,693
  • 2
  • 14
  • 22
  • I have chang the Topic to "#SEMP/solace1/ADMIN/CLIENT", the semp xml is "jiajiejiajievpn", and enable semp over msg bus throught Soladmin ,but it still inform me "Command is not allowed via SEMP over the message bus".Do you have possible reason .thanks for answering. – Jeffrey Apr 22 '16 at 03:43
  • It is likely that you've not enabled Admin and Client Commands for SEMP over Message Bus. I've edited my answer to include a screenshot of how to do so. – Russell Sim Apr 22 '16 at 06:49
  • Thank you first.actually,I have set manage msg vpn like your screenshoot,but it still alert me Command is not allowed via SEMP over the message bus.Is any possibility that the user don't have Enough authority or others. – Jeffrey Apr 22 '16 at 09:07
  • Can you clarify what is your SEMP command? `no client-username...` as per your modified OP, or `disconnect client...` as per your comment? – Russell Sim Apr 25 '16 at 01:12
  • -1 down vote accept I encounter the same problem too. My program login to a Management VPN which has the following setting: #client myvpn1 myvpn1 is also having the same settings are shown in the image above. I am getting the same error too, as shown below. Command is not allowed via SEMP over the message bus Not sure what have I missed. – Jeffrey Apr 25 '16 at 03:55
  • I can show client information throught semp,but can not disconnect the clients,it will alert"Command is not allowed via SEMP over the message bus".what is the reason. – Jeffrey Apr 25 '16 at 07:19
0

Both of the following are SEMP commands that cannot be executed over the message bus.

Deleting a client-username:

<rpc xmlns="http://www.solacesystems.com/semp/topic_routing/d35m1">
    <no>
        <client-username>
            <username>user1</username>    
            <vpn-name>jiavpn</vpn-name>   
        </client-username>
    </no>
</rpc>

Disconnecting a client:

<rpc semp-version="soltr/7_1_1">
    <admin>
        <client>
           <name>jiajie</name>
           <vpn-name>jiajievpn‌​</vpn-name>
           <disconnect/>
        </client>
   </admin>
</rpc>

Only a limited subset of commands are available for SEMP over message bus. The complete list can be found in Available SEMP Over Message Bus Commands. Note that there is currently an error in the documentation that will be fixed in the next major release - Disconnecting clients are not allowed via message bus despite the documentation saying so.

Russell Sim
  • 1,693
  • 2
  • 14
  • 22