Forum Discussion
Joe_Williams
Professor
27 days agoSo my understanding is that you want each broken disk name to be its own thing? In that case you would want to use ActiveDiscovery first to give you those. You return those in say a foreach. Something like this in a Batch SCript
brokendisks.each { disk ->
def diskname = disk['name']
def diskdescription = disk['serial']
println "${diskname}##${description}##${description}####"
}
Now each of those is an instance.
Then in collection you do the exact same code basically but with a key/value
brokendisks.each { disk ->
def diskname = disk['name']
println "${diskname}.broken=1"
}
Since its broken, no state just return a hard value and set a threshold. Then have say the datasource delete the instance when not found.