Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man8 / ipmpstat.8
blobd8e7cf7e2ee564c37f71863c8dfb773a98c3e0e5
1 '\" te
2 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH IPMPSTAT 8 "April 9, 2016"
7 .SH NAME
8 ipmpstat \- display IPMP subsystem status
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBipmpstat\fR [\fB-n\fR] [\fB-o\fR \fIfield\fR[,...] [\fB-P\fR]] \fB-a\fR|\fB-g\fR|\fB-i\fR|\fB-p\fR|\fB-t\fR
13 .fi
15 .SH DESCRIPTION
16 .LP
17 The \fBipmpstat\fR command concisely displays information about the IPMP
18 subsystem. It supports five different output modes, each of which provides a
19 different view of the IPMP subsystem (address, group, interface, probe, and
20 target), described below. At most one output mode may be specified per
21 invocation, and the displayed information is guaranteed to be self-consistent.
22 It also provides a parsable output format which may be used by scripts to
23 examine the state of the IPMP subsystem. Only basic privileges are needed to
24 invoke \fBipmpstat\fR, with the exception of probe mode which requires all
25 privileges.
26 .SH OPTIONS
27 .LP
28 The following options are supported:
29 .sp
30 .ne 2
31 .na
32 \fB\fB-a\fR\fR
33 .ad
34 .sp .6
35 .RS 4n
36 Display IPMP data address information ("address" output mode).
37 .RE
39 .sp
40 .ne 2
41 .na
42 \fB\fB-g\fR\fR
43 .ad
44 .sp .6
45 .RS 4n
46 Display IPMP group information ("group" output mode).
47 .RE
49 .sp
50 .ne 2
51 .na
52 \fB\fB-i\fR\fR
53 .ad
54 .sp .6
55 .RS 4n
56 Display IP interface information ("interface" output mode).
57 .RE
59 .sp
60 .ne 2
61 .na
62 \fB\fB-n\fR\fR
63 .ad
64 .sp .6
65 .RS 4n
66 Display IP addresses numerically, rather than attempting to resolve them to
67 hostnames. This option may be used in any output mode.
68 .RE
70 .sp
71 .ne 2
72 .na
73 \fB\fB-o\fR \fIfield\fR[,...]\fR
74 .ad
75 .sp .6
76 .RS 4n
77 Display only the specified output fields, in order. The list of field names is
78 case-insensitive and comma-separated. The field names that are supported depend
79 on the selected output mode, described below. The special field name \fBall\fR
80 may be used to display all fields for a given output mode.
81 .RE
83 .sp
84 .ne 2
85 .na
86 \fB\fB-p\fR\fR
87 .ad
88 .sp .6
89 .RS 4n
90 Display IPMP probe information ("probe" output mode).
91 .RE
93 .sp
94 .ne 2
95 .na
96 \fB\fB-t\fR\fR
97 .ad
98 .sp .6
99 .RS 4n
100 Display IPMP target information ("target" output mode).
104 .ne 2
106 \fB\fB-P\fR\fR
108 .sp .6
109 .RS 4n
110 Display using a machine-parsable format, described below. If this option is
111 specified, an explicit list of fields must be specified using the \fB-o\fR
112 option.
115 .SH OUTPUT MODES
117 The \fBipmpstat\fR utility supports the output modes listed below. Note that
118 these modes map to some of the options described above.
120 .ne 2
122 \fBAddress Mode\fR
124 .sp .6
125 .RS 4n
126 Address mode displays the state of all IPMP data addresses on the system. The
127 following output fields are supported:
129 .ne 2
131 \fB\fBADDRESS\fR\fR
133 .sp .6
134 .RS 4n
135 The hostname (or IP address) associated with the information. Note that because
136 duplicate down addresses may exist, the address must be taken together with the
137 \fBGROUP\fR to form a unique identity. For a given IPMP group, if duplicate
138 addresses exist, at most one will be displayed, and an up address will always
139 take precedence.
143 .ne 2
145 \fB\fBSTATE\fR\fR
147 .sp .6
148 .RS 4n
149 The state of the address. Either \fBup\fR if the address is \fBIFF_UP\fR (see
150 \fBifconfig\fR(8)), or \fBdown\fR if the address is not \fBIFF_UP\fR.
154 .ne 2
156 \fB\fBGROUP\fR\fR
158 .sp .6
159 .RS 4n
160 The IPMP IP interface hosting the address.
164 .ne 2
166 \fB\fBINBOUND\fR\fR
168 .sp .6
169 .RS 4n
170 The underlying IP interface that will receive packets for this address. This
171 may change in response to external events such as IP interface failure. If this
172 field is empty, then the system will not accept IP packets sent to this address
173 (for example, because the address is down or because there are no active IP
174 interfaces left in the IPMP group).
178 .ne 2
180 \fB\fBOUTBOUND\fR\fR
182 .sp .6
183 .RS 4n
184 The underlying IP interfaces that will send packets using this source address.
185 This may change in response to external events such as IP interface failure. If
186 this field is empty, then the system will not send packets with this address as
187 a source (for example, because the address is down or because there are no
188 active IP interfaces left in the IPMP group).
191 If \fB-o\fR is not specified, all output fields are displayed.
195 .ne 2
197 \fBGroup Mode\fR
199 .sp .6
200 .RS 4n
201 Group mode displays the state of all IPMP groups on the system. The following
202 output fields are supported:
204 .ne 2
206 \fB\fBGROUP\fR\fR
208 .sp .6
209 .RS 4n
210 The IPMP IP interface name associated with the information. For the anonymous
211 group (see \fBin.mpathd\fR(8)), this field will be empty.
215 .ne 2
217 \fB\fBGROUPNAME\fR\fR
219 .sp .6
220 .RS 4n
221 The IPMP group name. For the anonymous group, this field will be empty.
225 .ne 2
227 \fB\fBSTATE\fR\fR
229 .sp .6
230 .RS 4n
231 The state of the group:
233 .ne 2
235 \fB\fBok\fR\fR
237 .RS 12n
238 All interfaces in the group are usable.
242 .ne 2
244 \fB\fBdegraded\fR\fR
246 .RS 12n
247 Some (but not all) interfaces in the group are usable.
251 .ne 2
253 \fB\fBfailed\fR\fR
255 .RS 12n
256 No interfaces in the group are usable.
262 .ne 2
264 \fB\fBFDT\fR\fR
266 .sp .6
267 .RS 4n
268 The probe-based failure detection time. If probe-based failure detection is
269 disabled, this field will be empty.
273 .ne 2
275 \fB\fBINTERFACES\fR\fR
277 .sp .6
278 .RS 4n
279 The list of underlying IP interfaces in the group. The list is divided into
280 three parts:
281 .RS +4
284 Active interfaces are listed first and not enclosed in any brackets or
285 parenthesis. Active interfaces are those being used by the system to send or
286 receive data traffic.
288 .RS +4
291 \fBINACTIVE\fR interfaces are listed next and enclosed in parenthesis.
292 \fBINACTIVE\fR interfaces are those that are functioning, but not being used
293 according to administrative policy.
295 .RS +4
298 Unusable interfaces are listed last and enclosed in brackets. Unusable
299 interfaces are those that cannot be used at all in their present configuration
300 (for example, \fBFAILED\fR or \fBOFFLINE\fR).
304 If \fB-o\fR is not specified, all output fields are displayed.
308 .ne 2
310 \fBInterface Mode\fR
312 .sp .6
313 .RS 4n
314 Interface mode displays the state of all IP interfaces that are tracked by
315 \fBin.mpathd\fR on the system. The following output fields are supported:
317 .ne 2
319 \fB\fBINTERFACE\fR\fR
321 .sp .6
322 .RS 4n
323 The IP interface name associated with the information.
327 .ne 2
329 \fB\fBACTIVE\fR\fR
331 .sp .6
332 .RS 4n
333 Either \fByes\fR or \fBno\fR, depending on whether the IP interface is being
334 used by the system for IP data traffic.
338 .ne 2
340 \fB\fBGROUP\fR\fR
342 .sp .6
343 .RS 4n
344 The IPMP IP interface associated with the IP interface. For IP interfaces in
345 the anonymous group (see \fBin.mpathd\fR(8)), this field will be empty.
349 .ne 2
351 \fB\fBFLAGS\fR\fR
353 .sp .6
354 .RS 4n
355 Assorted information about the IP interface:
357 .ne 2
359 \fB\fBi\fR\fR
361 .RS 5n
362 Unusable due to being \fBINACTIVE\fR.
366 .ne 2
368 \fB\fBs\fR\fR
370 .RS 5n
371 Marked \fBSTANDBY\fR.
375 .ne 2
377 \fB\fBm\fR\fR
379 .RS 5n
380 Nominated to send/receive IPv4 multicast for its IPMP group.
384 .ne 2
386 \fB\fBb\fR\fR
388 .RS 5n
389 Nominated to send/receive IPv4 broadcast for its IPMP group.
393 .ne 2
395 \fB\fBM\fR\fR
397 .RS 5n
398 Nominated to send/receive IPv6 multicast for its IPMP group.
402 .ne 2
404 \fB\fBd\fR\fR
406 .RS 5n
407 Unusable due to being \fBdown\fR.
411 .ne 2
413 \fB\fBh\fR\fR
415 .RS 5n
416 Unusable due to being brought \fBOFFLINE\fR by \fBin.mpathd\fR because of a
417 duplicate hardware address.
423 .ne 2
425 \fB\fBLINK\fR\fR
427 .sp .6
428 .RS 4n
429 The state of link-based failure detection:
431 .ne 2
433 \fB\fBup\fR\fR
435 .sp .6
436 .RS 4n
437 The link is up.
441 .ne 2
443 \fB\fBdown\fR\fR
445 .sp .6
446 .RS 4n
447 The link is down.
451 .ne 2
453 \fB\fBunknown\fR\fR
455 .sp .6
456 .RS 4n
457 The network driver does not report link state changes.
463 .ne 2
465 \fB\fBPROBE\fR\fR
467 .sp .6
468 .RS 4n
469 The state of probe-based failure detection:
471 .ne 2
473 \fB\fBok\fR\fR
475 .sp .6
476 .RS 4n
477 Probes detect no problems.
481 .ne 2
483 \fB\fBfailed\fR\fR
485 .sp .6
486 .RS 4n
487 Probes detect failure.
491 .ne 2
493 \fB\fBunknown\fR\fR
495 .sp .6
496 .RS 4n
497 Probes cannot be sent since no suitable probe targets are known.
501 .ne 2
503 \fB\fBdisabled\fR\fR
505 .sp .6
506 .RS 4n
507 Probes have been disabled because a unique IP test address has not been
508 configured.
514 .ne 2
516 \fB\fBSTATE\fR\fR
518 .sp .6
519 .RS 4n
520 The overall state of the interface:
522 .ne 2
524 \fB\fBok\fR\fR
526 .sp .6
527 .RS 4n
528 The interface is online and functioning properly based on the configured
529 failure detection methods.
533 .ne 2
535 \fB\fBfailed\fR\fR
537 .sp .6
538 .RS 4n
539 The interface is online but has a link state of \fBdown\fR or a probe state of
540 \fBfailed\fR.
544 .ne 2
546 \fB\fBoffline\fR\fR
548 .sp .6
549 .RS 4n
550 The interface is offline.
554 .ne 2
556 \fB\fBunknown\fR\fR
558 .sp .6
559 .RS 4n
560 The interface is online but may or may not be functioning because the
561 configured failure detection methods are in \fBunknown\fR states.
566 If \fB-o\fR is not specified, all output fields are displayed.
570 .ne 2
572 \fBProbe Mode\fR
574 .sp .6
575 .RS 4n
576 Probe mode displays information about the probes being sent by \fBin.mpathd\fR.
577 Unlike other output modes, this mode runs until explicitly terminated using
578 \fBCtrl-C\fR. The following output fields are supported:
580 .ne 2
582 \fB\fBTIME\fR\fR
584 .sp .6
585 .RS 4n
586 The time the probe was sent, relative to when \fBipmpstat\fR was started. If
587 the probe was sent prior to starting \fBipmpstat\fR, the time will be negative.
591 .ne 2
593 \fB\fBPROBE\fR\fR
595 .sp .6
596 .RS 4n
597 An identifier representing the probe. The identifier will start at zero and
598 will monotonically increment for each probe sent by \fBin.mpathd\fR over a
599 given interface. To enable more detailed analysis by packet monitoring tools,
600 this identifier matches the \fBicmp_seq\fR field of the ICMP probe packet.
604 .ne 2
606 \fB\fBINTERFACE\fR\fR
608 .sp .6
609 .RS 4n
610 The IP interface the probe was sent on.
614 .ne 2
616 \fB\fBTARGET\fR\fR
618 .sp .6
619 .RS 4n
620 The hostname (or IP address) of the target the probe was sent to.
624 .ne 2
626 \fB\fBNETRTT\fR\fR
628 .sp .6
629 .RS 4n
630 The network round-trip-time for the probe. This is the time between when the IP
631 module sends the probe and when the IP module receives the acknowledgment. If
632 \fBin.mpathd\fR has concluded that the probe has been lost, this field will be
633 empty.
637 .ne 2
639 \fB\fBRTT\fR\fR
641 .sp .6
642 .RS 4n
643 The total round-trip-time for the probe. This is the time between when
644 \fBin.mpathd\fR starts executing the code to send the probe, and when it
645 completes processing the \fBack\fR. If \fBin.mpathd\fR has concluded that the
646 probe has been lost, this field will be empty. Spikes in the total round-trip
647 time that are not present in the network round-trip time indicate that the
648 local system itself is overloaded.
652 .ne 2
654 \fB\fBRTTAVG\fR\fR
656 .sp .6
657 .RS 4n
658 The average round-trip-time to \fBTARGET\fR over \fBINTERFACE\fR. This aids
659 identification of slow targets. If there is insufficient data to calculate the
660 average, this field will be empty.
664 .ne 2
666 \fB\fBRTTDEV\fR\fR
668 .sp .6
669 .RS 4n
670 The standard deviation for the round-trip-time to \fBTARGET\fR over
671 \fBINTERFACE\fR. This aids identification of jittery targets. If there is
672 insufficient data to calculate the standard deviation, this field will be
673 empty.
676 If \fB-o\fR is not specified, all fields except for \fBRTTAVG\fR and
677 \fBRTTDEV\fR are displayed.
681 .ne 2
683 \fBTarget Mode\fR
685 .sp .6
686 .RS 4n
687 Target mode displays IPMP probe target information. The following output fields
688 are supported:
690 .ne 2
692 \fB\fBINTERFACE\fR\fR
694 .sp .6
695 .RS 4n
696 The IP interface name associated with the information.
700 .ne 2
702 \fB\fBMODE\fR\fR
704 .sp .6
705 .RS 4n
706 The probe target discovery mode:
708 .ne 2
710 \fB\fBroutes\fR\fR
712 .RS 13n
713 Probe targets found by means of the routing table.
717 .ne 2
719 \fB\fBmulticast\fR\fR
721 .RS 13n
722 Probe targets found by means of multicast ICMP probes.
726 .ne 2
728 \fB\fBdisabled\fR\fR
730 .RS 13n
731 Probe-based failure detection is disabled.
737 .ne 2
739 \fB\fBTESTADDR\fR\fR
741 .sp .6
742 .RS 4n
743 The hostname (or IP address) that will be used for sending and receiving
744 probes. If a unique test address has not been configured, this field will be
745 empty. Note that if an IP interface is configured with both IPv4 and IPv6 test
746 addresses, probe target information will be displayed separately for each test
747 address.
751 .ne 2
753 \fB\fBTARGETS\fR\fR
755 .sp .6
756 .RS 4n
757 A space-separated list of probe target hostnames (or IP addresses), in firing
758 order. If no probe targets could be found, this field will be empty.
761 If \fB-o\fR is not specified, all output fields are displayed.
764 .SH OUTPUT FORMAT
766 By default, \fBipmpstat\fR uses a human-friendly tabular format for its output
767 modes, where each row contains one or more fields of information about a given
768 object, which is in turn uniquely identified by one or more of those fields. In
769 this format, a header identifying the fields is displayed above the table (and
770 after each screenful of information), fields are separated by whitespace, empty
771 fields are represented by \fB--\fR (double hyphens), and other visual aids are
772 used. If the value for a field cannot be determined, its value will be
773 displayed as "\fB?\fR" and a diagnostic message will be output to standard
774 error.
777 Machine-parsable format also uses a tabular format, but is designed to be
778 efficient to programmatically parse. Specifically, machine-parsable format
779 differs from human-friendly format in the following ways:
780 .RS +4
782 .ie t \(bu
783 .el o
784 No headers are displayed.
786 .RS +4
788 .ie t \(bu
789 .el o
790 Fields with empty values yield no output, rather than showing \fB--\fR.
792 .RS +4
794 .ie t \(bu
795 .el o
796 Fields are separated by a single colon (\fB:\fR), rather than variable amounts
797 of whitespace.
799 .RS +4
801 .ie t \(bu
802 .el o
803 If multiple fields are requested, and a literal \fB:\fR or a backslash
804 (\fB\e\fR) occur in a field's value, they are escaped by prefixing them with
805 \fB\e\fR\&.
807 .SH EXAMPLES
809 \fBExample 1 \fRObtaining Failure Detection Time of a Specific Interface
812 The following code uses the machine-parsable output format to create a
813 \fBksh\fR function that outputs the failure detection time of a given IPMP IP
814 interface:
817 .in +2
819      getfdt() {
820          ipmpstat -gP -o group,fdt | while IFS=: read group fdt; do
821              [[ "$group" = "$1" ]] && { echo "$fdt"; return; }
822          done
823      }
825 .in -2
828 .SH ATTRIBUTES
830 See \fBattributes\fR(5) for descriptions of the following attributes:
833 \fB/usr/sbin/ipmpstat\fR:
838 box;
839 c | c
840 l | l .
841 ATTRIBUTE TYPE  ATTRIBUTE VALUE
843 Interface Stability     Committed
845 Machine-Parsable Format Committed
847 Human-Friendly Format   Not-an-Interface
852 \fB/sbin/ipmpstat\fR is not a Committed interface.
853 .SH SEE ALSO
855 \fBif_mpadm\fR(8), \fBifconfig\fR(8), \fBin.mpathd\fR(8),
856 \fBattributes\fR(5)