From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/traceroute.xml.in | 227 ++++++++++++++++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 op-mode-definitions/traceroute.xml.in (limited to 'op-mode-definitions/traceroute.xml.in') diff --git a/op-mode-definitions/traceroute.xml.in b/op-mode-definitions/traceroute.xml.in new file mode 100644 index 000000000..1b619ed43 --- /dev/null +++ b/op-mode-definitions/traceroute.xml.in @@ -0,0 +1,227 @@ + + + + + Track network path to node + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + /usr/bin/traceroute "$2" + + + + Track network path to node + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + + + + Explicitly use IPv4 when tracing the path + + <hostname> <x.x.x.x> + + + /usr/bin/traceroute -4 "$3" + + + + Route tracing and port detection using TCP + + sudo /usr/bin/tcptraceroute "$3" + + + + TCP port to connect to for path tracing + + 0-65535 + + + sudo /usr/bin/tcptraceroute "$3" $6 + + + + + + + + Explicitly use IPv6 when tracing the path + + <hostname> <h:h:h:h:h:h:h:h> + + + /usr/bin/traceroute -6 "$3" + + + + Use TCP/IPv6 packets to perform a traceroute + + sudo /usr/bin/tcptraceroute6 "$3" + + + + TCP port to connect to for path tracing + + 0-65535 + + + sudo /usr/bin/tcptraceroute6 "$3" $6 + + + + + + + + Track network path to specified node via given VRF + + vrf name + + + + + + + Track network path to specified node via given VRF + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute "$4" + + + + Explicitly use IPv4 when tracing the path via given VRF + + <hostname> <x.x.x.x> + + + sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -4 "$5" + + + + Route tracing and port detection using TCP + + sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" + + + + TCP port to connect to for path tracing + + 0-65535 + + + sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute "$5" $8 + + + + + + + + Explicitly use IPv6 when tracing the path via given VRF + + <hostname> <h:h:h:h:h:h:h:h> + + + sudo /usr/sbin/ip vrf exec "$3" /usr/bin/traceroute -6 "$5" + + + + Use TCP/IPv6 packets to perform a traceroute + + sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" + + + + TCP port to connect to for path tracing + + 0-65535 + + + sudo /usr/sbin/ip vrf exec "$3" /usr/bin/tcptraceroute6 "$5" $8 + + + + + + + + + + + + + + Monitor path to destination in realtime + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + /usr/bin/mtr "$3" + + + + + + IPv4 fully qualified domain name (FQDN) + + <fqdn> + + + /usr/bin/mtr -4 "$4" + + + + IPv6 fully qualified domain name (FQDN) + + <fqdn> + + + /usr/bin/mtr -6 "$4" + + + + Monitor path to destination in realtime via given VRF + + vrf name + + + + + + IPv4 fully qualified domain name (FQDN) + + <fqdn> + + + sudo /usr/sbin/ip vrf exec "$4" /usr/bin/mtr -4 "$6" + + + + IPv6 fully qualified domain name (FQDN) + + <fqdn> + + + sudo /usr/sbin/ip vrf exec "$4" /usr/bin/mtr -6 "$6" + + + + Track network path to specified node via given VRF + + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> + + + sudo /usr/sbin/ip vrf exec "$4" /usr/bin/mtr "$5" + + + + + + + + -- cgit v1.2.3