Home
last modified time | relevance | path

Searched refs:snmp (Results 1 – 25 of 53) sorted by relevance

123

/php-src/ext/snmp/
H A Dconfig.w323 ARG_WITH("snmp", "SNMP support", "no");
6 …if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP…
7 SETUP_OPENSSL("snmp", PHP_SNMP) >= 2) {
8 if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
9 EXTENSION('snmp', 'snmp.c');
10 ADD_EXTENSION_DEP('snmp', 'spl');
11 AC_DEFINE('HAVE_SNMP', 1, "Define to 1 if the PHP extension 'snmp' is available.");
13 WARNING("snmp not enabled; libraries and headers not found");
16 WARNING("snmp not enabled; libraries and headers not found");
H A Dconfig.m41 PHP_ARG_WITH([snmp],
3 [AS_HELP_STRING([[--with-snmp[=DIR]]],
17 [SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"])
21 Could not find net-snmp-config binary. Please check your net-snmp
50 [Define to 1 if the PHP extension 'snmp' is available.])],
72 #include <net-snmp/net-snmp-config.h>
73 #include <net-snmp/net-snmp-includes.h>
82 #include <net-snmp/net-snmp-config.h>
83 #include <net-snmp/net-snmp-includes.h>
89 PHP_NEW_EXTENSION([snmp], [snmp.c], [$ext_shared])
[all …]
H A Dphp_snmp.h43 PHP_MINIT_FUNCTION(snmp);
44 PHP_MSHUTDOWN_FUNCTION(snmp);
45 PHP_MINFO_FUNCTION(snmp);
85 ZEND_BEGIN_MODULE_GLOBALS(snmp)
87 ZEND_END_MODULE_GLOBALS(snmp)
/php-src/ext/snmp/tests/
H A DREADME.md1 # The snmp extension tests
5 * PHP compiled with SNMP `--with-snmp`
26 make -C ../../.. test TESTS="`cd ../../..; /bin/ls -1 ext/snmp/tests/*.phpt | xargs echo`"
37 * On Ubuntu, install `snmpd` and `snmp-mibs-downloader`. (May be `net-snmpd`
39 * Replace config file (by default this is `/etc/snmp/snmpd.conf` on Linux and
40 `/usr/local/etc/snmp/snmpd.conf` on FreeBSD) with `snmpd.conf` supplied.
43 `/var/net-snmp/snmpd.conf`. Delete it if exists. Forgetting to do so will fail
46 * Place `ext/snmp/tests/bigtest` near `snmpd.conf`, tune path to it in
H A Dbug72479.phpt4 snmp
12 $poc = 'a:3:{i:1;N;i:2;O:4:"snmp":1:{s:11:"quick_print";'.serialize($arr).'}i:1;R:7;}';
H A DCONFLICTS1 snmp
H A Dsnmp_include.inc21 $mibdir = getenv('SNMP_MIBDIR') ?: "/usr/local/share/snmp/mibs";
23 $mibdir = getenv('SNMP_MIBDIR') ?: "/usr/share/snmp/mibs";
H A Dsnmp_get_quick_print.phpt6 snmp
H A Dwrong_hostname.phpt6 snmp
H A Dsnmp_set_enum_print.phpt6 snmp
H A Dsnmpd.conf27 exec HexTest /bin/sh /etc/snmp/bigtest
H A Dbug64159.phpt6 snmp
H A Dgeneric_timeout_error.phpt6 snmp
H A Dipv6.phpt6 snmp
H A Dsnmp_set_oid_output_format.phpt6 snmp
H A Dbug60749.phpt6 snmp
H A Dsnmp2_getnext.phpt6 snmp
H A Dsnmpgetnext.phpt6 snmp
H A Dsnmp_read_mib.phpt6 snmp
H A Dbug64124.phpt6 snmp
H A Dsnmp_get_valueretrieval.phpt6 snmp
/php-src/.github/actions/setup-x64/
H A Daction.yml19 sudo cp ext/snmp/tests/snmpd.conf /etc/snmp
20 sudo cp ext/snmp/tests/bigtest /etc/snmp
/php-src/.github/scripts/windows/
H A Dtest_task.bat107 rem prepare for snmp
109 …ript\.exe \/nologo %GITHUB_WORKSPACE:\=\/%\/ext\/snmp\/tests\/bigtest\.js/g" %GITHUB_WORKSPACE%\ex…
110 start %DEPS_DIR%\bin\snmpd.exe -C -c %GITHUB_WORKSPACE%\ext\snmp\tests\snmpd.conf -Ln
/php-src/.github/actions/apk/
H A Daction.yml50 net-snmp-dev \
/php-src/Zend/tests/
H A Darginfo_zpp_mismatch.inc23 || (is_string($function) && str_starts_with($function, 'snmp'))

Completed in 17 milliseconds

123