The snmp-server enable traps syslog command is used in conjunction with the snmp-server host command. Use the snmp-server host command to specify which host or hosts receive SNMP notifications. To send SNMP notifications, you must configure at least one snmp-server host command.
Although this seems to be the case based on the descriptions shown here, because of the somewhat complex nature of how these two commands interact, the best way to determine exactly what is being sent is to try it out.
I set it up on two routers with access list in the community, but for some reason on one of the routers there is no input/output packets coming. It’s the same config as the other that works just fine. What would be causing this?
Hmm, without more information, it is difficult to diagnose such behavior.
If one is working and the other is not, it is highly unlikely that the configuration is exactly the same. If it is, then the problem may be hardware related or due to some malfunction in the device. I suggest you take a closer look and try to replicate everything exactly. If you need further help, share with us your progress and let us know a little bit more about your topology and config so that we can help you further.