2 .\" Copyright (C) 2001, 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 IFPARSE 1M "May 9, 2001"
8 ifparse \- parse \fBifconfig\fR command line
12 \fB/sbin/ifparse\fR [\fB-fs\fR] \fIaddr_family\fR \fIcommands\fR
18 Use the \fBifparse\fR command to parse the \fBifconfig\fR(1M) command line
19 options and output substrings, one per line, as appropriate. If no options are
20 specified, \fBifparse\fR returns the entire \fBifconfig\fR command line as a
21 series of substrings, one per line.
25 The \fBifparse\fR command supports the following options:
32 Lists only substrings of the \fBifconfig\fR command line that are relevant to
33 IP network multipath failover
42 Lists only substrings of the \fBifconfig\fR command line that are not relevant
43 to IP network multipath failover
49 The \fBifparse\fR command \fBdoes not\fR support the \fIinterface\fR operand of
50 the \fBifconfig\fR command.
53 \fBExample 1 \fRParsing Command Line Options Relevant to Failover
56 The following example shows the use of the \fBifparse\fR command to parse the
57 command line options relevant to IP network multipath failover:
62 example# \fBifparse -f inet 1.2.3.4 up group one addif 1.2.3.5 -failover up\fR
69 \fBExample 2 \fRParsing Command Line Options That Are Not Relevant to Failover
72 The following example shows the use of the \fBifparse\fR command to parse the
73 command line options that are not relevant to IP network multipath failover:
78 example# \fBifparse -s inet 1.2.3.4 up group one addif 1.2.3.5 -failover up\fR
80 addif 1.2.3.5 -failover up
86 \fBExample 3 \fRParsing the Command Line For All Options
89 The following example shows the use of the \fBifparse\fR command to parse the
90 command line for all \fBifconfig\fR options:
95 example# \fBifparse inet 1.2.3.4 up group one addif 1.2.3.5 -failover up\fR
98 addif 1.2.3.5 -failover up
106 See \fBattributes\fR(5) for descriptions of the following attributes:
114 ATTRIBUTE TYPE ATTRIBUTE VALUE
116 Stability Level Obsolete
122 \fBifconfig\fR(1M), \fBattributes\fR(5)
126 usage: \fB-fs\fR <addr_family> <commands>
131 This message indicates an invalid command line.
136 \fBifparse\fR: Not enough space
141 This message indicates insufficient memory.
146 \fBifparse\fR: dhcp not supported for inet6
151 DHCP operations are not supported for the \fBinet6\fR address family.
156 \fBifparse\fR: Operation <operation> not supported for <addr_family>
161 Most operations cannot be used with all address families. For example, the
162 \fBbroadcast\fR operation is not supported on the \fBinet6\fR address family.
167 \fBifparse\fR: no argument for <operation>
172 Some operations, for example \fBbroadcast\fR, require an argument.
178 The \fBifparse\fR command is classified as an obsolete interface. It will
179 likely be removed in a future release. You should not develop applications that
180 depend upon this interface.