I'm running a check to find out if a drive's monitoring is active. If the monitoring isn't active and the status returns "not found", I'd like to delete the drive from the CDM probe's configuration.
Here's an example how to do that:
pdsargs = pds.create()
pds.putString(pdsargs, "name", "cdm")
pds.putString(pdsargs, "section", "/disk/alarm/fixed/#boot")
res, rc = nimbus.request("/domain/hub/robot/controller", "probe_config_set", pdsargs)
This script would remove the section "#boot" (boot section on linux machine) completely from the config.
Perfect! Thank you.
I was trying to figure out a clear or delete using that function but apparently I was over complicating it. By just leaving the section and value blank it deletes the entire section. I didn't even have to issue a _restart.
Retrieving data ...