Cadence lock files


If cadence is not properly exited or crashed, it results in edit locks on cadence files that were open at the time of exiting. These lock files have extension ‘.cdslck’. After restarting cadence, we have to remove edit locks to continue editing on those files.

We have two options to remove edit locks.

  1. using Linux commands – to find and remove edits locks
  2. use clsAdminTool

Using Linux Commands

First find the lock files.

find . -name "*.cdslck"

Then delete the lock files to release edit locks

rm /path/to/lock/file

You can release all lock files in one shot,

find . -name "*.cdslck" -exec rm -f {}

Be cautious when using this command.

Using clsAdminTool

To remove file or folder locks in cadence enviroment, try using the ‘clsAdminTool’

This tool can be invoked by typing ‘clsAdminTool’ in the command terminal. A promt > will appear if invoked correctly.

[sam@sun ~] clsAdminTool

Type ‘help’ at the prompt to get list of options available.

 > help 
Commands:
 system  
  - execute shell command
 ale  
  - List all Edit Locks in directoryHierarchy
 aple   [pid [processCreationTime]] 
  - List all Edit Locks of process pid in directoryHierarchy
 are  
  - Release all Edit Locks in directoryHierarchy
 apre     
  - Release all Edit Locks of process pid in directoryHierarchy
 asre  
  - Release Edit Lock on the file specified by filePath
 force
  - Set force mode to remove old style locks with simple host names
 exit 
  - exit with last status
 help 
  - This output
 quit 
  - quit (with good status (0))
> 

To list all edit locks on files below current directory, type

> ale .

To remove all edit locks on files below current directory, type

> are .

To list edit locks on all files in a library or a specific directory, type

> ale /path/to/your/library/directory

To release edit locks on all files in a library or a specific directory, type

> are /path/to/your/library/directory

To remove edit lock on a specific file, type

> asre /path/to/the/locked/file

We can also use clsAdminTool directly from command terminal. To list all the edit locks type

[sam@sun ~] clsAdminTool -ale .

Leave a Comment