JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
This section describes the method for starting a (primary) CodeSonar hub.
Every CodeSonar analysis needs a hub for the results. If a hub is not already running, one must be started before the analysis command is issued.
Before starting a hub:
The following is the general form of the command line for starting
a CodeSonar primary hub.
(For a satellite hub, see Satellite Hubs: Command Line
Details.)
Where the command components are as follows.
| -setadminpw |
Specifies that you wish to set a password for the hub
Administrator account.
CodeSonar will prompt you for the new password (unless
environment variable CSHUB_PASSWORD is defined, in which case
the new password will be set to the value of that variable).
This will also set the password for special PostgreSQL user
cshubuser.
If you are starting an entirely new hub, or the hubdir/dbpass file is missing for any other reason, CodeSonar will always behave as if you have specified -setadminpw. Changing the Administrator password by this method does not delete existing user sessions associated with the Administrator account. If you want to delete these sessions, you can do so from the User Sessions page for Administrator. |
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| -allow-satellites |
Permit satellite hubs to
connect to this hub. This is equivalent to setting Allow satellite hubs? in the HTTP tab of the Settings page. If you don't specify this option, behavior depends on whether or not the hub is new:
|
|||||||||
| -https-redirect |
For HTTPS hubs, specifies that when a user attempts to
connect to the hub using an HTTP URL, the hub should redirect
the connection to an URL that differs only by specifying
https rather than http as the protocol. For example, if a
user attempts to connect to http://myhub:7340, the hub will
redirect them to https://myhub:7340. For non-HTTPS hubs, this option has no effect. If you don't specify this option, behavior depends on whether or not the hub is new:
|
|||||||||
| -tls-server-certkey {certpath|disable} |
Enable/disable HTTPS on the hub.
If a command line contains multiple occurrences of -tls-server-certkey, the last occurrence is used. If you don't specify this option, behavior depends on whether or not the hub is new:
|
|||||||||
| -tls-client-certkey {certpath|disable} |
Enable/disable certificate-based user authentication on the
hub, if the hub has HTTPS enabled.
This is equivalent to enabling/disabling certificate-based authentication in the Configure HTTPS page. The hub is considered to have HTTPS enabled if one of the following is true.
If a command line contains multiple occurrences of -tls-client-certkey, the last occurrence is used. If you don't specify this option, behavior depends on whether or not the hub is new:
|
|||||||||
| -permissive |
Behavior depends on whether or not the hub is new.
|
|||||||||
| -no-services | (Windows only) specifies that the hub should not be run as a service (see section CodeSonar as a Windows Service for more information). | |||||||||
| directory |
is the path to the directory where the hub files will be
created (the "hub
directory").
|
|||||||||
| interface:port |
Specifies the hub location.
|
|||||||||
| authentication note | Any authentication options are ignored. (Only satellite hubs require authorization to start.) |
The process for starting a primary hub is as follows.
(For a satellite hub, see Satellite Hubs: Starting a Satellite
Hub.)
See Starting a New Hub: Troubleshooting.
If your system does not support IPv6 addresses, use IPv4 to specify addresses instead. For example, specify 0.0.0.0 instead of ::.
The next step is to check that the hub has started succesfully.
To report problems with this documentation, please visit https://support.codesecure.com/.