02-12-2023 06:46 PM
Hello,
Trying to figure out on how to log all entered commands on the core switch
I have got logging console informational configured, however i do not see any commands entered.
for example when changing something, I would like to see what command has been entered in the logs or sent to a remote syslog server.
Thank you.
02-12-2023 06:53 PM
Hi,
If you want to see the logs on the command line when you are consoled in, in addition to logging console, enable "terminal monitor"
HTH
02-12-2023 09:58 PM
terminal monitor applies to vty lines and not to console. And terminal monitor controls whether you will see log messages as they are generated but has no effect on what is being logged. To be technical I do not know of a way to generate syslog messages that would show entered commands. I believe that your best chance to achieve what you want would be in using aaa accounting to generate records of commands entered.
02-12-2023 11:53 PM
- FYI : https://blog.ipspace.net/2006/11/log-configuration-commands-entered-on.html
M.
02-13-2023 02:46 PM
@marce1000 excellent response (and +5 for identifying something that I had not known about). It is slightly not clear exactly what the original post is looking for. A literal reading of the post suggests that they want to log every command entered. And if that is really the case then I believe that my suggestion of aaa accounting comes closer to meeting that requirement. But the example given in the post is about config changes, and I agree that these would be the changes that are most important. And your suggestion appears to be spot on for that objective.
02-13-2023 03:08 PM
Trying to figure out on how to log all entered commands on the core switch <<- what you meaning by this please can you more elaborate.
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