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.
Note: The host_ip and server_ip which contain the current ESXi management IP address and the vCenter Server IP address, are not part of the vpxa service configuration in the config store but are instead stored in the vpxa solution user configuration.
Note: To run the below commands, please login to the ESXi Host (CLI) through SSH using the root account. For more information, see Using ESXi Shell in ESXi 5.x, 6.x and 7.x (311213)
# /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 to the same directory where the command is run 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