Search This Blog

Friday, March 19, 2010

Where is net view for linux? How about nmbscan.

Had a customer incident where Network Neighborhood came up empty for the
whole network. Everyone could see no one! Marco! Polo! I ssh'd into their RHEL box and
tried to find out how to scan the network for NMB netbios shares. The
nmbclient command was installed but I wasn't sure how to use it. Fortunately
I found a wrapper program for nmbclient called nmbscan:
http://nmbscan.gbarbier.org/

# nmbscan -a

This showed me a master brower called "ROBIN" out there and not much else.
I told the sysadmin to shut down ROBIN. Re-running nmbscan then showed us a
ton of machines and people's network neighborhood browsing came to life.
Perhaps a virus was able to self-elect ROBIN as browse master and then
poisoned the nmb name cache - dunno.