xref: /PHP-8.1/ext/snmp/tests/skipif.inc (revision b5a14e6c)
1<?php
2require_once (dirname(__FILE__).'/snmp_include.inc');
3
4//test server is available
5// this require snmpget to work ...
6//snmpget  ( string $hostname  , string $community  ,
7//string $object_id  [, int $timeout  [, int $retries  ]] )
8
9if (@snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout) === false)
10    die('skip NO SNMPD on this host or community invalid');
11