Server configuration

This topic describes the options for configuring a Service Virtualization Server.

Configure the management endpoint

As the Service Virtualization Server is a .NET application, it can be configured by editing the standard .config file. The Service Virtualization Server application configuration file, HP.SV.StandaloneServer.exe.config, is located on the Service Virtualization Server machine in the server installation folder. By default, C:\Program Files\Micro Focus\Service Virtualization Server\Server\bin.

You can customize the address of the management REST endpoint in the restManagementServiceConfiguration section.

For example, to change the address to http://localhost:7700/hpsv, the corresponding entry in the .config file should look like this:

   <restManagementServiceConfiguration ...
   url="http://+:7700/hpsv" aclEnabled="false"/>

Back to top

Command line parameters

Service Virtualization Server also accepts command line parameters. Currently, the only supported command line parameter option is the ability to recreate the database used by Service Virtualization Server. This can be useful when testing the application, as it enables the user to quickly wipe the database without the need to manually remove each service from the Designer. To recreate the Service Virtualization Server database, add recreateDatabase=true to the command line when running the server. When set to true, this switch recreates the content of the database by dropping all the tables and creating them again—it does not drop the database itself. For example:

HP.SV.StandaloneServer.exe recreateDatabase=true

Back to top

Agent configuration

You can configure Service Virtualization Agents for a standalone Service Virtualization Server using the Designer. For details, see Configure agents.

When the server is not running, you can edit the agent configuration manually for the server. The agent configuration file is %ProgramData%\Micro Focus\Service Virtualization Server\Agents\configurations.xml.

Tip: To reset the default agent configurations, delete this file.

Back to top