FolusWen c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
..
README c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
bug60749.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
bug64124.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
bug64159.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
bug72479.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
clean.inc c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
generic_timeout_error.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
ipv6.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
reflection.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
skipif.inc c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp-object-errno-errstr.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp-object-error.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp-object-properties.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp-object-setSecurity_error.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp-object.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp2_get.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp2_getnext.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp2_real_walk.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp2_set-nomib.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp2_set.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp2_walk.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp3-error.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp3.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp_get_quick_print.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp_get_valueretrieval.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp_getvalue.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp_include.inc c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp_read_mib.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp_set_enum_print.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmp_set_oid_output_format.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmpd.conf c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmpget.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmpgetnext.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmprealwalk.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmpset-nomib.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmpset.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
snmpwalk.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전
wrong_hostname.phpt c2d3f4474f [Improve][GPL][PHP / lighttpd] 3 년 전

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]