Printer FriendlyEmail Article Link

How do I start the rsync server on an STCLive T&D host?

Answer

The rsync should be running with all the metro (T&D) processes so a startAllMetro will start rsync in addition to all other metro processes.
(You may need to source the metro environment {. ./environment.sh})
cd $METRO_HOME/scripts
./startAllMetro

OR you can start rsync this way:
cd /spirent/cots/rsync/2.6.3/bin
./startFTTNRsyncd

More info on the rsync server:

rsync is used for file exchange with test sets, including the transfer of test configuration files to the devices and the subsequent retrieval of results files and capture files.

***How do I know if rsync is running:
from command prompt
=> ps -ef | grep -i rsync
smartsys  2121     1   0   Jan 08 ?           0:00 ./FTTN_RSYNC/rsync --daemon --port=6999 --
config=/spirent/cots/rsync/2.6.3/conf

Typically the rsync server is running on port 6999 so you can also do this:
=> ps -ef | grep -i 6999
smartsys  2121     1   0   Jan 08 ?           0:00 ./FTTN_RSYNC/rsync --daemon --port=6999 --
config=/spirent/cots/rsync/2.6.3/conf
 

***log files are located here:
/spirent/metro/logs/rsync_fttn.log
log file path is set in the rsyncd_fttn.conf file

***rsync configuration file is located here:
/spirent/cots/rsync/2.6.3/config/rsyncd_fttn.conf

sample setting in config file:
[CAPTURE_FILES]
        path = /spirent/metro/data/captureFiles
        comment = 6500/7500 Capture Files
        use chroot = no
        uid = root
        gid = system
        read only = no

***library files used:
/spirent/firmware/STCLive/3577C/RA /lib/ld.so.1

example:
=> ls -lrt /spirent/firmware/STCLive/3577C/RA03.42.04/lib/ld.so.1
lrwxrwxrwx   1 smartsys staff         11 Nov 12 12:12
/spirent/firmware/STCLive/3577C/RA03.42.04/lib/ld.so.1 -> ld-2.3.2.so

notice that there is a soft link to library driver: ld-2.3.2.so in same DIR:
/spirent/firmware/STCLive/3577C/RA03.42.04/lib/ld-2.3.2.so

There is one other library file used by rsync:
libpopt.so.0

=> ls -lrt /usr/lib/libpopt.so.0
lrwxrwxrwx   1 root     root          16 Jan 11  2011 /usr/lib/libpopt.so.0 -> libpopt.so.0.0.0


******* ERRORS SEEN & WHAT COULD THEY MEAN ********
ld.so.1: rsync: fatal: libpopt.so.0: open failed: No such file or directory

This will be seen when you attempt to start rsync.
=> ./startFTTNRsyncd
Rsync daemon port is:  6999
Starting rsync daemon
ld.so.1: rsync: fatal: libpopt.so.0: open failed: No such file or directory
./startFTTNRsyncd[11]: 9887 Killed


For this trouble the library file 'libpopt.so.0' was located in the wrong DIR.
it was here: /usr/local/lib/libpopt.so.0
it should be located here: /usr/lib/libpopt.so.0


*** Can Not save capture files ***
If the user attempts to save a capture file and it fails with an error like this:
CPY-MEM got a DENY (SABT) /* Failed executing rsync command: @ERROR: invalid gid system */
The file system used to store capture files may be full. Please check disk space.
...Request Completed

It could be a permissions problem.

In the /spirent/cots/rsync/2.6.3/config/rsyncd_fttn.conf file
Change FROM:
[CAPTURE_FILES]
        path = /spirent/metro/data/captureFiles
        comment = 6500/7500 Capture Files
        use chroot = no
        uid = root
        gid = system
        read only = no

TO:
[CAPTURE_FILES]
        path = /spirent/metro/data/captureFiles
        comment = 6500/7500 Capture Files
        use chroot = no
        uid = smartsys
        gid = staff
        read only = no

Follow steps above to stop and start rsync and problem will clear.

 


Product : VW Controller T&D Classic