Hi, On Thu, Apr 28, 2022 at 04:03:01PM +0100, Barry Scott wrote: > Is there a command I can use to test for the degraded state? > > I could parsing the output of systemctl-failed or > syetemctl status but was looking for something less fragile. I think the correct way to do this programatically is via the dbus API, but if you want something moderately greppable, try: # systemctl show | grep SystemState SystemState=running Hope that helps. Kind regards, Alvin