Monitor interface status
Use the following commands to configure traffic monitoring on an interface.
CLI Command |
Description |
---|---|
*set interface <interface_name> |
Specify the interface to be monitored. |
set interval |
Specify the monitoring interval in seconds. The valid range is 1–3600. The default is 30. |
set filter {rx_bytes | tx_bytes | rx_packets | tx_packets | rx_dropped | tx_dropped | rx_bps | tx_bps | rx_pps | tx_pps} |
Set the monitor filters on the interface:
|
Example interface monitoring configuration:
config hmon interface-monitoring
edit fcs-0-phase-1-mon
set interval 30
set interface fcs-0-phase-1
set filter rx_bytes tx_bytes
next
edit fcs-1-phase-1-mon
set interval 30
set interface fcs-1-phase-1
set filter rx_bytes tx_bytes
next
edit ifmon
set internal 30
set interface lte1
set filter rx_bytes tx_bytes
next
end
You can monitor the aforementioned configuration using the following commands:
X04DA5918004433 # get hmon interface-monitoring fcs-0-phase-1-
mon
rx_bytes tx_bytes rx_packets tx_
packets rx_dropped tx_dropped rx_bps tx_bps
rx_pps tx_pps
fcs-0-phase-1: 12.76MB 3.40MB 24878 21032
0 0 488b 968b 0 0
X04DA5918004433 # get hmon interface-monitoring ifmon
rx_bytes tx_bytes rx_packets tx_
packets rx_dropped tx_dropped rx_bps tx_bps
rx_pps tx_pps
lte1: 22.20MB 11.50MB 83137 72281
0 0 101.85Kb 21.14Kb 15 14
0