Name Date Size #Lines LOC

..05-Dec-2019-

READMEH A D05-Dec-20191.6 KiB4935

bigtest.shH A D05-Dec-2019141 117

bug60749.phptH A D05-Dec-2019720 2927

bug64124.phptH A D05-Dec-20191.1 KiB4135

bug64159.phptH A D05-Dec-2019555 2521

bug72479.phptH A D05-Dec-2019780 3534

clean.incH A D05-Dec-201994 53

generic_timeout_error.phptH A D05-Dec-2019705 2822

ipv6.phptH A D05-Dec-2019724 2925

reflection.phptH A D05-Dec-20192.5 KiB10380

skipif.incH A D05-Dec-2019457 149

snmp-object-errno-errstr.phptH A D05-Dec-20195.1 KiB148140

snmp-object-error.phptH A D05-Dec-20193.4 KiB123105

snmp-object-properties.phptH A D05-Dec-20193.9 KiB209191

snmp-object-setSecurity_error.phptH A D05-Dec-20192.4 KiB6751

snmp-object.phptH A D05-Dec-20197 KiB246226

snmp2_get.phptH A D05-Dec-20193.2 KiB10588

snmp2_getnext.phptH A D05-Dec-2019963 4036

snmp2_real_walk.phptH A D05-Dec-20192.6 KiB8772

snmp2_set-nomib.phptH A D05-Dec-20191.6 KiB6051

snmp2_set.phptH A D05-Dec-201910.1 KiB249212

snmp2_walk.phptH A D05-Dec-20192.9 KiB10081

snmp3-error.phptH A D05-Dec-20193.4 KiB7757

snmp3.phptH A D05-Dec-20194.1 KiB128116

snmp_get_quick_print.phptH A D05-Dec-2019983 4234

snmp_get_valueretrieval.phptH A D05-Dec-20191.6 KiB5446

snmp_getvalue.phptH A D05-Dec-20192.4 KiB8474

snmp_include.incH A D05-Dec-20191.4 KiB3225

snmp_read_mib.phptH A D05-Dec-2019882 3527

snmp_set_enum_print.phptH A D05-Dec-2019676 2925

snmp_set_oid_output_format.phptH A D05-Dec-2019910 3328

snmpd.confH A D05-Dec-2019747 2818

snmpget.phptH A D05-Dec-20193.4 KiB10791

snmpgetnext.phptH A D05-Dec-2019955 4036

snmprealwalk.phptH A D05-Dec-20192.5 KiB8772

snmpset-nomib.phptH A D05-Dec-20191.6 KiB6151

snmpset.phptH A D05-Dec-201910.1 KiB249212

snmpwalk.phptH A D05-Dec-20192.9 KiB10081

wrong_hostname.phptH A D05-Dec-2019512 2319

README

1SNMP Tests
2----------
3
4To enable these tests, you must have :
5- PHP compiled with SNMP (--with-snmp)
6- an SNMP server running.
7
8
9** How to test **
10You need to give credentials with environment vars if default ones are not
11sutable (see snmp_include.inc for more info):
12SNMP_HOSTNAME : IPv4 of remote SNMP agent
13SNMP_HOSTNAME : IPv6 or remote SNMP agent
14SNMP_PORT : SNMP port for queries
15SNMP_COMMUNITY : community name
16SNMP_COMMUNITY_WRITE : community used for write tests (snmpset()).
17SNMP_MIBDIR : Directory containing MIBS
18
19To run test suite you may use this command (presuming that you pwd is where
20this README file is located):
21> make -C ../../.. test TESTS="`cd ../../..; /bin/ls -1 ext/snmp/tests/*.phpt | xargs echo`"
22Running run-tests.php directly will clear your environment and therefore
23tests will fail if your SNMP configuration does not fit into default values
24specified in snmp_include.inc.
25
26** Configuring the SNMPD server **
27
28On Linux/FreeBSD
29--------
30
31- Install package net-snmpd (name may differ based on your distribution).
32- Replace config file (by default this is /etc/snmp/snmpd.conf on Linux and
33  /usr/local/etc/snmp/snmpd.conf on FreeBSD) with snmpd.conf supplied.
34
35Before launching daemon make sure that there is no file /var/net-snmp/snmpd.conf
36Delete it if exists. Ingoring to to so will fail SNMPv3 tests.
37
38- Place bigtest.sh near snmpd.conf, tune path to it in snmpd.conf
39
40- Launch snmpd (service snmpd start or /etc/init.d/snmpd start).
41  Alternatively you can start snmpd daemon using following command line:
42    sudo snmpd -C -c ./snmpd.conf -f -Le
43
44
45On Windows
46----------
47
48[to be completed]
49