Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Updating the FTP

The script responsible to update the public FTP is in the pinger machine on the following location:

/afs/slac/package/pinger/ftp-update.pl

To run this script you must use the following command:

$ /opt/TWWfsw/bin/perl /afs/slac/package/pinger/ftp-update.pl

You can SSH pinger machine with the following command:

ssh pinger@pinger

Output:

Image Added

 

It represents how many files were missing during the update process.

Cron Job

The script runs every morning at 4AM. To modify the cron job you should edit the trscrontab:

$ trscrontab -e

and edit the following line:

lnxcron;480 00 4 * * * /opt/TWWfsw/bin/perl /afs/slac/package/pinger/ftp-update.pl

Log Files:

Log files with missing files can be found at:

$ /afs/slac/public/users/cottrell/pinger_log_files

Image Added

Each .txt file contains the names of the files missing in the FTP.

The log files are generated automatically by ftp-update.pl everytime a file is missing in the pingerreports folder.

The files also can be generated by the following script:

$ /opt/TWWfsw/bin/perl /afs/slac/package/pinger/ftp-update-log.pl

 Algorithm

Code Block
linenumberstrue
1. Foreach metric
2.	Copy correspondent tar file to pinger_temp_files folder
3.	Untar the file inside pinger_temp_files folder 
4.	Check the most recent file in the recently untared folder
5.	Copy from pingerreports folder to the pinger_temp_files folder all the correspondent files until the current previous day
6.	Tar the updated folder
7.	Copy back to the FTP main folder
 

ftp main folder folder:

$ /afs/slac/public/users/cottrell

pinger_temp_files folder:

$ /afs/slac/public/users/cottrell/pinger_temp_files

pingerreports folder:

$ /nfs/slac/g/net/pinger/pingerreports/hep