What is the most effective way to check Samba server availability from a Linux client?
Asked
Active
Viewed 3,996 times
As the comment suggests, test to see if the port is open. But instead of "telnet", using "nc" to just test if the port is open is much easier to check the result:
nc -z remotehost 139 && echo up || echo down