After upgrading Cisco Prime Infrastructure from 2.1 to 2.2, my Spectrum South Bound Gateway (SBG) integration no longer works.

Document ID : KB000045007
Last Modified Date : 04/12/2018
Show Technical Document Details
Issue:

After upgrading Cisco Prime Infrastructure (CPI) from 2.1 to 2.2, my Spectrum South Bound Gateway (SBG) integration no longer works.

The SBG integration saves the cWNotificationManagedObjectAddress trap variable binding (varbind) at oid 1.3.6.1.4.1.9.9.712.1.1.2.1.8 to event variable 8 which is used by the SBG as a target address to forward the event to a model in the Spectrum database configured with that ip address.

This worked fine when using CPI 1.2. After upgrading to CPI 2.2, I am now seeing the following event message from SBG:

Device CPI of type EventAdmin - Error processing event 0xfff0ff90 - Details: A trap specified the following illegal network address:

Cause:

In CPI 2.1, the cWNotificationManagedObjectAddress trap varbind is sent as an IP address. In  CPI 2.2, they did a bug-fix to encode it, as an InetAddress (as defined in the MIB) rather than an IP address.

Resolution:

The cWNotificationSpecialAttributes trap varbind at oid 1.3.6.1.4.1.9.9.712.1.1.2.1.12 contains text that includes the ip address needed. Configure an Event Procedure on the event generated from the trap to extract the ip address from the cWNotificationSpecialAttributes trap varbind and save to a new event variable 8 to use as a target address for SBG.

The following is an example of an Event Procedure that can be used.

 

0xfff00001 P "CreateEventWithAttributes( \

      { C CURRENT_MODEL }, \

      { H 0xfff00002 }, \

      SetEventVariable( \

          { U 8 }, \

              GetRegexp( \

                GetEventVariable( { U 112 } ), \

                {S \"reportingEntityAddress=([^,]*)\"}, \

                { U 1 } )     ) )"

In the above Event Procedure, The trap generates event 0xfff00001. The procedure takes the value of the cWNotificationSpecialAttributes trap varbind stored in event variable 112 and applies a regular expression to extract the ip address and save it to event variable 8 for new event 0xfff00002. Event 0xfff00002 is the event configured to be processed by the SBG.