Skip to content

Community thin-edge.io plugin for the Cumulocity IoT command/shell operation 💻

License

Notifications You must be signed in to change notification settings

thin-edge/c8y-command-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c8y-command-plugin

thin-edge.io Cumulocity IoT shell plugin to process the c8y_Command operation.

Plugin summary

What will be deployed to the device?

  • Cumulocity IoT command handler (binary) that allows users to execute a command in a shell

Technical summary

The following details the technical aspects of the plugin to get an idea what systems it supports.

Languages shell (posix compatible)
CPU Architectures all/noarch. Not CPU specific
Supported init systems N/A
Required Dependencies -
Optional Dependencies (feature specific) -

How to do I get it?

The following linux package formats are provided on the releases page and also in the tedge-community repository:

Operating System Repository link
Debian/Raspian (deb) Latest version of 'c8y-command-plugin' @ Cloudsmith
Alpine Linux (apk) Latest version of 'c8y-command-plugin' @ Cloudsmith
RHEL/CentOS/Fedora (rpm) Latest version of 'c8y-command-plugin' @ Cloudsmith

Configuration

The Cumulocity IoT shell plugin can be configured with the following properties.

Property Value Description
SHELL_BIN string Default shell to be used to execute the received command. If left blank, then the shell will be auto-detected. If a non-empty value is used. If the shell does not exist, then an error will be raised. The shell will be used using <shell> -c "<COMMAND>".
SHELL_OPTIONS Whitespace separated list List of shells to check if they exist. The plugin will use the first detected shell

The configuration is managed from the following file, and an example of the contents are shown below.

File

/etc/c8y-command-plugin/env

Contents

SHELL_BIN=""
SHELL_OPTIONS="bash zsh ash dash sh /my/custom/shell/interpreter"