02-06-2008 11:08 AM
Hi,
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)
Thx
Jan
02-06-2008 12:38 PM
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)
06-12-2008 09:33 AM
Where, in Solaris, do you set this variable (DCRCLIFILE)? Is this specific to LMS or is at a higher Solaris level?
Thanks
06-12-2008 03:54 PM
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':
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide