Hi,
I need to edit some values in a snmp table. To proceed, my table has an automatic index (1, 2 , ...) and I created a write parameter to be able to edit the it with options="snmpset". I can see the driver tries to write the value I entered but in return it sends back the following:
-> 14:33:44 - Set for parameter moduleSettingsModuleGain to 2400.000000
-> 14:33:44 - Set for moduleSettingsModuleGain () failed : NOT WRITABLE
Here follows the parameters mentioned above:
<Param id="2003" trending="false">
<Name>moduleSettingsModuleGain</Name>
<Description>Module Gain (Module Settings)</Description>
<Information>
<Subtext>
<![CDATA[Gain setting (in hundredths of dB)]]>
</Subtext>
</Information>
<Type>read</Type>
<Interprete>
<RawType>numeric text</RawType>
<Type>double</Type>
<LengthType>next param</LengthType>
<Sequence noset="true">div:100</Sequence>
</Interprete>
<SNMP>
<Enabled>true</Enabled>
<OID type="complete">1.3.6.1.4.1.20938.1.6.6.1.2.1.5</OID>
<Type>integer32</Type>
</SNMP>
<Display>
<RTDisplay>true</RTDisplay>
<Units>dB</Units>
<Decimals>2</Decimals>
</Display>
<Measurement>
<Type>number</Type>
</Measurement>
</Param>
<Param id="2103" options="snmpset">
<Name>moduleSettingsModuleGain</Name>
<Description>Module Gain (Module Settings)</Description>
<Type>write</Type>
<Interprete>
<RawType>numeric text</RawType>
<Type>double</Type>
<LengthType>next param</LengthType>
<!-- <Sequence noset="true">div:100</Sequence> -->
</Interprete>
<SNMP>
<Enabled>true</Enabled>
<OID type="complete">1.3.6.1.4.1.20938.1.6.6.1.2.1.5</OID>
<Type>integer32</Type>
</SNMP>
<Display>
<RTDisplay>true</RTDisplay>
<Units>dB</Units>
<Decimals>2</Decimals>
</Display>
<Measurement>
<Type>number</Type>
</Measurement>
</Param>
Do you see anything wrong? Did I miss something?
Hi Dominique,
I’ve already replied via email, but I’m posting here as well in case others encounter the same issue.
The problem was caused by using snmpSet
without appending the instance OID. Unlike snmpSetAndGet
, snmpSet
doesn’t add this automatically. Full instructions can be found here:
Using a Parameter Holding the Instance
While snmpSetAndGet
is a lot easier to work with, it does not support the sequence option.