FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
422 views 7 comments
by anonymous

Hello,

Since 7.3 if i look in Gsmctl commands - Teltonika Networks Wiki (teltonika-networks.com)

this command does not work anymore and i cannot find the correct one to get the information as below.

Could you help me out.

To obtain the IP address of a network interface, use -p or --ip options.

Usage syntax:

gsmctl -p, --ip <INTERFACE>

Where <INTERFACE> is the name of a network interface.

Example: obtaining the IP address of the mobile connection interface:

root@Teltonika:~# gsmctl -p wwan0
10.139.75.221

1 Answer

0 votes
by anonymous

Hello,

Since 7.3 gsmctl does not provide such information. You can list all available options by simply executing gsmctl in the command line.

Below is the command you can try to use to obtain IP address currently assigned to the mobile interface:

  • ubus call gsm.modem0 get_pdp_addr_list | grep addr | cut -d '"' -f 4 

Best regards,

by anonymous
Hello,

Thank you thats to bad.

the command u provide gives me the mac address
by anonymous

An example of acquiring LAN interface MAC address:

  • ubus call network.device status '{"name":"eth0"}' | grep macaddr | cut -d '"' -f 4 
by anonymous

No i mean

  • ubus call gsm.modem0 get_pdp_addr_list | grep addr | cut -d '"' -f 4
this one u provided but it does not call for ip address it calls for mac address
by anonymous

Which device are you using, as the command returns IP on RUTX, RUT9 and RUT2 with 7.3?

Also, what is the modem model in your device: Quectel or MeiG?

Could you simply try:

  • ubus call gsm.modem0 get_pdp_addr_list
by anonymous
Hello,

Strange the first command works now.

Thanks alot.

I also figured some more info we needed that does not work anymore could you provide me with the commands for.

gsmctl: unrecognized option: revision

gsmctl: unrecognized option: sinr

gsmctl: unrecognized option: rsrp

gsmctl: unrecognized option: rsrq

gsmctl: unrecognized option: rscp

gsmctl: unrecognized option: ecio

These used to work before 7.3 and i want to try out the new firmware:)

Thanks
by anonymous
We use this on rut x devices.
by anonymous

You can try: 

  • ubus call gsm.modem0 get_signal_query

which returns something like below:

{
        "net_mode_id": 21,
        "net_mode": "LTE",
        "rssi": -55,
        "rsrp": -87,
        "sinr": 2,
        "rsrq": -15
}

then grep and cut whatever is necessary for you.

Next, if by revision you mean firmware, execute the command below:

  • ubus call gsm.modem0 get_firmware