Help Center/ MapReduce Service/ User Guide/ MRS Cluster O&M/ Viewing and Configuring MRS Alarm Events/ Periodically Backing Up Alarm and Audit Information
Updated on 2025-08-09 GMT+08:00

Periodically Backing Up Alarm and Audit Information

You can modify the configuration file to periodically back up FusionInsight Manager alarm information, FusionInsight Manager audit information, and audit information of all services to the specified storage location.

The backup can be performed using FTP or SFTP. FTP does not encrypt data, which may cause security risks. Therefore, SFTP is recommended.

Notes and Constraints

This section applies only to MRS 3.x or later.

Periodically Backing Up Alarm and Audit Information

  1. Log in to the active management node of an MRS cluster as user root.

    For details about how to log in to an MRS cluster node, see Logging In to an MRS Cluster.

    Perform this operation only on the active management node. Scheduled backup is not supported on the standby management node.

  2. Run the following command to switch to user omm:

    su - omm

  3. Run the following command to switch the directory:

    cd ${BIGDATA_HOME}/om-server/om/sbin

  4. Run the following command to configure scheduled backup of FusionInsight Manager's alarm and audit information or service audit information:

    ./setNorthBound.sh -t Information type -i Remote server IP address -p SFTP or FTP port used by the server-u Username -d Save path -c Interval (minutes) -m Number of records in each file -s Whether to enable backup -e Protocol

    Example:

    ./setNorthBound.sh -t alarm -i 10.0.0.10 -p 22 -u sftpuser -d /tmp/ -c 10 -m 100 -s true -e sftp

    This script modifies the alarm backup configuration file alarm_collect_upload.properties.

    The file save path is ${BIGDATA_HOME}/om-server/tomcat/webapps/web/WEB-INF/classes/config.

    ./setNorthBound.sh -t audit -i 10.0.0.10 -p 22 -u sftpuser -d /tmp/ -c 10 -m 100  -s true -e sftp

    This script modifies the audit backup configuration file audit_collect_upload.properties.

    The file save path is ${BIGDATA_HOME}/om-server/tomcat/webapps/web/WEB-INF/classes/config.

    ./setNorthBound.sh -t service_audit -i 10.0.0.10 -p 22 -u sftpuser -d /tmp/ -c 10 -m 100  -s true -e sftp

    This script modifies the service audit backup configuration file service_audit_collect_upload.properties.

    The file save path is ${BIGDATA_HOME}/om-server/tomcat/webapps/web/WEB-INF/classes/config.

  5. Enter the password as prompted.

    The password is encrypted and saved in the configuration file.
    Please input sftp/ftp server password:

  6. Check the configuration result. If the following information is displayed, the configuration is successful. The configuration file will be automatically synchronized to the standby management node.

    execute command syncfile successfully. 
    Config Succeed.