diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
|---|---|---|
| committer | <> | 2013-04-03 16:25:08 +0000 |
| commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
| tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/snmp/tests/README | |
| download | php2-master.tar.gz | |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/snmp/tests/README')
| -rw-r--r-- | ext/snmp/tests/README | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ext/snmp/tests/README b/ext/snmp/tests/README new file mode 100644 index 0000000..819a50d --- /dev/null +++ b/ext/snmp/tests/README @@ -0,0 +1,46 @@ +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. + +- 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] |
