diff --git a/reference/snmp/functions/snmp-get-valueretrieval.xml b/reference/snmp/functions/snmp-get-valueretrieval.xml index d67f6450f0..dc8c54788a 100644 --- a/reference/snmp/functions/snmp-get-valueretrieval.xml +++ b/reference/snmp/functions/snmp-get-valueretrieval.xml @@ -1,32 +1,61 @@ - + snmp_get_valueretrieval Return the method how the SNMP values will be returned + &reftitle.description; - intsnmp_get_valueretrieval + int + snmp_get_valueretrieval - - &warn.undocumented.func; - - + + + &reftitle.returnvalues; + + On of the SNMP_VALUE_LIBRARY, SNMP_VALUE_PLAIN, SNMP_VALUE_OBJECT constants. + + + + + &reftitle.examples; + + + Using snmp_get_valueretrieval + +value; + } else { + echo $ret; + } +]]> + + + + + &reftitle.seealso; - snmp_set_valueretrieval + + snmp_set_valueretrieval + + - + + diff --git a/reference/snmp/functions/snmp-set-valueretrieval.xml b/reference/snmp/functions/snmp-set-valueretrieval.xml index 86084428b5..af89fd1d9c 100644 --- a/reference/snmp/functions/snmp-set-valueretrieval.xml +++ b/reference/snmp/functions/snmp-set-valueretrieval.xml @@ -7,26 +7,103 @@ Specify the method how the SNMP values will be returned + &reftitle.description; - boolsnmp_set_valueretrieval - intmethod + bool + snmp_set_valueretrieval + + int + method + SNMP_VALUE_LIBRARY + + + + + &reftitle.parameters; + + + + + method + + + + types + + + + SNMP_VALUE_LIBRARY + The return values will be as returned by the Net-SNMP library. + + + SNMP_VALUE_PLAIN + The return values will be the plain value without the SNMP type hint. + + + SNMP_VALUE_OBJECT + + The return values will be objects with the properties "value" and "type", where the latter + is one of the SNMP_OCTET_STR, SNMP_COUNTER etc. constants. + + + + +
+
+
+
+
+
+ + + + &reftitle.examples; + + + Using + <function>snmp_set_valueretrieval</function> + + + 4 <-- SNMP_OCTET_STR, see constants + // [value] => lo + // ) + +?> +]]> + + + &reftitle.seealso; - snmp_get_valueretrieval + + snmp_get_valueretrieval + + - +
+