-
Notifications
You must be signed in to change notification settings - Fork 0
msgvpn Command
Pankaj A edited this page Apr 3, 2020
·
7 revisions
% ./splus msgvpn
Usage: splus msgvpn [OPTIONS] COMMAND [ARGS]...
Manage the Message VPNs
Options:
--help Show this message and exit.
Commands:
create Create a new Message VPN
list List all the Message VPNs on Solace PubSub+ Broker
remove Remove an existing Message VPN
show Show details of an existing Message VPN
update Update an existing Message VPN
Typically the first thing you will need to do is create a new Message VPN. There are a huge number of parameters that can be tweaked while creating or updating a VPN. Most of the parameters have a sensible default and at the very basic you can use the below command to create a VPN
splus msgvpn create vpn1
Execute splus msgvpn create --help to see a help page with all the possible options
--max-spool INTEGER Maximum message spool usage, in megabytes
(MB) [default: 0]
--enable / --no-enable Enable or disable the Message VPN [default:
True]
splus msgvpn create vpn2 --max-spool 100 --no-enable
With so many parameters available to be set for a Message VPN, you can use the below to update.
% ./splus msgvpn update --help
Usage: splus msgvpn update [OPTIONS] NAME
Update an existing Message VPN
Click here to see all the options available.
--jndi / --no-jndi Enable or disable JNDI access for clients
% ./splus msgvpn update vpn1 --jndi
--amqp-plaintext / --no-amqp-plaintext
Enable or disable the plain-text AMQP
service in the Message VPN
--amqp-port INTEGER Port number for plain-text AMQP clients.
Port must be unique across the message
backbone
% ./splus msgvpn update vpn1 --amqp-plaintext --amqp-port 44444
--enable / --no-enable Enable or disable the Message VPN [default:
True]
% ./splus msgvpn update vpn1 --no-enable
splus % ./splus msgvpn show --help
Usage: splus msgvpn show [OPTIONS] VPNNAME
Show details of an existing Message VPN
Options:
--broker-url TEXT MsgVPN URL (default from config file
--broker-username TEXT Admin username (default from config file)
--broker-password TEXT Admin password (default from config file)
--help Show this message and exit.
splus % ./splus msgvpn show vpn1
Note that you will need to remove/disable some pre-requisite objects before a Message VPN can be deleted. @Todo Create a --force remove
splus % ./splus msgvpn remove --help
Usage: splus msgvpn remove [OPTIONS] VPNNAME
Remove an existing Message VPN
Options:
--broker-url TEXT MsgVPN URL (default from config file
--broker-username TEXT Admin username (default from config file)
--broker-password TEXT Admin password (default from config file)
--help Show this message and exit.
splus % ./splus msgvpn list --help
Usage: splus msgvpn list [OPTIONS]
List all the Message VPNs on Solace PubSub+ Broker