PHP 8.4.7 Released!

snmp_get_valueretrieval

(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

Descripción

snmp_get_valueretrieval(): int

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Una combinación de constantes ( SNMP_VALUE_LIBRARY o SNMP_VALUE_PLAIN ) con eventualmente una definición de SNMP_VALUE_OBJECT.

Ejemplos

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;
}
?>

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top