Let say I want to connect to my broker with a specific user:
john@system
I am wondering how to escape the @ character as the -cu option is taking the first @ as vpn separator.
If I launch my command with:
./sdkperf_java.sh -cip=tcps://my-server.my.domain.net:55552 -cu=john@system@my-vpn -cp=The$amplePa$$ -stl="mytopic/order/retry" -md -q
it makes an error:
Run Info: CPU usage currently disabled.
Client naming used:
logging ID = perf_client000001
username = john
vpn = system
client names = sdk generated.
> VM Name: OpenJDK 64-Bit Server VM
Run Info: Using Java Nanosecond Timer for Timing
> Timing Package Clock Speed (Hz): 1000000000
> Getting ready to init clients
E: Initialization error: client creation failed.
com.solacesystems.pubsub.sdkperf.core.PubSubException: Error while connecting.
at com.solacesystems.pubsub.sdkperf.core.AbstractClientCollection.connect(AbstractClientCollection.java:450)
at com.solacesystems.pubsub.sdkperf.SDKPerf_java.run(SDKPerf_java.java:183)
at com.solacesystems.pubsub.sdkperf.SDKPerf_java.main(SDKPerf_java.java:117)
Caused by: ((Client name: MYHOST/10274/00190001/I1QsJVNjaj Local addr: 192.168.73.254 Local port: 57631 Remote addr: my-server.my.domain.net Remote port: 55552) - ) com.solacesystems.jcsmp.JCSMPErrorResponseException: 403: Message VPN Not Allowed [Subcode:3]
at com.solacesystems.jcsmp.protocol.impl.TcpChannel.executePostOnce(TcpChannel.java:232)
at com.solacesystems.jcsmp.protocol.impl.ChannelOpStrategyClient.performOpen(ChannelOpStrategyClient.java:97)
Is there a way to escape this first ‘@’ to prevent being interpreted as the VPN?