Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 05-Dec-2019 | - | ||||
README | H A D | 05-Dec-2019 | 1.6 KiB | 49 | 35 | |
bigtest.sh | H A D | 05-Dec-2019 | 141 | 11 | 7 | |
bug60749.phpt | H A D | 05-Dec-2019 | 687 | 29 | 27 | |
bug64124.phpt | H A D | 05-Dec-2019 | 1,023 | 41 | 35 | |
bug64159.phpt | H A D | 05-Dec-2019 | 522 | 25 | 21 | |
bug72479.phpt | H A D | 05-Dec-2019 | 748 | 36 | 34 | |
clean.inc | H A D | 05-Dec-2019 | 94 | 5 | 3 | |
generic_timeout_error.phpt | H A D | 05-Dec-2019 | 671 | 27 | 22 | |
ipv6.phpt | H A D | 05-Dec-2019 | 682 | 30 | 25 | |
reflection.phpt | H A D | 05-Dec-2019 | 2.5 KiB | 103 | 80 | |
skipif.inc | H A D | 05-Dec-2019 | 459 | 13 | 9 | |
snmp-object-errno-errstr.phpt | H A D | 05-Dec-2019 | 5.1 KiB | 148 | 140 | |
snmp-object-error.phpt | H A D | 05-Dec-2019 | 3.3 KiB | 123 | 105 | |
snmp-object-properties.phpt | H A D | 05-Dec-2019 | 3.9 KiB | 209 | 191 | |
snmp-object-setSecurity_error.phpt | H A D | 05-Dec-2019 | 2.3 KiB | 66 | 51 | |
snmp-object.phpt | H A D | 05-Dec-2019 | 7 KiB | 246 | 226 | |
snmp2_get.phpt | H A D | 05-Dec-2019 | 3.1 KiB | 105 | 88 | |
snmp2_getnext.phpt | H A D | 05-Dec-2019 | 890 | 40 | 36 | |
snmp2_real_walk.phpt | H A D | 05-Dec-2019 | 2.5 KiB | 87 | 72 | |
snmp2_set-nomib.phpt | H A D | 05-Dec-2019 | 1.6 KiB | 60 | 51 | |
snmp2_set.phpt | H A D | 05-Dec-2019 | 10 KiB | 249 | 212 | |
snmp2_walk.phpt | H A D | 05-Dec-2019 | 2.8 KiB | 100 | 81 | |
snmp3-error.phpt | H A D | 05-Dec-2019 | 3.3 KiB | 77 | 57 | |
snmp3.phpt | H A D | 05-Dec-2019 | 4.1 KiB | 128 | 116 | |
snmp_get_quick_print.phpt | H A D | 05-Dec-2019 | 949 | 41 | 34 | |
snmp_get_valueretrieval.phpt | H A D | 05-Dec-2019 | 1.6 KiB | 54 | 46 | |
snmp_getvalue.phpt | H A D | 05-Dec-2019 | 2.4 KiB | 84 | 74 | |
snmp_include.inc | H A D | 05-Dec-2019 | 1.4 KiB | 32 | 25 | |
snmp_read_mib.phpt | H A D | 05-Dec-2019 | 854 | 35 | 27 | |
snmp_set_enum_print.phpt | H A D | 05-Dec-2019 | 648 | 29 | 25 | |
snmp_set_oid_output_format.phpt | H A D | 05-Dec-2019 | 882 | 33 | 28 | |
snmpd.conf | H A D | 05-Dec-2019 | 747 | 28 | 18 | |
snmpget.phpt | H A D | 05-Dec-2019 | 3.3 KiB | 107 | 91 | |
snmpgetnext.phpt | H A D | 05-Dec-2019 | 882 | 40 | 36 | |
snmprealwalk.phpt | H A D | 05-Dec-2019 | 2.5 KiB | 87 | 72 | |
snmpset-nomib.phpt | H A D | 05-Dec-2019 | 1.5 KiB | 61 | 51 | |
snmpset.phpt | H A D | 05-Dec-2019 | 10 KiB | 249 | 212 | |
snmpwalk.phpt | H A D | 05-Dec-2019 | 2.8 KiB | 100 | 81 | |
wrong_hostname.phpt | H A D | 05-Dec-2019 | 479 | 23 | 19 |
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