From 1e03635dd115e6c02eeb3e98f0a5e8e93a1f71ed Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 3 Feb 2022 23:46:49 +0100 Subject: [PATCH] update control gui --- control/gui/expert/Reset_Beamabort_Error | 11 ++++++++++- control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs | 18 ++++++++++++++++++ .../gui/reboot/{old => }/50_Reboot_RICH_Hubs | 0 control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs | 18 ++++++++++++++++++ control/gui/reboot/99_Fix_Missing_IP | 17 +++++++++++++++++ control/gui/settings/Thresholds_ECAL | 2 ++ control/gui/settings/Thresholds_HODO | 13 +++++++++++++ 7 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs rename control/gui/reboot/{old => }/50_Reboot_RICH_Hubs (100%) create mode 100644 control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs create mode 100755 control/gui/reboot/99_Fix_Missing_IP create mode 100755 control/gui/settings/Thresholds_HODO diff --git a/control/gui/expert/Reset_Beamabort_Error b/control/gui/expert/Reset_Beamabort_Error index d0f0ddd..35e2e64 100755 --- a/control/gui/expert/Reset_Beamabort_Error +++ b/control/gui/expert/Reset_Beamabort_Error @@ -1,4 +1,13 @@ #!/bin/bash -ssh hadeswrp02 /home/hadaq/bin/reset_beamabort_error.sh +xterm -geometry 80x24 -bg orange -fg black -e bash -c ' + ssh hadaq@hadesp33 " + echo Removing Error Flag + ssh hadeswrp02 /home/hadaq/bin/reset_beamabort_error.sh + echo Done + sleep 5 + " +' + + diff --git a/control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs b/control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs new file mode 100644 index 0000000..e7a53c1 --- /dev/null +++ b/control/gui/reboot/50_Reboot_FD_TOF_Ho_Hubs @@ -0,0 +1,18 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot all HUBs in the system") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " The Hubs are going to be rebooted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + trbcmd reload 0xfe40 + + sleep 10 + " +' + + diff --git a/control/gui/reboot/old/50_Reboot_RICH_Hubs b/control/gui/reboot/50_Reboot_RICH_Hubs similarity index 100% rename from control/gui/reboot/old/50_Reboot_RICH_Hubs rename to control/gui/reboot/50_Reboot_RICH_Hubs diff --git a/control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs b/control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs new file mode 100644 index 0000000..3ca54a7 --- /dev/null +++ b/control/gui/reboot/50_Reboot_Ri_RPC_EC_iT_Hubs @@ -0,0 +1,18 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot all HUBs in the system") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " The Hubs are going to be rebooted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + trbcmd reload 0xfe61 + + sleep 10 + " +' + + diff --git a/control/gui/reboot/99_Fix_Missing_IP b/control/gui/reboot/99_Fix_Missing_IP new file mode 100755 index 0000000..31712dd --- /dev/null +++ b/control/gui/reboot/99_Fix_Missing_IP @@ -0,0 +1,17 @@ +#!/bin/bash + +export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot all HUBs that miss their IP") +if [ $myvar == "256" ]; then exit; fi + +notifyall.sh "DAQ" " The Hubs without Ethernet are going to be rebooted." "STARTUP" & + + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + /home/hadaq/trbsoft/daq/nettools/missingipfix.pl + sleep 10 + " +' + + diff --git a/control/gui/settings/Thresholds_ECAL b/control/gui/settings/Thresholds_ECAL index dc182f2..99893ce 100755 --- a/control/gui/settings/Thresholds_ECAL +++ b/control/gui/settings/Thresholds_ECAL @@ -10,6 +10,8 @@ xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' ssh hadesp33 \"pkill -f ./hmon_ecal_recover_dead_slow_channels.pl\" cd /home/hadaq/trbsoft/hadesdaq/ecal/ ./ecal_set_thresholds.pl + #echo \"set thresholds for sec2 and sec4\" + #./ecal_set_thresholds_sec2_sec4.pl echo \"Done\" tmux new-session -d -s \"ecal_recover_dead_channels\" \"cd ~/trbsoft/hadesdaq/hmon/; export PERL5LIB=.; ./hmon_ecal_recover_dead_slow_channels.pl\" sleep 10 diff --git a/control/gui/settings/Thresholds_HODO b/control/gui/settings/Thresholds_HODO new file mode 100755 index 0000000..80c687b --- /dev/null +++ b/control/gui/settings/Thresholds_HODO @@ -0,0 +1,13 @@ +#!/bin/bash + +xterm -geometry 80x24 -bg orange -fg black -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + export DAQOPSERVER=hadesp31 + echo \" Setting Thresholds...\" + cd /home/hadaq/trbsoft/hadesdaq/hodo/thresholds/ + ./set_threshold_hodo.sh + echo \"Done\" + sleep 10 +" +' + -- 2.43.0