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, 24 May 2013

view this page in

SNMP::getErrno

(PHP 5 >= 5.4.0)

SNMP::getErrnoGet last error code

Description

int SNMP::getErrno ( void )

Returns error code from last SNMP request.

Return Values

Returns one of SNMP error code values described in constants chapter.

Examples

Example #1 SNMP::getErrno() example

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

The above example will output:

bool(false)
bool(true)

See Also



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 | sitemap | contact | advertising | mirror sites