1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

doc update

This commit is contained in:
Kelly Brazil
2019-11-04 12:40:05 -08:00
parent f7350959c9
commit 65adbb4189

View File

@ -4,20 +4,30 @@ Usage:
specify --arp as the first argument if the piped input is coming from arp specify --arp as the first argument if the piped input is coming from arp
Example: Example:
$ arp | jc --arp -p $ arp | jc --arp -p
[ [
{
"address": "192.168.71.254",
"hwtype": "ether",
"hwaddress": "00:50:56:f0:98:26",
"flags_mask": "C",
"iface": "ens33"
},
{ {
"address": "gateway", "address": "gateway",
"hwtype": "ether", "hwtype": "ether",
"hwaddress": "00:50:56:f7:4a:fc", "hwaddress": "00:50:56:f7:4a:fc",
"flags_mask": "C", "flags_mask": "C",
"iface": "ens33" "iface": "ens33"
}, }
]
$ arp | jc --arp -p -r
[
{ {
"address": "192.168.71.1", "address": "gateway",
"hwtype": "ether", "hwtype": "ether",
"hwaddress": "00:50:56:c0:00:08", "hwaddress": "00:50:56:f7:4a:fc",
"flags_mask": "C", "flags_mask": "C",
"iface": "ens33" "iface": "ens33"
}, },
@ -33,12 +43,24 @@ $ arp | jc --arp -p
$ arp -a | jc --arp -p $ arp -a | jc --arp -p
[ [
{ {
"name": "?", "name": null,
"address": "192.168.71.1", "address": "192.168.71.254",
"hwtype": "ether", "hwtype": "ether",
"hwaddress": "00:50:56:c0:00:08", "hwaddress": "00:50:56:f0:98:26",
"iface": "ens33" "iface": "ens33"
}, },
{
"name": "gateway",
"address": "192.168.71.2",
"hwtype": "ether",
"hwaddress": "00:50:56:f7:4a:fc",
"iface": "ens33"
}
]
$ arp -a | jc --arp -p -r
[
{ {
"name": "?", "name": "?",
"address": "192.168.71.254", "address": "192.168.71.254",