How to get the ESSID of the current network

Jonathan Haug jonathanhaug at wolke7.net
Tue Mar 22 03:07:37 PDT 2011


> > Dear dbus-list! 
> > I'm trying to get the name / essid of the current (wifi-) network via dbus. 
> 
> DBus by itself won't tell you that. You need to look at connman, networkmanager and wicd for their respectives DBus interfaces. d-feet may be of help here.

Ok, I'm using NetworkManager and found
http://people.redhat.com/dcbw/NetworkManager/NetworkManager%20DBUS%
20API.txt

I tried 

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/NetworkManager/Devices/eth1
org.freedesktop.NetworkManager.getActiveNetwork

but get the follwing error:

Error org.freedesktop.DBus.Error.UnknownMethod: Method
"getActiveNetwork" with signature "" on interface
"org.freedesktop.NetworkManager" doesn't exist

Thanks for your help!





More information about the dbus mailing list