cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10662
Views
0
Helpful
6
Replies

is it possible to check how much time interface was down?

webstd.design
Level 1
Level 1

Just using IOS commands is it possible the above?

Need something like sh ver

Thanks

1 Accepted Solution

Accepted Solutions

Sure you can.  Enter the most basic command "sh int " and look under "Last input".  For example:

GigabitEthernet1/0/8 is down, line protocol is down (notconnect)

Hardware is Gigabit Ethernet, address is 0023.ad07.5408

Description:

MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,

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

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Auto-duplex, Auto-speed, media type is 10/100/1000BaseTX

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

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

Last input 8w2d, output 8w2d, output hang never

Last clearing of "show interface" counters never

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

View solution in original post

6 Replies 6

SunilKhanna
Level 1
Level 1

I guess not, in cli your options are

SW1#sh int gig 0/6 ?

  accounting      Show interface accounting

  capabilities    Show interface capabilities information

  controller      Show interface status, configuration and controller status

  counters        Show interface counters

  crb             Show interface routing/bridging info

  dampening       Show interface dampening info

  debounce        Show interface debounce time info

  description     Show interface description

  etherchannel    Show interface etherchannel information

  fair-queue      Show interface Weighted Fair Queueing (WFQ) info

  flowcontrol     Show interface flowcontrol information

  irb             Show interface routing/bridging info

  mac-accounting  Show interface MAC accounting info

  mpls-exp        Show interface MPLS experimental accounting info

  mtu             Show interface mtu

  precedence      Show interface precedence accounting info

  private-vlan    Show interface private vlan information

  pruning         Show interface trunk VTP pruning information

  random-detect   Show interface Weighted Random Early Detection (WRED) info

  rate-limit      Show interface rate-limit info

  stats           Show interface packets & octets, in & out, by switching path

  status          Show interface line status

  summary         Show interface summary

  switchport      Show interface switchport information

  transceiver     Show interface transceiver

  trunk           Show interface trunk information

  vlan            Show interface vlan information

  |               Output modifiers

 

Regards,

Sunil

Pls rate the post, if you find the content useful.

Regards, Sunil Khanna

Someone said me that it's possible

Not through ios i believe, one can check the log timestamp.

SW1(config)#int gig 0/12

SW1(config-if)#sh

SW1(config-if)#

*Mar  2 15:29:02.626: %LINK-5-CHANGED: Interface GigabitEthernet0/12, changed state to administratively down

SW1(config-if)#no sh

SW1(config-if)#

*Mar  2 15:30:11.916: %LINK-3-UPDOWN: Interface GigabitEthernet0/12, changed state to down

Regards,

Sunil

Pls rate the post, if you find the content useful.

Regards, Sunil Khanna

Sure you can.  Enter the most basic command "sh int " and look under "Last input".  For example:

GigabitEthernet1/0/8 is down, line protocol is down (notconnect)

Hardware is Gigabit Ethernet, address is 0023.ad07.5408

Description:

MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,

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

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Auto-duplex, Auto-speed, media type is 10/100/1000BaseTX

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

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

Last input 8w2d, output 8w2d, output hang never

Last clearing of "show interface" counters never

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

Thank you all, but I wanted to know how long WAS interface down and not IS down

Ahhhh ... You want the downtime of the interface?  Then "sh logs" will do (hoping you have enough buffer to capture the time the interface went down).