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?
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
yes I just want to be complete. I guess I could always answer 'Unknown" but I like being pedantic On Fri, Mar 8, 2019 at 8:41 AM Rowland Penny via samba <samba at lists.samba.org> wrote:> > 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 > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba