QETHARP(8)
π QETHARP(8) β like, the ARP queen of s390, bestie
okay so real talk: this is qetharp(8) from the System Manager's Manual and it is literally the main character of ARP cache management on your box. grab a snack, we're getting into it π
β¨ NAME β¨
qetharp β querying and modifying ARP data. that's it, that's the vibe π
π¦ SYNOPSIS π¦
qetharp [-hv]
[-[c|n][6]q interface]
[-p interface]
[-a interface -i IP_address -m MAC_address]
[-d interface -i IP_address]
look at that flag choreography. iconic. no notes. π
πΈ DESCRIPTION πΈ
so qetharp queries ARP data β think MAC and IP addresses β out of an OSA hardware ARP cache or a HiperSockets ARP cache. and for OSA hardware specifically? it can also modify the cache. she doesn't just read, she edits. π
two things you need to know before you go feral with it:
- The command applies only to devices in layer3 mode. not layer2. layer3. periodt.
- It supports IPv6 for HiperSockets only. so don't come for OSA with your IPv6 business, it's not that girl.
π OPTIONS π
-qor--queryinterface β shows the ARP information about the specified network interface. depending on which device that interface got assigned to, this info comes either from an OSA feature's ARP cache or from a HiperSockets ARP cache. the default output shows symbolic host names, and it only throws in a numerical address for host names that just cannot be resolved (tragic, but fair). want numbers instead of names? use-n. and heads up: by defaultqetharpomits IPv6 related info β use-6to include IPv6 information for HiperSockets.-nor--numericβ shows numerical addresses instead of trying to resolve addresses to symbolic host names. ngl this one's a package deal: it can only be used with the-qoption. π«Ά-cor--compactβ limits the output to numerical addresses only. also a package deal β this option can only be used with the-qoption.-6or--ipv6β includes IPv6 information for HiperSockets. for real HiperSockets, it shows the IPv6 addresses; for guest LAN HiperSockets, it shows the IPv6 to MAC address mappings. and yeah, you guessed it β this option can only be used with the-qoption. β¨-por--purgeinterface β flushes the ARP cache of the OSA. the cache holds dynamic ARP entries, which the OSA adapter creates through ARP queries. after flushing, the OSA adapter goes right back to creating new dynamic entries (she's resilient like that π). this option only works with OSA devices.-aor--addinterface β adds a static ARP entry to the OSA adapter card. this option requires an IP address and a MAC address (that's the-iand-moptions, bestie).-dor--deleteinterface β deletes a static ARP entry from the OSA adapter card. this command requires an IP address (the-ioption).-ior--ipIP_address β specifies an IP address to be added to or removed from the OSA adapter card.-mor--macMAC_address β specifies a MAC address to be added to the OSA adapter card. π-vor--versionβ shows version information.-hor--helpβ shows usage information forqetharp.
ok quick PSA:-n,-c, and-6are all-q-only girlies. don't try to run them solo, it's not gonna slay. π
β RETURN CODES β
qetharp writes the response to stdout and any error message to stderr. the command completes with one of these:
0β Theqetharpcommand ran successfully. we love a win. π1β An error occurred. π
π EXAMPLE π
qetharp -q eth0β shows all ARP entries of OSA.qetharp -nq eth0β shows all ARP entries of OSA without resolving host names.qetharp -6q hsi0β shows all ARP entries of the HiperSockets interface including IPv6 entries.qetharp -n6q hsi0β shows all ARP entries of the HiperSockets interface including IPv6 entries without resolving host names.qetharp -p eth0β flushes the OSA ARP cache for eth0.qetharp -a eth0 -i 1.2.3.4 -m aa:bb:cc:dd:ee:ffβ adds a static ARP entry for the IP address1.2.3.4to the OSA ARP cache, using a MAC address ofaa:bb:cc:dd:ee:ffqetharp -d eth0 -i 1.2.3.4β deletes the static ARP entry for the IP address1.2.3.4from the OSA ARP cache.
qetharp -q eth0
qetharp -nq eth0
qetharp -6q hsi0
qetharp -n6q hsi0
qetharp -p eth0
qetharp -a eth0 -i 1.2.3.4 -m aa:bb:cc:dd:ee:ff
qetharp -d eth0 -i 1.2.3.4
π AUTHOR π
This man-page was written by Frank Pavlic <pavlic@de.ibm.com> β shoutout to Frank, fr fr, absolute legend for this one π«Ά
and that's the page!! π§ this little beauty ships with s390-tools, dated Nov 2011 β yes she's vintage, and yes she still ate. bye bestie, go flush some caches responsibly ππΈ
π¦ where this page comes from
- opensuse-leap 16.0: s390-tools 2.44.1-160000.1.1 Β· MIT
- Copyright 2017 IBM Corp
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms