Tech Tips: How to logically break up multiple VSEs connected to a Registry with the -l labname command

Document created by MarcyNunns Employee on May 31, 2017
Version 1Show Document
  • View in full screen mode

Although this is used mostly with VSE servers and not Services, this will work for Services on Windows, but not Services running Linux.

 

This is for DevTest 9.1.0 and earlier.

 

On Windows configuring a VSEs running as a Service:

 

Decide what logical name you want each set of VSEs to go in. 

 

Every VSE Service will have to be deleted and then re-added to have a -l labname added.

 

Example: 

 

From a command prompt run as Administrator to create a Service: 

 

sc create "DevTest 9.1.0 VSE1" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService.exe -l Lab2" 

sc create "DevTest 9.1.0 VSE2" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService2.exe -l Lab2" 

sc create "DevTest 9.1.0 VSE3" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService3.exe -l Lab2" 

sc create "DevTest 9.1.0 VSE4" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService4.exe -l Lab2" 

 

Start your VSEs.

 

From the Server Console you will see:

 

DEVTEST_LAB_Example.bmp

 

If you ever need to change the name of a Labname, then the VSE Service will have to be updated to reflect that name. 

 

So if I wanted to change Lab2 to Lab3 on all the above VSEs, I would first do this: 

 

Run as Administrator to delete a Service: 

 

sc delete "DevTest 9.1.0 VSE1" 

sc delete "DevTest 9.1.0 VSE2" 

sc delete "DevTest 9.1.0 VSE3" 

sc delete "DevTest 9.1.0 VSE4" 

 

Then do: 

 

sc create "DevTest 9.1.0 VSE1" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService.exe -l Lab3" 

sc create "DevTest 9.1.0 VSE2" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService2.exe -l Lab3" 

sc create "DevTest 9.1.0 VSE3" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService3.exe -l Lab3" 

sc create "DevTest 9.1.0 VSE4" binPath= "C:\CA\DevTest9.1.0\bin\VirtualServiceEnvironmentService4.exe -l Lab3" 

 

You will have to Restart the Registry to pick up the new name. 

 

On Windows for Servers, just start your server with this in the command line:

 

VirtualServiceEnvironment.exe -l Lab2

VirtualServiceEnvironment2.exe -l Lab2

VirtualServiceEnvironment3.exe -l Lab2

VirtualServiceEnvironment4.exe -l Lab2

 

On Linux this is not applicable for Services, only for Servers:

 

 VirtualServiceEnvironment -l Lab2

VirtualServiceEnvironment2 -l Lab2

VirtualServiceEnvironment3 -l Lab2

VirtualServiceEnvironment4 -l Lab2

 

 

The information to know what to add on the VSE line from this documentation link: 

"https://docops.ca.com/devtest-solutions/9-1/en/using/using-ca-service-virtualization/vse-commands/virtualserviceenvironment-commands"

 

NOTE:  Do not confuse this with Available Labs from the Server Console. 

Attachments

    Outcomes