エージェント設定ファイル(デバイス)
コントローラセクション
[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 =
metadb
エージェント サーバー検出はクライアント サーバー モデルです。Apstraデバイスエージェントは、接続を介してApstraサーバーに直接登録します metadb
。Apstraサーバーは、静的IPまたはDNSから検出できます。
ダイナミックDNS - デフォルトでは、Apstraデバイスエージェントは、dhcpが提供するDNS解決とホスト名解決に依存して、DNS エントリーaos-serverを指し示します。Apstraサーバーでは、 metadb 接続エントリーがDNSエントリーをポイントする場合、ApstraエージェントもDNSエントリを解決できる必要があります。aosサーバーがApstraサーバー自体のインターフェイスに解決するようにDNSを設定し、エージェントを metadb = tbt://aos-server:29731
静的DNS - aosサーバーの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
構成されます。
Web
今後のリリースでは、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
サービスセクションでは、設定レンダリングとテレメトリサービスに関連する特定のエージェント設定を管理します。
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] # 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)ログのローテーションを有効または無効にすることができます。個々のログファイルは、適切な最大サイズに近づくと回転します。デフォルトでは、ログのローテーションは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