cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
40290
Views
5
Helpful
4
Replies

enable console logging

yeow28
Level 1
Level 1

i have one switch that is not showing logging on console.

how do i enable it back as i need to view my logs when i telnet to the switch

there is one command on my switch

 

boot-start-marker
boot-end-marker
!
no logging on
enable secret 5 $1$And9$

 

1#sh log
Syslog logging: disabled (0 messages dropped, 1 messages rate-limited, 4087 flushes, 0 overruns, xml disabled, filtering disabled)

No Active Message Discriminator.

 

No Inactive Message Discriminator.


Console logging: level debugging, 4103 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Persistent logging: disabled

No active filter modules.

Trap logging: level informational, 6 message lines logged
Logging Source-Interface: VRF Name:

Log Buffer (16384 bytes):

4 Replies 4

Edwin Portillo
Spotlight
Spotlight

Hi,

Below command will enable logging on console.

1(config)#logging console

 

You can also set the logging levels as

1(config)#logging console ?
<0-7> Logging severity level
alerts Immediate action needed (severity=1)
critical Critical conditions (severity=2)
debugging Debugging messages (severity=7)
discriminator Establish MD-Console association
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)
<cr>

Below Link will help you understanding the Cisco logging Levels

https://www.cisco.com/c/en/us/td/docs/routers/access/wireless/software/guide/SysMsgLogging.html

 

Spooster IT Services Team

mg.patel.tech
Level 1
Level 1

Try these commands

config t

!

logging on

logging console

!

The original post is confusing. It specifically asks about console logging. But then it says this "how do i enable it back as i need to view my logs when i telnet to the switch". The important thing is that console logging displays messages on the console. Console logging has nothing to do with logging for a telnet session. Logging for a telnet session would relate to logging monitor or perhaps to logging buffered.

I agree with @mg.patel.tech that logging on would be the thing to do.

HTH

Rick