04-08-2012 04:24 AM - edited 03-07-2019 06:01 AM
Dear all,
good day, i have a customer who installed ArchSight logging server in his network.
the question is, can i send this server logs that contains the executed commands on the switch (same as accounting on the ACS), as there is a firewall wich sends the accounting logs to the server?
i have already enabled the logging on the switch as follows.
logging enable
logging trap informational
logging host x.x.x.x
but it is only showing the TCP openings and closings.
any idea.
thanks in advance
Solved! Go to Solution.
04-08-2012 05:43 AM
Hi Mohmmad,
This feature is configured under the archive configuration mode with the log config command and notify syslog to enable
the sending of notifications of configuration changes to your remote syslog.
The configuration could be the next
archive
log config
logging enable 50
notify syslog
hidekeys
If you need to log all the commands and not only the config commands then the following configuration should be
executed on the router.
event manager applet CLIaccounting
event cli pattern ".*" sync no skip no
action 1.0 syslog priority informational msg "$_cli_msg"
set 2.0 _exit_status
Read the next link for more details
http://blog.ioshints.info/2006/11/cli-command-logging-without-tacacs.html
Hope that helps!
Vasilis
04-08-2012 05:43 AM
Hi Mohmmad,
This feature is configured under the archive configuration mode with the log config command and notify syslog to enable
the sending of notifications of configuration changes to your remote syslog.
The configuration could be the next
archive
log config
logging enable 50
notify syslog
hidekeys
If you need to log all the commands and not only the config commands then the following configuration should be
executed on the router.
event manager applet CLIaccounting
event cli pattern ".*" sync no skip no
action 1.0 syslog priority informational msg "$_cli_msg"
set 2.0 _exit_status
Read the next link for more details
http://blog.ioshints.info/2006/11/cli-command-logging-without-tacacs.html
Hope that helps!
Vasilis
04-08-2012 06:29 AM
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