| Contents | Index |
| On this page… |
|---|
Configuring Polyspace Client Software Configuring Polyspace Server Software |
By default, the Polyspace Client is configured to automatically detect a Polyspace Server on the network using port 12427.
By default, the Polyspace Client automatically detects any available Polyspace Server configured as a Queue Manager on the network. However:
If the Client finds more than one Polyspace Server, the Client displays an error message listing the names of all detected servers. Carefully note all names and close the error dialog box.
If no Polyspace Server is available, you see the "No QueueManager server found" error message when you launch a verification or execute any Polyspace command.
In these cases, you can specify a specific Queue Manager server associated to a specific port number to correct the error.
To manually configure the remote server:
In the Polyspace verification environment, select Options > Preferences.
The Polyspace Preferences dialog box opens.
Select the Server configuration tab.

In the Remote configuration section, select the Use the following server and port button.
Enter an IP address (or server name) and associated port number (default 12427) for the Polyspace Server. You must use the same port number for all Polyspace clients, Queue Manager and servers.
If you want to configure access to Polyspace Metrics, see Configuring Polyspace Metrics Web Interface.
Click OK.
The preferences are stored in the polyspace.prf preferences file in %AppData%\Polyspace (C:\Users\username\AppData\Roaming\Polyspace\polyspace.prf on a Windows system).
Note Although you can modify this file with an ASCII editor, you should not do so. You should always use the graphical user interface to modify the remote launcher settings. |
Files and Folders Created When Installing the Queue Manager for Polyspace Server
Specifying Port Number of Polyspace Metrics Web Server in Queue Manager
You perform initial configuration of the Polyspace Server software during installation (see Configuring the Polyspace Server Software).
After installation, the Polyspace Server becomes the first CPU of the architecture by default.
Note
All the information displayed in the Remote Launcher configuration
window during installation is automatically saved as ASCII text in
the file Polyspace_Common/ |
The default Server configuration assumes that the Server is both the Queue Manager and a CPU.
After you install the software, you can configure or update the Queue Manager graphically (on Windows systems) or by using a shell command.
To update your server configuration and associated polyspace.conf file:
Open the Remote Launcher Manager as follows:
Select Start > All Programs > Polyspace > Remote Launcher Manager
or
Enter the command Polyspace_Common/RemoteLauncher/PSTRLManager.exe
The Remote Launcher Manager dialog box opens.

Click Stop Daemon to stop the current Queue Manager.
In the Common Settings pane, set the port number and location for the Remote Launcher configuration file (polyspace.conf).
In the Queue Manager Settings pane, specify the address of the Queue Manager and all attached CPUs of the Remote Launcher.
The syntax <describing name/IP address>[:<port number>]" attaches a CPU.
For example, in the previous figure "SERVER1" is the Queue Manager and "012.123.4.56:12427" represents a CPU with a specific port number.
In the Polyspace Server Settings pane, specify the location of Polyspace products installed on the server, and available languages.
If you have activated more than one license for your server, set the Number of Polyspace verifications that can run simultaneously on this server to the number of licenses you have activated for this machine.
Note All information displayed during the execution of commands like "Start Daemon", "Stop Daemon" are also written in the polyspaced.log file in <Polyspace_Common>/../Polyspace_RLDatas (/var/Polyspace under UNIX). |
A configuration of the Server/Verifier, Queue Manager of the Client/Server architecture has been stored in a standard file. A default configuration is generated during the installation: the current machine is at the same time the Queue Manager, and the distant machine.
The batch command Polyspace_Common/RemoteLauncher/bin/setup-remote-launcher can be used to create or destroy the configuration file. It is called polyspace.conf. It may be found:
Windows systems: \Polyspace_RLDatas\polyspace.conf
(For example: c:\Polyspace\Polyspace_RLDatas).
UNIX systems: /etc/Polyspace
The configuration file contains fields which set a Queue Manager and CPU architecture:
product= — It determines the installation folders of Polyspace Verifier. It is possible to have one per language.
lang= — It determines the supported verification languages. The language variable specifies the supported language declaration (CPU only). The values may be: C, C++, CPP, Ada, Ada83, ADA, Ada95 and ADA95.
username= — . The username variable specifies the user name used to run the daemon process. If the daemon is started as root on UNIX, it will automatically change its user ID to run as the given user.
datadir= — The data directory name identifies the place where the data sent remotely are stored.
locksdir= — The locks directory identifies the place where the locks are stored. <datadir>/locks will be used by default without specified field.
port= — The port number on which the daemon is listening (default value is 12427). The available port can be specified between 10000 to 15000. This range depends on the available OS requirements.
cpu= — The CPU name and port specifies available Queue Manager and CPUs. Syntax can be <address IP or name of CPU>[:port number]. If more than one cpu= is specified, others are CPUs where the Queue Manager can dispatch verifications.
results_repository_dir= — The Polyspace Metrics results repository folder. Default is <datadir>/results-repository.
process_automation= — The flag that specifies whether automatic verification is activated (yes). Default is no. If automatic verification is activated, then Polyspace verifies your code according to the configuration you provide in the file <results_repository_dir>/Projects.psproj.
Any change in the configuration file except for the cpu= field (for example, to add a new CPU, see next paragraph), the associated daemon/service manager need to be stopped and re started:
Polyspace_Common/RemoteLauncher/bin/setup-remote-launcher -stop-service is used to stop the service. Note that any standard program on OS can stop the service or daemon.
Polyspace_Common/RemoteLauncher/bin/setup-remote-launcher -start-service is used to start or restart the service. Note that any standard program associated to the OS can restart the service or daemon.
If you did not select the Queue Manager as a service (daemon) during installation, use the following commands to install it:
Windows platform: Polyspace_Common/RemoteLauncher/bin/InstallPolyspaceService.bat
UNIX platform: Polyspace_Common/RemoteLauncher/bin/setup-remote-launcher -install-service
You can then launch the polyspaced service (daemon) using the following commands:
Polyspace_Common/RemoteLauncher/bin/polyspaced -stop — Stops the Queue Manager.
Polyspace_Common/RemoteLauncher/bin/polyspaced — Starts or restarts the Queue Manager.
The Polyspace_RLDatas folder contains the following files and folders:

