09-30-2008 08:51 AM - edited 03-06-2019 01:41 AM
Ok so I am trying to create a syslog entry to test with. I want to be able to see this entry in the syslog when ever I do command X. An example would be "SYS-1-SYS_SCHEDRESETCANCEL:Scheduled reset cancelled by user" where I did a reset cancel, but would prefer something less drastic then having to fake a reload each time I test. Does anyone know of a command that can create this log message on demand?
09-30-2008 05:34 PM
Marcus
Perhaps I am not understanding your question so very well. It seems that you are asking for some relatively benign way to generate a syslog message so that you can test something about syslog. If that is the case then I would suggest this:
config t
end
doing that will generate a syslog message and will have no other effect on the router.
If that answer does not address your real question then please clarify it and help me understand better what it is that you need.
HTH
Rick
10-01-2008 07:36 AM
You are correct, I need to generate a syslog entry. I forgot to mention that this is a CatOS switch, so no conf t. Can you think of another command that would create a benign log entry?
10-01-2008 11:07 AM
Marcus
On the 6500s at a customer site we get a syslog message generated if someone fails to authenticate when logging in by telnet or fails to authentiate to enable mode. These are MGMT-5-LOGIN_FAIL and MGMT-5-ENABLE_FAIL messages. I am not sure which logging facility you might need to tweak to make sure that you get them (probably it is mgmt but it might be security or tac).
HTH
Rick
10-01-2008 11:29 AM
Yup once I fixed the logging settings that worked for me.
Thanks.
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: