To make any changes on the vpxa configuration, this can be performed on four steps:
Export the current vpxa configuration as a json file.
Make the changes needed on the json file.
Import the changed from the json file back into the config store
Restart the vpxa service.
# /bin/configstorecli config current get -c esx -g services -k vpxa
# /bin/configstorecli config current get -c esx -g services -k vpxa -outfile tmp.json
# cp tmp.json tmp.json.bak
# vi /tmp.json
# /bin/configstorecli config current set -c esx -g services -k vpxa -infile tmp.json
The output should look like the below:
Set: completed successfully
# /etc/init.d/vpxa restart
# /bin/configstorecli schema get -c esx -g services -k vpxa
# /bin/configstorecli config current update -c esx -g services -k vpxa -infile tmp.json
For example, tmp.json file can contain only the property needs to be modified on the vpxa configuration database. Example for a tmp.json file of single property:
# cat tmp.json
{
"some_sub_object": {
"some_property": "some_value"
}
}
The vpxa configuration database stores the default vpxa settings (on the ESXi Installation). These settings can be restored using the following steps.
# /bin/configstorecli config default get -c esx -g services -k vpxa
To export the default settings as a json file (the file will be exported on the same directory you are running the command from):
# /bin/configstorecli config default get -c esx -g services -k vpxa -outfile tmp.json
# /bin/configstorecli config current set -c esx -g services -k vpxa -infile tmp.json
# /etc/init.d/vpxa restart
# /bin/configstorecli config current get -c esx -g services -k vpxa_solution_user_config -outfile vpxa_user.json
# cp tmp.json tmp.json.bak
# configstorecli config current update -c esx -g services -k vpxa_solution_user_config -infile vpxa_user.json
# configstorecli config current update -c esx -g services -k vpxa_solution_user_config -infile vpxa_user.json
# configstorecli config current get -c esx -g services -k vpxa_solution_user_config
# /etc/init.d/vpxa restart