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, specifically supporting operations like deleting files, downloading files, listing directories, creating and removing directories, getting file/folder metadata, and uploading files. It is useful for automating file management tasks on SMB shares, such as deleting a file remotely by specifying its path.

Use Case Examples

  1. Deleting a file from an SMB share by specifying the remote path and using the Delete File operation.
  2. Listing contents of a directory on an SMB share.
  3. Uploading or downloading files to/from an SMB share.

Properties

Name Meaning
Smbclient Path Custom path to smbclient binary, if not in PATH.
Remote Path The path on the SMB share to the file or folder to operate on (used in operations like stat, get, put, del).

Output

JSON

  • `` - The output depends on the operation performed; for Delete File, it typically confirms deletion success or failure.

Dependencies

  • Requires smbclient CLI installed and accessible, optionally with a custom path specified.

Troubleshooting

  • Common issues include unsupported operations if an invalid operation is specified.
  • Errors may occur if smbclient is not installed or not found at the specified path.
  • Permission errors if the SMB credentials do not have rights to delete the specified file.
  • Network or connectivity issues to the SMB share.

Discussion