1.5.3. fp-cli
ΒΆ
The fp-cli
tool interacts with the fast path. It is used to:
display statistics
display debugging information
Example: dump the interfaces synchronized from Linux in the fast path:
# fp-cli iface
1:eth1 [VR-0] ifuid=0x15867c2 (virtual) <FWD4|FWD6> (0x60)
type=ether mac=90:e2:ba:6d:c5:30 mtu=1500 tcp4mss=0 tcp6mss=0
IPv4 routes=0 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
250:eth4 [VR-0] ifuid=0xfa4c59d2 (port 1) <FWD4|FWD6> (0x60)
type=ether mac=00:1e:67:68:0b:1f mtu=1500 tcp4mss=0 tcp6mss=0
IPv4 routes=0 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
418:eth5 [VR-0] ifuid=0xa29daa82 (virtual) <FWD4|FWD6> (0x60)
type=ether mac=00:1e:67:68:0b:20 mtu=1500 tcp4mss=0 tcp6mss=0
IPv4 routes=0 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
425:eth2 [VR-0] ifuid=0xa9a9b872 (port 0) <FWD4|FWD6> (0x60)
type=ether mac=00:1e:67:68:0b:1e mtu=1500 tcp4mss=0 tcp6mss=0
IPv4 routes=0 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
650:lo [VR-0] ifuid=0x8a0a5828 (virtual) <UP|RUNNING|FWD4|FWD6> (0x63)
type=loop mac=00:00:00:00:00:00 mtu=0 tcp4mss=0 tcp6mss=0
IPv4 routes=0 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
849:eth3 [VR-0] ifuid=0x51fb0922 (virtual) <FWD4|FWD6> (0x60)
type=ether mac=90:e2:ba:6d:c5:31 mtu=1500 tcp4mss=0 tcp6mss=0
IPv4 routes=0 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
888:mgmt0 [VR-0] ifuid=0x78fb6b7a (virtual) <UP|RUNNING|FWD4|FWD6> (0x63)
type=ether mac=00:1e:67:68:0b:1d mtu=1500 tcp4mss=0 tcp6mss=0
IPv4 routes=4 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
931:fpn0 [VR-0] ifuid=0xa307dac2 (virtual) <UP|RUNNING|FWD4|FWD6> (0x63)
type=ether mac=00:00:46:50:4e:00 mtu=1500 tcp4mss=0 tcp6mss=0
IPv4 routes=0 IPv6 routes=0
if_ops: rx_dev=none tx_dev=none ip_output=none
Example: display the fast path ip stack statistics:
# fp-cli ip4-stats
IpForwDatagrams:0
IpInReceives:0
IpInDelivers:0
IpInHdrErrors:0
IpInAddrErrors:0
IpDroppedNoArp:0
IpDroppedNoMemory:0
IpDroppedForwarding:0
IpDroppedIPsec:0
IpDroppedBlackhole:0
IpDroppedInvalidInterface:0
IpDroppedNetfilter:0
IpDroppedNoRouteLocal:0
IpReasmTimeout:0
IpReasmReqds:0
IpReasmOKs:0
IpReasmFails:0
IpReasmExceptions:0
IpFragOKs:0
IpFragFails:0
IpFragCreates:0
Example: dump the fast path license status (no license installed here):
# fp-cli license
VALID: License is valid.
- Product: on
- IPsec: on
The fp-cli
help command gives a list of the available commands and their
syntax.
Example: display ip4-stats syntax
# fp-cli help ip4-stats
ip4-stats : Display IPv4 statistics
ip4-stats [percore] [all]