DbusNetwork driver¶
The DbusNetwork driver is a driver for transparently accessing the dbus on the remote machine.
Driver configuration¶
type: "jumpstarter_driver_network.driver.DbusNetwork"
config:
kind: "system" # which bus to connect to, system or session
Client API¶
- class jumpstarter_driver_network.client.DbusNetworkClient¶
Get machine id of the remote machine
>>> with dbus:
... print(subprocess.run([
... "busctl",
... "call",
... "org.freedesktop.systemd1",
... "/org/freedesktop/systemd1",
... "org.freedesktop.DBus.Peer",
... "GetMachineId"
... ], stdout=subprocess.PIPE).stdout.decode()) # s "34df62c767c846d5a93eb2d6f05d9e1d"
s ...