--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to powercycle missing MDC I/II boards?")
+if [ $myvar == "256" ]; then exit; fi
+
+
+xterm -e bash --login -c '
+ ssh hadaq@hades33 "
+ source /home/hadaq/.bash_profile
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
+ echo \"Starting a MDC I/II power cycle for missing boards...\"
+ cd /home/hadaq/trbsoft/mdc_settings/scripts
+ ./powercycle_missing.pl
+ echo Done
+ sleep 1
+ timeout 1s trbcmd clearbit 0x0003 0xa0c0 0x400
+
+ sleep 5
+ "
+'
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
ssh hadaq@lxhadesdaqp "
- echo \"Restarting Eventbuilder 1 - 16\"
stoptrigger.sh
+ echo \"Restarting Eventbuilder 1 - 16\"
cd ~/trbsoft/hadesdaq/evtbuild/
+ ./start_eb_gbe.sh
sleep 12 && starttrigger.sh &
- ./start_eb_gbe.sh
"
'
$HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted with last prefix" "EB" &
+#stoptrigger.sh
+#sleep 12 && starttrigger.sh &
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to powercycle the RICH LV?")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e bash --login -c '
+ ssh hadaq@lxhadesdaqp "
+ source /home/hadaq/.bash_profile
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
+ echo \"Starting a RICH power cycle...\"
+ cd /home/hadaq/trbsoft/hadesdaq/utils;
+ PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./Powercycle_MDCnew.pl;
+ echo Done
+
+ sleep 5
+ "
+'
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo Mute DAQi
ssh hadaq@hadesp33 \"killall -USR1 speakdaemon.pl\"
-# echo Switch off beam abort
-# ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
-# sleep .1
+ echo Switch off beam abort
+ ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+ sleep .1
cd ~/trbsoft/trbnettools/binlocal
- echo \"This does not include MDC, Extra Boards, Hubs, CTS!\"
+ echo \"This does not include old MDC, Extra Boards, Hubs, CTS!\"
done
+echo MDC new
+for TRB3_SERVER in trb3sc546 trb3sc548 trb3sc554 trb3sc555 trb3sc563 trb3sc565 ;
+ do
+ ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
+ TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ sleep .3
+ done
+
+
echo Start
for TRB3_SERVER in trb3sc438;
done
- echo \"Done - Check for Error messages above, then do a DAQ restart!\"
+ echo \"Done - Check for Error messages above, then do a DAQ restart and enable beam abort again!\"
sleep 10
"
'
--- /dev/null
+#!/bin/bash
+
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot MDC 1/2 boards in the system") #"WARNING: Turn off the beam request in the back of the counting house before!")
+if [ $myvar == "256" ]; then exit; fi
+
+notifyall.sh "DAQ" "<I> The new MDC boards 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
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
+# echo Switch off beam abort
+# ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+# sleep .1
+ cd ~/trbsoft/trbnettools/binlocal
+
+for TRB3_SERVER in trb3sc548 trb3sc546 trb3sc565 trb3sc554 trb3sc563 trb3sc555;
+ do
+ ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xffff
+ sleep .6
+ done
+
+
+ echo \"Done - Check for Error messages above, then do a DAQ restart!\"
+
+ sleep 10
+ "
+'
+
+
source /home/hadaq/.bash_profile
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
-# echo Switch off beam abort
-# ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
-# sleep .1
+ echo Switch off beam abort
+ ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+ sleep .1
cd ~/trbsoft/trbnettools/binlocal
for TRB3_SERVER in trb3sc317 trb3sc319 trb3sc320 trb3sc315 trb3sc318 trb3sc316;
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
cd ~/trbsoft/trbnettools/binlocal
-# echo Switch off beam abort
-# ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
-# sleep .1
+ echo Switch off beam abort
+ ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+ sleep .1
# echo \"Trying reload via TrbNet\"
# timeout .2s trbcmd reload 0xfe47
--- /dev/null
+<h3>Network Connections of DAQ hubs</h3>
+Event data is sent from the DAQ to eventbuilders over normal Ethernet.
+This checks if all the DAQ boards do have a working link.
+
+If a link is not working, data from this subsystem will not reach the Eventbuilders
+preventing them from writing files.
+
+<h4>Error Handling</h4>
+
+<li>Do a "fix missing IP" followed by a DAQ restart<br>
+<li>If this doesn't help and some endpoints are missing (with an address in the 0x8000 range), a power cycle of that system might be needed.
+</ul>
+
--- /dev/null
+#!/usr/bin/perl -w
+
+use strict;
+use warnings;
+use lib "../nettools/";
+use Perl2Epics;
+use Data::Dumper;
+
+print "Connect..\n";
+my $s = "HAD:RICH:PS:poweron";
+my $ret = Perl2Epics::Connect("RICHLV_PowerOn",$s);
+if(!$ret) {
+ print "Could not connect to ".$s."\nEXITING\n";
+ sleep 5;
+ exit;
+}
+
+$s = "HAD:RICH:PS:poweroff";
+$ret = Perl2Epics::Connect("RICHLV_PowerOff",$s);
+if(!$ret) {
+ print "Could not connect to ".$s."\nEXITING\n";
+ sleep 5;
+ exit;
+}
+print "Connected\n";
+
+Perl2Epics::Put("RICHLV_PowerOff",1);
+Perl2Epics::GetAll();
+
+sleep 10;
+Perl2Epics::Put("RICHLV_PowerOn",1);
+Perl2Epics::Update(0.2);
+sleep 10;