Writer instructions

Page title

For most spaces, this page must be titled Space announcements.

For spaces with localized content, this page must be titled Space announcements l10n.

Purpose

Provide an announcement banner on every page of your space.

Location

Move this page outside of your home branch.

Guidelines

Announcement Support for this product will end on November 3, 2025. We recommend that you use PATROL for Linux, PATROL for AIX, or PATROL for Solaris to monitor operating systems.

Removing files


This task describes how to delete files based upon different file characteristics. With this FILESYSTEM application command, you specify where the file is located in the filesystem and to define file search criteria. It then builds the search and delete expression. This command returns the search and remove expression.

Before you begin

  • You can search for files using a different user name and password from the one under which BMC PATROL is running.
  • You can search for and remove files based upon
    • Naming convention
    • Owner
    • Group
    • Change date
  • You can restrict search and remove operations to
    • One or multiple physical disks
    • A location/directory within a filesystem

To remove files

On the filesystem for which you want to remove files, perform the following steps.

  1. Access the FILESYSTEM application menu as described in Accessing KM Commands and InfoBoxes.
  2. Select Maintenance > Remove Files Like.
     BMC PATROL prompts you for the user name and password of an account that can read and write to the files that match the criteria.
  3. Type the user name and password and click OK. If you want to use the account under which the BMC PATROL Agent is currently running, leave both fields blank.
     BMC PATROL displays the Remove Files Like dialog box.

    Remove Files Like Dialog Box
    23.jpg
  4. Define the search and remove criteria. The search and remove feature is a logical AND operation that returns only files that match all the criteria defined by the following fields.

  5. Click Find.
     BMC PATROL builds a search and remove expression, searches the filesystem for files that match the criteria, removes the files, and writes the search and remove expression to a BMC PATROL task object (Remove Files Like) in the FILESYSTEM container.
  6. Access the Remove Files Like task object as described in Accessing KM Commands and InfoBoxes and view the expression. Your result should resemble this example:
Begin: find /oracle/bin -name Payroll_2000* -xdev -exec rm {} \;
-------------------- >>>>> DONE <<<<< -------------------- 

Output Format

The output has the following format. Following table defines each expression.

Begin: find </path> -name <text?*> -xdev -exec rm {} \;

-------------------- >>>>> DONE <<<<< --------------------
 

 Remove Files Like Command Output Format

Output

Description

Search Expression

Begin: find

Find command

/path

Starting point for search

- name <text?*>

File name pattern

- xdev/-mount

Search for files that reside only on the same filesystem as path; xdev works only on Solaris and some BSD systems

-exec rm

Run the UNIX OS command remove

-ld

Options for the ls command: -l long format listing, -d list only the directory names and not its contents

{ }

Argument that substitutes current file

-- >>> DONE <<< --

End of search and remove output

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*