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

Tutorial: Hub Orientation

Work through this page to familiarize yourself with the role of a CodeSonar hub and determine whether there is a hub ready for you to use or you will need to start one yourself.

Hub Overview

The CodeSonar hub is a web server that manages CodeSonar analysis results.

diagram: CodeSonar analysis and UI interact with the hub database through the hub process

An organization will often run a single hub, so that all analysis results for all projects can be managed in one location.

CodeSonar license keys typically restrict the number of hubs you can run and the machines on which you can run them, so you will generally not be able to keep starting new hubs if existing hubs are already present. Doing so would also mean that some of your analyses are on different hubs to others, which reduces your ability to observe trends over time and may make it harder to find a particular set of analysis results.

The remainder of this page is structured as a checklist that allows you to determine whether or not a suitable hub is already running and link to a suitable next step.

For more information about hubs, see the manual section on The CodeSonar Hub.

Hub Identification Checklist

  1. Have you been notified that there is a hub available for you to use?
  2. Did you start a hub when you installed CodeSonar?
    In particular, did you run the configuration tool and select "Install, create hub"? If you're not sure, you may wish to check the corresponding installation instructions to see if they are familiar.
  3. Have you used CodeSonar before?

A. Check Configuration Tool "Known Hubs"

First, check to see if the hub is being tracked by the CodeSonar configuration tool.

  1. Run the following command to start the configuration tool.
    codesonar config
    If the configuration tool has any "known hubs", they will be listed in a table above the main menu.
  2. Does the hub you are looking for appear in the table? Note that certain addresses are interfaces on your machine (including IPv6 addresses [::] and [::1] and IPv4 addresses 0.0.0.0 and 127.0.0.1).

B. Identify the Hub Machine

Do you know which machine the hub is (or might be) running on?

C. Run codesonar hub-info

On the hub machine, try the following codesonar hub-info command lines.

If a hub is running, CodeSonar will print a table of hub information in response to a codesonar hub-info command. You can read the hub location from this table. (In some cases you will also have cited the location in the command itself.) If a hub is not running (or has other problems) CodeSonar will print a message saying that it could not connect to the hub.

Once you have obtained the hub location, you can go on to Ready to Build/Analyze.

  1. Do you know the hub directory?
  2. Check whether a hub is running at the default location determined by CodeSonar.
    codesonar hub-info -force
    If a hub is running, CodeSonar will print a table of hub information. Make a note of the hub interface and port.
  3. If you have any other candidate host:port locations that you want to check, run codesonar hub-info commands citing those locations.
    codesonar hub-info -force host:port

What's Next

Have you located your hub?

 

To report problems with this documentation, please visit https://support.codesecure.com/.