sumo wrote:
> I'd like to try something like this, but I don't get it to work:
>
> --
> clvSysForwardedBits, .1.3.6.1.4.1.5089.1.2.1.2.0, DEFAULT, "Input data"
> p1, $p0, CALCULATION, ""
> p2, $p1, CALCULATION, ""
> p3, $p2, CALCULATION, ""
> p0, $clvSysForwardedBits, CALCULATION, ""
> --
> warning: (${p0} < 1000) && (${p1} < 1000) && (${p2} < 1000) && (${p3} >
> 1000) "Failover occured"
> --
>
> $p0 will always get the latest poll, but $p1 - $p3 will always be the same
> (the poll before). I would have hoped that p2 would be the value two polls
> ago, and p3 three polls ago.
IM runs the calculations sequentially one after the other. The analogous
sequence is:
clvSysForwardedBits = <value>
p1 = p0
p2 = p1
p3 = p2
p0 = clvSysForwardedBits
This sequence is setting the values of p1, p2, and p3 all to p0. To do what you
want, you need to reverse the order:
clvSysForwardedBits = <value>
p3 = p2
p2 = p1
p1 = p0
p0 = clvSysForwardedBits
-------------------- m2f --------------------
Read this topic online here:
http://forums.dartware.com/viewtopic.php?p=3401#3401
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [email protected]