Re: SNMP-Interceptor Policy should calculate (var1 + 5) (172 Views)
Reply
Occasional Contributor
Patrick_Jacobi
Posts: 5
Registered: ‎04-25-2012
Message 1 of 2 (204 Views)

SNMP-Interceptor Policy should calculate (var1 + 5)

Hello Guys,

 

We have several NNMi 9.x in our environment, NNMi forwards traps like this:

SNMP-Trap contains:

Raw SNMP-Variables (upper section)

NNMi Variables (down section)

 

The problem here is that the upper section sometimes contains 3 and for another trap 15 variables, but the amount of NNMi Variables is fix (29).

To get a specific value from NNMi I do not want to modify NNMi cause OMW is the single point of managing trap translations.

 

So my idea was to count the amount of variables within a trap <$#>, this will return for instance 39.

Expecting I would like to load var 20 of NNMi Variables I have to calc in the following way.

<$#> - 9 = result

So as result I will have the integer 30 and I would like to have <$30> in the message text.

 

Hopefully you can help me.

Occasional Contributor
Patrick_Jacobi
Posts: 5
Registered: ‎04-25-2012
Message 2 of 2 (172 Views)

Re: SNMP-Interceptor Policy should calculate (var1 + 5)

+1

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.