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
On Fri, 8 Mar 2019 09:08:45 -0700 Jeff Sadowski <jeff.sadowski at gmail.com> wrote:> yes I just want to be complete. I guess I could always answer > 'Unknown" but I like being pedantic >Nothing wrong with being pedantic ;-) I do not think there is anyway to find out the 'node type' of a Samba machine, it seems to be a Windows thing. You should be able to find out about 'Wins Proxy Enabled' by grep'ing smb.conf for 'wins proxy', by default it is set to 'no'. Rowland
Thanks. I think node type might also be in smb.conf file. On Fri, Mar 8, 2019 at 10:09 AM Rowland Penny via samba <samba at lists.samba.org> wrote:> > On Fri, 8 Mar 2019 09:08:45 -0700 > Jeff Sadowski <jeff.sadowski at gmail.com> wrote: > > > yes I just want to be complete. I guess I could always answer > > 'Unknown" but I like being pedantic > > > > Nothing wrong with being pedantic ;-) > > I do not think there is anyway to find out the 'node type' of a Samba > machine, it seems to be a Windows thing. You should be able to find out > about 'Wins Proxy Enabled' by grep'ing smb.conf for 'wins proxy', by > default it is set to 'no'. > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba