Solutions

What configuration file is used by a project or project database?



ID:    S143618
Published:    01 March 2022
Updated:    01 March 2022

Operating System(s)

  • All Unix
  • All Windows

Product(s)

  • PVCS Version Manager
 

Description

How can I identify the configuration file being used by a project database, or a project (yellow folder) in that project database?

Resolution

Using the Desktop Client GUI:
 
  • Select the Project Database root (drive icon), or the Project (yellow folder) you want to know the configuration file of.
     
  • Perform a right-click | Properties
     
  • Take note of the Configuration File path:



    (Only projects with a black tab on the yellow folder have a CFG file.)
     
Using PCLI:
 
  • To get the configuration file for a project database, execute:

    pcli GetConfigFile -pr"PathToProjectDatbase" -id"UserID:Password"

    The -id option is only necessary if you are normally prompted for a user ID.

    Example:

    C:\>pcli GetConfigFile -pr"C:\ProgramData\Serena\VM\SampleDB" -idAdmin
    Serena PVCS Version Manager (PCLI) v8.5.3.0 (Build 071) for Windows NT/80x86
    Copyright (C) 1985-2015 Serena Software. All rights reserved.
    C:\ProgramData\Serena\VM\SampleDb\archives\basecfg.cfg

    C:\>

     
  • To get the configuration file for a project inside the project database, execute:

    pcli GetConfigFile -pr"PathToProjectDatbase" -id"UserID:Password" "ProjectEntityPath"

    The -id option is only necessary if you are normally prompted for a user ID.

    The ProjectEntityPath has the format "/top-level-project/sub-project/etc."

    Example:

    C:\>pcli GetConfigFile -pr"C:\ProgramData\Serena\VM\SampleDB" -idAdmin "/bridge"
    Serena PVCS Version Manager (PCLI) v8.5.3.0 (Build 071) for Windows NT/80x86
    Copyright (C) 1985-2015 Serena Software. All rights reserved.
    C:\ProgramData\Serena\VM\SampleDb\archives\bridge\bridge.cfg

    C:\>

     
If you are using a PVCS VM File Server and you need to locate the file on disk, you have to translate the path based on the Path Map it is accessed from.
 
For example, if the Configuration File shows:
 
 
and the Path Map this file is accessed from is defined as:
 
 
then the actual location on the File Server can be determined by replacing the Client name portion of the file with the Project DB path in the Path Map.
 
Using the example above, \\vmfs\One\archives\config.cfg would become F:\PDB\One\archives\config.cfg
 

Rate this Solution

Find Answers

Type a question or describe what you are looking for below

My Recent Searches

Welcome kb sso

Additional Assistance

  • Submit a Case Online
  • FAQs