arp + vendor info
· 304 B · Text
Ham
# arp command with vendor information
sudo arp -n | grep -viE "inc|iface" | while read -r ip type mac state ifname; do vendor=$(echo ${mac^^} | sed 's/://g' | cut -c 1-6); echo -ne "${ifname}\t${ip}\t${mac} $(grep ${vendor} /usr/share/ieee-data/oui.txt | cut --output-delimiter=" " -c 1-6,23- )\n"; done
| 1 | # arp command with vendor information |
| 2 | sudo arp -n | grep -viE "inc|iface" | while read -r ip type mac state ifname; do vendor=$(echo ${mac^^} | sed 's/://g' | cut -c 1-6); echo -ne "${ifname}\t${ip}\t${mac} $(grep ${vendor} /usr/share/ieee-data/oui.txt | cut --output-delimiter=" " -c 1-6,23- )\n"; done |
| 3 |