{
  "id": "traceroute",
  "name": "traceroute",
  "description": "Prints the route IP packets take to a network host.",
  "executables": [
    "traceroute"
  ],
  "commands": {
    "format": 1,
    "label": "Trace route to host",
    "description": "Show the hops packets take to a host. Only common probe options are included.",
    "quality": "ai-draft",
    "base": "fig:traceroute",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/traceroute.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "numeric",
        "label": "Numeric addresses",
        "description": "Skip the reverse DNS lookup for each hop.",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "icmp",
        "label": "Use ICMP ECHO",
        "type": "boolean",
        "option": [
          "-I"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "max_ttl",
        "label": "Max hops",
        "type": "integer",
        "option": [
          "-m"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "first_ttl",
        "label": "First TTL",
        "type": "integer",
        "option": [
          "-f"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "queries",
        "label": "Probes per hop",
        "type": "integer",
        "option": [
          "-q"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "wait",
        "label": "Wait per probe (seconds)",
        "type": "integer",
        "option": [
          "-w"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "port",
        "label": "Base port",
        "type": "integer",
        "option": [
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "source_addr",
        "label": "Source address",
        "type": "string",
        "option": [
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "as_lookup",
        "label": "AS number lookups",
        "type": "boolean",
        "option": [
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "summary",
        "label": "Unanswered summary",
        "type": "boolean",
        "option": [
          "-S"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "host",
        "label": "Host",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "trace",
        "label": "Trace a host",
        "fields": [
          "host",
          "numeric"
        ],
        "required": [
          "host"
        ]
      },
      {
        "id": "icmp-trace",
        "label": "Trace with ICMP",
        "set": {
          "icmp": [
            true
          ],
          "numeric": [
            true
          ]
        },
        "fields": [
          "host",
          "icmp",
          "numeric",
          "max_ttl"
        ],
        "required": [
          "host"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "host",
          "numeric",
          "icmp",
          "max_ttl"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "first_ttl",
          "queries",
          "wait",
          "port",
          "source_addr",
          "as_lookup",
          "summary"
        ]
      }
    ]
  }
}
