2
0
Fork 0
mirror of https://github.com/garabik/grc.git synced 2024-11-11 14:40:49 +01:00
bash-color-grc/colourfiles/conf.traceroute
Raizo62 6006304f28 conf.traceroute : - replace \b by \s (see the example below)
- good regular expression for warning messages (letters from : https://linux.die.net/man/8/traceroute)
	- remove the example with the command mail (which report with traceroute ?)

traceroute to 30.0.0.4 (30.0.0.4), 30 hops max, 60 byte packets
 1  10.0.0.2 (10.0.0.2)  0.648 ms  0.479 ms  0.426 ms
 2  23.0.0.3 (23.0.0.3)  1.983 ms  2.402 ms  2.509 ms
 3  23.0.0.3 (23.0.0.3)  3058.805 ms !H  3059.171 ms !H  3058.985 ms !H
2020-03-08 10:51:19 +01:00

40 lines
533 B
Text

# hostname
regexp=\s\w+[\w\-\.]+\w+
colours=bold white
count=once
-
# ip number
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=magenta
-
# ipv6 number
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=magenta
-
# time
regexp=\d+\.?\d*(?=\sms)
colours=green
-
# ms
regexp=\bms\b
colours=yellow
-
# DUP
regexp=\bDUP
colours=red
-
# !S, !A, !H (host unreachable), etc.
regexp=\s\!([HNPSFXVC]|\d+)
colours=red
-
# ttl=...!
regexp=ttl=\d+\!
colours=cyan
-
# *
regexp=\*
colours=red
-
# parenthesis
regexp=\(|\)
colours=yellow