svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
netstrategy(8)
netstrategy(8) System Administration Commands 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 strat‐
egy 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 to‐
ken. 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:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Availabilitysystem/core-os _ Interface StabilityCommit‐
ted
SEE ALSO
mnttab(5), attributes(7), ipadm(8)
Oracle Solaris 11.4 08 March 2016 netstrategy(8)