Extract character from an OID (BGP-Trap)
There is some way to extract the ip-address from the OID bgpBackwardTransition (.18.104.22.168.22.214.171.124.2) that has the data inside the variable $ 1 or $ 2.
Example: .126.96.36.199.188.8.131.52.184.108.40.206.100.11, should extract '.220.127.116.11.18.104.22.168.1.14.' to print the value 192.168.100.11 in incident message.
Re: Extract character from an OID (BGP-Trap)
as far as I know this is not possible. The newer NNMi versions support BGP monitoring and perhaps you should upgrade and have a look at the out of the box solution for that.
In a engagement we have developed a script which runs as an action. The script "correlates" multiple BGP traps for a single router down situation (as multiple neighbors generating the traps) and issue a new single incident for that device (same for router up again). Perhaps this is an idea which will also work for you.
HTH and kind regards