RMS Task Manager Examples

From Teltonika Networks Wiki
Revision as of 15:12, 17 December 2021 by Tomas.mikolaitis (talk | contribs)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

Summary

RMS Task Manager is a tool integrated into RMS Management. It is designed in a way, where users can easily send Linux terminal commands, upload and download files to connected Teltonika Networks routers and gateways.

On this page, you will find several examples of how RMS Task Manager can be used with Teltonika Networks devices.

Examples

Waking up to router connected PC

Before starting RMS configurations, make sure that the router to which commands will be sent has Wake On LAN package installed and PC information configured.

Info: If a logfile is not required parts marked in blue can be skipped or removed.

  1. Removing old logfile: rm /tmp/etherwake_logs
  2. Waking up connected PC: /etc/init.d/etherwake start [PC_name_used_in_router] >> /tmp/etherwake_logs
  3. Downloading logfile. File path to file location: /tmp/etherwake_logs

Configuring unique LAN IP address

Before starting prepare .csv file and upload in RMS as Task manager file, which provides information as shown in image below:

  1. Upload .csv from RMS to router using /tmp/LAN_IP.csv target file path
  2. Get device serial number: mnf_info -s > /tmp/snfile
  3. Get IP address from csv file: SN=`cat /tmp/snfile` && grep $SN /tmp/LAN_IP.csv | grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])' > /tmp/ipfile
  4. Set new LAN IP address: IP=`cat /tmp/ipfile` && uci set network.lan.ipaddr=$IP
  5. Commit changes: uci commit
  6. Restart interfaces: /etc/init.d/network restart

Installing Python

Disclaimer: before installing any 3rd party software make sure that the target device has a sufficient amount of free storage space!!!

Info: If a logfile is not required parts marked in blue can be skipped or removed.

  1. Removing old file: rm /tmp/opkg_logs'
  2. Updating OpenWrt package manager repositories:opkg update >> /tmp/opkg_logs
  3. Installing Python3: opkg install python3 >> /tmp/opkg_logs
  4. Installing Python3 PIP: opkg install python3-pip >> /tmp/opkg_logs
  5. Downloading logfile. File path to file location: /tmp/opkg_logs