You can get the string manually with the following:
screen /dev/ttyUSB0
ATZ
AT^NDISDUP=1,1,"h2g2"
AT^DHCP?
# This responds with something like:
# ^DHCP:11111111,22222222,33333333,44444444,55555555,66666666,100000000,50000000
#
# Note without cell tower responds with:
# +CME ERROR: no connection to phone
#
# Exit with
# ctrl+a,\,y
Based on: https://gist.github.com/jmacego/342c13f9275c9124c34208b9486d8eea
This script uses pyserial
and get everything directly from the modem. I plan on making this a full tool to modify
the routing next.