Reading IMSI

Nathaniel Haggard natester at
Wed Sep 6 16:22:09 UTC 2017

I'd like to read the IMSI just before assigning APN, but

~# mmcli -m 0 --command="AT+CIMI"
error: command failed:
'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: Cannot
send AT command to modem: operation only allowed in debug mode'

and sometimes:

~# qmicli -d /dev/cdc-wdm0 --dms-uim-get-imsi | grep IMSI: | cut -d "'" -f2
error: couldn't create client for the 'dms' service: CID allocation failed
in the CTL client: Transaction timed out

other times I get this:

~# qmicli -d /dev/cdc-wdm0 --dms-uim-get-imsi
[/dev/cdc-wdm0] UIM IMSI retrieved:
IMSI: '310410874358522'

I thought qmi-proxy took care of locking issues.  How can I get the IMSI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ModemManager-devel mailing list