使用SEMPv2协议备份和恢复Solace PubSub+Broker配置
solconfig的Python项目详细描述
使用SEMPv2协议备份和恢复SolacePubSub+Broker配置
安装
运行pip install solconfig
安装此工具。在
使用
使用“backup”命令将PS+代理上的对象配置导出为单个JSON,然后使用“create”或“update”命令恢复配置。在
使用之前,请仔细检查每个命令的帮助消息。在
$ solconfig --help Usage: solconfig [OPTIONS] COMMAND [ARGS]... Backing Up and Restoring Solace PubSub+ Broker Configuration with SEMPv2 protocol Use the "backup"command to export the configuration of objects on a PS+ Broker into a single JSON, then use the "create" or "update"command to restore the configuration. Options: --version Show the version and exit. -u, --admin-user TEXT The username of the management user [default: admin] -p, --admin-password TEXT The password of the management user, could be set by env variable [SOL_ADMIN_PWD][default: admin] -h, --host TEXT URL to access the management endpoint of the broker [default: http://localhost:8080] --curl-only Output curl commands only, no effect on BACKUP command[default: False] --insecure Allow insecure server connections when using SSL [default: False] --ca-bundle TEXT The path to a CA_BUNDLE file or directory with certificates of trusted CAs --help Show this message and exit. Commands: backup Export the whole configuration of objects into a single JSON... create Create objects from the configuration file It will NOT touch... delete Delete the specified objects OBJECT_NAMES is a comma-separated... update **READ HELP BEFORE YOU USE THIS COMMAND** Update the existing...
备份:将对象的整个配置导出到单个JSON
^{pr2}$创建:从配置文件创建对象
$ solconfig create --help Usage: solconfig create [OPTIONS] CONFIG_FILE Create objects from the configuration file It will NOT touch objects already existed Options: --help Show this message and exit.
更新:从配置文件
更新代理中的现有对象solconfig update --help Usage: solconfig update [OPTIONS] CONFIG_FILE **READ HELP BEFORE YOU USE THIS COMMAND** Update the existing objects in the PS+ Broker to make them the same as the configuration file. Be careful, it will DELETE existing objects like Queues or Client Usernames, etc on the PS+ broker if they are absent in the configuration file. This "update"command is a good complement to "create" command, especially for the "default" VPN or the VPN of the Solace Cloud Service instance, since you can only update them. Options: --help Show this message and exit.
删除:删除指定的对象
solconfig delete --help Usage: solconfig delete [OPTIONS][vpn|cluster|ca] OBJECT_NAMES Delete the specified objects OBJECT_NAMES is a comma-separated list of names, like "vpn01" or "vpn01,vpn02", or "*" means all. Options: --help Show this message and exit.
- 项目
标签: