Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Port Statistics

Hello,

I have a question regarding the port stats on a switch. The model is a 3524 XL PWR EN. Here's the output:

FastEthernet0/20 is up, line protocol is up

Hardware is Fast Ethernet, address is 0006.53a6.3754 (bia 0006.53a6.3754)

Description:

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive not set

Auto-duplex (Full), Auto Speed (100), 100BaseTX/FX

ARP type: ARPA, ARP Timeout 04:00:00

WONDERING WHAT THESE MEAN

===========================

Last input 1y4w, output 00:00:00, output hang never

============================

Last clearing of "show interface" counters 30w0d

Queueing strategy: fifo

Output queue 0/40, 0 drops; input queue 0/75, 0 drops

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 2000 bits/sec, 2 packets/sec

3146109 packets input, 649835971 bytes

Received 1914758 broadcasts, 1 runts, 0 giants, 0 throttles

2 input errors, 1 CRC, 0 frame, 0 overrun, 0 ignored

0 watchdog, 172497 multicast

0 input packets with dribble condition detected

18461499 packets output, 2749093220 bytes, 0 underruns

0 output errors, 0 collisions, 8 interface resets

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier

0 output buffer failures, 0 output buffers swapped out

As indicated above, specifically, I'm wondering what the Last Input and Output means? Is that the last time there was activity seen on the port (i.e. something plugged in)?

Any help would be great.

Thanks,

Dave

6 REPLIES
Purple

Re: Port Statistics

That is correct, Dave. That is the last time traffic was seen in an input direction on this port. As you can see, there is traffic in the output direction, which is why the timer for that is 00:00:00

Hope that helps - pls rate the post if it does.

Paresh

Community Member

Re: Port Statistics

Hello Dave,

Last input: Number of hours, minutes, and seconds since the last packet was successfully received by an interface and processed locally on the router. Useful for knowing when a dead interface failed. This counter is updated only when packets are process switched, not when packets are fast switched.

Last Output: Number of hours, minutes, and seconds since the last packet was successfully transmitted by the interface. Useful for knowing when a dead interface failed. This counter is updated only when packets are process switched, not when packets are fast switched.

ref: http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/finter_r/irfshoin.htm#wp1018148

Hope this helps.

Regards,

James

Community Member

Re: Port Statistics

Great, thanks for your input (to both of the repliers).

Now for another question related to this.

I'm wondering if there's any sort of utility that could use that data to show inactive ports over a series of switches.

For example, we have about 20 switches deployed. Is there some utility that I could use that would analyze all switches and show what ports haven't seen any activity for x number of hours/days/weeks, etc? I'm fairly certain that we have a number of ports out there that are hooked up, but not required.

I'd prefer to do it without getting into an elaborate SNMP thing. I do however have CW2K v2.0 if that'd somehow work?

Any suggestions?

Thanks,

Dave

Community Member

Re: Port Statistics

I use a non-elaborate SNMP thing, it may work for you too. Using the nice little utility called GetIf :

- get sysUpTime from switch

- get IfDesc for the index-to-interface relationship

(on some models VLAN1 is index 1, on others fa0/1 is index 1, on modular switches it is different yet again).

- get IfOperStatus for all interfaces, note the ones that are operationally down.

- get the IfLastChange, and look at the down interfaces for values close to 0 (the lower the better typically), these will be ports that have been down since the switch was powered up (sysuptime = 0).

This seems a bit tedious, but I can find free ports on any given switch in a minute or so with perhaps 6 mouse clicks after entering the IP/community.

Good luck.

Dave

Community Member

Re: Port Statistics

Neat utility Dave.

However, I think I'm not understanding something:

My interface on a show int fa0/2 shows that it's been 22d since the last output. However, the MIB entry says something like close to zero (0) for the entry IfLastChange.

Take a look:

CHASW9010503#show int fa0/2

FastEthernet0/2 is down, line protocol is down (notconnect)

Hardware is Fast Ethernet, address is 0009.7cd3.6342 (bia 0009.7cd3.6342)

MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Auto-duplex, Auto-speed

input flow-control is off, output flow-control is off

ARP type: ARPA, ARP Timeout 04:00:00

Last input never, output 22w0d, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Queueing strategy: fifo

Output queue: 0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

1 packets input, 64 bytes, 0 no buffer

Received 0 broadcasts (0 multicast)

0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

0 watchdog, 0 multicast, 0 pause input

0 input packets with dribble condition detected

1 packets output, 64 bytes, 0 underruns

0 output errors, 0 collisions, 2 interface resets

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier, 0 PAUSE output

0 output buffer failures, 0 output buffers swapped out

And here's the Getif entry says 0:0:00:24.79.

So, I'm a bit confused as to this. What is this telling me?

Thanks,

Dave

Community Member

Re: Port Statistics

Whoops, correction: 22W not days.

262
Views
0
Helpful
6
Replies
CreatePlease to create content