Skip to content
Skillv1.0.0

x-route

Route table viewer with multiple output formats. Display network routing table in CSV, TSV, or raw format. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installatio

by x-cmd(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from x-cmd/x-cmd (mod/route/SKILL.md). Install upstream with npx skills add x-cmd/x-cmd --skill route. Copyright stays with the author (Apache-2.0).

x route - Route Table Viewer

Display network routing table with multiple output formats.


Quick Start

# Display route table (default)
x route

# CSV format
x route --csv

# TSV format  
x route --tsv

Features

  • Route Table: Display system routing table
  • Multiple Formats: CSV, TSV, and raw output
  • Cross-platform: Linux, macOS, Windows support

Commands

Command Description
x route Display route table (default)
x route ls Display route table
x route ls --csv Output in CSV format
x route ls --tsv Output in TSV format
x route ls --raw Output in raw format

Examples

Basic Usage

# Default route table view
x route

# CSV format for processing
x route --csv

# TSV format
x route --tsv

# Raw format
x route --raw

Data Processing

# Filter routes
x route --csv | x csv sql "SELECT * WHERE destination LIKE '192.168%'"

# Parse with awk
x route --tsv | awk -F'\t' 'NR>1 {print $1, $2}'

Output Fields

Typical fields include:

Field Description
Destination Target network or host
Gateway Next hop router
Genmask Netmask
Flags Route flags
Metric Route metric/cost
Ref Reference count
Use Route usage
Iface Network interface

Platform Notes

  • Linux: Uses ip route or route command
  • macOS: Uses netstat -rn or route command
  • Windows: Uses route print command

Related

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/x-cmd-x-cmd-route/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

x-cmd-x-cmd-route.ocm.jsonjson
{
  "ocm": "1",
  "id": "x-cmd-x-cmd-route",
  "kind": "skill",
  "name": "x-route",
  "description": "Route table viewer with multiple output formats. Display network routing table in CSV, TSV, or raw format. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.",
  "publisher": "x-cmd",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "data_analysis"
    ],
    "tags": [
      "skill-md",
      "x-cmd",
      "network",
      "route",
      "routing-table",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Route table viewer with multiple output formats. Display network routing table in CSV, TSV, or raw format. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/x-cmd/x-cmd",
      "path": "mod/route/SKILL.md",
      "ref": "e18c1ef8b4695c7556c4e847b2eb7eaac13b9230",
      "url": "https://github.com/x-cmd/x-cmd/blob/e18c1ef8b4695c7556c4e847b2eb7eaac13b9230/mod/route/SKILL.md",
      "key": "x-cmd/x-cmd/mod/route/SKILL.md"
    },
    "compatibility": "POSIX Shell",
    "license": "Apache-2.0"
  },
  "instructions": "# x route - Route Table Viewer\n\n> Display network routing table with multiple output formats.\n\n---\n\n## Quick Start\n\n```bash\n# Display route table (default)\nx route\n\n# CSV format\nx route --csv\n\n# TSV format  \nx route --tsv\n```\n\n---\n\n## Features\n\n- **Route Table**: Display system routing table\n- **Multiple Formats**: CSV, TSV, and raw output\n- **Cross-platform**: Linux, macOS, Windows support\n\n---\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `x route` | Display route table (default) |\n| `x route ls` | Display route table |\n| `x route ls --csv` | Output in CSV format |\n| `x",
  "cost": {
    "context_tokens": 390
  }
}

Fetch it by URL: GET /api/v1/registry/x-cmd-x-cmd-route/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.