SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Overview

This node interacts with SMB shares using the smbclient CLI, allowing users to perform various file operations on SMB shares. The 'List Directory' operation specifically lists the contents of a directory on the SMB share. This is useful for scenarios where users need to browse or audit files and folders on remote SMB shares, such as in network file management or automated workflows involving SMB resources.

Use Case Examples

  1. Listing files in a shared network folder to process or monitor them.
  2. Automating directory content retrieval for backup or synchronization tasks.

Properties

Name Meaning
Smbclient Path Custom path to the smbclient binary if it is not in the system PATH.
Directory The directory path on the SMB share to list contents from.

Output

JSON

  • array
    • name - Name of the file or directory entry.
    • type - Type of the entry (e.g., file, directory).
    • size - Size of the file in bytes.
    • modifiedTime - Last modified timestamp of the entry.

Dependencies

  • Requires smbclient CLI installed and accessible, or a custom path to smbclient provided.

Troubleshooting

  • Ensure smbclient is installed and accessible at the specified path; otherwise, the node will fail to execute.
  • Common error messages include 'Unsupported operation' if an invalid operation is selected, or connection errors if SMB credentials or network access are incorrect.
  • If the directory path is invalid or inaccessible, the node may return an empty list or an error.

Links

Discussion