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
234 views 1 comments
by anonymous
Hi, how can one query the mobile APN on a RUT240 modem via JSON-RPC or GSMCTL commands?

Thanks

1 Answer

0 votes
by anonymous

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 anonymous

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