cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
492
Views
5
Helpful
10
Replies

Logging Settings

Ibrahim Jamil
Frequent Contributor
Frequent Contributor

Hi Folks

when y issue the command sh logging on the core switch

What is the proper tuning of the looging settings to se every thing in ur terminal monitor,also see the time of the events

10 REPLIES 10

hobbe
Rising star
Rising star

Hi

There is no "proper"! tuning to se everything in a terminal monitor for many reasons.

I normally log as much as I can to a syslog server. but you need to be aware of the problems that if you try to log to a console it will only log 9600 wich in some systems will generate problems in the system since the logging will fill up if to much is logged to the console.

My general view is the more logging the better, you might not need it right now, but you might need it at some point later.

If you want proper timestamps you have to set up NTP.

Good luck

HTH

Ibrahim Jamil
Frequent Contributor
Frequent Contributor

Hello Hobbe

1)if y change the the clock on ur core switch ,did the servers connected to it affect some how?

3)can u post the proper logging commands,in order to see every things clearly?

Hi,


The clock change on any switch or router will not effect to the connected devices. If the switch act as a NTP server in the other cisco devices (routers / switches) then the clock will be replicated to the clients.

Here is the link where you can see few of the loggin commands and descriptions of them.

http://www.cisco.com/en/US/docs/ios_xr_sw/iosxr_r3.0/system_management/command/reference/yr3log.html

Hope this helps you...

Please rate the all helpfull posts.
Regards,
Naidu.

Hi Latchu

1)can y post me  the commands for logging

2)I Didn't see any logging msg,i wanna see the below

Monitor logging: level debugging, 6 messages logged
    Buffer logging: level debugging, 23798 messages logged
    Exception Logging: size (4096 bytes)
    Trap logging: level errors, 12836 message lines logged

Hi,

See the below ones may help you...

Router(config)#logging console ?
  <0-7>          Logging severity level
  alerts         Immediate action needed           (severity=1)
  critical       Critical conditions               (severity=2)
  debugging      Debugging messages                (severity=7)
  emergencies    System is unusable                (severity=0)
  errors         Error conditions                  (severity=3)
  filtered       Enable filtered logging
  guaranteed     Guarantee console messages
  informational  Informational messages            (severity=6)
  notifications  Normal but significant conditions (severity=5)
  warnings       Warning conditions                (severity=4)
  xml            Enable logging in XML
 

Please rate the helpfull posts.

Regars,

Naidu.

Hi

i m using telnet to device not console

Hi Johan,

"logging console" is doesn't mean that you connect to the device through console port. It is a just login session however you connected through telnet or ssh or console port.

Hope this helps you...

Please rate the all helpfull posts.
Regards,
Naidu.

Hi,

In addition to the above commands use the below command on u r telnet window.

router#terminal monitor

Thanks

Try the following.

switch(config)#service timestamps log datetime localtime

switch(config)#logging buffered 4096 informational

I would also set the the timezone (using Pacific as a reference.)

switch(config)#clock timezone PST -8

switch(config)#clock summer-time PDT recurring

If the switch is able to route to the Internet or a local time server set the NTP server.

switch(config)#ntp server

Hi

I would like to state that the best you can do for yourself is to use syslog, if you run windows you can use fx kiwi syslog, and if you are using linux you can use the internal syslog server in the machine.

why ?

well if you start logging stuff and you have some traffic on it you will have alot of traffic clogging up your terminal and it makes working like that jsut about impossible.

so start using a syslog server, thats what I would have done.

The syslog will give you time to process the information and to go back and forth in the loggs to check things out.

Good luck

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: