smbtree [-b] [-D] [-S]
This tool is part of the Samba(7) suite.
smbtree is a smb browser program in text mode. It is similar to the "Network Neighborhood" found on Windows computers. It prints a tree with all the known domains, the servers in those domains and the shares on the servers.
-b ” Query network nodes by sending requests as broadcasts instead of querying the (domain) master browser.
-D ” Only print a list of all the domains known on broadcast or by the master browser
-S ” Only print a list of all the domains and servers responding on broadcast or known by the master browser.
-V ” Prints the program version number.
-s <configuration file> ” The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See smb.conf for more information. The default configuration file name is determined at compile time.
-d “debug=debuglevel ” debuglevel is an integer from 0 to 10. The default value if this parameter is not specified is zero.
-l “logfile=logbasename ” File name for log/debug files. The extension ".client" will be appended. The log file is never removed by the client.
-N ” If specified, this parameter suppresses the normal password prompt from the client to the user . This is useful when accessing a service that does not require a password.
-k ” Try to authenticate with kerberos. Only useful in an Active Directory environment.
-A “authfile=filename ” This option allows you to specify a file from which to read the username and password used in the connection. The format of the file is
username = <value> password = <value> domain = <value>
-U “user=username [ %password ” ] Sets the SMB username or username and password.
-h “help ” Print a summary of command line options.