06-03-2019 07:51 PM
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):
06-03-2019 08:22 PM
06-04-2019 08:52 AM
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
07-03-2021 02:05 PM
Try these commands
config t
!
logging on
logging console
!
07-04-2021 02:26 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide