opx show sflow - open-switch/opx-docs GitHub Wiki
opx-show-sflow — Displays the current configuration and status of sFlow sessions
opx-show-sflow [-h,--help]
[--id <id>]
[--port <intf>]
[--direction (ingress | egress | ingress_egress)]
| Option | Description |
|---|---|
-h,--help |
Displays help text |
--id <id> |
Session identifier |
--port <intf> |
Front-panel Ethernet interface |
--direction |
Direction (ingress/egress/ingress_egress) |
| Output | Description |
|---|---|
Id |
Displays the Sflow session ID |
Direction |
Displays the direction (ingress/egress/ingress_egress) on which the packet sampling is configured |
Rate |
Displays the Sampling rate; one packet out of <Rate> no of packets to be sampled through this session |
Port |
Displays the front-panel Ethernet interface the session is enabled on |
0 if OK
1 if minor problems (syntax error, wrong parameters passed)
2 if serious trouble (CPS commit fails)
$ opx-show-sflow --summary
Session ID | Direction | Rate | Port
-------------------------------------------
2 | egress | 14000 | e101-012-0
1 | ingress | 10000 | e101-010-0
$ opx-show-sflow --id 2
Session ID=2
Direction: egress
Rate: 14000
Port: e101-012-0
To report any OPX software bugs, see Report bugs.