Service Virtualization

Expand all | Collapse all

Is there a way of updating the group tag bulk update on all the existing virtual services through CA DevTest REST API/ any other way

  • 1.  Is there a way of updating the group tag bulk update on all the existing virtual services through CA DevTest REST API/ any other way

    Posted 01-03-2019 12:15 AM

    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.



  • 2.  Re: Is there a way of updating the group tag bulk update on all the existing virtual services through CA DevTest REST API/ any other way

    Posted 01-03-2019 02:55 AM

    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

     

    Good luck! 

     

    Cheers,

    Danny



  • 3.  Re: Is there a way of updating the group tag bulk update on all the existing virtual services through CA DevTest REST API/ any other way

    Posted 01-03-2019 11:28 PM

    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:

     

    Existing condition

    - The tags on the existing deployed virtual services are mostly empty

     

    Expected condition

    - 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

    • service1- group1
    • service2 - group2
    • service3 - group3
    • service4 - group1
    • service5 - group3

     

    - If the virtual services already have tags tied to them we might need to update them as well

     

    Please advise!



  • 4.  Re: Is there a way of updating the group tag bulk update on all the existing virtual services through CA DevTest REST API/ any other way

    Posted 01-21-2019 05:43 PM

    Hello Saranya,

     

    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.

    Heloisa



  • 5.  Re: Is there a way of updating the group tag bulk update on all the existing virtual services through CA DevTest REST API/ any other way

    Posted 01-21-2019 06:06 PM

    Thank you for the detailed response Maria. I will give it a try.