Arp

From x-cmd/x-cmd · View interactive version

Arp is an AI agent skill from the GitHub repository x-cmd/x-cmd. Display ARP cache table with MAC vendor lookup and suspicious entry detection. Supports CSV, TSV, and TUI output. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

How to use this skill

Skill file

x arp - ARP Cache Table Viewer

Display and inspect the local system's ARP cache table with multiple output formats.


Quick Start

# Interactive ARP table viewer (default in TTY)
x arp

# TSV format output (default when piped)
x arp | cat

Features


Output Fields

| Field | Description | Example |

|-------|-------------|---------|

| ip | IP address | 192.168.1.1 |

| mac | MAC address | 00:11:22:33:44:55 |

| if | Network interface | eth0, en0 |

| suspicious | Suspicious flag | Yes/No |

| scope | Address scope | link, global |

| type | Entry type | static, dynamic |

| vendor | MAC vendor (if available) | Apple, Inc. |


Commands

| Command | Description |

|---------|-------------|

| x arp | Auto mode: TTY→interactive, pipe→TSV |

| x arp --app | Interactive TUI view |

| x arp --csv | CSV format output |

| x arp --tsv | TSV format output |

| x arp --raw | Raw system command output |

| x arp --all | Include incomplete entries |

| x arp --no-vendor | Skip MAC vendor lookup |


Examples

Basic Usage

# Interactive view (TTY)
x arp

# TSV format
x arp --tsv

# CSV format
x arp --csv

Filtering and Processing

# Find entries for specific IP
x arp --tsv | awk -F'\t' '$1 == "192.168.1.1"'

# Check for suspicious entries
x arp --tsv | grep "Yes"

# Get all entries including incomplete
x arp --all

Network Troubleshooting

# View raw ARP output
x arp --raw

# Check specific interface
x arp --tsv | grep "eth0"

Platform Notes

Linux

macOS

Windows


Security Notes


Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.