1 Reply Latest reply on Nov 30, 2011 1:06 PM by netlogix

    Command to dump snmp traps to a file



      How can i dump  the snmp traps from some equipment to a file ?



        • Re: Command to dump snmp traps to a file

          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 ('','')

          and either copy it to a text file, or run it through a script.