We have around 700 virtual services for which we wanted to update group tag respectively, please suggest if we could achieve it via CA DevTest REST API or any other way.
You mean on deployed virtual services?
The below is unsupported, so you have not heard it from me, it must be someone who hacked my account that is typing this :-)
1. Go to <yourDevTestInstallDir>\vseDeploy\VSE_2013
2. Make a backup copy of .services file (this is important to recover should you mess up, as mentioned next action is unsupported)
3. Edit the .services file with an editor that allows bulk search and replace in a file (Notepad++?), and find ",theOldGroupName," and replace with ",theNewGroupName,". The starting and ending comma are to ensure you only replace group name and not some random piece of text.
4. Save the file and then restart the VSE
Thank you very much Danny for your response and the detailed steps.
Below is the scenario of our deployed virtual services where we wanted to update the group tags:
- The tags on the existing deployed virtual services are mostly empty
- The virtual services are expected to have different group tags. Say for example 700+ virtual services may have its own corresponding group tags which may or may not be different from one another
- If the virtual services already have tags tied to them we might need to update them as well
There is an option to update the group tag of selected VSMs in the Portal.
Open the VSE tab for the VSE you are working under Monitor/ VSE.
Search for the VSMs you want to update to the same group tag. In the case below I selected all the services named with in.
Select the services and select the icon 'Upgrade the Group Tag of selected virtual services'
A new window will open asking you to provide the group tag:
After you click the OK button, you will need to refresh the VSE tab to see the updated group tags.
You can also use the VSEManager to update the group tags - VSE Manager Command - Manage Virtual Service Environments - DevTest Solutions - 10.3 - CA Technologies Documentation
The --update option lets you update the capacity, think scale, group tag, auto-restart setting, or any combination of these parameters for the named virtual service. However, you would be able to do it for one service at a time.
You can try to use the VSEManager command on a script and run it several times based on your requirements.
Hope it helps.
Thank you for the detailed response Maria. I will give it a try.
Retrieving data ...