forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
30 lines
6.6 KiB
HTML
30 lines
6.6 KiB
HTML
<a name="admin_guide_000182"></a><a name="admin_guide_000182"></a>
|
|
|
|
<h1 class="topictitle1">Configuring Scheduled Backup of Alarm and Audit Information</h1>
|
|
<div id="body1529658735916"><div class="section" id="admin_guide_000182__s43dd1239107145fda8caff2547259769"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000182__en-us_topic_0046737093_p36940279">You can modify the configuration file to periodically back up <span id="admin_guide_000182__text15946118176">MRS</span> Manager alarm information, <span id="admin_guide_000182__text733518253581">MRS</span> Manager audit information, and audit information of all services to the specified storage location.</p>
|
|
<p id="admin_guide_000182__en-us_topic_0046737093_p64027062">The backup can be performed using FTP or SFTP. FTP does not encrypt data, which may cause security risks. Therefore, SFTP is recommended.</p>
|
|
</div>
|
|
<div class="section" id="admin_guide_000182__section8933240181119"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000182__en-us_topic_0046737093_ol16814682"><li id="admin_guide_000182__en-us_topic_0046737093_li17114415"><span>Log in to the active management node as user <strong id="admin_guide_000182__b23327743175832">omm</strong>.</span><p><div class="note" id="admin_guide_000182__en-us_topic_0046737093_note19812010"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="admin_guide_000182__en-us_topic_0046737093_p44090364">Perform this operation only on the active management node. Scheduled backup is not supported on the standby management node.</p>
|
|
</div></div>
|
|
</p></li><li id="admin_guide_000182__en-us_topic_0046737093_li61268958"><span>Run the following command to switch the directory:</span><p><p id="admin_guide_000182__en-us_topic_0046737093_p14549713"><strong id="admin_guide_000182__b14078770112056">cd ${BIGDATA_HOME}/om-server/om/sbin</strong></p>
|
|
</p></li><li id="admin_guide_000182__en-us_topic_0046737093_li37676119"><span>Run the following command to configure scheduled backup of <span id="admin_guide_000182__text19277273582">MRS</span> Manager's alarm and audit information or service audit information:</span><p><p id="admin_guide_000182__en-us_topic_0046737093_p3540756"><strong id="admin_guide_000182__en-us_topic_0046737093_b31866805">./setNorthBound.sh -t </strong><em id="admin_guide_000182__en-us_topic_0046737093_i18365797">Information type </em><strong id="admin_guide_000182__en-us_topic_0046737093_b31074452">-i </strong><em id="admin_guide_000182__en-us_topic_0046737093_i11234620">Remote server IP address </em><strong id="admin_guide_000182__en-us_topic_0046737093_b34002716">-p </strong><em id="admin_guide_000182__en-us_topic_0046737093_i37588990">SFTP or FTP port used by the server</em><strong id="admin_guide_000182__en-us_topic_0046737093_b21957700">-u </strong><em id="admin_guide_000182__en-us_topic_0046737093_i63401577">Username </em><strong id="admin_guide_000182__en-us_topic_0046737093_b33743285">-d </strong><em id="admin_guide_000182__en-us_topic_0046737093_i35254113">Save path </em><strong id="admin_guide_000182__en-us_topic_0046737093_b48851566">-c </strong><em id="admin_guide_000182__en-us_topic_0046737093_i37010918">Interval (minutes) </em><strong id="admin_guide_000182__en-us_topic_0046737093_b64662808">-m </strong><em id="admin_guide_000182__en-us_topic_0046737093_i45094367">Number of records in each file </em><strong id="admin_guide_000182__en-us_topic_0046737093_b3196123">-s </strong><em id="admin_guide_000182__en-us_topic_0046737093_i28765109">Whether to enable backup </em><strong id="admin_guide_000182__en-us_topic_0046737093_b57559390">-e </strong><em id="admin_guide_000182__en-us_topic_0046737093_i48272463">Protocol</em></p>
|
|
<p id="admin_guide_000182__p9596319103245">Example:</p>
|
|
<p id="admin_guide_000182__en-us_topic_0046737093_p31798985"><strong id="admin_guide_000182__b62997184103123">./setNorthBound.sh -t alarm -i 10.0.0.10 -p 22</strong><strong id="admin_guide_000182__b1603482717223"> -u sftpuser -d /tmp/ -c 10 -m 100 -s true -e sftp</strong></p>
|
|
<p id="admin_guide_000182__en-us_topic_0046737093_p25580997">This script modifies the alarm backup configuration file <strong id="admin_guide_000182__b135131129141416">alarm_collect_upload.properties</strong>. The file save path is <strong id="admin_guide_000182__b09628395148">${BIGDATA_HOME}/om-server/tomcat/webapps/web/WEB-INF/classes/config</strong>.</p>
|
|
<p id="admin_guide_000182__p1665849084619"><strong id="admin_guide_000182__b65537676152121">./setNorthBound.sh -t audit -i 10.0.0.10 -p 22 -u sftpuser -d /tmp/ -c 10 </strong><strong id="admin_guide_000182__b61730052152123">-m 100 </strong><strong id="admin_guide_000182__b52968178152121"> -s true -e sftp</strong></p>
|
|
<p id="admin_guide_000182__p716047584619">This script modifies the audit backup configuration file <strong id="admin_guide_000182__b1512885116140">audit_collect_upload.properties</strong>. The file save path is <strong id="admin_guide_000182__b6321984155">${BIGDATA_HOME}/om-server/tomcat/webapps/web/WEB-INF/classes/config</strong>.</p>
|
|
<p id="admin_guide_000182__p6382039117111"><strong id="admin_guide_000182__b26056414152127">./setNorthBound.sh -t service_audit -i 10.0.0.10 -p 22 -u sftpuser -d /tmp/ -c 10</strong><strong id="admin_guide_000182__b5644428152130"> -m 100</strong><strong id="admin_guide_000182__b33181137152127"> -s true -e sftp</strong></p>
|
|
<p id="admin_guide_000182__p206915517111">This script modifies the service audit backup configuration file <strong id="admin_guide_000182__b13425141420155">service_audit_collect_upload.properties</strong>. The file save path is <strong id="admin_guide_000182__b136911436141518">${BIGDATA_HOME}/om-server/tomcat/webapps/web/WEB-INF/classes/config</strong>.</p>
|
|
</p></li><li id="admin_guide_000182__en-us_topic_0046737093_li28902385"><span>Enter the password as prompted. The password is encrypted and saved in the configuration file.</span><p><pre class="screen" id="admin_guide_000182__s987fa360f9fc4c0dafea6b8a3f1c5af3">Please input sftp/ftp server password:</pre>
|
|
</p></li><li id="admin_guide_000182__en-us_topic_0046737093_li59391816"><span>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.</span><p><pre class="screen" id="admin_guide_000182__sc2db7a8453cb44a8afe775b105cf4eb2">execute command syncfile successfully.
|
|
Config Succeed.</pre>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000166.html">Cluster Management</a></div>
|
|
</div>
|
|
</div>
|
|
|