Hello.
How can i dump the snmp traps from some equipment to a file ?
Thanks.
There are simple ways and slightly more complicated (a little more info about what you are trying to accomplish might get you better information).
If you want it to happen when the trap comes in, set up an alert that runs a script that appends it to a text file.
If it's historical info, you could use a SQL query like:
SELECT TOP 1000 *
FROM [Traps]
inner join TrapVarbinds on TrapVarbinds.TrapID = Traps.TrapID
where IPAddress in ('x.x.x.x','y.y.y.y') and OID in ('1.3.6.1.2.1.1.3.0','1.3.6.1.6.3.1.1.4.1.0')
and either copy it to a text file, or run it through a script.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.