Annotation of embedaddon/php/ext/snmp/tests/skipif.inc, revision 1.1

1.1     ! misho       1: <?php
        !             2: extension_loaded('snmp') or die('skip snmp extension not available in this build');
        !             3:  
        !             4: require_once (dirname(__FILE__).'/snmp_include.inc');
        !             5: 
        !             6: //test server is available
        !             7: // this require snmpget to work ...
        !             8: //snmpget  ( string $hostname  , string $community  , 
        !             9: //string $object_id  [, int $timeout  [, int $retries  ]] )
        !            10: 
        !            11: if (snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout) === false)
        !            12:        die('NO SNMPD on this host or community invalid');
        !            13: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>