A10 小ネタ集:皆さまが知らない(かもしれない)コマンドや使い方をご案内致します
A10 小ネタ集:皆さまが知らない(かもしれない)コマンドや使い方をご案内致します
Section titled “A10 小ネタ集:皆さまが知らない(かもしれない)コマンドや使い方をご案内致します”A10 ACOS 5.2.1 において、Prometheus(Grafana)連携用に aXAPI の EndPoint が追加されました
- ワンライナーの例
- kkono@jp-dc03:~$ curl “https://10.1.1.1/metrics?username=kkono&password=a10”
- /metrics
- 全てのインタフェースの統計情報
- コントロール CPU
- メモリ使用率
- 書式(stats と rates)
endpoint
Section titled “endpoint”- 表示したいカウンターを show counters …コマンドで表示する
- show counters fw global stats や show counters system memory の場合の例 api_endpoint は、/fw/global/stats で、Chassis の場合は slot=を指定する
- ワンライナーの結果
curl https://10.1.1.1/metrics?api_endpoint=/fw/global/stats?slot=1while true ; do curl 'https://10.1.1.1/metrics?api_endpoint=/system/memory/stats' -k -s | grep -v ^# ; sleep 10 ; doneusage_percentage{data="system_memory"} 45.0usage_percentage{data="system_memory"} 45.0aXAPI ツール
Section titled “aXAPI ツール”Thunder の管理 IP の以下の URL にアクセス /aab/axapi_v3_test.html
aXAPI マニュアル
Section titled “aXAPI マニュアル”https://<GUI の IP アドレス>/aab/docs/
SSL オフロード改
Section titled “SSL オフロード改”1000 同時接続まではサーバーにて SSL オフロードを実施し、超えた分に関しては A10 の HW SSL を実施
slb virtual-server v95 10.200.15.95 port 443 http aflex end_ssl service-group jp-dc03_80 template http jp-dc03_443 template client-ssl wildcard.certslb template http jp-dc03_443 non-http-bypass service-group jp-dc03_443slb service-group jp-dc03_80 tcp member jp-dc03 80slb service-group jp-dc03_443 tcp member jp-dc03 443when CLIENT_ACCEPTED { set vip [IP::local_addr] set total1 [STATS::get virtual-server $vip current-connection] if { $total1 > 1000} { SSL::disable clientside } else { SSL::enable clientside }}SNI を意識した Health Monitor
Section titled “SNI を意識した Health Monitor”2022 年 6 月に 14 個 HTTP 関連の RFC が出ました。 HTTPS クライアントは SAN を見て証明書の検証を行うことになりました。 標準 health monitor の sni オプションは CN(Common Name)を確認するもので、SAN(Subject Alt Name)は確認していないため、SAN を意識した Health Monitor を実現するには現時点では external health monitor を使用する必要があります。
health monitor sni strictly-retry-on-server-error-response method external program extcheck01 arguments "10.210.40.1 wildcert.a10networks.jp /index.html 443 1_3 '^HTTP/1.1 200 OK' '*.a10networks.jp'"光レベルの表示に関して
Section titled “光レベルの表示に関して”サポートしている型番
- 第 3 世代 Thunder4430 や第 4 世代 Thunder4440 以降の FTA 搭載モデル
- 1/10/40/100G のトランシーバーの TX/RX 光レベルを表示可能
Thunder# show interfaces transceiver detailsThunder# show interfaces transceiver ethernet