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 operations such as creating directories, listing directories, uploading and downloading files, deleting files, and retrieving file metadata. It is useful for automating file management tasks on SMB shares within workflows, such as creating a new directory on a remote SMB share.

Use Case Examples

  1. Creating a directory on an SMB share to organize files.
  2. Listing contents of a directory on an SMB share to process files.
  3. Uploading or downloading files to/from an SMB shares as part of an automated workflow.

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 where the operation (list, mkdir, rmdir) will be performed.

Output

JSON

  • `` - The output depends on the operation performed; for 'Make Directory', it typically confirms the directory creation status.

Dependencies

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

Troubleshooting

  • Common issues include incorrect smbclient path, insufficient permissions on the SMB share, or network connectivity problems to the SMB server.
  • Error messages may indicate unsupported operations if an invalid operation is specified.
  • Ensure the smbclient binary is installed and accessible, and credentials for SMB access are correctly configured.

Links

Discussion