(PHP 4 >= 4.3.3, PHP 5, PHP 7, PHP 8)
snmp_get_valueretrieval — Devuelve el método con el cual los valores SNMP serán devueltos
Esta función no tiene parámetros.
Una combinación de constantes ( SNMP_VALUE_LIBRARY
o
SNMP_VALUE_PLAIN
) con eventualmente una
definición de SNMP_VALUE_OBJECT.
Ejemplo #1 Ejemplo con snmp_get_valueretrieval()
<?php
$ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1');
if (snmp_get_valueretrieval() & SNMP_VALUE_OBJECT) {
echo $ret->value;
} else {
echo $ret;
}
?>