OpenWrt news, tools, tips and discussion. Related projects, such as DD-WRT, Tomato and OpenSAN, are also on-topic.
How can I retrieve IMEI number from a device running OpenWRT?
I've got a Chinese WiFi/Cellular router that came pre-loaded with OpenWRT (OpenWrt Barrier Breaker unknown / LuCI Trunk (svn-r10457)).
How can I retrieve the IMEI number for the 4G interface it has? (The interface appears to be named "3g-4G_WAN".)
Is there a command I can use when logged in via SSH, perhaps?
Connect to the device (eg.: sudo minicom -D /dev/ttyUSB0), enable local echo (ctrl+a e), and send at commands: try: ATi1 AT+CGSN ATi ...
Just guessing, but try "ip address" or "dmesg" at a command prompt. You might also try installing pciutils ("opkg install pciutils") to run the "lspci -vv" command.