Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

netstrategy(8)

Name

netstrategy - return network configuration information

Synopsis

/usr/sbin/netstrategy [-v]

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

<primary interface>

Name of the primary network interface. If the network config strategy is 'dhcp', then this token is the name of the interface with which the primary dhcp lease is associated. If the network config strategy is not 'dhcp', this token is 'none'.

<network config strategy>

The means by which a system obtains its IP address for booting. This can be one of dhcp or none.

The netstrategy command is not intended for use on a command line.

Options

The following option is supported:

–v

Includes the IP version of the primary interface as a fourth token. If the primary interface is 'none', then this token will also be 'none'. If the network config strategy is 'dhcp' and the primary interface specified a valid interface, this token will have the value of 'inet' (an IPv4 address is primary) or 'inet6' (and IPv6 address is primary).

Exit Status

0

Success.

!=0

An error occurred.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Committed

See Also

mnttab(5), attributes(7), ipadm(8)