xref: /titanic_50/usr/src/man/man1m/netstrategy.1m (revision 3d729aecc03ea6ebb9bd5d56b8dccd24f57daa41)
te
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]
NETSTRATEGY 1M "May 5, 2007"
NAME
netstrategy - return network configuration information
SYNOPSIS

/sbin/netstrategy
DESCRIPTION

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(4).

<primary interface>

Name of the primary network interface. For a diskless machine, this is the interface used to load the kernel.

<network config strategy>

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.

OPTIONS

The netstrategy command has no options.

EXIT STATUS
0

Success.

!=0

An error occurred.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Evolving
SEE ALSO

ifconfig(1M), mnttab(4), attributes(5)