Usecase #2: To Install Python packages: #!/bin/shĮcho 'MOTOR_SPEED=300 LED_DISPLAY=true TEST_RUN=yes LOG_FILE="/var/log/mylogfile.log" DEBUG_LEVEL=2' > /var/lib/myapp/app.config Update the CURL command above with the appropriate public URL. Obtain the public URL to access your artifact from your cloud storage provider. All you need to do is upload your IoT application to AWS S3 or DropBox or Google Drive. You could use the sample script above to update your IoT application too. Usecase #1: To Update SocketXP Agent on your Linux Servers or IoT devices: #!/bin/sh Sample Script Files For Various Use Cases Here are the two IoT Devices we’ll use for this demo: Script File Deployment also collects the log (outputs and errors) from each one of the IoT devices in the group and presents it to you in the OTA dashboard. It then executes the script execution command you specify to run the script or python program. Script File Deployment uploads the shell script or the python program from your local machine to a specific directory path in your remote IoT devices. When you want to run a single shell command or a set of shell commands or a shell script or a python program on multiple Linux based IoT devices(or Linux servers), you could use Script File Deployment to automate the task. In the following sections, we’ll demonstrate how to perform various device software management tasks using these two OTA deployment types. Remote Jobs or OTA deployments can be classified into two broad categories: It takes less than a minute to setup SocketXP agent on your devices using the SocketXP Single-Touch Installation Command. You need to install the SocketXP remote SSH agent on your Linux servers or IoT devices to securely remote access those Linux devices from anywhere in the world.įollow the instructions here to setup Linux device remote SSH access over the internet. Update software packages or tools (such as Java, Python, NodeJS, NPM) installed in a group of IoT devices.Update the application software running in multiple Linux devices.Update configuration file in multiple Linux devices.Execute a Python program or any program or application in multiple IoT devices.Execute a shell command or a shell script in multiple Linux servers.In this section, we’ll discuss how to create and deploy SocketXP Remote Jobs (OTA updates) to execute shell commands or scripts on multiple remote linux servers for the following usecases: What is a Remote JobĪ Remote Job is nothing but a Linux shell command or a shell script that needs to be scheduled to run on single or multiple Linux servers or IoT devices. SocketXP is absolutely free to try for all users. SocketXP OTA or Remote Job Automation feature eliminates the need to manually SSH login to multiple remote Linux devices to execute shell commands to perform (device software management) tasks such as re-configuring, updating software, debugging or simply running a shell script. SocketXP OTA (Over The Air) or Remote Job Automation feature automates and simplifies the execution of shell commands or scripts on multiple Linux servers over SSH. When you have hundreds or thousands of linux servers or embedded Linux devices deployed in the field, it becomes very hard, challenging and time consuming to manually remote SSH login to each one of those Linux servers to run the same set of shell commands to re-configure, update software, or execute a script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |