BUSCTL(1) busctl BUSCTL(1) busctl - busctl [...] [] [...] busctl D-Bus. : list . , , --unique --acquired. , . 209. status [] ( ), ( PID) ( ). 209. monitor [...] . , . , . Ctrl+C . 209. capture [...] monitor, pcapng ( , . PCAP Next Generation (pcapng)[1]). , . - , wireshark(1). 218. tree [...] ' . , ' . , ' , . 218. introspect ' [] , , ' ( ) . , . 218. call ' [E [...]] . , ', . , , , . . , --quiet. 218. emit ' [ [...]] . ', . , , , . . , --destination=. 242. get-property ' ... '. , ', . . , . , , . --verbose, . 218. set-property ' ... '. , ', , , , , , . 218. help . 209. : --address= ' , , (. --system --user). 209. --show-machine , , . . systemd-machined.service(8). 209. --unique , <<>> ( ":."). 209. --acquired --unique -- <<>> . 209. --activatable , , . 209. --match= , . . sd_bus_add_match(3). 209. --size= capture, ("snaplen"). 4096 . 218. --list tree, ' . 218. -q, --quiet call, -. , , , . 218. --verbose call get-property, . 218. --xml-interface introspect, XML, D-Bus org.freedesktop.DBus.Introspectable.Introspect, . 243. --json= call get-property, JSON. : "short" ( ) "pretty" ( ). , D-Bus JSON , , ' JSON. 240. -j --json=pretty, . , --json=short, , . 240. --expect-reply= call, , busctl , . "no", , , , , , . -, --quiet, . "yes". 218. --auto-start= call emit, , , , . "yes". 218. --allow-interactive-authorization= call, , , . "yes". 218. --timeout= call, . , . (ms, us, s, min, h, d, w, month, y). , , --expect-reply=no, -. 0, "25s". 218. --augment-creds= , , list status, /proc/. , , , , , /proc/, . "yes". 218. --watch-bind= , AF_UNIX ' . , . , , '. 237. --destination= . emit, . 242. --user , , . --system . . -H, --host= . <<@>> ' , '. , ' ssh. . , , <>, ' . ' SSH. machinectl -H . IPv6 . -M, --machine= . , ', ' , <<@>>. <<.host>>, ' ( ' : <<--user --machine=lennart@.host>>). <<@>>, ' root. <<@>>, ( ). ' <<.host>>, . -l, --full list. 245. --no-pager . --no-legend , . -h, --help . --version . call set-property , , ( D-Bus D-Bus[2]). , . "true", "yes", "on" "1"; "false", "no", "off" "0". . , . . : s jawoll "jawoll". as 3 hello world foobar , "hello", "world" "foobar". a{sv} 3 One s Eins Two u 2 Yes b true , ' . "One" ' "Eins". "Two" ' 32- 2. "Yes" ' . , call, get-property, introspect . , call get-property , --verbose. 1. , . ' "/org/freedesktop/systemd1" "org.freedesktop.systemd1". "LogLevel" "org.freedesktop.systemd1.Manager". : # busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug # busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s "debug" 2. , , , : $ busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager Environment as 2 "LANG=en_US.UTF-8" "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" $ busctl get-property --verbose org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager Environment ARRAY "s" { STRING "LANG=en_US.UTF-8"; STRING "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"; }; 3. "StartUnit" "org.freedesktop.systemd1.Manager" ' "/org/freedesktop/systemd1" "org.freedesktop.systemd1" , "cups.service" "replace". ': # busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager StartUnit ss "cups.service" "replace" o "/org/freedesktop/systemd1/job/42684" . dbus-daemon(1), D-Bus[3], sd-bus(3), varlinkctl(1), systemd(1), machinectl(1), wireshark(1) 1. PCAP Next Generation (pcapng) https://github.com/pcapng/pcapng/ 2. D-Bus https://dbus.freedesktop.org/doc/dbus-specification.html#type-system 3. D-Bus https://www.freedesktop.org/wiki/Software/dbus Yuri Chornoivan ; , GNU General Public License Version 3 . . , , : . systemd 255 BUSCTL(1)