NavigationUpcoming events |
Useful Samba Networking CommandsThere are several useful commands available to the Samba network admin. When it comes to networking, there are two important points of view... what the server sees and what the client sees. Windows networking relies on extensive (and complex) caching on each client. Sometimes a wait of 5-15 minutes will solve network 'issues' on a client. Other times the server is responsible. You must look in both places to determine the source(s) of your problem(s). Login as root on the PDC (Primary Domain Controller).
Type watch <command> to 'watch' the items listed changing every 2 seconds. eg watch 'net status sessions' or watch 'nmblookup TOASTERZDOM#1b'. Quotes optional on most commands, some command lines with options will need them, for example to look in the live log for only 10.0.1.65 netbios activity: type watch 'tail /var/log/samba/nmbd.log | grep 192.168.1.165' won't work without the quotes. On Windows clients from the dos prompt use nbtstat.
Add 'interval' to the end of a command to redisplay selected stats, pausing 'interval' number of seconds between each display. Press CTRL-C to stop. For example to diplay the cache contents every 5 seconds use nbtstat -c 5. |