Get modem SIM properties for mmcli
Aleksander Morgado
aleksandermj at chromium.org
Mon Apr 24 10:37:31 UTC 2023
Hey Brendan,
> Is there a way to get the modem SIM properties via the mmcli command?
>
> e.g. the ICCID or SimIdentifier
>
You can do this, yes. You can run "mmcli -m a" to get the list of
details for your modem, and that output will report a "primary sim
path" field, e.g.
---------------------------------
SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/0
You can then run "mmcli --sim /org/freedesktop/ModemManager1/SIM/0"
(or just "mmcli -i 0" shorter), e.g.:
-------------------------------
Properties | active: yes
| imsi: 21407....
| iccid: 89....
| operator id: 21407
| operator name: Movistar
| gid1: 01
| type: physical
| removability: removable
--
Aleksander
More information about the ModemManager-devel
mailing list