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

    Command to dump snmp traps to a file

    drumbun

      Hello.

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

       

      Thanks.

        • Re: Command to dump snmp traps to a file
          netlogix

          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.