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
Comments
I don't have any so old version (2014) at hand, in IRIS and in 2018 there is SYS.Stats.WriteDaemon class.
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.
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.
.
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