We're receiving SNMP traps from network devices, which include crucial information about link status. My objective is to process these SNMP traps as soon as they arrive and log the latest link, status trap data to a file on the DataMiner agent's filesystem. I would greatly appreciate your guidance on achieving this. Specifically, I am interested in the following:
What are the recommended best practices for real-time processing of incoming SNMP traps in DataMiner, particularly for link status data?
How can I configure DataMiner to automatically log the latest linkStatus trap data to a file on the agent's filesystem?
Is there a specific script (Automation, QAction etc.) or set of rules that can be used to facilitate this process?
I appreciate any insight or examples you can provide. Please let me know if you need additional information to better assist me.
Hi,
Regarding examples, I would point you towards this NuGet we developed to parse incoming traps as well as our documentation.
Hope it is of help to your use case.
Hi Vig,
Regarding this requirement:
“…and log the latest link, status trap data to a file on the DataMiner agent’s filesystem. ”
Is there any reason why you want to store the traps in a file?
For how long you would like to keep these traps in the system?
Do you plan to create a file per day/week/month?
How do you plan to review these logs?
In case keeping track of the traps retrieved by the cluster is critical, maybe an option could be using a logger table to store this information.