# WR 21 - read modem info from python?

**URL:** <https://forums.digi.com/t/wr-21-read-modem-info-from-python/18313>\
**Category:** Python\
**Tags:** wr21, python\
**Created:** [May 1, 2017, 10:53am UTC](https://forums.digi.com/t/wr-21-read-modem-info-from-python/18313 "2017-05-01T10:53:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrocle](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@patrocle](https://forums.digi.com/u/patrocle)\
**Post date:** [May 1, 2017, 10:53am UTC](https://forums.digi.com/t/wr-21-read-modem-info-from-python/18313/1 "2017-05-01T10:53:00Z")

</div>

I want to write a python script for WR 21 to read:

- SIM card info;
- optional: modem serial number, signal strength;

---

<div class="post-metadata">

**Author:** ![James.Wilson](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@James.Wilson](https://forums.digi.com/u/James.Wilson)\
**Post date:** [May 24, 2017, 6:09am UTC](https://forums.digi.com/t/wr-21-read-modem-info-from-python/18313/2 "2017-05-24T06:09:19Z")

</div>

Hi

you have diffrent places you can get the information from such as the

Modemstat ?

or the at\mibs=gprs.0.stats

you would then need to extract the information from there that you need
