This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Using NCM to automate clearing /tmp/ folder


user@de-cpccfslv01:/tmp$ sudo find . -mtime +7 -exec rm -fr {} \;

I need to reliably execute the above command on a group of target servers. It can be executed on a 7 day frequency or it can be exected as a result of a volume alert, we just need it to execute.

How would you go about accomplishing this task? Would it be better to use SAM?

I feel like it shouldn't be this complicated for such a routine task.