Skip to content
jc-rs
GitHub

arp

--arpv1.8.0

Converts `arp` command output to JSON

LinuxmacOSFreeBSDcommandslurpable
$ arp | jc-rs --arp

A real pair

From the reference corpus (centos-7.7/arp.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

arpcentos-7.7
Address                  HWtype  HWaddress           Flags Mask            Iface
gateway                  ether   00:50:56:f7:4a:fc   C                     ens33
192.168.71.254           ether   00:50:56:fe:7a:b4   C                     ens33
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "address": "gateway",
    "hwtype": "ether",
    "hwaddress": "00:50:56:f7:4a:fc",
    "flags_mask": "C",
    "iface": "ens33"
  },
  {
    "address": "192.168.71.254",
    "hwtype": "ether",
    "hwaddress": "00:50:56:fe:7a:b4",
    "flags_mask": "C",
    "iface": "ens33"
  }
]

Fixture coverage

12/12oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs arpjc-rs runs the command itself and parses what it prints. Recognised for: `arp`

Source: crates/jc-rs-parsers/src/network/arp.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare