在 VMware Aria Operations for Networks 中,可以为 Cisco Nexus 9000 系列交换机配置 NetFlow 收集器。
以下是 Cisco Nexus 9000 的一些设备命令示例:
- 启用 NetFlow 功能
configure terminalfeature netflowend - 创建流记录
configure terminalflow record vrni-recordmatch ipv4 protocolmatch ipv4 source addressmatch ipv4 destination addressmatch transport source-portmatch transport destination-portmatch interface inputcollect transport tcp flagscollect counter bytescollect counter packetscollect timestamp sys-uptime firstcollect timestamp sys-uptime lastEnd - 创建流导出器
configure terminalflow exporter vrni-exporterdestination <PROXY_IP>transport udp 2055version 9source <INTERFACE_NAME>end - 为每个接口创建流监控器
configure terminalflow monitor vrni-monitorrecord vrni-recordexporter vrni-exporterend - 配置超时
configure terminalcache timeout inactive 30cache timeout active 60end - 在输入模式和输出模式下或者至少在输入模式下为每个接口配置流监控器
configure terminalinterface <INTERFACE_NAME>ip flow monitor vrni-monitor inputend