gsmdump (formerly known as s25dump) is a GSM cell tracker and cell broadcast decoder. It can gather information about the phone, dump the phone books and works with any GSM phone that supports the extended AT command set. It is open source software under the GPL.
To compile gsmdump just type 'make'. Have a look at the man page or 'gsmdump -h' for the options.
Usage: ./gsmdump [options]
Options: -c don't show info, only cell broadcasts.
-d < name > use device < name > for communication,
defaults to /dev/ircomm0.
-f < name > use file < name > as log file.
-h this 'help'.
-i only show info, no cell broadcasts.
-p don't dump phone books.
-q suppress signal quality messages.
-s < speed > set line speed.
-v verbose (debugging) output.