monitor
interface/ethernet/switch/l3hw-settings/monitor
Syscap: rbswitch and crs_prestera
Type: Command
This command allows monitoring switch chip and L3HW related driver stats.
/interface/ethernet/switch/l3hw-settings/monitor
ipv4-routes-total: 99363
ipv4-routes-hw: 61250
ipv4-routes-cpu: 38112
ipv4-shortest-hw-prefix: 24
ipv4-hosts: 87
-routes-total: 15
-routes-hw: 11
-routes-cpu: 4
-shortest-hw-prefix: 0
-hosts: 7
--size: 118
fasttrack-ipv4-conns: 2031
fasttrack-hw-min-speed: 0
nexthop-cap: 8192
nexthop-usage: 93
vxlan-mtu-packet-drop: 0
| Read-only Argument | Type | Description |
|---|---|---|
| state | enum (ok | stopping | starting | fib-failure | net-failure | switch-failure | fasttrack-failure | out-of-memory) { ok:0, stopping:1, starting:2, fib-failure:3, net-failure:4, switch-failure:5, fasttrack-failure:6, out-of-memory:0xFFFFFFF4 } | Current state of the L3HW driver. |
| ipv4-routes-total | num | The total number of IPv4 routes handled by the switch driver. |
| ipv4-routes-hw | num | The number of hardware-offloaded IPv4 routes. |
| ipv4-routes-cpu | num | The number of IPv4 routes redirected to the CPU. |
| ipv4-shortest-hw-prefix | num | Shortest Hardware Prefix (SHWP) for IPv4. If the entire IPv4 routing table does not fit into the hardware memory, partial offloading is applied, where the longest prefixes are hw-offloaded while the shorter ones are redirected to the CPU. This field shows the shortest route prefix (/x) that is offloaded to the hardware memory. All prefixes shorter than this are processed by the CPU. ipv4-shortest-hw-prefix=0 means the entire IPv4 routing table is offloaded to the hardware memory. |
| ipv4-hosts | num | The number of hardware-offloaded IPv4 hosts (/32 routes). |
| ipv6-routes-total | num | The total number of IPv6 routes handled by the switch driver. |
| ipv6-routes-hw | num | The number of hardware-offloaded IPv6 routes (a.k.a. hardware routes). Shown only when IPv6 hardware routing is enabled (ipv6-hw=yes). |
| ipv6-routes-cpu | num | The number of IPv6 routes redirected to the CPU (a.k.a. software routes). Shown only when IPv6 hardware routing is enabled (ipv6-hw=yes). |
| ipv6-shortest-hw-prefix | num | Shortest Hardware Prefix (SHWP) for IPv6. If the entire IPv6 routing table does not fit into the hardware memory, partial offloading is applied, where the longest prefixes are hw-offloaded while the shorter ones are redirected to the CPU. This field shows the shortest route prefix (/x) that is offloaded to the hardware memory. All prefixes shorter than this are processed by the CPU. ipv6-shortest-hw-prefix=0 means the entire IPv6 routing table is offloaded to the hardware memory. Shown only when IPv6 hardware routing is enabled (ipv6-hw=yes). |
| ipv6-hosts | num | The number of hardware-offloaded IPv6 hosts (/128 routes). |
| route-queue-size (syscap=!prestera-cpss) | num | The number of routes in the queue for processing by the switch chip driver. Under normal working conditions, this field is 0, meaning that all routes are processed by the driver. |
| nexthop-cap | num | The nexthop capacity. |
| nexthop-usage | num | The number of currently used nexthops. |
| vxlan-mtu-packet-drop (syscap=prestera-bc2) | num | The number of dropped VXLAN packets due to exceeded interface MTU settings. |
| fasttrack-ipv4-conns (syscap=prestera-bc2) | num | The number of hardware-offloaded FastTrack connections. Parammeter appear only when hardware offloading of FastTrack connections is enabled. |
| fasttrack-hw-min-speed (syscap=prestera-bc2) | num | When the hardware memory for storing FastTrack is full, this field shows the minimum speed (in bytes per second) of a hw-offloaded FastTrack connection. Parammeter appear only when hardware offloading of FastTrack connections is enabled. |