SystemctlStatusAll command systemctl status --all

class insights.parsers.systemctl_status_all.SystemctlStatusAll(context)[source]

Bases: LogFileOutput

Class for parsing the output from command systemctl status --all.

Note

Please refer to its super-class insights.core.LogFileOutput

Sample output:

* redhat.test.com
    State: degraded
     Jobs: 0 queued
   Failed: 2 units
    Since: Thu 2021-09-23 12:03:43 UTC; 3h 7min ago
   CGroup: /
           |-user.slice
           | `-user-1000.slice
           |   |-user@1000.service

Sep 23 15:11:07 redhat.test.com systemd[1]: proc-sys-fs-binfmt_misc.automount: Automount point already active?
Sep 23 15:11:07 redhat.test.com systemd[1]: proc-sys-fs-binfmt_misc.automount: Got automount request for /proc/sys/fs/binfmt_mis

Examples

>>> type(systemctl_status)
<class 'insights.parsers.systemctl_status_all.SystemctlStatusAll'>
>>> "Automount point already active?" in  systemctl_status
True
>>> systemctl_status.state == 'degraded'
True
>>> systemctl_status.jobs == '0 queued'
True
>>> systemctl_status.failed == '2 units'
True
property failed

“Failed” shown in the command output, None by default.

Type:

(str)

property jobs

“Jobs” shown in the command output, None by default.

Type:

(str)

property state

“State” shown in the command output, None by default.

Type:

(str)