It actually does this automatically--sometimes. The behavior varies, and I have a *theory* as to how the logic works when deleting a probe:
1) The controller will delete all of the files it knows about--definitely those listed in the probe definition, like executable, config, log, etc. I think it also cleans up the cfx files and log files rotated with an underscore. I'm not sure if it cleans up other files that were installed directly from the original probe package--libraries and such, which are common with the Java probe.
2) The controller will *not* delete unexpected files. A good example would be extra log or data files that some probes produce. This might also include library files that came with the probe package too, but I think there is a good chance it deletes them.
3) The controller will delete the probe directory if it ends up empty after deleting files.
In the end, you just have to try it out with a specific probe to see how it works. That being said, even if it doesn't delete the cdm directory, it might clear enough files out of there to meet your needs. You should try it out and check what is left behind (if you haven't already).
Original Message:
Sent: 05-22-2020 09:18 AM
From: Keith Clay
Subject: Mass deletion of cdm probe
Luc,
Is there anyway to have the probe delete to completely remove the probes/system/cdm probe? Or, a way to use pu to delete that directory?
Original Message:
Sent: 05-22-2020 03:51 AM
From: Luc Christiaens
Subject: Mass deletion of cdm probe
You could use the tool: https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?MessageKey=b65990b6-f43c-4a31-832d-6510ce2e5691 to generate in a flexible way PU commands
Original Message:
Sent: 05-22-2020 03:08 AM
From: Keith Clay
Subject: Mass deletion of cdm probe
It is required by our customer. The issue is not the nfs fs, the problem is in nimsoft.
Original Message:
Sent: 05-22-2020 02:50 AM
From: Britta Hoffner
Subject: Mass deletion of cdm probe
Hello Keith, are this filesystems you usually want to monitor ? You may consider to create a package that ignores nfs filesystems. Please have a look at the article https://knowledge.broadcom.com/external/article/129655/how-to-configure-the-cdm-probe-to-ignore.html
Kind regards,
Britta
Broadcom Support
Original Message:
Sent: 05-21-2020 11:09 PM
From: Keith Clay
Subject: Mass deletion of cdm probe
We found that when we updated the cdm probe from 6.30 to 6.42 with the 9.20 upgrade, that on unix servers, the cdm probe generates lots of "not available" errors for nfs file systems. Our solution is to delete the cdm probe and after delete, then delete the probes/system/cdm directory and then redeploy the 6.42 cdm probe. This fixes the issue but doing this on thousands of robots is very, very time consuming. Any scripts would be greatly helpful such that passing /Domain/Hub/Robot/ to a script would generate a list of all unix robots and delete the cdm probe from those and maybe somehow delete the probes/system/cdm directory.
- Is there a way in Nimsoft to script the deletion of the cdm probe?
- Is there way in Nimsoft to delete the probes/system/cdm directory?