XMTR(8)
๐ฆ xmtr(8) ๐ฆ
okay bestie, welcome to the System Administration manual page for xmtr โ she's a network diagnostic tool and she's literally the moment ๐
no cap.
๐ธ NAME ๐ธ
xmtr โ a network diagnostic tool
๐ SYNOPSIS ๐
xmtr [-4|-6] [-F FILENAME] [--report] [--report-wide] [--xml] [--gtk]
[--curses] [--displaymode MODE] [--raw] [--csv] [--json] [--split]
[--no-dns] [--show-ips] [-o FIELDS] [-y IPINFO] [--aslookup]
[-i INTERVAL] [-c COUNT] [-s PACKETSIZE] [-B BITPATTERN]
[-G GRACEPERIOD] [-Q TOS] [--mpls] [-I NAME] [-a ADDRESS] [-f FIRST-TTL]
[-m MAX-TTL] [-U MAX-UNKNOWN] [--udp] [--tcp] [--sctp] [-P PORT]
[-L LOCALPORT] [-Z TIMEOUT] [-M MARK] HOSTNAME
๐ DESCRIPTION ๐
xmtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool. fr fr, it's giving "two icons, one app" โจ
As xmtr starts, it investigates the network connection between the host xmtr runs on and HOSTNAME by sending packets with purposely low TTLs. It continues to send packets with low TTL, noting the response time of the intervening routers. This allows xmtr to print the response percentage and response times of the internet route to HOSTNAME. A sudden increase in packet loss or response time is often an indication of a bad (or simply overloaded) link. ๐ญ
The results are usually reported as round-trip-response times in milliseconds and the percentage of packet loss. periodt. ๐
๐ OPTIONS ๐
-h,--helpโ Print the summary of command line argument options.-v,--versionโ Print the installed version ofxmtr.-4โ Use IPv4 only.-6โ Use IPv6 only. (IPV4may be used for DNS lookups.)-F FILENAME,--filename FILENAMEโ Reads the list of hostnames from the specified file.-r,--reportโ This option putsxmtrinto report mode. When in this mode,xmtrwill run for the number of cycles specified by the-coption, and then print statistics and exit.
๐ This mode is useful for generating statistics about network quality. Note that each running instance ofxmtrgenerates a significant amount of network traffic. Usingxmtrto measure the quality of your network may result in decreased network performance.
-w,--report-wideโ This option putsxmtrinto wide report mode. When in this mode,xmtrwill not cut hostnames in the report.-x,--xmlโ Use this option to tellxmtrto use the xml output format. This format is better suited for automated processing of the measurement results.-t,--cursesโ Use this option to forcexmtrto use the curses based terminal interface (if available). In case the list of hops exceeds the height of your terminal, you can use the + and - keys to scroll up and down half a page.
Ctrl+L clears spurious error messages that may overwrite other parts of the display.
--displaymode MODEโ Use this option to select the initial display mode:0(default) selects statistics,1selects the stripchart without latency information, and2selects the stripchart with latency information.-g,--gtkโ Use this option to forcexmtrto use the GTK+ based X11 window interface (if available). GTK+ must have been available on the system whenxmtrwas built for this to work. See the GTK+ web page at http://www.gtk.org/ for more information about GTK+.-l,--rawโ Use the raw output format. This format is better suited for archival of the measurement results. It could be parsed to be presented into any of the other display methods.
Example of the raw output format:
h 0 10.1.1.1
p 0 339
h 1 46.149.16.4
p 1 530
h 2 172.31.1.16
p 2 531
h 3 82.221.168.236
p 3 1523
h 5 195.130.211.8
p 5 1603
h 6 193.4.58.17
p 6 1127
h 7 193.4.58.17
d 7 www.isnic.is
-C,--csvโ Use the Comma-Separated-Value (CSV) output format. (Note: The separator is actually a semi-colon';'.)
Example of the CSV output format:
MTR.0.86+git:16e39fc0;1435562787;OK;nic.is;1;r-76520-PROD.greenqloud.internal;288
MTR.0.86+git:16e39fc0;1435562787;OK;nic.is;2;46.149.16.4;2086
MTR.0.86+git:16e39fc0;1435562787;OK;nic.is;3;172.31.1.16;600
MTR.0.86+git:16e39fc0;1435562787;OK;nic.is;4;82.221.168.236;1163
MTR.0.86+git:16e39fc0;1435562787;OK;nic.is;5;???;0
MTR.0.86+git:16e39fc0;1435562787;OK;nic.is;6;rix-k2-gw.isnic.is;1654
MTR.0.86+git:16e39fc0;1435562787;OK;nic.is;7;www.isnic.is;1036
-j,--jsonโ Use this option to tellxmtrto use the JSON output format. This format is better suited for automated processing of the measurement results. Jansson library must have been available on the system whenxmtrwas built for this to work.-p,--splitโ Use this option to setxmtrto spit out a format that is suitable for a split-user interface.-n,--no-dnsโ Use this option to forcexmtrto display numeric IP numbers and not try to resolve the host names.-b,--show-ipsโ Use this option to tellxmtrto display both the host names and numeric IP numbers. In split mode this adds an extra field to the output. In report mode, there is usually too little space to add the IPs, and they will be truncated. Use the wide report (-w) mode to see the IPs in report mode.-o FIELDS,--order FIELDSโ Use this option to specify which fields to display and in which order. You may use one or more space characters to separate fields.
Available fields:
Lโ Loss ratioDโ Dropped packetsRโ Received packetsSโ Sent PacketsNโ Newest RTT(ms)Bโ Min/Best RTT(ms)Aโ Average RTT(ms)Wโ Max/Worst RTT(ms)Vโ Standard DeviationGโ Geometric MeanJโ Current JitterMโ Jitter Mean/Avg.Xโ Worst JitterIโ Interarrival Jitter
Example: -o "LSD NBAW X"
-y n,--ipinfo nโ Displays information about each IP hop. Valid values for n are:0โ Display AS number (equivalent to-z)1โ Display IP prefix2โ Display country code of the origin AS3โ Display RIR (ripencc,arin, ...)4โ Display the allocation date of the IP prefix
It is possible to cycle between these fields at runtime (using the y key).
-z,--aslookupโ Displays the Autonomous System (AS) number alongside each hop. Equivalent to--ipinfo 0.
Example (columns to the right not shown for clarity):
1. AS??? r-76520-PROD.greenqloud.internal
2. AS51969 46.149.16.4
3. AS??? 172.31.1.16
4. AS30818 82.221.168.236
5. ???
6. AS??? rix-k2-gw.isnic.is
7. AS1850 www.isnic.is
-i SECONDS,--interval SECONDSโ Use this option to specify the positive number of seconds between ICMP ECHO requests. The default value for this parameter is one second. The root user may choose values between zero and one.-c COUNT,--report-cycles COUNTโ Use this option to set the number of pings sent to determine both the machines on the network and the reliability of those machines. Each cycle lasts one second.-s PACKETSIZE,--psize PACKETSIZEโ This option sets the packet size used for probing. It is in bytes, inclusive IP and ICMP headers.
If set to a negative number, every iteration will use a different, random packet size up to that number.
-B NUM,--bitpattern NUMโ Specifies bit pattern to use in payload. Should be within range0 - 255. IfNUMis greater than255, a random pattern is used.-G SECONDS,--gracetime SECONDSโ Use this option to specify the positive number of seconds to wait for responses after the final request. The default value is five seconds.-Q NUM,--tos NUMโ Specifies value for type of service field in IP header. Should be within range0 - 255.-e,--mplsโ Use this option to tellxmtrto display information from ICMP extensions for MPLS (RFC 4950) that are encoded in the response packets.-I NAME,--interface NAMEโ Use the network interface with a specific name for sending network probes. This can be useful when you have multiple network interfaces with routes to your destination, for example both wired Ethernet and WiFi, and wish to test a particular interface.
okay bestie, carrying straight on with the flag list โ same facts, freshly accessorized ๐
-a ADDRESS,--address ADDRESSโ bind the outgoing socket to ADDRESS, so every packet goes out with ADDRESS as its source address. NOTE that this option does not apply to DNS requests โ which could be what you want, and could not be what you want, no cap.-f NUM,--first-ttl NUMโ tells it what TTL to start at. Defaults to1.-m NUM,--max-ttl NUMโ the maximum number of hops (max time-to-live value)traceroutewill probe. Default is30.-U NUM,--max-unknown NUMโ the maximum unknown host. Default is5.-u,--udpโ use UDP datagrams instead of ICMP ECHO.-T,--tcpโ use TCP SYN packets instead of ICMP ECHO.PACKETSIZEis ignored, since SYN packets can not contain data.-S,--sctpโ use Stream Control Transmission Protocol packets instead of ICMP ECHO.-P PORT,--port PORTโ the target port number for TCP/SCTP/UDP traces.-L LOCALPORT,--localport LOCALPORTโ the source port number for UDP traces.-Z SECONDS,--timeout SECONDSโ how many seconds to keep probe sockets open before giving up on the connection. Using large values for this, especially combined with a short interval, will use up a lot of file descriptors. โ ๏ธ like, be mindful bestie.-M MARK,--mark MARKโ set the mark for each packet sent through this socket, similar to the netfilter MARK target but socket-based.MARKis 32 unsigned integer. Seesocket(7)for full description of this socket option.
โจ ENVIRONMENT โจ
xmtr recognizes a few environment variables. slay.
MTR_OPTIONSโ this environment variable lets you specify options as if they were passed on the command line. It is parsed before reading the actual command line options, so options specified inMTR_OPTIONSare overridden by command-line options. ๐
Example:
MTR_OPTIONS="-4 -c 1" mtr -6 localhost
would send one probe (because of -c 1) towards ::1 (because of -6, which overrides the -4 passed in MTR_OPTIONS). the way that works is lowkey iconic.
MTR_PACKETโ a path to themtr-packetexecutable, to be used for sending and receiving network probes. IfMTR_PACKETis unset, thePATHwill be used to search for anmtr-packetexecutable.DISPLAYโ specifies an X11 server for the GTK+ frontend.
๐ฎ INTERACTIVE CONTROL ๐ฎ
mtr can be controlled while it is running with the following keys:
?|hโ helppโ pause (SPACE to resume)dโ switching display modeeโ toggle MPLS information on/offnโ toggle DNS on/offrโ reset all counterso strโ set the columns to display, defaultstr='LRS N BAWV'jโ toggle latency(LS NABWV)/jitter(DR AGJMXI) statsc <n>โ report cycle n, defaultn=infinitei <n>โ set the ping interval to n seconds, defaultn=1f <n>โ set the initial time-to-live(ttl), defaultn=1m <n>โ set the max time-to-live, defaultn= # of hopss <n>โ set the packet size to n orrandom(n<0)b <c>โ set ping bit pattern toc(0..255)orrandom(c<0)Q <t>โ set ping packetโs TOS to tuโ switch between ICMP ECHO and UDP datagramsyโ switching IP infozโ toggle ASN info on/offqโ exit
๐ BUGS ๐
Some modern routers give a lower priority to ICMP ECHO packets than to other network traffic. Consequently, the reliability of these routers reported by mtr will be significantly lower than the actual reliability of these routers. ๐ญ not the routers doing us dirty.
๐ CONTACT INFORMATION ๐
For the latest version, see the mtr web page at http://www.bitwizard.nl/mtr/
For patches, bug reports, or feature requests, please open an issue on GitHub at: https://github.com/traviscross/mtr. ๐ซถ
๐ SEE ALSO ๐
mtr-packet(8)traceroute(8)ping(8)socket(7)- TCP/IP Illustrated (Stevens,
ISBN 0201633469)
thatโs the whole page, bestie โ xmtr version 0.95, filed under XMTR(8), and she ate ๐
โจ
๐ฆ where this page comes from
- opensuse-leap 16.0: mtr-gtk 0.95-bp160.1.13 ยท GPL-2.0-only
- opensuse-leap 16.0: mtr-gtk 0.95-bp160.1.13 ยท GPL-2.0-only
- opensuse-leap 16.0: mtr-gtk 0.95-bp160.1.13 ยท GPL-2.0-only
- opensuse-leap 16.0: mtr-gtk 0.95-bp160.1.13 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms