使用 Contrail 工具
Contrail-tools 容器将所有可用工具和 CLI 命令集中在一个位置。
从 Contrail 网络 2008 版开始, contrail-tools
命令将默认安装。
contrail-tools
命令允许您登录 contrail 工具容器并执行工具。此外,命令将在退出时终止容器。
表 1 提供了 contrail 工具包中的可用工具和 CLI 选项列表。
工具和 CLI 命令 |
描述 |
---|---|
dpdkinfo |
增加了显示 bond、lacp、Nic、mempool、核心和应用程序信息的支持。 |
dpdkvifstats.py |
显示 DPDK vRouter 的 PPS 统计信息。 |
dropstats |
检查 vRouter 中的数据包丢弃计数器。 |
流 |
显示系统中的活动流。 |
镜子 |
显示镜像表条目。 |
Mpls |
显示编程到 vRouter 中的输入标签映射。 |
Nh |
显示 vRouter 知道的下一跃点。 |
Rt |
显示虚拟路由和转发 (VRF) 中的路由。 |
沙地 |
从代理与 vRouter 之间的网络链路连接捕获 Sandesh 消息。 |
Vif |
检查与 vRouter 模块关联的 vRouter 接口。 |
vifdump |
捕获并分析来自 DPDK 接口的数据包。 |
vrfstats |
显示 VRF 的下一跃点统计信息。 |
可 vrftable |
显示基于主机的防火墙功能的每个 VRF 的接口映射。 |
vrinfo |
显示 DPDK/内核虚拟路由器的内部状态。 |
vrmemstats |
显示 vRouter 内存使用情况统计信息。 |
vrouter |
显示 vRouter 信息。 |
vxlan |
显示 vxlan 表条目。 |
执行 contrail-tools
命令有两种方法:
执行
contrail-tools
命令登录容器。例如:
[root]# contrail-tools (contrail-tools)[root /]$ vif Usage: vif [--create <intf_name> --mac <mac>] [--add <intf_name> --mac <mac> --vrf <vrf> --type [vhost|agent|physical|virtual|monitoring] --transport [eth|pmd|virtual|socket] --xconnect <physical interface name> --policy, --vhost-phys, --dhcp-enable] --vif <vif ID> --id <intf_id> --pmd --pci] [--delete <intf_id>|<intf_name>] [--get <intf_id>][--kernel][--core <core number>][--rate] [--get-drop-stats] [--set <intf_id> --vlan <vlan_id> --vrf <vrf_id>] [--list][--core <core number>][--rate] [--sock-dir <sock dir>] [--help]
使用 CLI 作为参数执行
contrail-tools
命令。例如:
[root]# contrail-tools vif Usage: vif [--create <intf_name> --mac <mac>] [--add <intf_name> --mac <mac> --vrf <vrf> --type [vhost|agent|physical|virtual|monitoring] --transport [eth|pmd|virtual|socket] --xconnect <physical interface name> --policy, --vhost-phys, --dhcp-enable] --vif <vif ID> --id <intf_id> --pmd --pci] [--delete <intf_id>|<intf_name>] [--get <intf_id>][--kernel][--core <core number>][--rate] [--get-drop-stats] [--set <intf_id> --vlan <vlan_id> --vrf <vrf_id>] [--list][--core <core number>][--rate] [--sock-dir <sock dir>] [--help]
contrail-tools
命令将默认安装。