Try PubSub+
If you haven't already, check out our new Developer Portal! You'll find useful information about Solace PubSub+ as well as handy resources to get you started.

Moving Message VPN Configurations Between Software Instances

NagaNaga Member Posts: 22
edited October 22 in PubSub+ Software

I have created VPN on one software Instance. Now I need the same configuration on another software instance. I did below:

  1. create username sftp password **** filetransfer.

    solace>show current-config message-vpn sample_vpn > cliscripts/sample_vpn.cli
    solace>enable
    solace# copy cliscripts/sample_vpn.cli sftp://[email protected]/cliscripts

    ERROR: Could not read from `/cliscripts/sample_vpn.cli': Permission denied
    Command Failed

Tagged:

Answers

  • marcmarc Member, Moderator, Employee Posts: 33 mod

    Hi,
    I'll look into why the documented steps don't seem to be working for you as I was able to reproduce the issue on my local docker instance. Are you deploying the broker as a VM or using docker? In the meantime if you have access to the shell the cliscript gets saved to /usr/sw/jail/cliscripts so you could scp it from there.
    Example using docker:

    docker exec -it solace /bin/bash 
    $ cd /usr/sw/jail/cliscripts/
    $ scp sample_vpn.cli [email protected]:path
    
  • NagaNaga Member Posts: 22

    I am using VMware. Thanks

  • marcmarc Member, Moderator, Employee Posts: 33 mod

    After looking into this further it looks like the copy command only works for copying appliance to appliance right now. This is a known issue and will be addressed in a future SolOS release.

    The work around for one software event broker to another is to do one of the following:
    1. Create a file-transfer user on both software event brokers, then copy it
    off one event broker to another host then on the other event broker copy in
    from that host. Say, for example, if you are using windows, you can use
    WinSCP to transfer it off one and put it on another.
    2. Login to the linux shell (you can use solacectl shell from the cli) and then do sftp and put the file to another host.

    vmr-133-12# show current-config message-vpn default > cliscripts/default.cli
    [[email protected] ~]$ solacectl shell
    [[email protected] ~]$ cd /usr/sw/jail/cliscripts
    [[email protected] cliscripts]$ ls -lrt
    -rw-rw-rw- 1 appuser root 10530 Oct 25 02:59 default.cli
    [[email protected] cliscripts]$ sftp -oPort=2222 [email protected]
    Solace PubSub+ Enterprise
    Password:
    Connected to 192.168.X.X.
    sftp> cd cliscripts
    sftp> put default.cli
    Uploading default.cli to /cliscripts/default.cli
    default.cli
    
    [[email protected] cliscripts]$ ls -lrt
    -rw-r--r-- 1 sftp solgroup 10530 Oct 25 05:01 default.cli
    
  • jeremyjeremy Administrator Posts: 26 admin

    @Naga were you able to get this working? If so, please click the “Yes” on Did this answer the question? where appropriate so that others can benefit! And if not, please let us know so we can continue to assist!

  • NagaNaga Member Posts: 22

    Since I am directly login to cli not able to shell or solacectl command.

  • marcmarc Member, Moderator, Employee Posts: 33 mod

    Hi,
    If you can't get access to the shell on the broker then try to do the following:

    • Create a file transfer user on each solace software instance
    • From a 3rd host scp -P 2222 [email protected]<vmr1>:/cliscripts/default.cli .
    • From that 3rd host: scp -P 2222 default.cli [email protected]<vmr2>:/cliscripts/default.cli
    • Login to CLI on vmr2 & run script source script default.cli stop-on-error no-prompt

    Hope that helps!

  • jeremyjeremy Administrator Posts: 26 admin

    @Naga I wanted to follow up to make sure that you were able to resolve this with what Marc posted above. If not, please let us know where you stand!

Sign In or Register to comment.