Open main menu
Home
Random
Log in
Settings
COMMUNITY
ABOUT
Disclaimers
Teltonika Networks Wiki
Search
Changes
← Older edit
Newer edit →
Template:Gsmctl commands
(view source)
Revision as of 13:47, 10 March 2023
807 bytes added
,
13:47, 10 March 2023
no edit summary
Line 52:
Line 52:
This section overviews basic ''gsmctl'' options, usually related to obtaining certain modem related information.
This section overviews basic ''gsmctl'' options, usually related to obtaining certain modem related information.
+
{{#ifeq:{{{series}}}|RUTOS| |
+
===Get IP address of logical interface===
+
----
+
To obtain the IP address of a network interface, use '''''-p''''' or '''''--ip''''' options.
+
+
'''Usage syntax''':
+
+
gsmctl <span style="color:blue;">-p</span>, <span style="color:blue;">--ip</span> <span style="color:purple;"><INTERFACE></span>
+
+
Where ''<INTERFACE>'' is the name of a network interface.
+
+
'''Example''': obtaining the IP address of the mobile connection interface:
+
+
root@Teltonika:~# gsmctl <span style="color:blue;">-p</span> <span style="color:purple;">wwan0</span>
+
<span style="color:red;">10.139.75.221</span>
+
+
Where '''''wwan0''''' is the name of the mobile interface when the connection type is set to QMI (default). You can get names of existing interfaces from '''''/etc/config/network''''' file.
+
}}
===Get number of bytes sent===
===Get number of bytes sent===
TomasG
Administrators
1,223
edits