监控接口和交换功能
本节介绍如何监控接口和交换功能。
显示实时接口信息
输入命令以 monitor interface
显示有关物理或逻辑接口的实时流量、错误、告警和过滤器统计信息:
user@host> monitor interface (interface-name | traffic)
替换为 interface-name
物理或逻辑接口的名称。如果指定该 traffic
选项,将显示所有活动接口的统计信息。
实时统计信息每秒更新一次。和Current delta
Delta
列显示自monitor interface
输入命令或清除增量计数器以来统计信息计数器发生更改的数量。 表 1 并使用表 2和traffic
选项列出用于控制显示interface-name
的键。(键不区分大小写。
图例标示 |
操作 |
---|---|
c |
清除(返回到 0)列中的 |
f |
冻结显示,停止统计信息和增量计数器的更新。 |
我 |
显示有关其他接口的信息。系统将提示您输入特定接口的名称。 |
n |
显示有关下一个接口的信息。设备将按照命令显示 |
Q 或电调 |
退出命令并返回到命令提示符。 |
t |
解冻显示,恢复统计信息和增量计数器的更新。 |
图例标示 |
操作 |
---|---|
b |
以字节和每秒字节数 (bps) 为单位显示统计信息。 |
c |
清除(返回到 0)列中的 |
d |
显示 |
p |
以数据包和每秒数据包数 (pps) 为单位显示统计信息。 |
Q 或电调 |
退出命令并返回到命令提示符。 |
r |
显示费率列(以 bps 和 pps 为单位),而不是列 |
以下是命令 monitor interface
中的示例显示:
user@host> monitor interface fe-0/0/0
host1 Seconds: 5 Time: 04:38:40 Delay: 3/0/10 Interface: fe-0/0/0, Enabled, Link is Up Encapsulation: Ethernet, Speed: 1000mbps Traffic statistics: Current delta Input bytes: 885405423 (3248 bps) [2631] Output bytes: 137411893 (3344 bps) [10243] Input packets: 7155064 (2 pps) [28] Output packets: 636071 (1 pps) [23] Error statistics: Input errors: 0 [0] Input drops: 0 [0] Input framing errors: 0 [0] Policed discards: 0 [0] L3 incompletes: 0 [0] L2 channel errors: 0 [0] L2 mismatch timeouts: 0 [0] Carrier transitions: 1 [0] Output errors: 0 [0] Output drops: 0 [0] Aged packets: 0 [0] Active alarms : None Active defects: None Input MAC/Filter statistics: Unicast packets 73083 [16] Broadcast packets 3629058 [5] Multicast packets 3511364 [3] Oversized frames 0 [0] Packet reject count 0 [0] DA rejects 0 [0] SA rejects 0 [0] Output MAC/Filter Statistics: Unicast packets 629555 [28] Broadcast packets 6494 Multicast packet [0]
输入 monitor interface interface-name
命令时显示的输出字段由您指定的接口决定。
user@host> monitor interface traffic
Interface Link Input packets (pps) Output packets (pps) fe-0/0/0 Up 42334 (5) 23306 (3) fe-0/0/1 Up 587525876 (12252) 589621478 (12891)
Monitor Interfaces
Purpose
View general information about all physical and logical interfaces for a device.
Action
Enter the following show
commands in the
CLI to view interface status and traffic statistics.
show interfaces terse
Note:On SRX Series Firewalls, when configuring identical IPs on a single interface, you will not see a warning message; instead, you will see a syslog message.
show interfaces extensive
show interfacesinterface-name
If you are using the J-Web user interfaces, select Monitor>Interfaces in the J-Web user interface. The J-Web Interfaces page displays the following details about each device interface:
Port—Indicates the interface name.
Admin Status—Indicates whether the interface is enabled (Up) or disabled (Down).
Link Status—Indicates whether the interface is linked (Up) or not linked (Down).
Address—Indicates the IP address of the interface.
Zone—Indicates whether the zone is an untrust zone or a trust zone.
Services—Indicates services that are enabled on the device, such as HTTP and SSH.
Protocols—Indicates protocols that are enabled on the device, such as BGP and IGMP.
Input Rate graph—Displays interface bandwidth utilization. Input rates are shown in bytes per second.
Output Rate graph—Displays interface bandwidth utilization. Output rates are shown in bytes per second.
Error Counters chart—Displays input and output error counters in the form of a bar chart.
Packet Counters chart—Displays the number of broadcast, unicast, and multicast packet counters in the form of a pie chart. (Packet counter charts are supported only for interfaces that support MAC statistics.)
To change the interface display, use the following options:
Port for FPC—Controls the member for which information is displayed.
Start/Stop button—Starts or stops monitoring the selected interfaces.
Show Graph—Displays input and output packet counters and error counters in the form of charts.
Pop-up button—Displays the interface graphs in a separate pop-up window.
Details—Displays extensive statistics about the selected interface, including its general status, traffic information, IP address, I/O errors, class-of-service data, and statistics.
Refresh Interval—Indicates the duration of time after which you want the data on the page to be refreshed.
Clear Statistics—Clears the statistics for the selected interface.