File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / snmp / tests / skipif.inc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:42 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

<?php
extension_loaded('snmp') or die('skip snmp extension not available in this build');
 
require_once (dirname(__FILE__).'/snmp_include.inc');

//test server is available
// this require snmpget to work ...
//snmpget  ( string $hostname  , string $community  , 
//string $object_id  [, int $timeout  [, int $retries  ]] )

if (snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout) === false)
	die('NO SNMPD on this host or community invalid');


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