FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14217 questions

16871 answers

27753 comments

54389 members

0 votes
123 views 1 comments
by
Hi, how can one query the mobile APN on a RUT240 modem via JSON-RPC or GSMCTL commands?

Thanks

1 Answer

0 votes
by

Hi,

You can use the following AT command to obtain APN information:

  • gsmctl -A AT+CGDCONT?

You can cut the output to return only the APN name:

  • gsmctl -A AT+CGDCONT? | cut -d '""' -f4 | head -n1

As an option, you can find APN information via ubus command:

  • ubus call gsm.modem0 get_pdp_ctx_list | grep apn

An example of JSON-RPC:

Kind Regards,

Andzej

Best answer
by

Hi again, how can we get this APN information via the WEB UI?

My router has FW ver.: RUT2XX_R_00.01.14.6

thanks

EDIT: asked a new question here:

https://community.teltonika-networks.com/59853/how-can-we-get-the-mobile-apn-on-the-web-ui