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

search for in the

SNMP::getnext> <SNMP::getErrno
[edit] Last updated: Fri, 17 May 2013

view this page in

SNMP::getError

(PHP 5 >= 5.4.0)

SNMP::getErrorObtiene el último mensaje de error

Descripción

string SNMP::getError ( void )

Devuelve un string con el error de la última solicitud SNMP.

Valores devueltos

String describing error from last SNMP request. String que describe el error de la última solicitud SNMP.

Ejemplos

Ejemplo #1 Ejemplo de SNMP::getError()

<?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->getError());
?>

El resultado del ejemplo sería:

bool(false)
string(26) "No response from 127.0.0.1"

Ver también



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

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