#!/usr/bin/python import dbus bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), "org.moblin.connman.Manager") properties = manager.GetProperties() def print_list(key, value): text = "" for path in value: text = text + str(path) + " " print "%s = %s" % (key, text) for key in properties.keys(): if (key in ["Profiles", "Devices", "Connections"]): print_list(key, properties[key]) else: print "%s = %s" % (key, properties[key])