DX Infrastructure Manager

  • 1.  How would I delete a drive from CDM monitoring via LUA?

    Posted 11-30-2015 12:22 PM

    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.



  • 2.  Re: How would I delete a drive from CDM monitoring via LUA?
    Best Answer

    Posted 11-30-2015 03:07 PM

    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.

     

    -jon



  • 3.  Re: How would I delete a drive from CDM monitoring via LUA?

    Posted 11-30-2015 03:15 PM

    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.