netstrategy(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

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)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3