The polyspaced.log file contains installation log information as well as all communication between clients and the Queue Manager during the Queue Manager life.
The queue_infos.txt file contains information of the Queue Manager spooler.
The locks folder contains the locks file for each verification.
polyspace.conf is the configuration file. An example of a Server/Verifier polyspace.conf configuration file looks like this:
product=c:\Polyspace\PolyspaceForCandCPP product=c:\Polyspace\PolyspaceForAda lang=Ada95 lang=C lang=CPP datadir=c:\Polyspace\Polyspace_RLDatas username=bard cpu=BERGERON cpu=192.168.2.79:12428
In this example, the BERGERON cpu has been configured to be a Queue Manager and a CPU of C, CPP and Ada95 code verifications on default port 12427. The product installed in c:\Polyspace\PolySPaceForCandCPP will be used. Moreover, another CPU of address IP 192.168.2.79 has been declared on port 12428.
On a UNIX system, the directory location containing locks and datadir by default is /var/Polyspace.
Installing a new CPU is very simple: just follow the standard Polyspace Server installation. Then, edit the polyspace.conf of the CPU which has been chosen as Queue Manager, and add the new CPU using the field cpu=<describing name/IP address>[:<port number>]
See the following example where there are two declared CPUs.
product=c:\Polyspace\PolyspaceForCandCPP product=c:\Polyspace\PolyspaceForAda lang=Ada95 lang=C lang=CPP datadir=c:\Polyspace\Polyspace_RLDatas username=bard cpu=BERGERON cpu=192.168.2.79:12428
Note On the new CPU, it is important to remove the field cpu= in the polyspace.conf file to avoid being also a "Queue Manager". |
When you install the Polyspace daemon/service, the software creates the following items (UNIX):
polyspace.conf file in /etc/Polyspace, containing the Polyspace configuration information.
/var/Polyspace folder containing many files, such as <locks> polyspaced.log <analysisX> queue_infos.txt.
/etc/init.d/polyspaced file, used to start, stop, and restart the deamon/service.
/tmp/polyspace folder which stores all temporary files.
You must have write access to all of these locations to successfully install the Queue Manager service.
If you change or specify a non-default value for the Web server port number of your Polyspace client (see Configuring Access to Polyspace Metrics), you must manually configure the same value for your Queue Manager.
In <Polyspace_Common>/../Polyspace_RLDatas/tomcat/conf/server.xml, edit the port attribute of the Connector element:
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8080"/>
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost"
appBase="C:\Polyspace\Polyspace_Common\RemoteLauncher\lib\
apache-tomcat-5.5.28\webapps"/>
</Engine>
</Service>
</Server>
Polyspace Metrics is a Web-based tool that allows you to evaluate and monitor software quality through the lifecycle of a project.
To configure access to Polyspace Metrics:
Specify the Queue Manager server on which Polyspace carries out the verification and creates the results repository. See Configuring Polyspace Client Software and Configuring Polyspace Server Software.
Select Options > Preferences to open the Polyspace Preferences dialog box.
Select the Server configuration tab.

