Mid System property: mid.sa.cleanup.clean_files_on_target

Jeff WelchBAE
Tera Expert

I recently noticed in a failed discovery of a linux server on the step Target Cleanup:   

Skipped file cleaning on target. In order to activate this behavior, please set "mid.sa.cleanup.clean_files_on_target" MID property

Does anyone have any information on this property and what it does?  Is it a True/False value?

 

 

3 REPLIES 3

NickLintgenFV
Tera Contributor

I ran across the same error today and also struggled to find additional information on this property.

Anshu_Anand_
Kilo Sage
Kilo Sage

Please reach out to servicenow or open a HI case, as i cannot find anything on the docs related to this property.

Regards,
Anshu

Steven Barber
Tera Contributor

Hello Jeff,

 

I asked ServiceNow:

 

What does this property do?
Should this be activated?
How do I activate the property?


Resolution:
As part of discovery, temp files are added and deleted after pattern execution. Sometimes, it is possible that few of the temp files might be left behind and not deleted properly.
The 'mid.sa.cleanup.clean_files_on_target' MID Server Property is responsible for cleaning up these files after pattern execution.

To set this property,
1. Create MID server property "mid.sa.cleanup.clean_files_on_target = true" on the related midserver
2. Restart the MID server used for Discovery to sync with the MID property
3. Test Discovery again and then check if you see the error anymore.
KB1123204 : Remove temporary files created on target Servers after Discovery