How to set DCRCLIFILE?

Unanswered Question
Feb 6th, 2008


I would like to use the dcrcli to export devices in a script. To avoid the password I should set DCRCLIFILE variable. As documented :

You can set DCRCLIFILE environment to point to the file where Common Services password is present.

My question : Where can I find this file ? Is there a default path ?

(I use LMS 2.6 on Sol9)



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
David Stanford Wed, 02/06/2008 - 12:38

You would create this file yourself and the format of the password file is

If you have set DCRCLIFILE=C:\temp\file.txt and the ciscoworks username/password is

admin/admin, then the password file "file.txt"

should contain:

admin admin

(in the first line of the file)

gdemeester Thu, 06/12/2008 - 09:33

Where, in Solaris, do you set this variable (DCRCLIFILE)? Is this specific to LMS or is at a higher Solaris level?


Martin Ermel Thu, 06/12/2008 - 15:54

DCRCLIFILE is just a variable of your shell (like the %PATH% variable on windows or $PATH on solaris); so you need to set this variable in your current shell. You can export it to have it as an environment variable. You can also do this in your login profile to have it set automatically each time you login on the solaris box.

e.g login to your solaris box and -if you use the bash - type in: 'export DCRCLIFILE=/opt/CSCOpx/conf/file.txt' (without the single quotes)

here is a link to 'dcrcli':


This Discussion