Apstra ZTP - Cisco
Cisco NX-OS 및 ZTP 디스크 공간
스위치에서 충분한 디스크 공간을 사용할 수 있는지 확인합니다. ZTP 프로세스의 일부로 새 OS 이미지가 스위치에 복사됩니다. Apstra ZTP를 설치하기 전에 스위치에 OS 이미지를 위한 충분한 디스크 공간이 있는지 확인합니다.
switch1# dir bootflash: | include free|total 1296171008 bytes free 3537219584 bytes total
ZTP가 Cisco NX-OS 이미지를 설치하는 경우, 이미지(예: nxos.7.0.3.I7.7.bin)를 디렉터리로 /containers_data/tftp
복사하여 올바른 파일 권한을 확보해야 합니다.
예: Cisco NX-OS - ztp.json
{ "nxos": { "nxos-versions": [ "9.2(2)" ], "nxos-image": "http://192.168.0.6/nxos.9.2.2.bin", "device-root-password": "admin-password", "custom-config": "nxos_custom.sh", "device-user": "admin", "device-user-password": "admin-password", "system-agent-params": { "agent_type": "onbox", "job_on_create": "install" } } }
이 구성을 사용하면 서버의 오프박스 에이전트와 디바이스 API 사이에 안전한 오프박스 에이전트 HTTPS(포트 443)가 활성화됩니다.
Cisco NX-OS 맞춤형 Config 파일
Cisco NX-OS 디바이스에 대해 구성할 custom-config
때, ZTP 프로세스 중에 실행된 bash 실행 파일 예 nxos_custom.sh
시를 참조하십시오. 디바이스 시스템 에이전트를 설치하기 전에 SSH 로그인 배너와 같은 시스템 구성을 설정하는 NX-OS 구성 명령을 실행할 수 있습니다.
NX-OS 사용자 정의 구성 파일을 통해 추가 copp profile strict
해야 합니다.
#!/bin/sh /isan/bin/vsh -c "conf ; copp profile strict ; banner motd ~ ######################################################## BANNER BANNER BANNER BANNER BANNER BANNER BANNER BANNER ######################################################## Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec gravida, arcu vitae tincidunt sagittis, ligula massa dignissim blah, eu sollicitudin nisl dui at massa. Aliquam erat volutpat. Vitae pellentesque elit at pulvinar volutpat. Etiam lacinia derp lacus, non pellentesque nunc venenatis rhoncus. ######################################################## ~"
Cisco NX-OS 오프박스 에이전트 사용자 지정 구성 파일
Apstra ZTP를 사용하여 오프박스 에이전트와 함께 사용할 Cisco NX-OS 디바이스를 준비하는 경우, 사용자 정의 구성 파일이 다음 NX-OS 구성 명령을 사용하도록 설정해야 합니다.
feature nxapi feature bash-shell feature scp-server feature evmed copp profile strict nxapi http port 80
다음 nxos_custom.sh
을 사용하여 배너와 함께 추가할 수 있습니다.
#!/bin/sh /isan/bin/vsh -c "conf ; feature nxapi ; nxapi http port 443 ; feature bash-shell ; feature scp-server ; feature evmed ; copp profile strict ; banner motd ~ ######################################################## BANNER BANNER BANNER BANNER BANNER BANNER BANNER BANNER ######################################################## Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec gravida, arcu vitae tincidunt sagittis, ligula massa dignissim blah, eu sollicitudin nisl dui at massa. Aliquam erat volutpat. Vitae pellentesque elit at pulvinar volutpat. Etiam lacinia derp lacus, non pellentesque nunc venenatis rhoncus. ######################################################## ~"
Cisco NX-OS ZTP 재시작
에이전트가 디바이스에 이미 설치된 경우 디바이스 ZTP 프로세스를 다시 시작하기 전에 UI 디바이스 에이전트 설치 관리자를 통해 또는 디바이스 CLI를 통해 수동으로 에이전트를 제거합니다.
C9K-172-20-65-5# guestshell destroy Remove remaining AOS data from system Removing the guest-shell deletes most of the data left by AOS. Some files are still on the bootflash:/.aos folder. C9K-172-20-65-5# delete bootflash:.aos no-prompt
자세한 정보는 Cisco 디바이스 에이전트를 참조하십시오.
Cisco NX-OS ZTP 프로세스를 다시 시작하려면:
switch# write erase switch# reload