use POSIX qw(strftime);
use FileHandle;
use lib "./code";
-use lib "../tools";
+use lib "./tools";
use HADES::TrbNet;
use Time::HiRes qw(usleep);
use Dmon;
my %config = Dmon::StartUp();
-my $ping = Net::Ping->new();
+my $ping = Net::Ping->new("external");
while(1) {
my $found = 0;
my $notavail = 0;
my $total = scalar @{$config{TrbIP}};
foreach my $p (@{$config{TrbIP}}) {
my $r = $ping->ping($p,1);
+# print $p."\t$r\n";
$found += $r || 0;
$notavail += 1-($r||0);
$list .= " $p" unless $r;
Dmon::WriteQALog($config{flog},"ping",30,$status,$title,$value,$longtext,"");
sleep(15);
- }
\ No newline at end of file
+ }
#Addresses of all TDCs. Either single or broadcast addresses
TdcAddress => [0xfe4c,0xfe4e,0x7005],
-TrbIP => ["192.168.0.0",
- "192.168.0.1",
- "192.168.0.2",
- "192.168.0.3",
- "192.168.0.4",
- "192.168.0.5",
- "192.168.0.6",
- "192.168.0.7",
- "192.168.0.8",
- "192.168.0.9",
- "192.168.0.10",
- "192.168.0.11",
- "192.168.0.12",
- "192.168.0.13",
- "192.168.0.14",
- "192.168.0.15",
- "192.168.0.16",
- "192.168.0.17"],
+TrbIP => ["192.168.0.29",
+ "192.168.0.47",
+ "192.168.0.56",
+ "192.168.0.57",
+ "192.168.0.59",
+ "192.168.0.72",
+ "192.168.0.73",
+ "192.168.0.74",
+ "192.168.0.78",
+ "192.168.0.83",
+ "192.168.0.84",
+ "192.168.0.89",
+ "192.168.0.97",
+ "192.168.0.99",
+ "192.168.0.101",
+ "192.168.0.102",
+ "192.168.0.104",
+ "192.168.0.105"],
#User directory
-UserDirectory => '/home/hadaq/trbsoft/daqtools/users/cern_cbmrich/';
+UserDirectory => '/home/hadaq/trbsoft/daqtools/users/cern_cbmrich/'