dlandon / unassigned.devices

Unassigned Devices plugin for unRAID
Other
81 stars 39 forks source link

Fix list_samba_hosts #2 #48

Closed gfjardim closed 4 years ago

dlandon commented 4 years ago

Looks good, but it only shows the ip address of the Unraid server I'm scanning from, not the server name. Maybe remove that one from the list? The names aren't sorted.

dlandon commented 4 years ago

I've solved the sorted order.

gfjardim commented 4 years ago

Ok, there are two ways of doing this:

1) scan the network for port 445 and then resolving the NETBIOS name. This has the advantage of detecting hosts even if NETBIOS is disabled, by adding the IP address to the list;

2) override SAMBA configuration at nmblookup command. This will search que workgroup for NETBIOS enabled machines, but will left behind those with NETBIOS disabled.

I've chose the first one.

dlandon commented 4 years ago

Let me work with it a bit.