You can run the server console as a command line utility to back up, restore, and migrate vaults and Content Center libraries.
You can run the server console as a command line utility to back up and restore vaults.
Run the server console from the command line:
The backup switch requires a vault administrator account.
Command |
Details |
---|---|
-Obackup |
The operation being performed (required). |
-Bfolder |
The back up directory (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required unless password is blank). |
-VAL |
Validates the backup. Errors are recorded in the specified log file. See Optional Switches for more information on specifying a log file. |
-INCR |
Performs an incremental backup. |
-DBSC |
Excludes the standard content libraries from the back up process. The standard content libraries are detached before backing up the vault, the vault is backed up, and then the standard content libraries are reattached. |
-DBUsaUser |
The SQL sa account user name (required unless default configuration). |
-DBPsapassword |
The SQL sa account password (required unless default configuration). |
-INRF |
Ignore non-replicated files. If this switch is not present in the command line, files will get replicated prior to the backup starting. |
Example
Connectivity.ADMSConsole.exe -Obackup -BC:\Backup -VUadministrator -VPadmin -VAL -LC:\Backup\BackupLog.txt
Using Tape Backup Software with a SQL Server Plug In
If you use backup software that supports Microsoft SQL server, such as Veritas Backup Exec, then you can select the vault server during your standard backup.
The restore switch requires a vault administrator account and a database administrator account, unless the default database account is still valid. The restore command does not automatically migrate data. If restoring the vault data to an upgraded vault server, migrate the data immediately after restore.
Command |
Details |
---|---|
-Orestore |
The operation being performed (required). |
-Bfolder |
The back up directory (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required unless password is blank). |
-DBUusername |
Database account user name (required unless default configuration). |
-DBPpassword |
Database account password (required unless default configuration). |
-Tfolder |
The target database location (optional). If used with the -TL switch, this will be the target location for the MDF database file. |
-TLfolder |
The target database log file (LDF) location (optional). |
-Ufolder |
The target file store location (optional). |
-INCR |
Performs an incremental restore. |
Example
Connectivity.ADMSConsole.exe -Orestore -BC:\Backup -VUadministrator -VPadmin -DBUdbadmin -DBPdbpword -LC:\Vault.txt
Migrating vault data applies whatever changes are necessary to the database schema following an upgrade of the vault server. Always migrate data following an upgrade of the vault server. The migrate switch requires a vault administrator account and a database administrator account, unless the default database account is still valid.
Command |
Details |
---|---|
-Omigrate |
The operation being performed (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-DBUusername |
Database account user name (required unless default configuration). |
-DBPpassword |
Database account password (required unless default configuration). |
Example
Connectivity.ADMSConsole.exe -Omigrate -VUadministrator -VPadmin -DBUdbadmin -DBPdbpword
Under certain conditions, installing a Hot Fix or an Update on the Vault Server can require a special command. It should only be necessary to run this command when it is stated in the readme of the Hot Fix or Update, or under the guidance of Autodesk support.
Command |
Details |
---|---|
-Ob2bmigrate |
The operation being performed (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-DBUusername |
Database account user name (required unless default configuration). |
-DBPpassword |
Database account password (required unless default configuration). |
Example
Connectivity.ADMSConsole.exe -Ob2bmigrate -VUadministrator -VPadmin -DBUdbadmin -DBPdbpword
Command |
Details |
---|---|
-Opurge |
The operation being performed (required). If this operation is executed without any other switches, the task will run based on revision and lifecycle rules without affecting uncontrolled files. |
-Nvault name |
The name of the vault to be purged (required). |
-Stop |
Halts the purge task while it is running. |
-Normal |
Sets the purge task to a normal system priority. |
-KEEPVERSnumberX |
Keep the latest X number of versions (optional). The value can range between 1 and 99. The default value is 1. |
-MINAGEnumberX |
Purge versions older than X number of days (optional). The value can range between 0 and 180. The default value is 0. |
-EXCLCMTcomment |
Purge versions that do not contain the specified comment (optional). The default value is an empty string, "". |
-UNCONTROLLED |
Purges versions based on default settings and the revision and lifecycle rules. If used in conjunction with -KEEPVERS, -MINAGE, or -EXCLMT, then the system purges uncontrolled files as well as files based on revision and lifecycle rules. |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
Example
Connectivity.ADMSConsole.exe -Opurge -NVault -KEEPVERS3 -MINAGE30 -EXCLCMT"Do not purge" -VUadministrator -VPadmin
Use the following command line process to disable Purge.
Command |
Details |
---|---|
-Odisablepurge |
Operation being performed (required). |
-Ndatabasename |
Name of the database (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-WA |
Windows Authentication (optional) |
Example
Connectivity.ADMSConsole.exe -Odisablepurge -NVault -VUAdministrator -VPadmin -WA
When repairing references, one of the last steps in the workflow is to import an XML file containing the new reference relationships. This action is performed from the command line.
Command |
Details |
---|---|
-Oimportreferencetable |
Operation being performed (required). |
-Ndatabasename |
Name of the database (required). |
-FINfile |
Full path to the Reference Table that's being imported (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-WA |
Windows Authentication (optional) |
Example
Connectivity.ADMSConsole.exe -Oimportreferencetable -NVault1 -FIN"c:\My Documents\192.168.92.138_vault_2012-06-26-02-46.xml" -VUAdministrator -VPadminIf for any reason you would like to reset the references for a file that you repaired, you can use the reset repaired references command.
The command removes the relationships that have been repaired using the Reference Table and resets them to the state they were in prior to the repair.
Command |
Details |
---|---|
-Oresetrepairedreferences |
Operation being performed (required). |
-Ndatabasename |
Name of the database (required). |
-VFILEvaultfilepath |
Full Vault path for the file to be processed (required for resetting references for a specific file). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-WA |
Windows Authentication (optional) |
Example
Connectivity.ADMSConsole.exe -Oresetrepairedreferences -NVault1 -VFILE$/Designs/Assemblies/Padlock.iam -VUAdministrator -VPadmin
Command |
Details |
---|---|
-Oreindexfileproperties |
The operation being performed (required). |
-Ndatabasename |
The name of the database to be re-indexed (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-TIP |
Re-indexes only leading versions of files (optional). This is the default setting. If -TIP is used (or not specified), only the latest versions, the released versions, and pending released versions are re-indexed. Note: For more information on revision management, see the Autodesk Vault Client help.
|
-ALL |
Re-indexes all versions of files (optional). By default, only the latest versions, the released versions, and pending released versions are indexed (-TIP). If -ALL is used, all versions are re-indexed. Note: For more information on revision management, see the Autodesk Vault Client help.
|
-EXTextensions |
File extensions filter (optional). Enter values separated by ',' or ';' without spaces. With or without '*' or '.' |
PROVIDERcontentsourceproviders |
Content source providers filter (optional). Enter values separated by ',' or ';' without spaces. Use the following system name for each provider:
|
-FROMstartdate |
Start date filter (optional) Use mm/dd/yyyy format |
-TOenddate |
End date filter (optional) Use mm/dd/yyyy format |
-FORCE |
Force all files or latest files to be cracked open and re-indexed (optional). |
-STOP |
Terminates the re-indexing operation (optional). Once stopped, re-indexing cannot be started from the point at which it left off. |
-NORMAL |
Bumps the process priority from "Below Normal" to "Normal" (optional). The priority cannot be changed once the re-indexing operation is initiated. If the -NORMAL switch is used, re-indexing will complete sooner; however, server performance will degrade due to the higher priority of the operation. |
Examples
Connectivity.ADMSConsole.exe -Oreindexfileproperties -NVault -VUadministrator -VPadmin
Connectivity.ADMSConsole.exe -Oreindexfileproperties -NVault -VUadministrator -VPadmin -STOP
Connectivity.ADMSConsole.exe -Oreindexfileproperties -Nvault -VUadministrator -VPadmin -TIP -FORCE -EXTipt,iam -PROVIDERAutoCADElectrical,OfficeOpenXml -FROM5/10/2011 -TO5/20/2011
Command |
Details |
---|---|
-ORebuildsearchindexes |
The operation being performed (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-DBUusername |
Database account user name (required unless default configuration). |
-DBPpassword |
Database account password (required unless default configuration). |
Example
Connectivity.ADMSConsole.exe -ORebuildsearchindexes -NVault -VUadministrator -VPadmin
Command |
Details |
---|---|
-Odefragmentvault |
The operation being performed (required). |
-Ndatabasename |
The name of the vault database to be defragmented (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
Example
Connectivity.ADMSConsole.exe -Odefragmentvault -NVault -VUAdministrator -VPadmin -S
The server console command line can be used to import libraries.
Command |
Details |
---|---|
-Oimportlibrary |
The operation being performed (required). |
-NLibraryName |
The database name of the library to import (required). |
-DFdataFilePath |
The path to the data file being imported, including the name of the file (required). |
-DLlogFilePath |
The path to the log file being imported, including the name of the file (required). |
-ZIP |
A switch that indicates the data file is a Zip file containing both the .mdf and .ldf files (required regardless if the file specified in the -DF switch ends with a .zip extension). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-DBUusername |
Database account user name (required unless default configuration). |
-DBPpassword |
Database account password (required unless default configuration). |
Example
Connectivity.ADMSConsole.exe -Oimportlibrary -N"Inventor Standard Content" -DF"c:\My Library Repository\Inventor Standard Content.mdf" -VUadministrator -VPadmin -DBUsername -DBPassword
The server console command line can be used to export libraries.
Command |
Details |
---|---|
-Oexportlibrary |
The operation being performed (required). |
-NLibraryName |
The database name of the library to export (required). |
-TtargetDirectory |
The path to store the exported library (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
Example
Connectivity.ADMSConsole.exe -Oexportlibrary -N"Inventor Standard Content" -T"c:\My Library Repository" -VUadministrator -VPadmin
The server console command line can be used to attach libraries.
Command |
Details |
---|---|
-Oattachlibrary |
The operation being performed (required). |
-NLibraryName |
The database name of the library to attach. |
-DFdataFilePath |
The path to the data file being attached, including the name of the file (required). |
-DLlogFilePath |
The path to the log file being imported, including the name of the file (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-DBUusername |
Database account user name (required unless default configuration). |
-DBPpassword |
Database account password (required unless default configuration). |
Example
Connectivity.ADMSConsole.exe -Oattachlibrary -N"Inventor Standard Content" -DF"c:\My Library Repository\Inventor Standard Content.mdf" -VUadministrator -VPadmin -DBUsername -DBPassword
Command |
Details |
---|---|
-Odetachlibrary |
The operation being performed (required). |
-NLibraryName |
The database name of the library to detach. |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-DBUusername |
Database account user name (required unless default configuration). |
-DBPpassword |
Database account password (required unless default configuration). |
Example
Connectivity.ADMSConsole.exe -Odetachlibrary -N"Inventor Standard Content" -VUadministrator -VPadmin -DBUsername -DBPassword
Command |
Details |
---|---|
-Odefragmentlibrary |
The operation being performed (required). |
-NdatabaseName |
The name of the library database to defragment (required). |
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
Example
Connectivity.ADMSConsole.exe -Odefragmentlibrary -NLibrary -VUadministrator -VPadmin
If you rename the computer hosting the Autodesk Vault server, the computer name must also be updated in the Autodesk Vault server. The computer name can be changed in the vault server either before or after the actual computer name is changed. In a multi-site environment, the name of the computer hosting the Autodesk Vault server is the name of the site.
Command |
Details |
---|---|
-OSiteRename |
The operation being performed (required). |
-SNOpreviousname |
The current name of the computer to rename (required). |
-SNNnewname |
The new name for the computer being renamed (required). |
-DBUsaUser |
The SQL sa account user name (required). |
-DBPsapassword |
The SQL sa account password (required). |
Example
Connectivity.ADMSConsole.exe -OSiteRename -SNOserver -SNNnewserver -VU(Vault Administrator Name) -VP(Vault Administrator Password) -DBUsa -DBPAutodeskVault@26200
This command runs a validation on the file store and databases. This will validate all of the files recorded in the database against the files in the file store. If any files are missing, a dialog displays a list of missing files. This list will also we written in the console log for the server.
Command |
Details |
---|---|
-VUusername |
Vault administrator account user name (required). |
-VPpassword |
Vault administrator account password (required). |
-Ovalidatefilestore |
The operation being performed (required). |
Example
Connectivity.ADMSConsole.exe -Ovalidatefilestore -VUadministrator -VPadmin
You can run workspace synchronization from the command line. Using the command line, you can create a script or an event in Windows Task Scheduler to automate workspace synchronization.
"<StandAloneOnlySettingDeleteFiles>=True
Command |
Details |
---|---|
-WA |
Use Windows authentication to log into the Vault server (optional). |
-Nserver\databasename |
The name of the server and the database to be synchronized (required). |
-VUusername |
The user name of the vault account. (This flag is optional if Windows authentication is used. It is required if the Windows authentication flag is not used). |
-VPpassword |
The vault account password (required unless password is blank). |
-S |
The full path to a valid synchronization settings file (optional). The synchronization settings file specifies the syncrhonization options. For more information on exporting a settings file, see Specify Workspace Sync Settings. |
-F |
The full path and file name for a report file (optional). The synchronization summary is written to the report file. If the report file already exists, the summary is appended to the contents of the existing file. |
Examples
The following switches are optional and can be used with the command line operations.
Switch |
Details |
---|---|
-WA |
Use Windows Authentication for a command that requires a vault user name and password. Use in place of -VUusername and -VPpassword. |
-S |
Run the utility in silent mode without any message boxes. |
-L |
Specify the name and location for a log file. If the log file already exists, the output is appended to the file specified. |