mtr

mtr 

mtr (My Traceroute) is a network diagnostic tool that combines the functionality of the ping and traceroute programs. It is useful for diagnosing network issues by displaying the route packets take to a specified host along with the round-trip time for each hop.

Common mtr Options

  • --report: Generates a one-time report after completing the trace.
  • --report-csv: Outputs the report in CSV format for easier analysis.
  • --raw: Displays raw output without formatting, useful for scripting.

Examples of mtr Commands

  • Trace the route to example.com:
    > mtr example.com
  • Generate a report for the trace to example.com:
    > mtr --report example.com
  • Output the report in CSV format:
    > mtr --report-csv example.com
  • Trace the route to an IP address with raw output:
    > mtr --raw 192.0.2.1