linux-arp-entries

Queries ARP (Address Resolution Protocol) cache information on a Linux system. Parses the /proc/net/arp file and returns the IP address-to-MAC address mappings registered in the current ARP table as structured fields.

Command properties

PropertyValue
Command typeDriver query
Required permissionAdministrator
License usageCounted
Parallel executionNot supported
Distributed executionRuns on Data Node (mapper)

Syntax

linux-arp-entries

Output fields

FieldTypeDescription
typestringHardware type (e.g., ether)
ipipaddrIP address registered in the ARP cache
macstringMAC address
ifacestringNetwork interface name

Error codes

Parsing errors
Error codeMessageDescription
95040no-read-permissionExecuted without administrator privileges
Runtime errors

N/A

Description

The linux-arp-entries command reads the /proc/net/arp file and queries entries registered in the ARP cache. Each entry includes the hardware type, IP address, MAC address, and network interface name. The IP address is converted to an InetAddress object and assigned to the ip field.

This command requires administrator privileges. If privileges are insufficient, an error occurs at the parsing stage.

Examples

  1. Query ARP cache information

    linux-arp-entries
    

    Queries all entries registered in the current system's ARP cache.

  2. Filter ARP cache entries for a specific interface

    linux-arp-entries
    | search iface == "eth0"
    

    Filters only ARP cache entries for the eth0 interface.