DX NetOps

Expand all | Collapse all

Sending Traps from Spectrum

  • 1.  Sending Traps from Spectrum

    Posted Oct 16, 2014 02:57 PM

    Guys and Gals,

     

    I want to use an Alarm Notifier to send traps from Spectrum.  Does Spectrum have a native TRAP tool?

     

    Thanks,

     

    Zip



  • 2.  Re: Sending Traps from Spectrum
    Best Answer

    Broadcom Employee
    Posted Oct 16, 2014 04:01 PM

    Hi Zip,

     

    As far as I know no, but you can use from a third party such as TrapGen or sendtrap (from CA SystemEDGE).

    TrapGen

    http://trapgen.trapreceiver.com/

     

    Thanks,

    Silvio



  • 3.  Re: Sending Traps from Spectrum

    Broadcom Employee
    Posted Oct 17, 2014 09:04 AM

    Correct.  There is no "native" send trap utility that comes with Spectrum but you can use trap senders that come with SystemEDGE or other tools.  The old Spectrum to NSM integration included AlarmNotifier scripts that would use the NSM awtrap utility to send traps to NSM and in the past, I've modified them to use SystemEDGE's sendtrap.  If there's interest, I'll see about posting them.  I just need to test them again to see if anything has changed in the sendtrap syntax.



  • 4.  Re: Sending Traps from Spectrum

    Posted Oct 17, 2014 10:11 AM

    I would love to see an example of how you went about this.



  • 5.  Re: Sending Traps from Spectrum

    Broadcom Employee
    Posted Oct 21, 2014 06:45 PM

    I uploaded what I put together here:  Free Utility:  AlarmNotifier scripts to send SNMP traps



  • 6.  Re: Sending Traps from Spectrum

    Posted Oct 17, 2014 06:23 AM

    Spectrum doesn't have the capability to send raw traps out of the box. I don't think integrating a trap tool with Alarm Notifier works as long as we do some complex customization . Other alternative is to pass the AN message to a db and then use some sort of logic to send a trap from the db.

     

    Kalyan



  • 7.  Re: Sending Traps from Spectrum

    Posted Oct 17, 2014 06:30 AM

    I think the complexity of the customization all depends on how much detail should be available in the trap. If the default information is enough, sending a trap using an external snmptrap tool is just as easy as sending an email using an external mail command (like the example in the default setscript).



  • 8.  Re: Sending Traps from Spectrum

    Posted Oct 22, 2014 06:08 AM

    Hi Silivo,

     

    Can we send snmpv3 trap as well by using these tools, i have similer kind of requirement but have to send v3 trap.

     

    Thanks,

    Mahesh



  • 9.  Re: Sending Traps from Spectrum

    Broadcom Employee
    Posted Oct 22, 2014 06:20 AM

    Hi Manesh,

     

    The TrapGen does not support SNMP v3, but the sendtrap from SystemEDGE supports SNMP v3, check out the the syntax below:

     

    C:\Program Files\CA\SystemEDGE\bin>sendtrap

    usage: sendtrap [-v 1 | 2c | 3]

            [-f from_addr | from_host]

            [-h dest_addr | dest_host]

            [-e src_encoding_code]

            [[-i] [-r retries]]

            [-p port]

            [-c community]

            [-u securityName] [-s secLevel] [-n contextName]

            [-a authPassword] [-A MD5 | SHA]

            [-x privPassword] [-X DES | AES | 3DES]

            [-m FIPS_mode]

            [-t timeout] [-d logLevel]

            [enterprise-oid] [trap-type] [subtype] [[data-oid] [oid-type] [oid-value]]

     

     

                    supported trap versions are:

                            1 for SNMPv1

                            2c for SNMPv2c

                            3 for SNMPv3

                    -i - send INFORM_REQUEST, not TRAP, wait for acknowledgement

                    -r - number of retries to deliver an inform request

                            until it is acknowledged

                    from_addr/from_host default is localhost

                    dest_addr/dest_host default is localhost

                    port default is 162

                    community default is public

                    secLevel is 1|2|3 or noAuthNoPriv|AuthNoPriv|AuthPriv

                    FIPS mode is 0(non-FIPS), 1(FIPS coexistence) or 2(FIPS only)

                    enterprise-oid is top level enterprise OID

                    trap-type is generic trap type

                    subtype is enterprise-specific trap subtype,

                            specify it only when type = 6

                    data-oid is data object identifier

                    oid-type is one of the following:

                            -i - integer,

                            -o - octet,

                            -s - string,

                            -d - object identifier

                            -a - IPv4 address only

                            -c - counter

                            -C - counter64

                            -g - gauge

                            -t - time_ticks

                    oid-value has to match the OID type

     

     

    Example:

            sendtrap -v 1 -h somehost -c admin  1.3.6.1.4.1.546 6 1023

             1.3.6.1.4.1.546.11.1.1 -i 42 1.3.6.1.4.1.546.11.1.2 -s "str"

     

    Thanks,

    Silvio



  • 10.  Re: Sending Traps from Spectrum

    Posted Oct 22, 2014 06:42 AM

    Hi Silvio,

     

    Thanks for the information it looks great.  how can I get this utility, is it free or license required for this, can you please post the download link for this utility?

     

    Regards,

    Mahesh



  • 11.  Re: Sending Traps from Spectrum

    Broadcom Employee
    Posted Oct 22, 2014 09:34 AM

    The sendtrap utility comes with CA Virtual Assurance for Infrastructure Managers / Systems Performance for Infrastructure Managers (more commonly known as SystemEDGE). If you're not already licensed for this, you should check with your sales team or perhaps someone from product management can chime in here to answer if you're entitled to install SystemEDGE on your Spectrum servers.  Historically, we included a SystemEDGE license with eHealth so you can monitor the eHealth server itself and I believe we did the same for Spectrum.  It shows up in my list of downloadable products but there have been various bundles and software packages over the years so I can't answer if that's true in everyone's case.

     

     

    -Rob



  • 12.  Re: Sending Traps from Spectrum

    Posted Oct 22, 2014 01:58 PM

    Thanks Rob, Thanks Silvio, it wokrd for me, now I am able to send snmpv3 trap from spectrum by using sendtrap utility.



  • 13.  Re: Sending Traps from Spectrum

    Posted Jan 27, 2015 12:30 PM

    Hi,

     

    Earlier I was able to send the snmpv3 trap by Sendtrap utility and it was working perfectly fine for me, but I don't know what has happened suddenly and I started getting error on event processing with same Alertmap.eventdisp and same trap type, getting below event whenever sending trap from Sendtrap utility:

     

    Error processing event 0xfff00005 - Details: SPC-GAG-20001: The received Unique Identifier Component (Variable ID 1 ) was not of the correct type. The Unique Identifier Component must be of type Integer, Text String, or Octet String.


    Please suggest, if anyone has faced simile issue ?

     

    Thanks in advance!



  • 14.  Re: Sending Traps from Spectrum

    Posted Oct 22, 2014 02:25 PM

    Just use a tool like TrapGen.exe, the parameters are simple !