Assuming the goal is to monitor the DFM services, I've setup the following in our environment:
OnCommand 5.2 running on Windows:
batch file to echo date to file (e.g. dfm.service.list). dfm.service.list is stored in DFM's webserver root directory.
Then pipe the output of "dfm service list" to dfm.service.list.
In our environment a daily run is sufficient.
On a remote box (in my case linux):
I wget dfm.service.list from the DFM webserver, and then check to make sure the date is current and each service is "running".
If DFM is down or DFM server is hung or down the wget will fail and the script will email/alert/page as appropriate. Same is true if one of the DFM services is not "running".
While a daily check is sufficent for us, if DFM is more important in yours you could run the 'dfm service list' script more frequently, and echo the time + date. Then have the remote box with the checking script compare time stamp, and be sure it is within ## minutes/hours of current time.