#!/bin/bash
-cd /home/hadaq/trbsoft/hadesdaq/control/gui/
-/home/hadaq/trbsoft/hadesdaq/control/gui/call_programs2.pl -geometry -0-0 &
+#cd /home/hadaq/trbsoft/hadesdaq/control/gui/
+/home/hadaq/trbsoft/hadesdaq/control/gui/call_programs_wrapper.sh -geometry -0-0 &
#cd /home/hadaq/trbsoft/daq/control/gui/
#/home/hadaq/trbsoft/daq/control/gui/call_programs.pl -geometry -0-0
-ssh -X hadesdaq02 "cd /home/hadaq/trbsoft/hadesdaq/control/gui/
-/home/hadaq/trbsoft/hadesdaq/control/gui/call_programs2.pl -geometry -0-0" &
+ssh -X lxhadeb06 "cd /home/hadaq/trbsoft/hadesdaq/control/gui/;/home/hadaq/trbsoft/hadesdaq/control/gui/call_programs2.pl -geometry -0-0"
#cd /home/hadaq/trbsoft/daq/control/gui/
#/home/hadaq/trbsoft/daq/control/gui/call_programs.pl -geometry -0-0
#!/bin/bash
-export myvar=$(doyoureallywant.pl "to restart the DAQ")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "restart the DAQ")
if [ $myvar == "256" ]; then exit; fi
#notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
#!/bin/bash
-export myvar=$(doyoureallywant.pl "to reprogramm the FPGAs")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl " reprogramm the FPGAs")
if [ $myvar == "256" ]; then exit; fi
#!/bin/bash
-export myvar=$(doyoureallywant.pl "to reboot the MDC-OEPs")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl " reboot the MDC-OEPs")
if [ $myvar == "256" ]; then exit; fi
# echo ping
# /home/hadaq/bin/command_client.pl -e etraxp023 -c '
-export myvar=$(doyoureallywant.pl "to reboot the MDC-Hubs")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl " reboot the MDC-Hubs")
if [ $myvar == "256" ]; then exit; fi
trbcmd reset
#!/bin/bash
-notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+#/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
./start_eb_gbe.sh
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been restarted with last prefix" "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted with last prefix" "EB" &
./start_eb_gbe.pl -e stop -n 1-16
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been stopped" "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been stopped" "EB" &
./start_eb_gbe.pl -e restart -n 1-16 -d on -p be
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing beam files." "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing beam files." "EB" &
./start_eb_gbe.pl -e restart -n 1-16 -d off -p '--'
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. NO FILES are being written" "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. NO FILES are being written" "EB" &
./start_eb_gbe.pl -e restart -n 1-16 -d on -p te
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing test files" "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing test files" "EB" &
./start_eb_gbe.pl -e restart -n 1-16 -d on -p co
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing Cosmics Files" "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing Cosmics Files" "EB" &
./start_eb_gbe.pl -e restart -n 1-16 -d on -p ri
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing RICH Files" "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing RICH Files" "EB" &
./start_eb_gbe.pl -e restart -n 1-16 -d on -p st
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing START Files" "EB"&
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing START Files" "EB"&
./start_eb_gbe.pl -e restart -n 1-16 -d on -p md
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing MDC Files" "EB"&
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing MDC Files" "EB"&
./start_eb_gbe.pl -e restart -n 1-16 -d on -p pt
'
"
-notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing test files" "EB" &
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing PionTracker pt files" "EB" &
#notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
#xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
-# ssh -X hadaq@hadesdaq02 "
+# ssh -X hadaq@lxhadeb06 "
source /home/hadaq/.bashrc
export DAQOPSERVER=hadesp31
cd /home/hadaq/trbsoft/hadesdaq/control/ctsmon
#!/bin/bash
-ssh -X -l scs hadesdaq02 '. /home/scs/.profile; medm -x hades.adl'
+#ssh -X -l scs lxhadeb06 '. /home/scs/.profile; medm -x hades.adl'
+export EPICS_CA_ADDR_LIST="192.168.103.255 hadsc1 e7had2"; export EPICS_CA_AUTO_ADDR_LIST=NO; /home/epics/EPICS/EPICS-3.14.12.4/extensions/bin/linux-x86_64/medm -x /home/scs/operator/hades.adl &
#!/bin/bash
-ssh -X scs@hadesdaq02 'export EPICS_CA_ADDR_LIST=192.168.103.255; export EPICS_CA_AUTO_ADDR_LIST=NO; /home/scs/epics/extensions/bin/linux-x86/medm -x -macro "SUBSYSNUM=24" ~/operator/ebmainctrl.adl'
+#ssh -X scs@lxhadeb06 'export EPICS_CA_ADDR_LIST=192.168.103.255; export EPICS_CA_AUTO_ADDR_LIST=NO; /home/epics/EPICS/EPICS-3.14.12.4/extensions/bin/linux-x86_64/medm -x -macro "SUBSYSNUM=24" ~/operator/ebmainctrl.adl'
+export EPICS_CA_ADDR_LIST=192.168.103.255; export EPICS_CA_AUTO_ADDR_LIST=NO; /home/epics/EPICS/EPICS-3.14.12.4/extensions/bin/linux-x86_64/medm -x -macro "SUBSYSNUM=24" /home/scs/operator/ebmainctrl.adl &
#!/bin/bash
# JAM moved actual setting of interrupt affinities to scripts on target machines
-#ssh root@lxhadeb01 '/root/bin/set_eth_affinity.sh'
ssh root@lxhadeb02 '/root/bin/set_eth_affinity.sh'
ssh root@lxhadeb03 '/root/bin/set_eth_affinity.sh'
ssh root@lxhadeb04 '/root/bin/set_eth_affinity.sh'
-ssh root@lxhadeb05 '/root/bin/set_eth_affinity_lxhadeb05.sh'
+ssh root@lxhadeb05 '/usr/bin/perl -w /root/bin/set_eth_affinity_lxhadeb05.pl'
+#ssh root@lxhadeb05 '/root/bin/set_eth_affinity_lxhadeb05.sh'
--- /dev/null
+#!/bin/bash
+#ssh root@lxhadeb01 'echo 000000 > /proc/irq/1272/smp_affinity'
+ssh root@lxhadeb02 'echo c > /proc/irq/1272/smp_affinity'
+ssh root@lxhadeb03 'echo c > /proc/irq/1272/smp_affinity'
+ssh root@lxhadeb04 'echo c > /proc/irq/1272/smp_affinity'
+#ssh root@lxhadeb05 'echo 0c > /proc/irq/31/smp_affinity;echo 03 > /proc/irq/32/smp_affinity;echo 03 > /proc/irq/33/smp_affinity;'
+ssh root@lxhadeb05 'echo 0c > /proc/irq/77/smp_affinity;echo 03 > /proc/irq/78/smp_affinity;echo 03 > /proc/irq/79/smp_affinity;'
+# todo- will go up to irq/100 JAM
+#ssh root@lxhadeb05 'echo 030 > /proc/irq/46/smp_affinity;echo 0c0 > /proc/irq/47/smp_affinity;echo 300 > /proc/irq/48/smp_affinity;echo c00 > /proc/irq/49/smp_affinity;'
+
#ssh -X hadaq@hadesdaq01 " kdialog -display :50 --title '$1' --passivepopup '$3: $2' 12 " &
ssh -X hadaq@hadesdaq02 " kdialog -display :0 --title '$1' --passivepopup '$3: $2' 12 " 2>/dev/null 1>/dev/null&
ssh -X hadaq@hades30 " kdialog -display :0 --title '$1' --passivepopup '$3: $2' 12 " 2>/dev/null 1>/dev/null&
+ssh -X hadaq@hades33 " kdialog -display :0 --title '$1' --passivepopup '$3: $2' 12 " 2>/dev/null 1>/dev/null&
ssh -X hadaq@lxhadesdaq " kdialog -display :1 --title '$1' --passivepopup '$3: $2' 12 " 2>/dev/null 1>/dev/null &
#ssh -X hadaq@lxhadesdaq " logger -p local1.info -t DAQ '$3 $2'" &
logger -p local1.info -t DAQ "$3 $2"