Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
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.
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.
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]
/sbin/netstrategy
The netstrategy command determines the network configuration strategy in use on a system and returns information in a form that is easily consumable by a script. The command returns three tokens:
<root filesystem type> <primary interface> <network config strategy>
These tokens are described as follows: <root filesystem type>
Type of filesystem that contains the bootable kernel, as would be specified in the fstype column of the mnttab(5).
Name of the primary network interface. For a diskless machine, this is the interface used to load the kernel.
The means by which a system obtains its IP address for booting. This can be one of rarp, dhcp, or none.
The netstrategy command is not intended for use on a command line.
The netstrategy command has no options.
Success.
An error occurred.
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Evolving |
mnttab (5), attributes (7), ifconfig (8)