| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- parseifconfig command line
/usr/sbin/ifparse [-fs]addr_familycommands
Use theifparse command to parse theifconfig(1M) command line options andoutput substrings, one per line, as appropriate. If no options are specified,ifparse returns the entireifconfig command line as a series of substrings,one per line.
Theifparse command supports the following options:
Lists only substrings of theifconfig command line that are relevant to IP network multipath failover
Lists only substrings of theifconfig command line that are not relevant to IP network multipath failover
Theifparse commanddoes not support theinterface operand of theifconfig command.
Example 1 Parsing Command Line Options Relevant to Failover
The following example shows the use of theifparse command to parsethe command line options relevant to IP network multipath failover:
example#ifparse -f inet 1.2.3.4 up group one addif 1.2.3.5 -failover upset 1.2.3.4 up
Example 2 Parsing Command Line Options That Are Not Relevant to Failover
The following example shows the use of theifparse command to parsethe command line options that are not relevant to IP network multipathfailover:
example#ifparse -s inet 1.2.3.4 up group one addif 1.2.3.5 -failover upgroup oneaddif 1.2.3.5 -failover up
Example 3 Parsing the Command Line For All Options
The following example shows the use of theifparse command to parsethe command line for allifconfig options:
example#ifparse inet 1.2.3.4 up group one addif 1.2.3.5 -failover upgroup oneset 1.2.3.4 upaddif 1.2.3.5 -failover up
Seeattributes(5) for descriptions of the following attributes:
|
usage:-fs <addr_family> <commands>
Description: This message indicates an invalid command line.
ifparse: Not enough space
Description: This message indicates insufficient memory.
ifparse: dhcp not supported for inet6
Description: DHCP operations are not supported for theinet6 address family.
ifparse: Operation <operation> not supported for <addr_family>
Description: Most operations cannot be used with all address families. For example, thebroadcast operation is not supported on theinet6 address family.
ifparse: no argument for <operation>
Description: Some operations, for examplebroadcast, require an argument.
Theifparse command is classified as an obsolete interface. It will likelybe removed in a future release. You should not develop applications thatdepend upon this interface.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |