07-07-2014 09:42 AM
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
07-07-2014 10:35 AM
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 ****
07-07-2014 10:15 PM
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.
07-07-2014 10:25 PM
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-
07-07-2014 10:51 PM
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.
07-08-2014 12:32 AM
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
07-08-2014 01:58 AM
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
07-08-2014 04:02 AM
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
07-08-2014 04:29 AM
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
07-09-2014 03:45 AM
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
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