phytronFilterIpPortLog.pl: Shorten message strings, add recoginition of asyn driver failed messages

Fri, 04 Mar 2022 10:33:54 +0100

author
Bernhard.Kuner@bessy.de
date
Fri, 04 Mar 2022 10:33:54 +0100
changeset 2442
3941981a6789
parent 2441
dc3683b9b552
child 2443
00b586de625e

phytronFilterIpPortLog.pl: Shorten message strings, add recoginition of asyn driver failed messages
Ignore-this: 951b2061c50cbcf2062a2d939e8d3ca214fdac29325401aa0e87a58679d8cc47070f7fe0db928e93

bin/phytronFilterIpPortLog.pl file | annotate | diff | comparison | revisions
--- a/bin/phytronFilterIpPortLog.pl	Thu Mar 03 14:04:19 2022 +0100
+++ b/bin/phytronFilterIpPortLog.pl	Fri Mar 04 10:33:54 2022 +0100
@@ -54,14 +54,14 @@
         "SFI_Err",               # 4000
         "ENDAT_Err",             # 8000 ____ 4
         "RUN",                   # 10000
-        "inCalmDownTimeP13/16",  # 20000
+        "calmDownTm",  # 20000
         "inBoost",               # 40000
         "DONE",                  # 80000 ___ 5
         "APS_ready!",            # 100000
-        "PositionMode",          # 200000
+        "PosMode",          # 200000
         "FreeRunMode",           # 400000
         "MultiFRun",             # 800000 __ 6
-        "SyncEnable");           # 1000000 _ 
+        "SyncEna");           # 1000000 _ 
 
     Getopt::Long::config(qw(no_ignore_case));
     die unless GetOptions("h","f=s","i=s");
@@ -188,6 +188,12 @@
         my $value=$3;
         push @$rResult, "$time\t$pv\t$value\n";
     }
+    # is asyn driver read/write failed message
+    elsif($line =~ /^.*?\s(.*?)\s(.*reason \d+)/) {
+        my $time=$1;
+        my $value=$2;
+        push @$rResult, "$time\t$value\n";
+    }
     # no camonitor data line
     else {
         return $line;

mercurial