MTR - Formated Command: Difference between revisions

From IT-Arts.net
No edit summary
m Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' "
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Wiki]]
[[Category:Wiki]]
'''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]'''''


== Command ==
== Command ==
Line 5: Line 8:
  <nowiki>
  <nowiki>
mtr -o "SDRL  NBAW  VG  JMXI" --mpls <TARGET></nowiki>
mtr -o "SDRL  NBAW  VG  JMXI" --mpls <TARGET></nowiki>
The `-o` option specifies the output format for MTR. The letters correspond to different fields in the report, where each letter represents a specific column in the MTR output.


Where :
Where :
* `S`: Shows the sequence number of each hop.
* `D`: Displays the destination IP address.
* `R`: Displays the round-trip time (RTT) in milliseconds for each hop.
* `L`: Displays the loss percentage for each hop.
* `N`: Displays the number of packets received at each hop.
* `B`: Shows the address of the router at each hop.
* `A`: Displays the hostname or IP address of the destination.
* `W`: Displays the average round-trip time.
* `V`: Displays the variance of round-trip time.
* `G`: Displays the "good" packets (packets that returned successfully).
* `J`: Displays jitter values for round-trip time.
* `M`: Displays the maximum round-trip time.
* `X`: Displays the minimum round-trip time.
* `I`: Displays the IP address for each hop.


- `-o "SDRL  NBAW  VG  JMXI"`: This option specifies the output format for MTR. The letters correspond to different fields in the report, where each letter represents a specific column in the MTR output.
The letters are arranged in the order you want the columns to appear in the MTR output. In this case, the columns will show:
 
* Sequence number (S)
  - `S`: Shows the sequence number of each hop.
* Destination address (D)
  - `D`: Displays the destination IP address.
* Round-trip time (R)
  - `R`: Displays the round-trip time (RTT) in milliseconds for each hop.
* Loss percentage (L)
  - `L`: Displays the loss percentage for each hop.
* Number of packets received (N)
  - `N`: Displays the number of packets received at each hop.
* Address of the router (B)
  - `B`: Shows the address of the router at each hop.
* Average RTT (W)
  - `A`: Displays the hostname or IP address of the destination.
* Variance (V)
  - `W`: Displays the average round-trip time.
* Jitter (G)
  - `V`: Displays the variance of round-trip time.
* Maximum RTT (M)
  - `G`: Displays the "good" packets (packets that returned successfully).
* Minimum RTT (X)
  - `J`: Displays jitter values for round-trip time.
* IP address (I)
  - `M`: Displays the maximum round-trip time.
  - `X`: Displays the minimum round-trip time.
  - `I`: Displays the IP address for each hop.


  The letters are arranged in the order you want the columns to appear in the MTR output. In this case, the columns will show:
`--mpls`: This option enables MPLS (Multiprotocol Label Switching) tracing, which displays additional information related to MPLS labels used in the routing path. This is useful in networks that use MPLS for routing and switching, as it can help identify label-switched paths.
  - Sequence number (S)
  - Destination address (D)
  - Round-trip time (R)
  - Loss percentage (L)
  - Number of packets received (N)
  - Address of the router (B)
  - Average RTT (W)
  - Variance (V)
  - Jitter (G)
  - Maximum RTT (M)
  - Minimum RTT (X)
  - IP address (I)
 
- `--mpls`: This option enables MPLS (Multiprotocol Label Switching) tracing, which displays additional information related to MPLS labels used in the routing path. This is useful in networks that use MPLS for routing and switching, as it can help identify label-switched paths.


== Script Example ==
== Script Example ==
Line 50: Line 52:


mtr -o "SDRL  NBAW  VG  JMXI" --mpls $1</nowiki>
mtr -o "SDRL  NBAW  VG  JMXI" --mpls $1</nowiki>
----

Latest revision as of 07:11, 17 January 2026


Return to Wiki Index


Command

mtr -o "SDRL  NBAW  VG  JMXI" --mpls <TARGET>

The `-o` option specifies the output format for MTR. The letters correspond to different fields in the report, where each letter represents a specific column in the MTR output.

Where :

  • `S`: Shows the sequence number of each hop.
  • `D`: Displays the destination IP address.
  • `R`: Displays the round-trip time (RTT) in milliseconds for each hop.
  • `L`: Displays the loss percentage for each hop.
  • `N`: Displays the number of packets received at each hop.
  • `B`: Shows the address of the router at each hop.
  • `A`: Displays the hostname or IP address of the destination.
  • `W`: Displays the average round-trip time.
  • `V`: Displays the variance of round-trip time.
  • `G`: Displays the "good" packets (packets that returned successfully).
  • `J`: Displays jitter values for round-trip time.
  • `M`: Displays the maximum round-trip time.
  • `X`: Displays the minimum round-trip time.
  • `I`: Displays the IP address for each hop.

The letters are arranged in the order you want the columns to appear in the MTR output. In this case, the columns will show:

  • Sequence number (S)
  • Destination address (D)
  • Round-trip time (R)
  • Loss percentage (L)
  • Number of packets received (N)
  • Address of the router (B)
  • Average RTT (W)
  • Variance (V)
  • Jitter (G)
  • Maximum RTT (M)
  • Minimum RTT (X)
  • IP address (I)

`--mpls`: This option enables MPLS (Multiprotocol Label Switching) tracing, which displays additional information related to MPLS labels used in the routing path. This is useful in networks that use MPLS for routing and switching, as it can help identify label-switched paths.

Script Example

#!/bin/bash
#
# mtr.sh script
# USAGE : root#~: ./mtr.sh <TARGET> 

mtr -o "SDRL  NBAW  VG  JMXI" --mpls $1