The monitor interface-information command enables a device to monitor the running status and traffic statistics of an interface.
Parameter | Description | Value |
---|---|---|
interface-name |
Specifies the name of an interface. |
- |
interface-type interface-number |
Specifies the type and number of an interface. |
- |
interval interval-value |
Specifies the interval at which the running status and traffic statistics of an interface are monitored. |
The value is an integer ranging from 2 to 600, in seconds. The default value is 10. |
times times-value |
Specifies the number of times that the running status and traffic statistics of an interface are monitored. |
The value is an integer ranging from 1 to 999. The default value is 5. |
infinity |
Displays the traffic rate on an interface. If rate is not specified, the number of packets on an interface is displayed. This parameter is supported only on an interface whose physical status is Up. |
- |
Usage Scenario
To display detailed information about a specified interface for a specified number of times at a specified interval, run the monitor interface-information command. The information includes the running status and traffic statistics.
By default, once this command is run, the system displays real-time traffic statistics at an interval of 10s for five times. To stop the statistics display, press Ctrl+C.Precautions
An interface must be specified before you run the monitor interface-information command.
<HUAWEI> monitor interface-information interface GigabitEthernet0/1/0 interval 10 times 2 Display information of the interface at the interval of 10 seconds for up to 2 times. Press Ctrl + C to stop. 0 seconds left Times 1 GigabitEthernet0/1/0 current state : UP (ifindex: 6) Line protocol current state : UP Last line protocol up time : 2017-07-29 15:39:29 Description: HUAWEI, GigabitEthernet0/1/0 Interface Route Port,The Maximum Transmit Unit is 1500 Internet Address is 10.1.1.1/1 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc12-3456 Last physical up time : 2017-07-29 15:39:23 Last physical down time : 2017-07-29 15:38:41 Current system time: 2017-07-30 09:15:33 Statistics last cleared:never Last 300 seconds input rate: 23513 bits/sec, 2 packets/sec Last 300 seconds output rate: 64319 bits/sec, 3 packets/sec Input peak rate 26099 bits/sec, Record time: 2017-07-29 15:40:58 Output peak rate 64809 bits/sec, Record time: 2017-07-30 03:59:41 Input: 183126871 bytes, 182525 packets Output: 509287017 bytes, 244628 packets Input: Unicast: 55 packets, Multicast: 160762 packets Broadcast: 21708 packets JumboOctets: 31031 packets CRC: 0 packets, Symbol: 0 packets Overrun: 0 packets, InRangeLength: 0 packets LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets Fragment: 0 packets, Undersized Frame: 0 packets RxPause: 0 packets Output: Unicast: 53 packets, Multicast: 243990 packets Broadcast: 585 packets JumboOctets: 0 packets Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets System: 0 packets, Overruns: 0 packets TxPause: 0 packets Ipv4: Last 300 seconds input rate: 512 bits/sec, 1 packets/sec Last 300 seconds output rate: 0 bits/sec, 0 packets/sec Input 63318 packets,4052352 bytes Output 0 packets,0 bytes Ipv6: Last 300 seconds input rate: 0 bits/sec, 0 packets/sec Last 300 seconds output rate: 0 bits/sec, 0 packets/sec Input 0 packets,0 bytes Output 0 packets,0 bytes Last 300 seconds input utility rate: 0.01% Last 300 seconds output utility rate: 0.01% 0 seconds left Times 2 GigabitEthernet0/1/0 current state : UP (ifindex: 6) Line protocol current state : UP Last line protocol up time : 2017-07-29 15:39:29 Description: HUAWEI, GigabitEthernet0/1/0 Interface Route Port,The Maximum Transmit Unit is 1500 Internet Address is 10.1.1.1/1 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc12-3456 Last physical up time : 2017-07-29 15:39:23 Last physical down time : 2017-07-29 15:38:41 Current system time: 2017-07-30 09:15:33 Statistics last cleared:never Last 300 seconds input rate: 23513 bits/sec, 2 packets/sec Last 300 seconds output rate: 64319 bits/sec, 3 packets/sec Input peak rate 26099 bits/sec, Record time: 2017-07-29 15:40:58 Output peak rate 64809 bits/sec, Record time: 2017-07-30 03:59:41 Input: 183126871 bytes, 182525 packets Output: 509287017 bytes, 244628 packets Input: Unicast: 55 packets, Multicast: 160762 packets Broadcast: 21708 packets JumboOctets: 31031 packets CRC: 0 packets, Symbol: 0 packets Overrun: 0 packets, InRangeLength: 0 packets LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets Fragment: 0 packets, Undersized Frame: 0 packets RxPause: 0 packets Output: Unicast: 53 packets, Multicast: 243990 packets Broadcast: 585 packets JumboOctets: 0 packets Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets System: 0 packets, Overruns: 0 packets TxPause: 0 packets Ipv4: Last 300 seconds input rate: 512 bits/sec, 1 packets/sec Last 300 seconds output rate: 0 bits/sec, 0 packets/sec Input 63318 packets,4052352 bytes Output 0 packets,0 bytes Ipv6: Last 300 seconds input rate: 0 bits/sec, 0 packets/sec Last 300 seconds output rate: 0 bits/sec, 0 packets/sec Input 0 packets,0 bytes Output 0 packets,0 bytes Last 300 seconds input utility rate: 0.01% Last 300 seconds output utility rate: 0.01%
Item | Description |
---|---|
seconds left | Remaining time before the next interval for displaying traffic statistics on the interface expires, in seconds. |
Times | Number of times for the statistics display. This field is displayed each time when the query starts. |
current state | Physical status of the interface:
|
Line protocol current state | Link layer protocol status of the interface:
For example, if no IP address is assigned to an IP service-capable interface,its protocol status is Down.
|
Last line protocol up time | Last time the link-layer protocol of the interface went Up. |
Last physical up time | Last time when the physical status of the interface went Up. A hyphen (-) indicates that the physical status of the interface does not change. When the interface goes Up, if the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST. |
Last physical down time | Last time when the physical status of the interface goes Down. A hyphen (-) indicates that the physical status of the interface does not change. When the interface goes Down, if the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST. |
Last 300 seconds output rate | Rate of the bit and the packet that pass through the interface in the last 5 minutes:
You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. |
Last 300 seconds input utility rate | Percentage of the rate for receiving packets to the total bandwidth. |
Last 300 seconds output utility rate | Percentage of the rate for sending packets to the total bandwidth. |
Route Port | Layer 3 interface. |
Internet Address is | IP address and subnet mask of the interface. |
IP Sending Frames' Format is | Format of Ethernet frames sent by the interface. PKTFMT_ETHNT_2 is the default frame format. When receiving frames, an Ethernet interface can identify the following formats:
|
Hardware address is | MAC address of the interface. |
Current system time | Current system time. If the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST. |
Statistics last cleared | Last time when statistics on the interface were deleted. |
Input peak rate | Maximum average rate at which packets were received during all statistical intervals. During each statistical interval, packets are received at a specific rate. You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. The value is an integer ranging from 10 to 600, in seconds. It must be an integer multiple of 10. The default interval is 300 seconds. |
Input | Total number and total bytes of received packets on an interface. Packets include correct packets (unicast, broadcast, multicast packets and JumboOctets), incorrect packets, and dropped packets.
|
Output peak rate | Maximum average rate at which packets were sent during all statistical intervals. During each statistical interval, packets are sent at a specific rate. You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. The value is an integer ranging from 10 to 600, in seconds. It must be an integer multiple of 10. The default interval is 300 seconds. |
Output | Total number and total bytes of sent packets on an interface. Packets include correct packets (unicast, broadcast, multicast packets and JumboOctets), incorrect packets, and dropped packets.
|
Description | Interface description. A maximum of 242 case-sensitive characters (including spaces) can be entered. The description helps you know the functions of the interface. If the description command is not used to configure the interface description, the description is empty by default. |
ifindex | Interface index. |
The Maximum Transmit Unit is | MTU of the interface. For example, the default MTU of an Ethernet interface is 1500 bytes. The packet whose size is greater than the MTU is fragmented before being transmitted. If fragmentation is not allowed, the packets are discarded. |