Hi Dojo,
In my case, when I send a value to a remote device, the device internally multiplies the value by 2.
For example:
If I SET 10, a subsequent SNMP GET returns 20.
So what I would like to achieve is,
When I enter 20 in DataMiner, the system should send 10 to the device.
This way, after the device applies its internal multiplication, the returned value (20) matches what the user expects.
Essentially, I need to apply a kinda divisor of 2 before sending the SNMP SET, while keeping the displayed/read value unchanged.
Any guidance or examples would be greatly appreciated.
Best Regards,
Hi,
This can be achieved by specifying a Sequence on the SNMP write parameter.
In this case, specify <Sequence noset="true">div:2</Sequence> , which will divide the value by 2 before sending it to the device. As the read value should remain unchanged, the read parameter does not need to be modified.
Note that for standalone write parameters, a sequence only works when using snmpSetAndGet to set the value.
For table column write parameters, a sequence only works when using the snmpSet option to set the value.
If above is not workable, an alternative could be to first intercept the value with a QAction, divide the value in half, then perform the set with the modified value on a hidden SNMP parameter.
More info about Sequence can be found here
Regards,
Hi Laurens,
I put
<Param id="22" options="snmpSetAndGetWithWait">
<Type>write</Type>
It works with the Sequence noset
Thanks