![]() ![]() ![]() ![]() Define the default settings for the search criterion.In the File Type options, select Script.In the Add File for Label: instanceName dialog box, enter the full path to the find_zero_size_files script, in the File/Pipe Name text box.The log icon label must be 50 characters or less and cannot contain any spaces. In the Add Instance dialog box, enter a label for the script output, such as ZeroFiles.Access the LOG application menu as described in Accessing Menu Commands, InfoBoxes, and Online Help.To find all zero-byte files, include these lines: #!/bin/shįind $dir -size 0c -exec echo 0-byte file found: \ 2>/dev/null Write a script called find_zero_size_filesthat contains the following lines:.To monitor a file system for zero-byte files As this example shows, you can find either all the zero-byte files on the file system or just zero-byte files of a particular type. This example describes how you can use the script output monitoring feature of the BMC PATROL for Log Management to monitor a UNIX file system for files with a size of zero bytes.
0 Comments
Leave a Reply. |