I was wondering if there is a way of listing all the smb servers on a local network (like looking at a network neighborhood in windows) via the command line in fedora.
This command is a very little known secret of Samba. It returns IP adresses of all Samba servers in one's own broadcast domain:
This one returns a list of all NetBIOS names and their aliases of all Samba servers in the neighbourhood (it does a 'node status query'):
This one returns a list of all IP adresses of SMB servers (that is, Linux+Unix/Samba or Windows) in the neighbourhood:
Finally, all NetBIOS names and their aliases of all SMB servers (Linux+Unix/Samba or Windows):
The command given in the other answer
On my network - as of this writing (things do change) - smbtree is my preferred solution. It asks for your password (meaning your Samba password), and then it gives a nicely detailed list that includes netbios name, available shares, and the share description.
nmblookup, on the other hand, does not list all the available shares on my network. I do not know why it does not, but it doesn't.
From the smbtree man page:
The nmblookup command does have more switches and options. The nmblookup man page: nmblookup man page
Noted for posterity - as these answers do stick around - and as I said, I find that smbtree would be a better answer to the OP on my network.