Geomagnetic diagnosis of the magnetosphere