이 페이지의 내용
에이전트 구성 파일(디바이스)
컨트롤러 섹션
[controller] # <metadb> provides directory service for AOS. It must be configured properly # for a device to connect to AOS controller. metadb = tbt://aos-server:29731 # Use <web> to specify AOS web server IP address or name. This is used by # device to make REST API calls to AOS controller. It is assumed that AOS web # server is running on the same host as metadb if this option is not specified web = # <interface> is used to specify the management interface.This is currently # being used only on server devices and the AOS agent on the server device will # not come up unless this is specified. interface =
메타 DB
에이전트 서버 검색은 클라이언트-서버 모델입니다. Apstra 디바이스 에이전트는 연결을 통해 Apstra 서버에 직접 등록합니다 metadb . Apstra 서버는 고정 IP 또는 DNS에서 검색할 수 있습니다.
동적 DNS - 기본적으로 Apstra 디바이스 에이전트는 dhcp 제공 DNS 확인 및 호스트 이름 확인에 의존하여 DNS 항목 aos-server를 가리킵니다. Apstra 서버에서 metadb 연결 항목이 DNS 항목을 가리키는 경우 Apstra 에이전트는 해당 DNS 항목도 확인할 수 있어야 합니다. aos-server가 Apstra 서버 자체의 인터페이스로 확인되도록 DNS를 구성해야 하며, 에이전트가 metadb = tbt://aos-server:29731
정적 DNS - aos-server의 IP를 직접 가리키는 정적 DNS 항목을 추가 할 수 있습니다. 정적 DNS 항목을 추가하거나 디바이스에서 DNS 이름 서버 구성을 사용합니다.
Arista 및 Cisco 정적 호스트 이름
localhost(config)#ip host aos-server 192.168.25.250
Apstra 서버에서 IP 확보
admin@aos-server:~# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:8a:39:05 brd ff:ff:ff:ff:ff:ff
inet 192.168.59.250/24 brd 192.168.59.255 scope global eth0
inet6 fe80::a00:27ff:fe8a:3905/64 scope link
valid_lft forever preferred_lft forever
그러면 에이전트가 로 구성됩니다 metadb = tbt://aos-server:29731.
웹
향후 릴리스에서는 Apstra REST API를 Apstra 서버 자체와 별도의 서버에서 실행할 수 있습니다. 이 기능은 Apstra 내부 전용입니다.
인터페이스
디바이스 에이전트 소스 인터페이스는 Linux 서버(Ubuntu, CentOS)에만 적용됩니다. 이 소스 IP는 디바이스 에이전트가 Apstra에 등록할 때 사용하는 서버 인터페이스입니다. 예를 들어, 서버에서 장치 에이전트를 기본 eth0 대신 eth1에 바인딩하려면 를 지정합니다 interface = eth1.
서비스 섹션
[service] # AOS device agent by default starts in "telemetry-only" mode.Set following # variable to 1 if you want AOS agent to manage the configuration of your # device. enable_configuration_service = 0 # When managing device configuration AOS agent will restore backup config if it # fails to connect to AOS controller in <backup_config_restoration_timeout>, # specified as <hh:mm:ss>. Set it to 00:00:00 to disable backup restoration backup_config_restoration_timeout = 00:00:00
service 섹션은 구성 렌더링 및 텔레메트리 서비스와 관련된 특정 에이전트 구성을 관리합니다.
enable_configuration_service
이 필드는 디바이스 에이전트의 작동 모드(원격 분석 전용 또는 모든 권한)를 지정합니다.
enable_configuration_service = 0 원격 분석(경고)만 푸시하려면 기본값인 0을 그대로 둡니다. 구성 파일은 네트워크 관리자가 지정하지 않는 한 수정되지 않습니다.
enable_configuration_service = 1 이 필드를 로 1 설정하면 Apstra가 푸시 검색 및 전체 인텐트 기반 구성을 포함하여 디바이스 에이전트 구성을 완전히 관리할 수 있습니다.
backup_config_restoration_timeout
구성은 디바이스에 저장 되지 않습니다. 이렇게 하면 디바이스가 부팅되지 않고 아직 제대로 구성되지 않았을 수 있는 패브릭에 즉시 참여하는 것을 방지할 수 있습니다. Apstra 디바이스 에이전트는 검색 단계가 완료된 후에 구성됩니다.
backup_restoration_timeout = 00:00:00 이 비활성화 상태(기본값)는 Apstra 서버에 연결할 수 없는 경우 Apstra 디바이스 에이전트가 실행 중인 구성을 교체하지 못하도록 합니다. 이전 구성 상태는 복원되지 않습니다.
backup_restoration_timeout = 00:15:00 기본값 00:00:00 이 아닌 다른 값을 사용하면 Apstra 에이전트가 부팅하고 지정된 기간(이 예에서는 15분) 후에 실행 중인 구성을 가장 알려진 이전 상태로 교체할 수 있습니다. 특히, 구성 복원 기간이 만료된 후 의 /.aos/rendered/ 파일이 시스템으로 복원됩니다.
Logrotate 섹션
[logrotate] # AOS has builtin log rotate functionality. You can disable it by setting # <enable_log_rotate> to 0 if you want to use linux logrotate utility to manage # your log files. AOS agent reopens log file on SIGHUP enable_log_rotate = 1 # Log file will be rotated when its size exceeds <max_file_size> max_file_size = 1M # The most recent <max_kept_backups> rotated log files will be saved. Older # ones will be removed. Specify 0 to not save rotated log files, i.e. the log # file will be removed as soon as its size exceeds limit. max_kept_backups = 5 # Interval, specified as <hh:mm:ss>, at which log files are checked for # rotation. check_interval = 1:00:00
Apstra는 /var/log/aos 일련의 파일 아래에 있는 폴더에 기록합니다. Apstra는 가득 차는 것을 방지하기 /var/log/aos 위해 자체적인 로그 순환 방법을 구현합니다. 로그 회전(2)을 활성화하거나 비활성화(1)할 수 있습니다. 각 개별 로그 파일은 적절한 최대 크기에 가까워지면 회전됩니다. 로그 로테이션은 기본적으로 매시간 발생합니다.
장치 정보 섹션
[device_info] # <model> is used to specify the device's hardware model to be reported to AOS # device manager. This is only used by servers, so can be ignored for non- # server devices such as switches. By default a server reports "Generic Model" # which matches a particular HCL entry's selector::model value in AOS. Specify # another model for the server to be classified as a different HCL entry. model = Generic Model
모델
디바이스 정보 섹션은 서버가 Apstra에 등록될 때 서버의 기본 디바이스 모델을 수정하는 데 사용됩니다. 예를 들어 서버를 Server 2x10G 이중 연결 L3 서버로 변경합니다. 에 대한 model 모든 유효한 옵션은 다음과 같습니다.
- 일반 모델
- 서버 2x10G
- 서버 1x25G
- 서버 1x40G
- 서버 4x10G
디바이스 프로필 섹션
# <device_profile_id> is used to specify the device profile to be associated to # the device. Selector in the specified device profile should match the # reported device facts. device_profile_id = [credential] username = admin