When running commands on SubVSs, the SubVS index can be used to identify the relevant SubVS to run the command on. An example of how to get the SubVS index is below:

subvsindex=$(curl -k "https://$2:$3@$1/access/modvs?vs=$4&port=$5&prot=$6&createsubvs=" | xpath Response/Success/Data/SubVS/VSIndex/"text()")

The subvsindex variable can then be used in a command, for example:

curl -k https://$2:$3@$1/access/modvs?vs=$subvsindex&nickname=newnickname