[Samba] ipconfig equivalent in linux samba specific

Rowland Penny rpenny at samba.org
Fri Mar 8 15:40:16 UTC 2019


On Fri, 8 Mar 2019 08:22:25 -0700
Jeff Sadowski via samba <samba at lists.samba.org> wrote:

> In general for what most people do ipconfig is equivalent to ifconfig
> (getting phased out) or ip in linux.
> 
> What I am trying to do is create ipconfig script that acts identical
> to the windows behavior's output so I can create better scripts in
> powershell that work on both platforms.
> 
> ipconfig has few options that are not listed with ifconfig or ip.
> The Windows IP Configuration section has two values I am unsure of
> Specifically "Node type" output from ipconfig. Is there a way in linux
> to get the nodetype? I don't think it applies in general. Is it used
> in Samba?
> and
> Wins Proxy Enabled
> 
> I can get hostname and primary dns suffix from the hostname command
> I can get DNS Suffix Search List from /etc/resolv.conf
> I think I can get Description from dmesg
> ip routing enabled I can probably get by doing an analysis of the
> routes and if there are more than one I might want to output yes
> there might be better ways
> 
> Are these set in samba? is there a command I can use to get these
> values that you guys know of?
> 

I take it we are talking about netbios node types and wins here ?

If we are and we are also talking about AD, why bother ? netbios is
going away and you should use dns instead of wins.

Rowland



More information about the samba mailing list