Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

dcrcli is giving the library error

We have changed the home directory of the user, and hence forth the dcrcli is giving the library error.

Earlier it was running perfectly.

 

Please suggest , if we need to set any env variables

-bash-3.2$ dcrcli -u Santosh.agasagi
<dcrcli> * Password file found using DCRCLIFILE environment variable.
<dcrcli> * Warning * Unable to find password from DCRCLIFILE.
Enter your password

ld.so.1: java: fatal: libjli.so: open failed: No such file or directory
Killed
ld.so.1: java: fatal: libjli.so: open failed: No such file or directory
Killed

 

Application is running on solaris box .

-bash-3.2$ uname -a
SunOS ttexmux14 5.10 Generic_147440-12 sun4v sparc sun4v

 

9 REPLIES
Cisco Employee

Hi,kindly check if this file

Hi,

kindly check if this file libjli.so exist in /opt/CSCOpx/lib/jre/lib/sparc/jli or not ?


create a softlink under /usr/lib: ln -s  opt/CSCOpx/lib/jre/lib/sparc/jli/libjli.so
libjli.so.

Then try to execute the dcrcli again.

 

Note: Also make sure the libjli.so  has the correct permission.

see if it works for you.

 

Thanks-

Afroz

***Ratings Encourages Contributors ****

 

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****
New Member

HI Afroz,I have tried this

HI Afroz,

I have tried this earlier.

 

root@ttexmux14 # ln -s /opt/CSCOpx/lib/jre/lib/sparc/jli/libjli.so libjli.so
root@ttexmux14 # ls -ltr | grep libjli.so
lrwxrwxrwx   1 root     root          43 Jul  7 17:38 libjli.so -> /opt/CSCOpx/lib/jre/lib/sparc/jli/libjli.so.

It was giving me some other error, later i removed the soft link.

Any more suggesion will be very helpful

 

 

-bash-3.2$ /opt/CSCOpx/bin/dcrcli -u Santosh.agasagi cmd=add -useUbambano=policy                                                                                                                 configuration ip=10.60.222.66 hn=tfr_emg_rcb27_02_sw_00 dn=tfr_emg_rcb27_02_sw_                                                                                                                00 -a sysObjectID=1.3.6.1.4.1.9.1.694
<dcrcli> * Password file found using DCRCLIFILE environment variable.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniccrlibraryd in                                                                                                                 java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at com.cisco.core.ccr.JNICCRInterface.<init>(JNICCRInterface.java:169)
        at com.cisco.core.ccr.CCRInterface.<init>(CCRInterface.java:15)
        at com.cisco.nm.dcr.impexp.DCRImpExpConstants.<clinit>(DCRImpExpConstant                                                                                                                s.java:67)
        at com.cisco.nm.dcr.DCRUtil.getDCRFileLocation(DCRUtil.java:137)
        at com.cisco.nm.dcr.DCRUtil.configureAndWatch(DCRUtil.java:827)
        at com.cisco.nm.dcr.DCRcli.<clinit>(DCRcli.java:65)
Could not find the main class: com.cisco.nm.dcr.DCRcli.  Program will exit.
 

 

Cisco Employee

rwxrwxrwx   1 root     root  

rwxrwxrwx   1 root     root          43 Jul  7 17:38 libjli.so -> /opt/CSCOpx/lib/jre/lib/sparc/jli/libjli.so.

 

right now , this file is owned by root

change it to casuser and  try it again.

chown casuser:casusers <filename>

 

Thanks-

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****
New Member

But Afroz, if you will notice

But Afroz, if you will notice, this soft link has all the permission , even for other group users.

I think, it will not help here to change the owner.

New Member

Hi Afroz, I have change the

Hi Afroz,

 

I have change the owner of the libjli.so to our application user, but still, we are getting the same error.

Please let me know, if you have any more suggestions

I think what you must do is: 

I think what you must do is:

   su - casuser

This way you become casuser and load the casuser environment !

Or try:

   su - casuser -c 'set'

 

To see the environment of casuser.

Check the environment variables for (I think) LIBPATH

Copy this to your .profile file

Then you should be able to run all the commands that need a LIB

Cheers,

Michel

 

New Member

Hi Michel,  Due to some

Hi Michel,

  Due to some reason, we have changed our home directory path of casuser and, thus we loose our all environmental variables. I think in this case dcrcli is might looking for some libraries.

before changing the home directory of the user , it was running fine, we were able to add the device through command line.

Please suggest

Hi Amit,Did you you create a

Hi Amit,

Did you you create a restore point before making changes to the VM?

If not I would suggest to redeploy the OVA and restore a LMS backup.

Michel

 

Check opt/CSCOpx/bin/

Check /opt/CSCOpx/bin/ directory for a program called resercasuser or something like that.

I believe it may be able to recreate the casuser the way it should be.

Cheers,

Michel

78
Views
0
Helpful
9
Replies
CreatePlease to create content