Line 1: |
Line 1: |
− | [TOC]
| + | __TOC__ |
| | | |
| ==Summary== | | ==Summary== |
Line 9: |
Line 9: |
| ==Examples== | | ==Examples== |
| | | |
− | ===Waking up connected to PC=== | + | ===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. |
| | | |
− | https://teltonika-networks.com/resources/webinars/86182577574/
| + | '''Info''': If a logfile is not required parts marked in <span style="color:#0000ff">blue</span> can be skipped or removed. |
| + | |
| + | #<span style="color:#0000ff">Removing old logfile: '''''rm /tmp/etherwake_logs'''''</span> |
| + | #Waking up connected PC: '''''/etc/init.d/etherwake start [PC_name_used_in_router]<span style="color:#0000ff"> >> /tmp/etherwake_logs'''''</span> |
| + | #<span style="color:#0000ff">Downloading logfile. File path to file location: '''''/tmp/etherwake_logs'''''</span> |
| + | |
| + | ===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: |
| + | |
| + | [[File:rms_task_manager_sn_ip_csv_file_example.png]] |
| + | |
| + | #Upload .csv from RMS to router using '''''/tmp/LAN_IP.csv''''' target file path |
| + | #Get device serial number: '''''mnf_info -s > /tmp/snfile''''' |
| + | #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''''' |
| + | #Set new LAN IP address: '''''IP=`cat /tmp/ipfile` && uci set network.lan.ipaddr=$IP''''' |
| + | #Commit changes: '''''uci commit''''' |
| + | #Restart interfaces: '''''/etc/init.d/network restart''''' |
| + | |
| + | ===Installing Python=== |
| + | |
| + | <span style="color:#d33">'''Disclaimer: before installing any 3rd party software make sure that the target device has a sufficient amount of free storage space!!!'''</span> |
| + | |
| + | '''Info''': If a logfile is not required parts marked in <span style="color:#0000ff">blue</span> can be skipped or removed. |
| + | |
| + | #<span style="color:#0000ff">Removing old file: '''''rm /tmp/opkg_logs''''''</span> |
| + | #Updating OpenWrt package manager repositories:'''''opkg update<span style="color:#0000ff"> >> /tmp/opkg_logs</span>''''' |
| + | #Installing Python3: '''''opkg install python3<span style="color:#0000ff"> >> /tmp/opkg_logs</span>''''' |
| + | #Installing Python3 PIP: '''''opkg install python3-pip<span style="color:#0000ff"> >> /tmp/opkg_logs</span>''''' |
| + | #<span style="color:#0000ff">Downloading logfile. File path to file location: '''''/tmp/opkg_logs'''''</span> |