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

Need a comand to monitor/Log my serial interface. Help

mandelamorais
Level 1
Level 1

Greetings

I am useing a 2811 Cisco Router at my company to access the Internet trough my serial interface 0.

At this moment the pages on the internet go up and down. Meaning:

When I insert a URL its gives me the error message that the page could not be dispalyed.

After a refresh the page comes out fine.

But I have to do this process over and over.

I went to my router and ran this command:

INTERNTE-ROUTER#sh logging history
Syslog History Table:500 maximum table entries,
saving level informational or higher
21 messages ignored, 11 dropped, 0 recursion drops
270 table entries flushed
SNMP notifications enabled, 757 notifications sent
   entry number 271 : ISDN-6-CHAN_UNAVAILABLE
    Interface Se0/1/0:15 Requested Channel 10 is not available
    timestamp: 392165661
   entry number 272 : LINK-3-UPDOWN
    Interface Serial0/0/0, changed state to down
    timestamp: 397039590
   entry number 273 : LINEPROTO-5-UPDOWN
    Line protocol on Interface Serial0/0/0, changed state to down
    timestamp: 397039690
   entry number 274 : LINK-3-UPDOWN
    Interface Serial0/0/0, changed state to up
    timestamp: 397050249
   entry number 275 : LINEPROTO-5-UPDOWN
    Line protocol on Interface Serial0/0/0, changed state to up
    timestamp: 397050349
   entry number 276 : LINEPROTO-5-UPDOWN
    Line protocol on Interface Serial0/0/0, changed state to down
   
timestamp: 397294376
   entry number 277 : LINEPROTO-5-UPDOWN
    Line protocol on Interface Serial0/0/0, changed state to up
   
timestamp: 397303376
   entry number 278 : MARS_NETCLK-3-HOLDOVER
    Entering Holdover for Controller E1 0/1/0
    timestamp: 397798873
   entry number 279 : MARS_NETCLK-3-HOLDOVER
    Exiting Holdover for Controller E1 0/1/0
    timestamp: 397799654
   entry number 280 : CONTROLLER-5-UPDOWN
    Controller E1 0/1/0, changed state to down (AIS detected)
    timestamp: 397799989
   entry number 281 : CONTROLLER-5-UPDOWN
    Controller E1 0/1/0, changed state to up
    timestamp: 397800689
   entry number 282 : CONTROLLER-5-UPDOWN
    Controller E1 0/1/0, changed state to down (AIS detected)
    timestamp: 397811589
   entry number 283 : CONTROLLER-5-UPDOWN
    Controller E1 0/1/0, changed state to up
    timestamp: 397812289
   entry number 284 : LINEPROTO-5-UPDOWN
    Line protocol on Interface Serial0/0/0, changed state to down
    timestamp: 399401508

I am not really able to fully interpret the output but I can see that te serial interface is going UP and DOWN.

What I need to see is the time breal between the UPs and DOWNs. The timestamp is not really helping me.

CAN SOMEONE TELL ME A COMMAND ON THE ROUTER THAT CAN GIVE ME A LOGGING WITH HUMAN TIME Hour:Minute:Second ?

Something more or less like this (done on a Cisco switch)

SWIXXXCON014#sh logging

.Dec 29 08:04:26.265 Angola: %LINK-3-UPDOWN: Interface GigabitEthernet0/26, changed state to up
.Dec 29 08:04:27.271 Angola: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/26, changed state to up
.Dec 29 08:08:28.748 Angola: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/16, changed state to down
.Dec 29 08:08:29.746 Angola: %LINK-3-UPDOWN: Interface GigabitEthernet0/16, changed state to down
.Dec 29 08:08:32.279 Angola: %LINK-3-UPDOWN: Interface GigabitEthernet0/16, changed state to up
.Dec 29 08:08:33.286 Angola: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/16, changed state to up
.Dec 29 08:08:38.160 Angola: %LINK-3-UPDOWN: Interface GigabitEthernet0/29, changed state to up
.Dec 29 08:08:38.445 Angola: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/16, changed state to down
.Dec 29 08:08:39.167 Angola: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/29, changed state to up
.Dec 29 08:08:39.443 Angola: %LINK-3-UPDOWN: Interface GigabitEthernet0/16, changed state to down
.Dec 29 08:08:41.792 Angola: %LINK-3-UPDOWN: Interface GigabitEthernet0/16, changed state to up
.Dec 29 08:08:42.799 Angola: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/16, changed state to up
.Dec 29 08:08:57.764 Angola: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/16, changed state to down

PLEASE HELP

Thank You

2 Accepted Solutions

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Mandela,

try to add:

conf  t

service timestamps log datetime msec localtime

service timestamps debug datetime msec localtime

this should give you readable timestamps

but the router clock has to be in sync using NTP

Hope to help

Giuseppe

View solution in original post

Hello Mandela,

sh log should provide the ouput with readable timestamps.

what device is and what IOS image is running?

I've also noticed that the format of the sh logging that you have posted is different that the usual one.

It may be wise to post the whole config just remove username and passwords and mask public ip addresses for safety

Hope to help

Giuseppe

View solution in original post

6 Replies 6

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Mandela,

try to add:

conf  t

service timestamps log datetime msec localtime

service timestamps debug datetime msec localtime

this should give you readable timestamps

but the router clock has to be in sync using NTP

Hope to help

Giuseppe

Hi Qiuslar

Thank you for you so quick reply

I ran this comand on the router but I am not sure of it.

Could you interpret for me and tell if the router is sync with the NTP, and if not can I still run the commands you sent me.

INTERNET-ROUTER#sh ntp status
Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 250.0000 Hz, actual freq is 250.0009 Hz, precision is 2**18
reference time is 00000000.00000000 (01:00:00.000 Angola Mon Jan 1 1900)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.00 msec, peer dispersion is 0.00 msec

Looking Forward to your reply

Thanks

Sorry Giuslar

I ran another command that its more detailed:

INTERNET-ROUTER#sh clock detail
*16:25:10.816 Angola Tue Dec 29 2009
Time source is NTP

Should I go ahead with your commands ??

I realised that these lines are already included on my router

I made a sh run:

version 12.4
service nagle
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service pt-vty-logging
service sequence-numbers

Hello Mandela,

sh log should provide the ouput with readable timestamps.

what device is and what IOS image is running?

I've also noticed that the format of the sh logging that you have posted is different that the usual one.

It may be wise to post the whole config just remove username and passwords and mask public ip addresses for safety

Hope to help

Giuseppe

Its working now

My mistake was to always put the comand history

After I just put the command #sh logging

It worked

Thank you

Review Cisco Networking products for a $25 gift card