2

What is the most effective way to check Samba server availability from a Linux client?

atevm
  • 379

1 Answers1

2

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
PBI
  • 321