1

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

1
  • 1
    telnet <remotehostname> 139 or nmap -p 139 <remotehostname> should do it. For telnet if you get the message 'telnet: Unable to connect to remote host: Connection refused' then the host does not expose samba to you. see more info on how to test port TCP\139 here: superuser.com/questions/769541/… Commented Jan 28, 2016 at 14:44

1 Answer 1

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
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .