Staf Copy on same Machine : Error registering with STAF, RC: 10

951 Views Asked by At

I want to copy a file from one directory to another directory. For doing this I am using staf which gets invoked in one php script, but getting below error, even if I run staf command like below

[root@balveer ConfigManagement_phps]# /usr/local/staf/bin/staf local FS COPY FILE /prd/mdp/Config_Manager/Configuration_files/configfiles/PCEF1/pcef.conf tomachine 172.19.13.53 todirectory /prd/mdp/Config_Manager/Configuration_files/updatedconfigs/
Error registering with STAF, RC: 10 

At the time of starting staf, it says staf initialized

Ping test also gives same error

[root@balveer bin]# STAF LOCAL PING PING

Error registering with STAF, RC: 10

I am running staf version 3.4.11 on RHEL 6.3

1

There are 1 best solutions below

0
On

I did following :

$ echo "/usr/local/staf/lib" > /etc/ld.so.conf.d/staf.conf
$ ldconfig 

Basically, adding STAF library path in /etc/ld.so.conf.d/staf.conf