@@ -0,0 +1,734 @@
+from rmsdump import *%0D%0A%0D%0Adef read_log_entry (log_entry):%0D%0A  return tuple(log_entry.val%5Bi%5D.val for i in range(0, 3))%0D%0A%0D%0Adef print_log (log_atom):%0D%0A  print '%25s%3E %25s: %25s' %25 (log_atom%5B0%5D.strftime('%25Y-%25m-%25d %25H:%25M:%25S'), log_atom%5B1%5D, log_atom%5B2%5D)%0D%0A%0D%0Aif __name__ == %22__main__%22:%0D%0A  data = sys.stdin.read()%0D%0A  stream = DataStream(data)%0D%0A  (rmses, num_rms, err) = extract_rms(stream)%0D%0A%0D%0A  log_rmses = %5Brms for rms in rmses if rms%5B'name'%5D.startswith('LOG_') and rms%5B'name'%5D != 'LOG_IX'%5D%0D%0A  log_entries = %5B%5D%0D%0A  for log_rms in log_rmses:%0D%0A    log_entries.extend(%5Brec%5B'content'%5D%5B1%5D for rec in log_rms%5B'records'%5D%5D)%0D%0A%0D%0A  log_digest = %5Bread_log_entry(le) for le in log_entries%5D%0D%0A  for la in sorted(log_digest, key=lambda la: la%5B0%5D):%0D%0A    print_log(la)%0D%0A

add script to read device logs from rms dump