Template:Gsmctl commands: Difference between revisions
Appearance
No edit summary |
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=== | ||