In the Metrics configuration section, specify a locally accessible folder for downloading result files from the Polyspace Metrics Web interface.
Select the Download results automatically check box. When you click on an item in Polyspace Metrics to view the item in the Polyspace verification environment, the software downloads results to the verification launch folder. However, if this folder does not exist, the software downloads results to the folder that you specify in the Folder field, which by default, is C:\Temp.
If you do not select this check box, then when you click on an item in Polyspace Metrics, a dialog box opens. Using this dialog box, you can specify your locally accessible folder.
The folder and its contents are not deleted when you exit the Polyspace verification environment.
In the Port number field, specify the number of the port for communication between the Polyspace verification environment and the Polyspace Metrics Web interface. The default is 12428.
In the Web server port number field, specify the number of the web server port. The default is 8080. You must configure the same number for the Queue Manager server. See Specifying Port Number of Web Server in Queue Manager Specifying Port Number of Polyspace Metrics Web Server in Queue Manager.
Note The Polyspace Metrics Web interface URL is: http://ServerName:WSPN where ServerName is the name or IP address of the Queue Manager server and WSPN is the Web server port number. |
This section contains information on troubleshooting the following common errors:
If you receive any of the following errors:
Stop the polyspacedservice (daemon).
Update the polyspace.conf file.
Restart the service (daemon).
The following errors concern the polyspace.conf file.
"Error: The data folder path should not contain white space.";
"Error: At least one language should be supported by the CPU.";
"<polyspace.conf>:<line_number>: Duplicate entry for product <version value>.";
"<polyspace.conf>:<line_number>: Unknown language : <value>.";
"<polyspace.conf>:<line_number>: Duplicate entry for language <value>.";
"<polyspace.conf>:<line_number>: Duplicate entry for <queuemanager name>. ";
"<polyspace.conf>:<line_number>: Duplicate entry for <value>.";
"<polyspace.conf>:<line_number>: Duplicate entry for username'.";
"<polyspace.conf>:<line_number>: Duplicate entry for 'port'.";
"<polyspace.conf>:<line_number>: Invalid port number : <value>";
"<polyspace.conf>:<line_number>: Invalid CPU name.";
"<polyspace.conf>:<line_number>: Duplicate entry for CPU <hostname> ";
"<polyspace.conf>:<line_number>: Unknown key : <value> ";
"<polyspace.conf>:<line_number>: Parse error.";
"No Polyspace product found for language <value>.";
"Warning: Invalid <lang> license for product <version> on host <hostname> ";
"The Polyspace product <version> was not found.";
If you receive any of the following errors, check right accesses with username declared in the polyspace.conf file in the folder <dir>, <file name> or <path> (given in the error message).
Check also that you have not changed anything linked to "polyspaced" service (daemon) without stopping it.
"Fatal error: Directory <dir> is not accessible.";
"Fatal error: Could not change the owner of <path> to <username> ";
"Fatal error: Could not open file <file name> for reading.";
"Fatal error: Could not set <permission> permissions on <path> "
"Fatal error: Could not open file <file name> "
When installing a Polyspace_Common product on a 64 bit Linux machine, the installation program may end with the following error message:
exec: 2433: /tmp/install.dir.880/Linux/resource/jre/bin/java: not found
This error occurs because the Polyspace installer is itself a 32-bit binary using 32-bit binaries, which may cause problems on a 64-bit machine. It needs 32-bit libraries installed.
To solve this problem, install the 32-bit libraries. For example, on an Ubuntu 64-bit Linux machine, install the package "ia32-libs" from your Linux distribution.
Refer to the documentation for your Linux distribution for more information on installing these libraries.
Other errors may concern OS system, network and standard command available (for example "tar", "gzip", etc.).
Double check that these standard commands exist in your system. Error messages are detailed enough to know which command has failed.
![]() | Launching Installation from Command Line | Configuring Polyspace Server to Support Multiple Versions of Client Software | ![]() |
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |