Zookeeper basic commands
In order to list all the config files from zookeeper, we need to login to a persistence node and connect to zookeeper:
/opt/veridiumid/zookeeper/bin/zkCli.sh

and then:
ls /veridiumid/<build number>

If the above command returns error: Insufficient permission : /veridiumid/11.0.15 you can bypass this in 2 ways:
Simply Disable storage protection from Veridium-Manager interface and you should be able to list the config files:

Authenticate with veridiumid user and password
- Copy the username and password for Zookeeper:
cat /etc/veridiumid/zookeeper.properties
- Login to Zookeper and authenticate with the user and password you got from zookeeper.properties:
addauth digest veridiumid:<password>
And now you should be able to see the config files.
If you want to delete a config file from zookeeper:
Login to Zookeeper
Run:
delete /veridiumid/11.0.15/config.json
If you want to recreate the previous config file from zookeeper:
Login to Zookeeper
Run:
create /veridiumid/11.0.15/config.json
If you want to copy a config file from local path to zookeeper:
Create the new config.json file as needed
Run:
zkcli set /veridiumid/11.0.15/config.json "$(cat <path-to-config.json>)"
If you want to download a file from zookeeper:
echo "get /dev702507291524/12.2.7/config.json" | \
/opt/veridiumid/zookeeper/bin/zkCli.sh -server 10.204.70.7:2181 2>/dev/null | \
awk '
/^\[zk:/ { in_block = 1; next }
/^cZxid/ { exit }
in_block { print }
' > config.json
If you want to upload a file to zookeeper:
/opt/veridiumid/zookeeper/bin/zkCli.sh -server 10.204.69.7:2181 delete /dev692507311224/12.2.11/config.json || true
/opt/veridiumid/zookeeper/bin/zkCli.sh -server 10.204.69.7:2181 create /dev692507311224/12.2.11/config.json "$(cat config.json)"