Avamar: mapall 도구 사용 방법

Summary: Avamar에는 "mapall"이라는 명령줄 툴이 있으며, 이 툴을 사용하면 그리드 내에 있는 하나 이상의 노드에 명령을 내릴 수 있습니다. 이 문서에서는 도구를 사용하는 방법에 대해 설명합니다.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

이 문서에서는 Avamar mapall 유틸리티 노드에서 다른 노드로 명령을 실행하는 도구입니다.

mapall 툴은 Avamar 노드에 액세스할 수 있습니다. probe.xml 파일에 정의된 대로 사용하는 것이 중요합니다.

이러한 스크립트는 표준 Secure Shell(ssh) 도구(ssh) 및 SCP(Secure Copy Protocol))로 작성되며 모두 Perl로 작성됩니다.

 

mapall, ssh 및 scp 스크립트

 

  • mapall - 여러 노드에 명령을 보냅니다. 
  • 증권 시세 표시기  - IP 주소 또는 호스트 이름 대신 (물리적) 노드 번호를 허용하는 ssh를 둘러싼 래퍼
  • 증권 시세 표시기 - 위와 같이 SCP를 둘러싼 래퍼
참고: Avamar Utility Node에 로그인하고 ssh 키를 로드하여 ssh 툴을 사용합니다.

자세한 내용은 다음을 참조하십시오. Avamar: Avamar Server에 로그인하고 다양한 키를 로드하는 방법
 
 

메이폴:

명령을 실행할 노드 지정:

선택한 노드에서만 명령을 실행하려면 다음을 수행합니다.

노드 0에서만 명령을> 실행합니다<.0, 0입니다.2 및 0.3:

mapall --nodes=0.0,0.2,0.3 <command>
 

유틸리티 노드와 0.0을 제외한 모든 노드에서 명령을> 실행<하려면 다음을 수행합니다.

mapall --nodes=all+,-0.s,0.0 <command>
 

유용한 플래그:

다음은 세 가지 도구와 함께 사용할 수 있는 몇 가지 유용한 플래그입니다. (플래그는 Avamar 기술 부록에 자세히 설명되어 있습니다.)
다른 Avamar 명령줄 작업과 마찬가지로 실행할 때는 주의해야 합니다.
  • --user=<username> : Specify the user on the remote system that runs the command.
  • --verbose : Provides maximum information.
  • --quiet : Disable all messages.
  • --parallel : Runs the command on all nodes simultaneously.
  • --noerror : Do not stop if an error occurs. (This flag should always be used) For legacy reasons, mapall command execution stops if an error occurs.
  • --bg : Run the command in the background and does not wait for completion.
  • --debug : Enable extended debugging information (for example, which nodes map to which IP addresses).
  • --copy : Copies a file from the utility node to remote nodes.
  • --get : Pulls a file to the utility node from remote nodes.
  • --all : Issues the command on all the data nodes plus the utility node
  • --all+ : Issues the command on all the nodes in probe.xml, including NDMP accelerator nodes, spare nodes so forth.

 

 

MAPALL 예:

MAMALL은 다음을 얻습니다. 이는 복사 명령의 반대입니다.  

를 가져옵니다. GSAN 바이너리를 각 데이터 노드에서 추출하고 Avamar Utility Node에 복사하여 /home/admin/0.*/gsan:

mapall --noerror get 'gsan'  
 

맵폴 카피:

를 복사합니다. /etc/hosts 파일을 /root/etc/hosts 각 데이터 노드에서.

mapall --noerror --user=root copy 'etc/hosts' 
 
이것이 실제로 작동하는 방식:
1. 이 mapall copy 명령은 tarball 지정된 파일을 포함합니다.
2. 사용 scp 푸시하려면 tarball 모든 노드에.
3. 압축을 풉니다. tarball 사용자 홈 디렉토리에 있습니다.

Additional Information

SSN 예:

노드 0.1에 연결하고 대화형 셸을 엽니다.

ssn 0.
 

노드 0.2에 연결하고 date 명령을 실행하십시오.

ssn 0.2 'date' 
 

SCN 예:

를 복사합니다. /home/admin/gsan 바이너리를 노드 0.1에서 btfix Avamar Utility Node의 디렉토리에 있습니다.

scn 0.1:/home/admin/gsan ./btfix
 

복사 "testscript" 유틸리티 노드의 /home/admin 디렉토리에서 노드 0.2로 이동하고 "runscript" 에서 /data01/cur:

scn testscript 0.2:/data01/cur/runscript
 
참고: scn 명령을 사용하여 한 데이터 노드에서 다른 데이터 노드로 파일을 복사할 수 없습니다.

유틸리티 노드를 사용하여 2단계 작업으로 파일을 복사하거나 scp 두 노드 간에 직접 파일을 전송합니다.

Affected Products

Avamar, Avamar Server

Products

Avamar
Article Properties
Article Number: 000156632
Article Type: How To
Last Modified: 01 Oct 2025
Version:  10
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.