8053 beefd0184a 2022-08-08 ct_chen 2 lat temu
..
README beefd0184a 2022-08-08 ct_chen 2 lat temu
bug60749.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
bug64124.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
bug64159.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
bug72479.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
clean.inc beefd0184a 2022-08-08 ct_chen 2 lat temu
generic_timeout_error.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
ipv6.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
reflection.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
skipif.inc beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp-object-errno-errstr.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp-object-error.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp-object-properties.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp-object-setSecurity_error.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp-object.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp2_get.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp2_getnext.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp2_real_walk.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp2_set-nomib.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp2_set.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp2_walk.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp3-error.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp3.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp_get_quick_print.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp_get_valueretrieval.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp_getvalue.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp_include.inc beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp_read_mib.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp_set_enum_print.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmp_set_oid_output_format.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmpd.conf beefd0184a 2022-08-08 ct_chen 2 lat temu
snmpget.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmpgetnext.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmprealwalk.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmpset-nomib.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmpset.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
snmpwalk.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu
wrong_hostname.phpt beefd0184a 2022-08-08 ct_chen 2 lat temu

README

SNMP Tests
----------

To enable these tests, you must have :
- PHP compiled with SNMP (--with-snmp)
- an SNMP server running.


** How to test **
You need to give credentials with environment vars if default ones are not
sutable (see snmp_include.inc for more info):
SNMP_HOSTNAME : IPv4 of remote SNMP agent
SNMP_HOSTNAME : IPv6 or remote SNMP agent
SNMP_PORT : SNMP port for queries
SNMP_COMMUNITY : community name
SNMP_COMMUNITY_WRITE : community used for write tests (snmpset()).
SNMP_MIBDIR : Directory containing MIBS

To run test suite you may use this command (presuming that you pwd is where
this README file is located):
> make -C ../../.. test TESTS="`cd ../../..; /bin/ls -1 ext/snmp/tests/*.phpt | xargs echo`"
Running run-tests.php directly will clear your environment and therefore
tests will fail if your SNMP configuration does not fit into default values
specified in snmp_include.inc.

** Configuring the SNMPD server **

On Linux/FreeBSD
--------

- Install package net-snmpd (name may differ based on your distribution).
- Replace config file (by default this is /etc/snmp/snmpd.conf on Linux and
/usr/local/etc/snmp/snmpd.conf on FreeBSD) with snmpd.conf supplied.

Before launching daemon make sure that there is no file /var/net-snmp/snmpd.conf
Delete it if exists. Ingoring to to so will fail SNMPv3 tests.

- Place bigtest.sh near snmpd.conf, tune path to it in snmpd.conf

- Launch snmpd (service snmpd start or /etc/init.d/snmpd start).
Alternatively you can start snmpd daemon using following command line:
sudo snmpd -C -c ./snmpd.conf -f -Le


On Windows
----------

[to be completed]