Open main menu
Home
Random
Log in
Settings
COMMUNITY
ABOUT
Disclaimers
Teltonika Networks Wiki
Search
Changes
← Older edit
Newer edit →
RMS Task Manager Examples
(view source)
Revision as of 15:35, 17 December 2021
184 bytes added
,
15:35, 17 December 2021
no edit summary
Line 25:
Line 25:
[[File:rms_task_manager_sn_ip_csv_file_example.png]]
[[File:rms_task_manager_sn_ip_csv_file_example.png]]
−
# Upload .csv from RMS to router using '''''/tmp/LAN_IP.csv''''' target file path
+
#Upload .csv from RMS to router using '''''/tmp/LAN_IP.csv''''' target file path
−
# Get device serial number: '''''mnf_info -s > /tmp/snfile'''''
+
#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'''''
+
#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===
===Installing Python===
Tomas.mikolaitis
Administrators
732
edits