RE: Get modem SIM properties for mmcli

2023-05-03 Thread Brendan Simon
practically non-existent. I either parse the raw human text output or use the -K option and parse. Thanks, Brendan. From: Filip Kubicz Sent: Monday, April 24, 2023 9:01 PM To: Brendan Simon Cc: modemmanager-devel@lists.freedesktop.org Subject: Re: Get modem SIM properties for mmcli This email

Re: Get modem SIM properties for mmcli

2023-04-24 Thread Filip Kubicz
I assumed you need to parse it for a program, but if you just need a human-readable version, you can also use mmcli -i 0 For a quick overview, and to filter it, grep for the line that you are interested in. Kind regards, Filip On Mon, Apr 24, 2023 at 12:58 PM Filip Kubicz wrote: > Hi Brendan,

Re: Get modem SIM properties for mmcli

2023-04-24 Thread Filip Kubicz
Hi Brendan, There are a few approaches but a convenient method to retrieve values from mmcli is to use -J flag to get the JSON output. For example, to get modem IMEI, you can do (in bash): modem="$(mmcli --list-modems -J | jq '."modem-list"[0]' -r)" imei="$(mmcli -m ${modem} -J |

Re: Get modem SIM properties for mmcli

2023-04-24 Thread Aleksander Morgado
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. -

Get modem SIM properties for mmcli

2023-04-24 Thread Brendan Simon
IND.T Classification: Public Is there a way to get the modem SIM properties via the mmcli command? e.g. the ICCID or SimIdentifier org.freedesktop.ModemManager1.Sim: ModemManager Reference Manual (www.freedesktop.org)