analyzedb

Analyze a Surround SCM database for issues, such as inconsistent current versions, duplicate filenames, orphaned check outs, undestroyed repositories, and share corruptions. Use the -r option to repair issues found during analysis.

sscm analyzedb [ConnectionName] [-c] [-h] [-n] [-oAnalysisOption[,AnalysisOption]] [-r] [-yUsername:password|+] [-zSCMServerAddr:PortNum|zPath] [+u]

Option Description
ConnectionName RDBMS connection to the database to analyze. Name is case-sensitive. If not specified, all active connections are analyzed.
-c Cancel the currently running analysis.
-h Display online help for the command.
-n Do not wait for analysis to complete.
-o Analysis options. By default, a standard analysis is performed. Valid options:

Checkdb: Perform CHECKDB (SQL Server only)

CurrentVersions: Check for inconsistent current versions

DuplicateRootRepo: Check for branches with duplicate root repositories

FilenameConflicts: Check for duplicate filename conflicts

InvalidTipVersions: Check for invalid tip versions

MergeEvents: Check for undestroyed merge events

MismarkedRevisions: Check for mismarked revision records

MissingCheckoutComputer: Check for check outs missing a computer name

OrphanedChangelists: Check for orphaned changelists.

OrphanedCheckouts: Check for orphaned check outs by deleted users

OrphanedFilters: Check for orphaned filters

Reindex: Force reindex (PostgreSQL and SQL Server only)

Shares: Check for share corruption

UndestroyedRepos: Check for undestroyed repositories

VacuumNeeded: Check if VACUUM needed (PostgreSQL only)
-r Repair all issues detected during the analysis.
-y Enter a Surround SCM username and password if you do not want to use the default value. To use single sign-on, enter -y+. If you use an identity provider to authenticate, the provider web page opens if you have not yet authenticated. Authenticate with the provider and then return to the CLI.
-z Enter the Surround SCM Server host computer address and port number if you do not want to use the default value. IPv6 addresses must be in square brackets. If you received a server settings file from your Surround SCM administrator, enter the path to the XML file instead of entering the server connection information.
+u Display output in Unicode (Windows only). Output cannot be sent to a file. If output is enabled for all commands, enter +u- to disable it for this command.