...
At most (with the exception of SLAC) MAs, the data is stored in /usr/local/share/pinger/data, e.g.
Code Block file: /usr/local/share/pinger/data found on dxmon3.cern.ch total 66756 -rw-r--r-- 1 root root 12244303 Jun 7 18:56 ping-2018-06.txt -rw-r--r-- 1 root root 56049692 Jun 1 01:55 ping-2018-05.txt
The data from the MA is compressed and is copied to a directory associated with the MA and read-write permissions set for group sf, e.g.
Code Block 169cottrell@pinger:~$ls -l /afs/slac/public/incoming/saqibalipinger6.beijing.cn total 23277 -rw-rw-r-- 1 saqibali sf 9360738 Jun 6 20:20 ping-2018-04.txt.gz -rw-rw-r-- 1 saqibali sf 12394002 Jun 6 20:20 ping-2018-05.txt.gz -rw-rw-r-- 1 saqibali sf 2079565 Jun 6 20:01 ping-2018-06.txt.gz
...
Since the user Ann does not have a SLAC user account this is done via anonymous ftp to ftp://ftp.slac.stanford.edu/incoming. The first time Ann will need to create the directory for her site (e.g. pinger.6.beijing.cn)
2. Then it is necessary . saqibali) to move the data from the anonymous FTP server to:
Code Block |
---|
/nfs/slac/g/net/pinger/pingerdata/hep/data/<host>/ping-<YYYY>-<MM>-<DD>.txt.gz e.g. /nfs/slac/g/net/pinger/pingerdata/hep/data/pinger.slac.stanford.edu/ping-2018-06-04.txt.gz /nfs/slac/g/net/pinger/pingerdata/hep/data/pingergzhu.edu.cn2001:da8:270:2018:f816:3eff:fef3:bd3/ping-2018-06-04.txt.gz #This name is determined by the Node Name in NODEDETAILS |
This is automated by the getdata.pl script that runs nightly at SLAC.
If this is done manually the The SLAC account will need permissions to create a directory in /nfs/slac/g/net/pinger/pingerdata/hep/data/. This directory has permissions for user pinger and group iepm
Code Block 176cottrell@pinger:~$ls -ld /nfs/slac/g/net/pinger/pingerdata/hep/data drwxrwsr-x 220 pinger iepm 32768 May 16 00:45 /nfs/slac/g/net/pinger/pingerdata/hep/data/
To add the user to the iepm group
Code Block 178cottrell@pinger:~$ypgroup adduser -group iepm -u saqibali Jun 7 10:30:33 2018 User(s) 'saqibali' added to group 'iepm' Jun 7 10:30:33 2018 User(s) must logout/login for this to take effect. Jun 7 10:30:33 2018 Starting NIS post actions. Jun 7 10:30:33 2018 [/usr/ccs/bin/make group] copied group to /afs/slac/service/admin/NIS updated group pushed group 179cottrell@pinger:~$ypgroup exam -group iepm Group 'iepm': GID: 2087 Comment: Last modified at Jun 7 10:30:32 2018 by cottrell Owners: cottrell Members: cottrell, iepm, pinger, saqibali, ytl This is a secondary group.
...
Then we need to automate the steps with synchronized cronjobs, one . A job at Beijing is required to to do the compression and anonymous ftp of the recent data from the Beijing MA to the incoming ftp server at SLAC. Then one After the anonymous ftp copy is complete then getdata.pl will run at SLAC to run at a suitable later time (when the ftp has completed) to copy the data from /afs/slac/public/incoming/saqibali
pinger6.beijing.cn
to /nfs/slac/g/net/pinger/pingerdata/hep/data/pinger6.beijing.cn/. This in turn has to be synchronized with so it is completed Getdata.pl runs at 32 minutes past midnight local time at SLAC each morning.
Code Block |
---|
32 0 * * * /afs/slac/package/pinger/getdata.pl > /afs/slac/g/www/www-iepm/pinger/slaconly/getdata.err |
Getdata.pl is synchronized with, so it is completed (it takes about 15 minutes to gather the data from the MAs) before the analysis of the hourly data by wrap-analyze-all, that currently runs as a cron job at 11 minutes past 1am each morning (this time can be changed)1am local time at SLAC each morning.
Code Block |
---|
11 1 * * * /usr/local/bin/bsub -W 180 -o /dev/null -q long /afs/slac/package/pinger/analysis/wrap-analyze-allmonths.pl --basedir /nfs/slac/g/net/pinger --usemetric --dataset hep 2>&1 #Takes ~ 2hr 15 min on pinger 11/11/2012. |
...
See https://confluence.slac.stanford.edu/display/IEPM/PingER+data+flow+at+SLAC for the data flow. It might be possible to modify the current gathering script (appears getdata.pl ) to add step 2 support (i.e. should only require a small modification to not ping pinger6.beijing.cn. For the rest it will use the NODEDETAIL Data Server entry (e.g. ftp://ftp.slac.stanford.edu/incoming/pinger6.beijing.cn) to gather the data from the SLAC anonymous ftp server that is basically acting as a proxy).
This whole mechanism is also This would be done via a script run at SLAC under a SLAC account (e.g. saqibali). This might be interesting since it also could be extended and a step to providing support for the Android PingER project at Amity in Delhi, India which also needs a proxy.This would need to be automated by cron scripts.