Examples
When more than one interface is specified, the statistics for each interface are displayed on a separate line. This display format appears anytime more than one interface is specified. For example:
-
To display statistics for all interfaces, enter the command monitor interface .
-
To display all the interfaces for an interface type, such as all POS interface, enter the command and wildcard monitor interface pos * .
-
To display statistics for three specified interfaces, enter the command monitor interface pos0/2/0/0 pos0/5/0/1 pos0/5/0/2 .
This is the sample output for the monitor interface command entered without an argument. This command displays statistics for all interfaces in the system.
RP/0/0/CPU0:router# monitor interface Protocol:General
Rack6-1 Monitor Time: 00:00:01 SysUptime: 165:52:41 Interface In(bps) Out(bps)
InBytes/Delta OutBytes/Delta Mg0/0/CPU0/0 1500/ 0% 7635/ 0% 58.4M/420 8.1M/2138
PO0/4/0/0 578/ 0% 535/ 0% 367.2M/162 377.5M/150 PO0/4/0/1 278/ 0% 0/ 0% 345.7M/78
360.1M/0 Gi0/5/0/1 3128/ 0% 2171/ 0% 382.8M/876 189.1M/608 Gi0/5/0/1.1 0/ 0% 0/ 0%
824.6G/0 1.0T/0 Gi0/5/0/1.2 0/ 0% 0/ 0% 1.0T/0 824.6G/0 Gi0/5/0/1.3 678/ 0% 0/ 0%
1.0T/190 1.0T/0 Gi0/5/0/1.4 0/ 0% 0/ 0% 824.6G/0 824.6G/0 Gi0/5/0/1.5 0/ 0% 350/ 0%
824.6G/0 1.0T/98 Gi0/5/0/1.6 327/ 0% 348/ 0% 824.6G/92 1.0T/98 Gi0/5/0/1.7 0/ 0% 346/ 0%
824.6G/0 1.0T/98 Gi0/5/0/1.8 325/ 0% 0/ 0% 824.6G/92 1.0T/0 Quit='q', Clear='c',
Freeze='f', Thaw='t', Next set='n', Prev set='p', Bytes='y', Packets='k' (General='g',
IPv4 Uni='4u', IPv4 Multi='4m', IPv6 Uni='6u', IPv6 Multi='6m') Rack6-1 Monitor Time:
00:00:01 SysUptime: 165:52:41 Protocol:IPv4 Unicast Interface In(bps) Out(bps)
InBytes/Delta OutBytes/Delta Mg0/0/CPU0/0 0/ 0% 0/ 0% 85.3M/0 6.9M/0 PO0/4/0/0 0/ 0% 0/
0% 3.1G/0 224/0 PO0/4/0/1 0/ 0% 0/ 0% 3.0G/0 152582/0 Gi0/5/0/1 0/ 0% 0/ 0% 0/0 28168/0
Gi0/5/0/1.1 0/ 0% 0/ 0% 0/0 441174/0 Gi0/5/0/1.2 0/ 0% 0/ 0% 540/0 0/0 Gi0/5/0/1.3 0/ 0%
0/ 0% 13.4M/0 462549/0 Gi0/5/0/1.4 0/ 0% 0/ 0% 12.2M/0 0/0 Gi0/5/0/1.5 0/ 0% 0/ 0% 0/0
427747/0 Gi0/5/0/1.6 0/ 0% 0/ 0% 3072/0 500/0 Gi0/5/0/1.7 0/ 0% 0/ 0% 0/0 568654/0
Gi0/5/0/1.8 0/ 0% 0/ 0% 8192/0 5.1M/0 Quit='q', Clear='c', Freeze='f', Thaw='t', Next
set='n', Prev set='p', Bytes='y', Packets='k' (General='g', IPv4 Uni='4u', IPv4
Multi='4m', IPv6 Uni='6u', IPv6 Multi='6m') Rack6-1 Monitor Time: 00:00:03 SysUptime:
165:52:56 Protocol:IPv4 Multicast Interface In(bps) Out(bps) InBytes/Delta
OutBytes/Delta Mg0/0/CPU0/0 (statistics not available) PO0/4/0/0 (statistics not
available) PO0/4/0/1 (statistics not available) Gi0/5/0/1 (statistics not available)
Gi0/5/0/1.1 (statistics not available) Gi0/5/0/1.2 (statistics not available)
Gi0/5/0/1.3 (statistics not available) Gi0/5/0/1.4 (statistics not available)
Gi0/5/0/1.5 (statistics not available) Gi0/5/0/1.6 (statistics not available)
Gi0/5/0/1.7 (statistics not available) Gi0/5/0/1.8 (statistics not available) Quit='q',
Clear='c', Freeze='f', Thaw='t', Next set='n', Prev set='p', Bytes='y', Packets='k'
(General='g', IPv4 Uni='4u', IPv4 Multi='4m', IPv6 Uni='6u', IPv6 Multi='6m') Rack6-1
Monitor Time: 00:00:01 SysUptime: 165:53:04 Protocol:IPv6 Unicast Interface In(bps)
Out(bps) InBytes/Delta OutBytes/Delta Mg0/0/CPU0/0 0/ 0% 0/ 0% 0/0 0/0 PO0/4/0/0 0/ 0%
0/ 0% 0/0 0/0 PO0/4/0/1 0/ 0% 0/ 0% 0/0 0/0 Gi0/5/0/1 0/ 0% 0/ 0% 0/0 0/0 Gi0/5/0/1.1 0/
0% 0/ 0% 0/0 0/0 Gi0/5/0/1.2 0/ 0% 0/ 0% 0/0 0/0 Gi0/5/0/1.3 0/ 0% 0/ 0% 0/0 0/0
Gi0/5/0/1.4 0/ 0% 0/ 0% 0/0 0/0 Gi0/5/0/1.5 0/ 0% 0/ 0% 0/0 0/0 Gi0/5/0/1.6 0/ 0% 0/ 0%
0/0 0/0 Gi0/5/0/1.7 0/ 0% 0/ 0% 0/0 0/0 Gi0/5/0/1.8 0/ 0% 0/ 0% 0/0 0/0 Quit='q',
Clear='c', Freeze='f', Thaw='t', Next set='n', Prev set='p', Bytes='y', Packets='k'
(General='g', IPv4 Uni='4u', IPv4 Multi='4m', IPv6 Uni='6u', IPv6 Multi='6m') Rack6-1
Monitor Time: 00:00:00 SysUptime: 165:53:19 Protocol:IPv6 Multicast Interface In(bps)
Out(bps) InBytes/Delta OutBytes/Delta Mg0/0/CPU0/0 (statistics not available) PO0/4/0/0
(statistics not available) PO0/4/0/1 (statistics not available) Gi0/5/0/1 (statistics
not available) Gi0/5/0/1.1 (statistics not available) Gi0/5/0/1.2 (statistics not
available) Gi0/5/0/1.3 (statistics not available) Gi0/5/0/1.4 (statistics not available)
Gi0/5/0/1.5 (statistics not available) Gi0/5/0/1.6 (statistics not available)
Gi0/5/0/1.7 (statistics not available) Gi0/5/0/1.8 (statistics not available) Quit='q',
Clear='c', Freeze='f', Thaw='t', Next set='n', Prev set='p', Bytes='y', Packets='k'
(General='g', IPv4 Uni='4u', IPv4 Multi='4m', IPv6 Uni='6u', IPv6 Multi='6m')
This is the sample output for monitor interface pos * command that displays statistics for all POS interfaces:
RP/0/0/CPU0:router# monitor interface pos 0/*
Protocol:General router Monitor Time: 00:00:02 SysUptime: 186:37:44 Interface In(bps)
Out(bps) InBytes/Delta OutBytes/Delta POS0/1/0/0 1263/ 0% 0/ 0% 5.3M/330 1.4M/0
POS0/1/0/1 84/ 0% 0/ 0% 274.8M/22 274.6M/0 POS0/6/0/0 1275/ 0% 0/ 0% 5.3M/330 1.4M/0
POS0/6/0/1 85/ 0% 0/ 0% 2.6M/22 1.4M/0 POS0/6/4/4 0/ 0% 0/ 0% 15.1M/0 1.4M/0 POS0/6/4/5
85/ 0% 0/ 0% 2.6M/22 1.4M/0 POS0/6/4/6 0/ 0% 0/ 0% 1.3M/0 1.4M/0 POS0/6/4/7 85/ 0% 0/ 0%
2.6M/22 1.4M/0 Quit='q', Clear='c', Freeze='f', Thaw='t', Next set='n', Prev set='p',
Bytes='y', Packets='k' (General='g', IPv4 Uni='4u', IPv4 Multi='4m', IPv6 Uni='6u', IPv6
Multi='6m')
This is the sample output for a single interface using the monitor interface command with the type interface-path-id argument. In this example, the output displays interface counters from POS interface 0/6/4/4. By default, statistics are displayed in “Brief” state (statistics are not divided by protocol).
RP/0/0/CPU0:router# monitor interface pos0/6/4/4 router
Monitor Time: 00:00:24 SysUptime: 186:43:04 POS0/6/4/4 is up, line protocol is up
Encapsulation HDLC Traffic Stats:(2 second rates) Delta Input Packets: 232450 0 Input
pps: 0 Input Bytes: 15179522 0 Input Kbps (rate): 0 ( 0%) Output Packets: 67068 0 Output
pps: 0 Output Bytes: 1475484 0 Output Kbps (rate): 0 ( 0%) Errors Stats: Input Total:
2146 0 Input CRC: 2134 0 Input Frame: 2135 0 Input Overrun: 0 0 Output Total: 0 0 Output
Underrun: 0 0 Quit='q', Freeze='f', Thaw='t', Clear='c', Interface='i', Next='n',
Prev='p' Brief='b', Detail='d', Protocol(IPv4/IPv6)='r'
This is the sample output from the monitor interface command in the protocol state for the POS interface 0/6/4/4. Use the r key to display statics by protocol:
RP/0/0/CPU0:router# monitor interface pos0/6/4/4 router
Monitor Time: 00:00:02 SysUptime: 186:49:15 POS0/6/4/4 is up, line protocol is up
Encapsulation HDLC Traffic Stats:(2 second rates) Delta Input Bytes: 15188186 0 Input
Kbps (rate): 0 ( 0%) Output Bytes: 1476298 0 Output Kbps (rate): 0 ( 0%) IPv4 Unicast
Input Bytes: 0 0 Input Kbps (rate): 0 ( 0%) Output Bytes: 0 0 Output Kbps (rate): 0 (
0%) IPv4 Multicast Input Bytes: 10160304 66 Input Kbps (rate): 0 ( 0%) Output Bytes: 0 0
Output Kbps (rate): 0 ( 0%) IPv6 Unicast Input Bytes: 0 0 Input Kbps (rate): 0 ( 0%)
Output Bytes: 0 0 Output Kbps (rate): 0 ( 0%) IPv6 Multicast Input Bytes: 0 0 Input Kbps
(rate): 0 ( 0%) Output Bytes: 0 0 Output Kbps (rate): 0 ( 0%) Errors Stats: Input Total:
2146 0 Input CRC: 2134 0 Input Frame: 2135 0 Input Overrun: 0 0 Output Total: 0 0 Output
Underrun: 0 0 Quit='q', Freeze='f', Thaw='t', Clear='c', Interface='i', Next='n',
Prev='p' Brief='b', Detail='d', Protocol(IPv4/IPv6)='r' (Additional options in
'Protocol'): Bytes='y', Packets='k', Both of bytes/packets='o'