Commit 1b968035 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Doc: update Eiger-500k 10Gb IP in config, regroup bash commands in blocks

parent d12d208d
......@@ -631,11 +631,11 @@ needed):
#============= Eiger ====================
# Direct Connection - Top half
192.168.11.10 beb021.esrf.fr beb021
#192.168.12.22 beb02110ge1.esrf.fr beb02110ge1
#192.168.12.20 beb02110ge1.esrf.fr beb02110ge1
# Direct Connection - Bottom half
192.168.13.11 beb020.esrf.fr beb020
#192.168.14.23 beb02010ge1.esrf.fr beb02010ge1
#192.168.14.21 beb02010ge1.esrf.fr beb02010ge1
#============= OS ====================
# The following lines are desirable for IPv6 capable hosts
......@@ -1029,12 +1029,13 @@ computer directories:
::
(bliss) lid10eiger1:~ % EIGER_DIR=${EIGER_HOME}/eiger/eiger_v3.1.1
(bliss) lid10eiger1:~ % EIGER_CONFIG=${EIGER_DIR}/config/beb-021-020-direct-FO-10g.config
(bliss) lid10eiger1:~ % mkdir -p $(dirname ${EIGER_CONFIG})
(bliss) lid10eiger1:~ % scp lisgeiger1:${EIGER_CONFIG} $(dirname ${EIGER_CONFIG})
beb-021-020-direct-FO-10g.config 100% 781 0.8KB/s 00:00
(bliss) lid10eiger1:~ % sed -i 's:lisgeiger1:lid10eiger1:g' ${EIGER_CONFIG}
(bliss) lid10eiger1:~ % \
EIGER_DIR=${EIGER_HOME}/eiger/eiger_v3.1.1
EIGER_CONFIG=${EIGER_DIR}/config/beb-021-020-direct-FO-10g.config
mkdir -p $(dirname ${EIGER_CONFIG})
scp lisgeiger1:${EIGER_CONFIG} $(dirname ${EIGER_CONFIG})
sed -i 's:lisgeiger1:lid10eiger1:g' ${EIGER_CONFIG}
...
The resulting configuration file:
......@@ -1088,9 +1089,10 @@ Copy the detector calibration data:
::
(bliss) lid10eiger1:~ % SLS_DETECTOR_SETTINGS=$(grep ^settings ${EIGER_CONFIG} | awk '{print $2}')/standard
(bliss) lid10eiger1:~ % mkdir -p $(dirname ${SLS_DETECTOR_SETTINGS})
(bliss) lid10eiger1:~ % scp -r lisgeiger1:${SLS_DETECTOR_SETTINGS} $(dirname ${SLS_DETECTOR_SETTINGS})
(bliss) lid10eiger1:~ % \
SLS_DETECTOR_SETTINGS=$(grep ^settings ${EIGER_CONFIG} | awk '{print $2}')/standard
mkdir -p $(dirname ${SLS_DETECTOR_SETTINGS})
scp -r lisgeiger1:${SLS_DETECTOR_SETTINGS} $(dirname ${SLS_DETECTOR_SETTINGS})
...
Add the configuration file to *eiger_setup.sh* and decode the
......@@ -1162,46 +1164,43 @@ Install *libnuma-dev*:
::
# as opid00
(bliss) lid10eiger1:~ % cd ${SLS_DETECTORS}
(bliss) lid10eiger1:~/esrf/sls_detectors % git submodule init Lima
Submodule 'Lima' (git://gitlab.esrf.fr/limagroup/lima.git) registered for path 'Lima'
(bliss) lid10eiger1:~/esrf/sls_detectors % git submodule update
...
(bliss) lid10eiger1:~/esrf/sls_detectors % LIMA_DIR=${SLS_DETECTORS}/Lima
(bliss) lid10eiger1:~/esrf/sls_detectors % cd ${LIMA_DIR}
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % submod="third-party/Processlib
third-party/Sps
third-party/gldisplay
camera/slsdetector
applications/spec
applications/tango/python"
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % github_submod_names="Sps"
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % github_submod=$(for s in ${submod}; do \
for m in ${github_submod_names}; do \
echo ${s} | grep ${m}; \
done; \
done)
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % re_pat="(${github_submod_names// /|})"
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % gitlab_submod=$(echo "${submod}" | grep -Ev ${re_pat})
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % git submodule init ${submod}
...
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % git submodule update
...
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % for s in ${github_submod}; do \
(cd ${s} && \
git remote rename origin github.bliss); \
done
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % for s in ${gitlab_submod}; do \
(cd ${s} && \
git remote rename origin gitlab && \
git remote add github.bliss \
$(git config remote.gitlab.url | sed "s%git://gitlab.esrf.fr/limagroup%git://github.com/esrf-bliss%")); \
done
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % git remote rename origin gitlab
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % git remote add github.bliss git://github.com/esrf-bliss/Lima.git
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % git submodule foreach git fetch --all
...
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % git fetch --all
(bliss) lid10eiger1:~ % \
cd ${SLS_DETECTORS}
git submodule init Lima
git submodule update
LIMA_DIR=${SLS_DETECTORS}/Lima
cd ${LIMA_DIR}
submod="third-party/Processlib
third-party/Sps
third-party/gldisplay
camera/slsdetector
applications/spec
applications/tango/python"
github_submod_names="Sps"
github_submod=$(for s in ${submod}; do
for m in ${github_submod_names}; do
echo ${s} | grep ${m}
done
done)
re_pat="(${github_submod_names// /|})"
gitlab_submod=$(echo "${submod}" | grep -Ev ${re_pat})
git submodule init ${submod}
git submodule update
for s in ${github_submod}; do
(cd ${s} &&
git remote rename origin github.bliss)
done
for s in ${gitlab_submod}; do
(cd ${s} &&
git remote rename origin gitlab &&
git remote add github.bliss \
$(git config remote.gitlab.url |
sed "s%git://gitlab.esrf.fr/limagroup%git://github.com/esrf-bliss%"))
done
git remote rename origin gitlab
git remote add github.bliss git://github.com/esrf-bliss/Lima.git
git submodule foreach git fetch --all
git fetch --all
...
Eiger software: slsDetectorPackage
......@@ -1213,16 +1212,15 @@ plugin:
::
# as opid00
(bliss) lid10eiger1:~ % cd ${LIMA_DIR}/camera/slsdetector
(bliss) lid10eiger1:Lima/camera/slsdetector % git submodule init
Submodule 'slsDetectorPackage' (git://github.com/esrf-bliss/slsDetectorPackage.git) registered for path 'slsDetectorPackage'
(bliss) lid10eiger1:Lima/camera/slsdetector % git submodule update
...
(bliss) lid10eiger1:Lima/camera/slsdetector % cd slsDetectorPackage
(bliss) lid10eiger1:camera/slsdetector/slsDetectorPackage % git remote rename origin github.bliss
(bliss) lid10eiger1:camera/slsdetector/slsDetectorPackage % git remote add github.slsdetectorgroup \
git://github.com/slsdetectorgroup/slsDetectorPackage.git
(bliss) lid10eiger1:camera/slsdetector/slsDetectorPackage % git fetch --all
(bliss) lid10eiger1:~ % \
cd ${LIMA_DIR}/camera/slsdetector
git submodule init
git submodule update
cd slsDetectorPackage
git remote rename origin github.bliss
git remote add github.slsdetectorgroup \
git://github.com/slsdetectorgroup/slsDetectorPackage.git
git fetch --all
...
*Lima* compilation
......@@ -1232,10 +1230,10 @@ Compile *Lima*, including *slsDetectorPackage* using *CMake*:
::
(bliss) lid10eiger1:~ % cd ${LIMA_DIR}
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % cp scripts/config.txt_default scripts/config.txt
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % echo "CMAKE_BUILD_TYPE=RelWithDebInfo" >> scripts/config.txt
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % mkdir -p ${LIMA_DIR}/install/python
(bliss) lid10eiger1:~ % \
cd ${LIMA_DIR}
cp scripts/config.txt_default scripts/config.txt
mkdir -p ${LIMA_DIR}/install/python
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % ./install.sh \
--install-prefix=${LIMA_DIR}/install \
--install-python-prefix=${LIMA_DIR}/install/python \
......@@ -1291,14 +1289,16 @@ Finally, test the *Lima* plugin without and with *CtControl* instantiation:
::
(bliss) lid10eiger1:~ % cd ${LIMA_DIR}
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % rm -f /tmp/eiger.edf && \
build/camera/slsdetector/test/test_slsdetector -c ${EIGER_CONFIG}
(bliss) lid10eiger1:~ % \
cd ${LIMA_DIR}
(rm -f /tmp/eiger.edf &&
build/camera/slsdetector/test/test_slsdetector -c ${EIGER_CONFIG})
...
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % mkdir -p /nobackup/lid10eiger12/data/eiger/lima
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % ln -s /nobackup/lid10eiger12/data/eiger/lima data
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % rm -f data/img*.edf && \
python camera/slsdetector/test/test_slsdetector_control.py -c ${EIGER_CONFIG}
(bliss) lid10eiger1:~/esrf/sls_detectors/Lima % \
mkdir -p /nobackup/lid10eiger12/data/eiger/lima
ln -s /nobackup/lid10eiger12/data/eiger/lima data
(rm -f data/img*.edf &&
python camera/slsdetector/test/test_slsdetector_control.py -c ${EIGER_CONFIG})
...
Clean the shared memory segments used by the SlsDetector library, so
......@@ -1307,9 +1307,10 @@ thay can be re-created by *opid10*:
::
# as opid00
(bliss) lid10eiger1:~ % for m in $(ipcs -m | grep '^0x000016' | awk '{print $2}'); do \
ipcrm -m ${m}; \
done
(bliss) lid10eiger1:~ % \
for m in $(ipcs -m | grep '^0x000016' | awk '{print $2}'); do
ipcrm -m ${m}
done
Setup *opid10* account
......@@ -1358,9 +1359,10 @@ Include the *Lima* libraries and modules in the *BLISS_LIB_PATH* and *PYTHONPATH
::
# as blissadm
lid10eiger1:~ % . ${EIGER_HOME}/eiger_setup.sh
(bliss) lid10eiger1:~ % blissrc -a BLISS_LIB_PATH ${LIMA_DIR}/install/lib
(bliss) lid10eiger1:~ % blissrc -a PYTHONPATH ${LIMA_DIR}/install/python
lid10eiger1:~ % \
. ${EIGER_HOME}/eiger_setup.sh
blissrc -a BLISS_LIB_PATH ${LIMA_DIR}/install/lib
blissrc -a PYTHONPATH ${LIMA_DIR}/install/python
Rename the Lima installed directories so they are no longer visible, and create the necessary
symbolic links:
......@@ -1368,13 +1370,14 @@ symbolic links:
::
# as blissadm
(bliss) lid10eiger1:~ % cd ~/python/bliss_modules
(bliss) lid10eiger1:~/python/bliss_modules % mv Lima Lima-pack
(bliss) lid10eiger1:~/python/bliss_modules % cd ~/applications
(bliss) lid10eiger1:~/applications % mv LimaCCDs LimaCCDs-pack
(bliss) lid10eiger1:~/python/bliss_modules % cd ~/server/src
(bliss) lid10eiger1:~/server/src % mv LimaCCDs LimaCCDs-pack
(bliss) lid10eiger1:~/server/src % ln -s ${LIMA_DIR}/install/bin/LimaCCDs
(bliss) lid10eiger1:~ % \
cd ~/python/bliss_modules
mv Lima Lima-pack
cd ~/applications
mv LimaCCDs LimaCCDs-pack
cd ~/server/src
mv LimaCCDs LimaCCDs-pack
ln -s ${LIMA_DIR}/install/bin/LimaCCDs
Lima Python Tango server configuration in *blissadm*
......@@ -1525,9 +1528,11 @@ version compiled on *opid00*:
::
# as blissadm
lid10eiger1:~ % LIMA_DIR=${EIGER_HOME}/esrf/sls_detectors/Lima
lid10eiger1:~ % cd ~/spec/macros/lima
lid10eiger1:~/spec/macros/lima % ln -s ${LIMA_DIR}/applications/spec/limaslsdetector.mac
lid10eiger1:~ % (
. ${EIGER_HOME}/eiger_setup.sh
cd ~/spec/macros/lima
ln -s ${LIMA_DIR}/applications/spec/limaslsdetector.mac
)
SPEC configuration
~~~~~~~~~~~~~~~~~~
......
......@@ -28,7 +28,22 @@ is included:
::
lisgeiger1:~ % cat ~/.ssh/id_dsa.pub
lisgeiger1:~ % \
EIGER_MODULE_TOP=$(echo ${EIGER_MODULES} | cut -f1 -d" ")
cat ~/.ssh/id_dsa.pub
echo
if [ $(echo ${EIGER_MODULES} | wc -w) -eq 2 ]; then
det_name="500k$(echo ${EIGER_MODULES} | sed 's/ \?beb/_/g')"
else
det_name="2m"
fi;
base_dir="${HOME}/eiger/psi_eiger_${det_name}"
this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
mkdir -p ${this_dir} && cd ${this_dir}
for m in ${EIGER_MODULES}; do
ssh -x root@${m} cat .ssh/authorized_keys > ssh_authorized_keys_${m}
done
cat ssh_authorized_keys_${EIGER_MODULE_TOP}
ssh-dss AAAAB3NzaC1kc3MAAACBALGVR0qC2i/HgaJl4fuiwmOVrq46Bz3bs+o3/jdw/dqMaPjx35Ha
shyC4zS+2wHyZVSjwTMIbVT8LPsNMGxL40ZxqWaAUyzn0XnjJMe3XT7h+yyx+iLUXvyCK489PAwT0srE
iWbGNeQTgEYiwX+jqezQTiwss2sgypOrrwIrGrZBAAAAFQDjOUdgHjbCc1UMW37Zu+7b/AV1cQAAAIAu
......@@ -38,20 +53,6 @@ is included:
JQguFttMCNduiXmZfDYITld+86c9aWCR6g7re977ElFTbutWe+isu/ZFINXOvDEHmBUKd7++4lGDCjsM
NOQQmG/Ftsi4jE2iWBaI91oyTQI= opid00@lisgeiger1
lisgeiger1:~ % if [ $(echo ${EIGER_MODULES} | wc -w) -eq 2 ]; then \
det_name="500k$(echo ${EIGER_MODULES} | sed 's/ \?beb/_/g')"; \
else \
det_name="2m"; \
fi; \
base_dir="${HOME}/eiger/psi_eiger_${det_name}"
lisgeiger1:~ % this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
lisgeiger1:~ % mkdir -p ${this_dir} && cd ${this_dir}
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} cat .ssh/authorized_keys > ssh_authorized_keys_${m}; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % cat ssh_authorized_keys_beb024
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxHKsWjHzIsIt0Pt1lkZA9Px5x0v6e2ZzCh+AEiQz1nk0
l7kU6K0IzKvYbAj6HnQB3/epYHz6SBRrpsMQcFPHgtQIKlTzeKHNqS6pHBKxKR77jGGq70i7SWZsSBXP
1/8QxUhV9CNbFJKAkEmvXa5ZO1fKgtiXYXR26X72foOKwZzOtPzOqz2IQ6icxqTMELK1H4R+s0Rvuurl
......@@ -83,7 +84,8 @@ Check that all the keys are identical:
::
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % md5sum ssh_authorized_keys_beb*
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % \
md5sum ssh_authorized_keys_beb*
1c183bdaa3a2f27029fca84b9cb3b857 ssh_authorized_keys_beb024
1c183bdaa3a2f27029fca84b9cb3b857 ssh_authorized_keys_beb025
......@@ -92,17 +94,19 @@ add them in order to open SSH sessions automatically on the detector modules:
::
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} sh -c '"cat >> .ssh/authorized_keys"' < ~/.ssh/id_dsa.pub; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % \
for m in ${EIGER_MODULES}; do
ssh -x root@${m} sh -c '"cat >> .ssh/authorized_keys"' < ~/.ssh/id_dsa.pub
done
Also check that the SSH public host keys are identical (same Linux image):
::
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do \
ssh-keygen -f ~/.ssh/known_hosts -F ${m} -l; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % \
for m in ${EIGER_MODULES}; do
ssh-keygen -f ~/.ssh/known_hosts -F ${m} -l
done
# Host beb024 found: line 82 type RSA
1040 21:78:5d:39:d5:cc:92:7a:42:f8:4d:69:38:3b:40:40 |1|m9PYbOqjp0h4qI8tq9u9H8x7pKQ=|wXZou5Y2oMKiULF5ZOuBjV0U7oo= (RSA)
# Host beb025 found: line 84 type RSA
......@@ -116,29 +120,30 @@ the current versions stored on the modules:
::
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} 'ls -l executables/eigerDetectorServer*' \
> ls_executables_eigerDetectorServer_${m}.out; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % cat ls_executables_eigerDetectorServer_beb024.out
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % \
for m in ${EIGER_MODULES}; do
ssh -x root@${m} 'ls -l executables/eigerDetectorServer*' \
> ls_executables_eigerDetectorServer_${m}.out
done
cat ls_executables_eigerDetectorServer_${EIGER_MODULE_TOP}.out
echo
for m in ${EIGER_MODULES}; do
ssh -x root@${m} 'md5sum executables/eigerDetectorServer*' \
> md5sum_executables_eigerDetectorServer_${m}.out
done
cat md5sum_executables_eigerDetectorServer_${EIGER_MODULE_TOP}.out
echo
md5sum md5sum_executables_eigerDetectorServer_beb*
-rwxr-xr-x 1 root root 280601 Jan 1 01:15 executables/eigerDetectorServer
-rwxr-xr-x 1 root root 277442 Aug 26 2016 executables/eigerDetectorServer_bkp
-rwxr-xr-x 1 root root 277442 Aug 26 2016 executables/eigerDetectorServerv2.0.5.14.3
-rwxr-xr-x 1 root root 280601 Jan 1 01:14 executables/eigerDetectorServerv2.3.0.16.2
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do
ssh -x root@${m} 'md5sum executables/eigerDetectorServer*' \
> md5sum_executables_eigerDetectorServer_${m}.out; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % cat md5sum_executables_eigerDetectorServer_beb024.out
4fca193db64ed991da785043e7769082 executables/eigerDetectorServer
e8a39956bbcb4aac62f109188e8ddbb2 executables/eigerDetectorServer_bkp
e8a39956bbcb4aac62f109188e8ddbb2 executables/eigerDetectorServerv2.0.5.14.3
4fca193db64ed991da785043e7769082 executables/eigerDetectorServerv2.3.0.16.2
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % md5sum md5sum_executables_eigerDetectorServer_beb*
754a871d0608c28aa7544230ca728f86 md5sum_executables_eigerDetectorServer_beb024.out
754a871d0608c28aa7544230ca728f86 md5sum_executables_eigerDetectorServer_beb025.out
......@@ -146,61 +151,60 @@ Backup the current version, and transfer the new version:
::
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} 'mv executables/eigerDetectorServer executables/eigerDetectorServer_bkp'; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % SLS_DETECTOR_PACKAGE=${LIMA_DIR}/camera/slsdetector/slsDetectorPackage
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % eiger_servers=$(cd ${SLS_DETECTOR_PACKAGE} && find -name eigerDetectorServerv\*)
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % (cd ${SLS_DETECTOR_PACKAGE} && md5sum ${eiger_servers})
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % \
for m in ${EIGER_MODULES}; do
ssh -x root@${m} 'mv executables/eigerDetectorServer executables/eigerDetectorServer_bkp'
done
SLS_DETECTOR_PACKAGE=${LIMA_DIR}/camera/slsdetector/slsDetectorPackage
eiger_servers=$(cd ${SLS_DETECTOR_PACKAGE} && find -name eigerDetectorServerv\*)
(cd ${SLS_DETECTOR_PACKAGE} && md5sum ${eiger_servers})
echo
eiger_server=${SLS_DETECTOR_PACKAGE}/$(echo "${eiger_servers}" | head -n 1)
for m in ${EIGER_MODULES}; do
scp ${eiger_server} root@${m}:executables
done
for m in ${EIGER_MODULES}; do
ssh -x root@${m} "cp executables/$(basename ${eiger_server}) executables/eigerDetectorServer"
done
50ef053f1ddd0b49314479a558c9c330 ./slsDetectorSoftware/eigerDetectorServer/bin/eigerDetectorServerv3.1.1.16.0
50ef053f1ddd0b49314479a558c9c330 ./serverBin/eigerDetectorServerv3.1.1.16.0
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % eiger_server=${SLS_DETECTOR_PACKAGE}/$(echo "${eiger_servers}" | head -n 1)
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do \
scp ${eiger_server} root@${m}:executables; \
done
eigerDetectorServerv3.1.1.16.0 100% 286KB 286.2KB/s 00:00
eigerDetectorServerv3.1.1.16.0 100% 286KB 286.2KB/s 00:00
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} "cp executables/$(basename ${eiger_server}) executables/eigerDetectorServer"; \
done
Check that all is as expected:
::
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % cd
lisgeiger1:~ % this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
lisgeiger1:~ % mkdir -p ${this_dir} && cd ${this_dir}
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1927 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} 'ls -l executables/eigerDetectorServer*' \
> ls_executables_eigerDetectorServer_${m}.out; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1927 % cat ls_executables_eigerDetectorServer_beb024.out
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1828 % \
cd
this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
mkdir -p ${this_dir} && cd ${this_dir}
for m in ${EIGER_MODULES}; do
ssh -x root@${m} 'ls -l executables/eigerDetectorServer*' \
> ls_executables_eigerDetectorServer_${m}.out
done
cat ls_executables_eigerDetectorServer_${EIGER_MODULE_TOP}.out
echo
for m in ${EIGER_MODULES}; do
ssh -x root@${m} 'md5sum executables/eigerDetectorServer*' \
> md5sum_executables_eigerDetectorServer_${m}.out
done
cat md5sum_executables_eigerDetectorServer_${EIGER_MODULE_TOP}.out
echo
md5sum md5sum_executables_eigerDetectorServer_beb*
-rwxr-xr-x 1 root root 293085 Jan 10 02:35 executables/eigerDetectorServer
-rwxr-xr-x 1 root root 280601 Jan 1 01:15 executables/eigerDetectorServer_bkp
-rwxr-xr-x 1 root root 277442 Aug 26 2016 executables/eigerDetectorServerv2.0.5.14.3
-rwxr-xr-x 1 root root 280601 Jan 1 01:14 executables/eigerDetectorServerv2.3.0.16.2
-rwxr-xr-x 1 root root 293085 Jan 10 02:34 executables/eigerDetectorServerv3.1.1.16.0
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1927 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} 'md5sum executables/eigerDetectorServer*' \
> md5sum_executables_eigerDetectorServer_${m}.out; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1927 % cat md5sum_executables_eigerDetectorServer_beb024.out
50ef053f1ddd0b49314479a558c9c330 executables/eigerDetectorServer
4fca193db64ed991da785043e7769082 executables/eigerDetectorServer_bkp
e8a39956bbcb4aac62f109188e8ddbb2 executables/eigerDetectorServerv2.0.5.14.3
4fca193db64ed991da785043e7769082 executables/eigerDetectorServerv2.3.0.16.2
50ef053f1ddd0b49314479a558c9c330 executables/eigerDetectorServerv3.1.1.16.0
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1927 % md5sum md5sum_executables_eigerDetectorServer_beb*
4168a104e53ee71f763ed5f0e0b43859 md5sum_executables_eigerDetectorServer_beb024.out
4168a104e53ee71f763ed5f0e0b43859 md5sum_executables_eigerDetectorServer_beb025.out
......@@ -209,27 +213,29 @@ just before power-cycling:
::
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1927 % cd
lisgeiger1:~ % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} sync; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1927 % \
cd
for m in ${EIGER_MODULES}; do
ssh -x root@${m} sync
done
And finally perform a *paranoid* check after power-cycling the detector:
::
lisgeiger1:~ % this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
lisgeiger1:~ % mkdir -p ${this_dir} && cd ${this_dir}
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1934 % for m in ${EIGER_MODULES}; do \
ssh -x root@${m} 'md5sum executables/eigerDetectorServer*' \
> md5sum_executables_eigerDetectorServer_${m}.out; \
done
lisgeiger1:~/eiger/psi_eiger_500k_024_025/2018-04-01-1934 % cd ..
lisgeiger1:~/eiger/psi_eiger_500k_024_025 % for m in ${EIGER_MODULES}; do \
diff 2018-04-01-1927/md5sum_executables_eigerDetectorServer_${m}.out 2018-04-01-1934 && \
echo "${m} OK" || echo "${m} changed"; \
done
lisgeiger1:~ % \
prev_dir=${this_dir}
this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
mkdir -p ${this_dir} && cd ${this_dir}
for m in ${EIGER_MODULES}; do
ssh -x root@${m} 'md5sum executables/eigerDetectorServer*' \
> md5sum_executables_eigerDetectorServer_${m}.out
done
cd ..
for m in ${EIGER_MODULES}; do
(diff ${prev_dir}/md5sum_executables_eigerDetectorServer_${m}.out ${this_dir} &&
echo "${m} OK" || echo "${m} changed")
done
beb024 OK
beb025 OK
......@@ -319,14 +325,14 @@ as well as the kernel image:
4bf1f88d376fd9651b45c2b5b2b021eb feb_r_fx70t.bit
1f27879faa7082f9ed2bb2b24b84ea99 simpleImage.virtex440-eiger-beb-hwid1_local
lisgeiger1:~/eiger/fw_v20 % this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
lisgeiger1:~/eiger/fw_v20 % mkdir -p ${this_dir}
lisgeiger1:~/eiger/fw_v20 % eiger_flash \
-m beb_fiber.bit \
-l feb_l_fx30t.bit -r feb_r_fx30t.bit \
-k simpleImage.virtex440-eiger-beb-hwid1_local \
-o ${this_dir}/eiger_flash.log ${EIGER_MODULES}
lisgeiger1:~/eiger/fw_v20 % \
this_dir="${base_dir}/$(date +%Y-%m-%d-%H%M)"
mkdir -p ${this_dir}
eiger_flash -m beb_fiber.bit \
-l feb_l_fx30t.bit -r feb_r_fx30t.bit \
-k simpleImage.virtex440-eiger-beb-hwid1_local \
-o ${this_dir}/eiger_flash.log ${EIGER_MODULES}
Eiger flash - Sun Apr 1 20:28:31 2018
f9e6e360cfa696957cf4fd5035bed5e1 beb_fiber.bit
fe59229e8ebdb5e8d76ff315cd28cc7d feb_l_fx30t.bit
7a988f0e39930bf86d9af9dee060ef04 feb_r_fx30t.bit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment