downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SNMP::getError> <SNMP::get
[edit] Last updated: Fri, 07 Jun 2013

view this page in

SNMP::getErrno

(PHP 5 >= 5.4.0)

SNMP::getErrnoGet last error code

Descripción

int SNMP::getErrno ( void )

Devuelve código de error de la última solicitud SNMP.

Valores devueltos

Devuelve uno de los valores de error que se describe en el capítulo constantes.

Ejemplos

Ejemplo #1 Ejemplo de SNMP::getErrno()

<?php
$session 
= new SNMP(SNMP::VERSION_2c'127.0.0.1''boguscommunity');
var_dump(@$session->get('.1.3.6.1.2.1.1.1.0'));
var_dump($session->getErrno() == SNMP::ERRNO_TIMEOUT);
?>

El resultado del ejemplo sería:

bool(false)
bool(true)

Ver también



add a note add a note User Contributed Notes SNMP::getErrno - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites