Linux Command Encyclopedia disk maintenance: Swatch

Source: Internet
Author: User
Keywords Linux Command Encyclopedia Swatch disk maintenance
Tags aliyun command encyclopedia configuration directory disk disk maintenance file files

Function Description: http://www.aliyun.com/zixun/aggregation/13446.html "> System Monitor program.

Syntax: swatch [-A < separator character >][-c < settings file >][-f < record file >][-i < separator character >][-p < separator character >][-r < time >][-t < Record file

Supplemental Note: Swatch can be used to monitor system log files and perform specified actions when a particular event is found. The events monitored by Swatch and the actions of the corresponding events are stored in the Swatch configuration file. The preset profile is a. SWATCHRC that supports the root directory. However, there is no. SWATCHRC configuration file in the preset user root directory of Red Hat Linux, you can/usr/doc/swatch-2.2/config_files/ The swatchrc.personal file is copied to the. SWATCHRC in the user's root directory, and then modifies the events and actions to be monitored by the. swatchrc.

Parameters:
-a< separator character > preset profile, the separator character of the action, preset to a comma.
-C Settings File > Specify the configuration file, instead of using a preset configuration file.
-F Record File > Check the specified record file, and do not continue to monitor the record file after the inspection.
-I separator character > specifies the separator character for the input record, which is preset as a newline character.
-P Separator Character > specifies the delimiter character for the event in the configuration file, and the default is a comma.
-R time > reboot at specified time.
-t< Records files > checks the specified record files, and monitors subsequent records in the file being added to the record.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.