1 .TH QETHARP 8 "Oct 2009" "s390-tools"
3 qetharp \- querying and purging address data in the OSA and HiperSockets hardware.
29 \fBqetharp\fR is a tool to get information like MAC and IP Addresses from
30 OSA and HiperSockets. It also allows to flush the ARP table of the mentioned Hardware.
34 \fB-q\fR or \fB--query \fIinterface\fR
35 shows the ARP information found in the ARP table of OSA or HiperSockets, which depends on \fBinterface\fR. If it is an OSA device, it shows the ARP entries stored in OSA's ARP table, otherwise the ones from HiperSockets' ARP table.
36 If the \fBIP address\fR is \fBIPv4\fR, \fBqetharp\fR tries to determine the
37 symbolic host name, if it fails the IP address will be shown. In case of
38 \fBIPv6\fR there is no attempt for determination of host names,so the IP address will be shown directly.
40 \fB-n\fR or \fB--numeric\fR
41 shows numerical addresses instead of trying to determine symbolic host names. This option can only be used in conjunction with \fB-q\fR option.
43 \fB-c\fR or \fB--compact\fR
44 shows only numerical addresses without any other information like interface name. Also omits the header.
47 \fB-p\fR or \fB--purge \fIinterface\fR
48 flushes the ARP table of OSA. This option does only work with OSA Devices. \fBqetharp\fR returns immediately.
51 \fB-a\fR or \fB--add \fIinterface\fR
52 adds a static ARP entry to the OSA card. This command needs an IP address and a
53 MAC address (\fB-i\fR and \fB-m\fR switches).
56 \fB-d\fR or \fB--delete \fIinterface\fR
57 deletes a static ARP entry from the OSA card. This command needs an
58 IP address (\fB-i\fR switch).
61 \fB-i\fR or \fB--ip \fIIP_address\fR
62 specifies an IP address to be added to or removed from the OSA ARP cache.
64 \fB-m\fR or \fB--mac \fIMAC_address\fR
65 specifies a MAC address to be added to the OSA ARP cache.
68 \fB-v\fR or \fB--verbose\fR
69 shows version information.
72 \fB-h\fR or \fB--help\fR
73 shows usage information for qetharp.
78 shows all ARP entries of OSA.
80 \fBqetharp -nq eth0\fR
81 shows all ARP entries of OSA without resolving host names.
84 flushes OSA's ARP table.
86 \fBqetharp -a eth0 -i 1.2.3.4 -m aa:bb:cc:dd:ee:ff\fR
87 adds a static ARP entry for the IP address 1.2.3.4 to OSA's ARP cache, using
88 a MAC address of aa:bb:cc:dd:ee:ff
90 \fBqetharp -d eth0 -i 1.2.3.4\fR
91 deletes the static ARP entry for the IP address 1.2.3.4 from OSA's ARP cache.
95 This man-page was written by Frank Pavlic <pavlic@de.ibm.com>