Automatically mirror files between RPs

7.1.2开始支持这个feature, 默认功能是关闭的, 开启后自动将主引擎harddisk:/mirror/ 下的文件同步到备引擎。

测试如下:

RP/0/RSP0/CPU0:ASR-9006-L_NPE2#show mirror    <<<<< default disable 
Sun Apr 25 03:40:36.544 UTC
  % Mirror is not enabled
RP/0/RSP0/CPU0:ASR-9006-L_NPE2#
RP/0/RSP0/CPU0:ASR-9006-L_NPE2#
RP/0/RSP0/CPU0:ASR-9006-L_NPE2#conf 
Sun Apr 25 03:40:38.634 UTC
RP/0/RSP0/CPU0:ASR-9006-L_NPE2(config)#mirror enable 
RP/0/RSP0/CPU0:ASR-9006-L_NPE2(config-mirror)#commit 
RP/0/RSP0/CPU0:ASR-9006-L_NPE2#show mirror 
Sun Apr 25 03:40:53.688 UTC
MIRROR DIR: /harddisk:/mirror/
  % Last sync of this dir ended at Sun Apr 25 03:40:43 2021
  Location    |Mirrored |Modification Time        
  ------------------------------------------------
  script-mgmt/|yes      |Thu Apr 15 18:42:06 2021 

RP/0/RSP0/CPU0:ASR-9006-L_NPE2#show run | file harddisk:/mirror/test_mirror.cfg 
Sun Apr 25 03:41:35.610 UTC
Building configuration...

[OK]
RP/0/RSP0/CPU0:ASR-9006-L_NPE2#show mirror                                      
Sun Apr 25 03:41:38.621 UTC
MIRROR DIR: /harddisk:/mirror/
  % Last sync of this dir ended at Sun Apr 25 03:41:36 2021
  Location        |Mirrored |Modification Time        
  ----------------------------------------------------
  test_mirror.cfg |yes      |Sun Apr 25 03:41:36 2021 
  script-mgmt/    |yes      |Thu Apr 15 18:42:06 2021 

RP/0/RSP0/CPU0:ASR-9006-L_NPE2#dir harddisk:/mirror/ location 0/rSP1/CPU0 
Sun Apr 25 03:41:55.205 UTC

Directory of harddisk:/mirror/
652810 drwxr-xr-x. 7  4096 Apr 15 18:42 script-mgmt
652819 -rwxr--r--. 1 84943 Apr 25 03:41 test_mirror.cfg

23099260 kbytes total (18171220 kbytes free)
RP/0/RSP0/CPU0:ASR-9006-L_NPE2#
           

No comments

Comments feed for this article

Reply

Your email address will not be published.