Remove need for /usr/local/bin
The half hourly job to ping all the active PingER hosts is at ~cottrell/bin/pinger_startup.pl. It in turn calls pinger2.pl to make the measurements.
In CentOS there is no /usr/local/bin so we need to make the following change in pinger_startup, and after testing restore
#my $PERL_PATH="/usr/local/bin/perl";
my $PERL_PATH="/usr/bin/perl";
Failure to restore $PERL_PATH results in email with:
Can't locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /afs/slac/package/pinger/pinger2/share/pinger/pinger2.pl line 450. BEGIN failed--compilation aborted at /afs/slac/package/pinger/pinger2/share/pinger/pinger2.pl line 450. |
---|
trscrontab -e
escrow edit -c netdev cottrell
I note that escrow does not seem to work on pinger-test or cent7a
[cottrell@pinger-test ~]$ escrow edit -c netdev cottrell
escrow: Command not found.
Put the following in ~cottrell/.cshrc
alias escrow "perl /afs/slac.stanford.edu/package/scsutils/scripts/escrow"
alias trscrontab /afs/slac.stanford.edu/package/scsutils/src/trs/cron/trscrontab
For pinger, put the following in ~pinger/.bash_profile
alias escrow="perl /afs/slac.stanford.edu/package/scsutils/scripts/escrow"
alias trscrontab=/afs/slac.stanford.edu/package/scsutils/src/trs/cron/trscrontab