Not able to run "rm" to delete files with "dirscan" probe

book

Article ID: 15363

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

Using the "dirscan" probe on a Linux robot, we have a profile that looks for a certain file extension and file size.

It manages to find the file of with the size and extension (even generates an alarm), but it is not deleting the file.  

Under the "Size" tab in the command line, we are using: rm *.hprof

 



What is the correct syntax to delete files using the "dirscan" probe on a Linux robot?

Environment

- RHEL 7- UIM 8.5.1

Resolution

Use the "-f" parameter for the "rm" command and also put the full path of the directory.

For example:  rm -f /path/to/directory/*.hprof