Written by

Software Engineer
Question Syed M · Apr 23, 2024

Write Daemon Status

Hi,

Is there anyway available to get the current status of Write Daemon through code?

Generally, this information is present in Management Portal->System Operation->System Dashboard->System Usage->Write Daemon.

Thanks & Regards,

Syed

Product version: Ensemble 2014.1
$ZV: Cache for Windows (x86-64) 2014.1.5 (Build 851U) Mon Sep 14 2015 09:34:43 EDT

Comments

Enrico Parisi · Apr 23, 2024

There is also SYS.Stats.Dashboard class, again, I'm not sure it was in 2014 as well.

This class provides an overview of the system "health", with all of the critical metrics and statuses gathered as properties in one class. It essentially contains all of the data that's available on the Dashboard in the System Management Portal. Each property is a different metric or status.

0
Timo Lindenschmid · Apr 24, 2024

not sure for the old version but if available 

zn "%SYS"
w ##class(Backup.General).IsWDSuspended()

That will return 1 if WD is suspended and 0 if WD is active and running.

0
Syed M · Apr 26, 2024

Thanks both of you.
I am able to get the WriteDaemon status using  SYS.Stats.Dashboard class and IsWDSuspended() method.

ZN "%SYS"

%SYS>s ref=##class(SYS.Stats.Dashboard).Sample()

%SYS>w ref.WriteDaemon

Normal

%SYS>w ##class(Backup.General).IsWDSuspended()

0

0