Page MenuHomeVyOS Platform

mtr / monitor traceroute can't show any ouput in json
In progress, LowPublic

Description

mtr tool can't show the values in JSON format, it's broken in our cli.

monitor traceroute www.google.com json or mtr www.google.com json

 (185.144.208.198) -> www.google.com (142.250.191.196)                                                                                                                                                                                2024-09-30T18:45:41+0000
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                                                                                                                                                                                     Packets               Pings
 Host                                                                                                                                                                                                                              Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. 169.254.1.1                                                                                                                                                                                                                     0.0%     7    0.2   0.2   0.2   0.2   0.0
 2. 169.254.21.0                                                                                                                                                                                                                    0.0%     7    0.4   0.4   0.4   0.4   0.0
 3. 10.253.53.57                                                                                                                                                                                                                    0.0%     7    0.3   0.3   0.3   0.4   0.0
 4. 10.253.52.3                                                                                                                                                                                                                     0.0%     7    0.7   0.6   0.5   0.7   0.1
 5. 0.et-0-1-2.bbr2.ch2.packet.net                                                                                                                                                                                                  0.0%     7    1.4   2.4   1.2   9.1   3.0
 6. 192.178.71.18                                                                                                                                                                                                                   0.0%     7    2.3   1.5   1.3   2.3   0.4
 7. 142.251.249.39                                                                                                                                                                                                                  0.0%     7    1.8   8.3   1.8  27.2   9.6
 8. 142.251.60.13                                                                                                                                                                                                                   0.0%     7    1.3   1.3   1.2   1.3   0.0
 9. ord38s31-in-f4.1e100.net                                                                                                                                                                                                        0.0%     6    1.2   1.2   1.2   1.3   0.0

but mtr is supported it if we use native command :

$ sudo mtr -j www.google.com
{
    "report": {
        "mtr": {
            "src": "macsec02-onprem",
            "dst": "www.google.com",
            "tos": 0,
            "tests": 10,
            "psize": "64",
            "bitpattern": "0x00"
        },
        "hubs": [
            {
                "count": 1,
                "host": "169.254.1.1",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 0.185,
                "Avg": 0.226,
                "Best": 0.185,
                "Wrst": 0.28,
                "StDev": 0.028
            },
            {
                "count": 2,
                "host": "169.254.21.0",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 0.413,
                "Avg": 0.398,
                "Best": 0.332,
                "Wrst": 0.472,
                "StDev": 0.038
            },
            {
                "count": 3,
                "host": "10.253.53.63",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 0.406,
                "Avg": 0.375,
                "Best": 0.297,
                "Wrst": 0.425,
                "StDev": 0.045
            },
            {
                "count": 4,
                "host": "10.253.52.15",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 0.557,
                "Avg": 4.842,
                "Best": 0.503,
                "Wrst": 10.794,
                "StDev": 4.547
            },
            {
                "count": 5,
                "host": "0.et-1-1-2.bbr1.ch2.packet.net",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 1.507,
                "Avg": 1.86,
                "Best": 1.465,
                "Wrst": 3.247,
                "StDev": 0.646
            },
            {
                "count": 6,
                "host": "147.28.130.207",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 1.522,
                "Avg": 1.502,
                "Best": 1.391,
                "Wrst": 1.613,
                "StDev": 0.08
            },
            {
                "count": 7,
                "host": "192.178.249.203",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 1.444,
                "Avg": 1.417,
                "Best": 1.353,
                "Wrst": 1.476,
                "StDev": 0.043
            },
            {
                "count": 8,
                "host": "142.251.60.203",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 1.396,
                "Avg": 1.369,
                "Best": 1.345,
                "Wrst": 1.403,
                "StDev": 0.021
            },
            {
                "count": 9,
                "host": "ord37s34-in-f4.1e100.net",
                "Loss%": 0.0,
                "Snt": 10,
                "Last": 1.354,
                "Avg": 1.354,
                "Best": 1.323,
                "Wrst": 1.415,
                "StDev": 0.027
            }
        ]
    }
}

Details

Difficulty level
Unknown (require assessment)
Version
-VyOS 1.4.0
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Unspecified (please specify)

Event Timeline

fernando renamed this task from mtr / monitor traceroute can show any ouput in json to mtr / monitor traceroute can't show any ouput in json.
fernando created this object in space S1 VyOS Public.
natali-rs1985 changed the task status from Open to In progress.Wed, Oct 2, 2:26 PM