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 such as retrieving file or folder metadata (stat), listing directories, uploading, downloading, deleting files, and managing directories. It is useful in scenarios where automation workflows need to access or manipulate files on SMB network shares, for example, backing up files, synchronizing data, or monitoring file metadata.

Use Case Examples

  1. Get metadata of a file or folder on an SMB share to check its properties before processing.
  2. List contents of a directory on an SMB share to automate file management tasks.
  3. Upload or download files to/from an SMB share as part of a data integration workflow.

Properties

Name Meaning
Smbclient Path Custom path to smbclient binary, if not in PATH.
Remote Path The path on the SMB share to operate on (file or folder).

Output

JSON

  • metadata - Metadata information of the file or folder retrieved by the stat operation.

Dependencies

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

Troubleshooting

  • Common issues include incorrect smbclient path or missing smbclient installation, resulting in execution errors.
  • Errors may occur if the remote path does not exist or access permissions are insufficient.
  • NodeOperationError with message 'Unsupported operation' indicates an invalid operation parameter.

Links

Discussion