|
|
|
@ -84,7 +84,7 @@ def process(data):
|
|
|
|
|
for line in output:
|
|
|
|
|
string_split = line.split(" ")
|
|
|
|
|
string_split = [i for i in string_split if i]
|
|
|
|
|
fprint("Input: " + str(string_split))
|
|
|
|
|
#fprint("Input: " + str(string_split))
|
|
|
|
|
|
|
|
|
|
if string_split[1].find("Multipath") >= 0:
|
|
|
|
|
break
|
|
|
|
@ -92,16 +92,16 @@ def process(data):
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
if len(string_split) == 10: # no connection status
|
|
|
|
|
fprint(string_split)
|
|
|
|
|
#fprint(string_split)
|
|
|
|
|
string_split.append(string_split[-1])
|
|
|
|
|
string_split[-7] = "UNKNOWN"
|
|
|
|
|
string_split[-4] = string_split[-5]
|
|
|
|
|
fprint(string_split)
|
|
|
|
|
#fprint(string_split)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
output2.append(["", string_split[0], string_split[3], string_split[4], string_split[5], string_split[8]])
|
|
|
|
|
fprint("FINAL CSV: " + str(output2))
|
|
|
|
|
output2.append(["Unknown", string_split[0], string_split[3], string_split[4], string_split[5], string_split[8]])
|
|
|
|
|
#fprint("FINAL CSV: " + str(output2))
|
|
|
|
|
|
|
|
|
|
with open(find_data_file(util.datafile), "w", newline="") as f:
|
|
|
|
|
writer = csv.writer(f)
|
|
|
|
|