Im not sure if SNMP will filter the traffic like that. You might need to use raw syslogging and access-lists to gather the information you need. That would allow you to run that log through a script and analyze the information you need. What is your topology?
Getting Started
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: