Owners Manual

Disable packet sampling on a physical port
Set the sampling interval rate
Forward the sampled packet to an IP address/port
See Application examples in the OpenSwitch OPX Developers Guide for more information on how to congure sFlow using the CPS API.
Port statistics
OpenSwitch OPX provides scripts to view statistical information about ports, VLANs, and installed transceivers.
Display port statistics for all or a specied Linux interface which maps to physical ports. Enter a lter_list value to display specied
statistics.
$ opx-show-stats if_stat [iface_name] {filter_list}
Display statistics and media information from a Linux interface which maps to a physical port. The output is a subset of the opx-
show-stats output for the same physical port interface.
$ opx-ethtool [-v | -e | -s | -S]
-v — Displays version information.
-e — Displays media information from EEPROM.
-s — Displays port speed, duplex, and auto-negotiation settings.
-S — Displays port statistics.
Display statistics from all or a specied VLAN. Enter a lter_list value to display specied statistics.
$ opx-show-stats vlan_stat [vlan_ifname] {filter_list}
Delete port statistics for all or a specied Linux interface — command does not support deleting VLAN statistics.
$ opx-show-stats clear [iface_name]
Clear port statistics
$ opx-show-stats clear e101-001-0
Success
View e101-001-0 port statistics
$ opx-show-stats if_stat e101-001-0
Key:
base-stats/interface/ip/in-discards = 0
base-stats/interface/ether-octets = 13442942147
base-stats/interface/ether-out/pkts-64-octets = 0
base-stats/interface/ether-collisions = 0
base-stats/interface/ether-in/pkts-4096-to-9216-octets = 0
base-stats/interface/ether-in/pkts-1024-to-1518-octets = 0
base-stats/interface/ipv6-out-mcast-pkts = 0
base-stats/interface/if/in-octets = 0
base-stats/interface/ether-jabbers = 0
base-stats/interface/if-out-multicast-pkts = 36295
base-stats/interface/ether-out/pkts-256-to-511-octets = 0
base-stats/interface/if-out-errors = 0
base-stats/interface/ether-rx-no-errors = 0
base-stats/interface/ether/pkts-512-to-1023-octets = 0
base-stats/interface/ether/pkts-64-octets = 0
base-stats/interface/ether/pkts-1024-to-1518-octets = 13125220
base-stats/interface/ipv6/out-discards = 0
base-stats/interface/if/out-octets = 13442942147
base-stats/interface/ether-in/pkts-256-to-511-octets = 0
base-stats/interface/if/out-ucast-pkts = 13125220
base-stats/interface/ether-fragments = 0
base-stats/interface/ether-crc-align-errors = 0
base-stats/interface/ipv6-in-mcast-pkts = 0
base-stats/interface/ether-out/pkts-65-to-127-octets = 34014
base-stats/interface/if-out-broadcast-pkts = 0
base-stats/interface/ether-drop-events = 0
26
Monitoring