array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.snmp-get-valueretrieval.php', 1 => 'snmp_get_valueretrieval', ), 'up' => array ( 0 => 'ref.snmp.php', 1 => 'Funciones SNMP', ), 'prev' => array ( 0 => 'function.snmp-get-quick-print.php', 1 => 'snmp_get_quick_print', ), 'next' => array ( 0 => 'function.snmp-read-mib.php', 1 => 'snmp_read_mib', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/snmp/functions/snmp-get-valueretrieval.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.3.3, PHP 5, PHP 7, PHP 8)
snmp_get_valueretrieval — Return the method how the SNMP values will be returned
Esta función no tiene parámetros.
OR-ed combitantion of constants ( SNMP_VALUE_LIBRARY
or
SNMP_VALUE_PLAIN
) with
possible SNMP_VALUE_OBJECT set.
Ejemplo #1 Using 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;
}
?>