04-24-2023 02:11 AM - edited 04-24-2023 02:16 AM
Hi everyone. I have a switch 2960x-48ts-l. I want when I make a change in its configuration, a switch send a log to SolarWinds with ip 10.10.10.1. and i configured the logging in switch:
logging trap notifications
logging source-interface Vlan3
logging host 10.10.10.1
access-list 1 permit 10.10.10.1
!
snmp-server community ciscoNet RO 1
snmp-server enable traps config
snmp-server enable traps syslog
but when i change in config of switch ,dont see any thing in solarwinds . but when the port of switch is up or down ,the solarwinds shows that the state of port is changed.
why and what i do to solve this problem.
Solved! Go to Solution.
04-24-2023 03:47 AM
Hello @chpmotry,
You say "I want when I make a change in its configuration, a switch send a log to SolarWinds with ip 10.10.10.1. and i configured the logging in switch [...]"
The "notifications" level will only capture system notifications, which may not include changes to the configuration.
You can try increasing the logging level to "informational" or "debugging" to capture more detailed information about configuration changes. For example:
logging trap informational or logging trap debugging
Lastly, you may want to consider using SNMP traps to capture configuration changes instead of relying solely on logging. This can be achieved by enabling the "snmp-server enable traps config" command on the switch, which will send an SNMP trap to the configured server when a configuration change occurs.
04-24-2023 03:35 AM
- If you are referring to logging configuration changes (too) then add these directives in the running config :
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. R1(config)#archive
R1(config-archive)#log config
R1(config-archive-log-cfg)#logging enable
R1(config-archive-log-cfg)#logging size 500
R1(config-archive-log-cfg)#hidekeys
R1(config-archive-log-cfg)#notify syslog
R1(config-archive-log-cfg)#end
R1#
M.
04-24-2023 03:47 AM
Hello @chpmotry,
You say "I want when I make a change in its configuration, a switch send a log to SolarWinds with ip 10.10.10.1. and i configured the logging in switch [...]"
The "notifications" level will only capture system notifications, which may not include changes to the configuration.
You can try increasing the logging level to "informational" or "debugging" to capture more detailed information about configuration changes. For example:
logging trap informational or logging trap debugging
Lastly, you may want to consider using SNMP traps to capture configuration changes instead of relying solely on logging. This can be achieved by enabling the "snmp-server enable traps config" command on the switch, which will send an SNMP trap to the configured server when a configuration change occurs.
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