Hi,
i am trying to set some oid values using a perl script started as a 'pass_persist' EXEC in snmpd.conf.
It work great except one problem concerning setting wrong types.
Although the script is returning "wrong-type" to STDOUT on attempts to set mismatching types, no errors are shown at snmpset execution.
The object under consideration is: ... tempVal OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-write ...
the corresponding output:
# snmpset ...tmpVal i 43 # SNMPv2-SMI:... = INTEGER: 43
The snmpd.conf manual states for 'pass' EXECs:
...Return nothing to stdout, and the set will assumed to have been successful.
Otherwise, return one of the following error strings to signal an error: not-writable, or wrong-type
and the appropriate error response will be generated instead...
Doesn't it hold for 'pass_persist' EXECs also?
What am i overlooking? Would be great if anyone could help or give me a hint.
Thanks in advance
jakob
------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users