Interface Uptime

Technical discussions about Cisco hardware, configuration, network design and troubleshooting.

Moderator: sva

Interface Uptime

Postby s_kanth on Thu Mar 04, 2010 4:29 pm

Is there any command to find out how long a perticulater interface has been up ? (Example BVI interface on AP, serial interface )
s_kanth
 

Re: Interface Uptime

Postby ganeshh_iyer on Thu Mar 04, 2010 4:30 pm

Hi,

If you turn on logging on the router you should be able to see the times the interface went down. Just make sure that you configure the datetime/uptime for the logging, the whole thing would look like this:

Router(config)#logging buffered
Router(config)#service timestamps log datetime msec localtime --> Logging entries based on the time the router shows with the ´show clock´ command
or
Router(config)#service timestamps log uptime msec localtime --> Logging entries based on the uptime of the router

When you issue the ´show log´ command, you should see entries telling you when the interface went down.


Hope that Helps !!
Ganesh.H
ganeshh_iyer
 

Re: Interface Uptime

Postby s_kanth on Thu Mar 04, 2010 4:31 pm

Thanks for your post..
But my requirement is that, suppose Serial/BVI interface has been up since longtime ...How do i find out the exact uptime.


TIA
Sri
s_kanth
 

Re: Interface Uptime

Postby ganeshh_iyer on Thu Mar 04, 2010 4:33 pm

Hi Sri,

I don't think there is any command for that to get this information any how you need to have SNMP and a monitoring solution,like Whats up Gold etc.
sho interface ge0/1 will show you the time from the last input or output. i.e. which can be helpful for checking the input traffic and output traffic rate time.

Router# show interfaces
Ethernet 0 is up, line protocol is up
Hardware is MCI Ethernet, address is 0000.0c00.750c (bia 0000.0c00.750c)
Internet address is 131.108.28.8, subnet mask is 255.255.255.0
MTU 1500 bytes, BW 10000 Kbit, DLY 100000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 4:00:00
Last input 0:00:00, output 0:00:00, output hang never
Last clearing of "show interface" counters 0:00:00
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
Five minute input rate 0 bits/sec, 0 packets/sec
Five minute output rate 2000 bits/sec, 4 packets/sec
1127576 packets input, 447251251 bytes, 0 no buffer
Received 354125 broadcasts, 0 runts, 0 giants, 57186* throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
5332142 packets output, 496316039 bytes, 0 underruns
0 output errors, 432 collisions, 0 interface resets, 0 restarts

Freetechexams#show interfaces s0/0
Serial0/0 is up, line protocol is up
Hardware is PowerQUICC Serial
Internet address is 1.1.1.1/8
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:00:05, output 00:00:02, output hang never
Last clearing of”show interface” counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max/drops); Total output drops: 0
Convesations 0/2/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0packets/sec
2104 packets input, 133491 bytes. 0 no buffer
Received 1280 broadcasts, 0 runts, 0 giants, 0 throttles
1 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored, 0 abort
4678 packets output, 329768 bytes, 0 underruns
0 output errors, 0 collisions, 7 interface resets
0 output buffer failures, 0 output buffers swapped out 4 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up


Hope to Help !!
Ganesh.H
ganeshh_iyer
 

Re: Interface Uptime

Postby s_kanth on Thu Mar 04, 2010 4:33 pm

I appreciate your assistance :-)
s_kanth
 


Return to Cisco Systems

Who is online

Users browsing this forum: No registered users and 2 guests