Task: Change A Hub's Port

From time to time you may need to change the port on which the hub listens.

Depending on the hub configuration, you may be prompted to provide hub user account credentials to authenticate and authorize some of the command lines described here. See Hub Authentication: Authenticated codesonar Subcommands for more information.



Changing the Port

  1. Determine the port you wish to move to. We will refer to this as newport.
  2. On the machine running the existing hub, shut down the hub:
    codesonar hub-stop interface:port
    Where interface:port is the hub location.
    You may be prompted for hub user account credentials.
    Note that shutting down the hub while it is in use will interrupt users and analyses.
  3. CodeSonar will print a table of information about the hub that is being shut down. Take note of the value of Directory: you will need it for the next step.
  4. Shut down the hub database process, if it is not already shut down.
  5. Now, run:
    codesonar hub-start DIRECTORY interface:newport
    with DIRECTORY replaced by the Directory value reported by hub-stop.

Links