As part of the bigger goal of moving away from using stickybit files, VMware have moved the configuration stored in these files to ConfigStore. These files are used just as cache files by the services, the configurations in these files are now stored in the ConfigStore. The ConfigStore is the single source of truth in ESXi 7.0 Update 3 and later.
This article guides through the process of managing and renaming a vSphere Standard Switch (vSS) using the configstorecli utility. This procedure is useful when a vSwitch needs to be renamed without deleting/ recreating/ fixing naming inconsistencies that may affect management.
Note : The ConfigStore utilizes JSON-formatted schemas. Renaming a switch requires exporting the specific networking group, modifying the key-value pair, and committing the change back to the database by importing it after modifying.
configstorecli config current get -c esx -g network_vss -k switches > vswitch.json
vswitch.json file using a text editor (such as vi editor).9 "mtu": 1500,10 "name": "vSwitch_Test",11 "num_ports": 1024,
9 "mtu": 1500,10 "name": "vSwitch0",11 "num_ports": 1024,
configstorecli config current set -c esx -g network_vss -k switches -j vswitch.json --overwrite