Annotation of embedaddon/php/ext/snmp/tests/README, revision 1.1.1.2

1.1       misho       1: SNMP Tests
                      2: ----------
                      3: 
                      4: To enable these tests, you must have :
                      5: - PHP compiled with SNMP (--with-snmp)
                      6: - an SNMP server running.
                      7: 
                      8: 
                      9: ** How to test **
                     10: You need to give credentials with environment vars if default ones are not
                     11: sutable (see snmp_include.inc for more info):
                     12: SNMP_HOSTNAME : IPv4 of remote SNMP agent
                     13: SNMP_HOSTNAME : IPv6 or remote SNMP agent
                     14: SNMP_PORT : SNMP port for queries
                     15: SNMP_COMMUNITY : community name
                     16: SNMP_COMMUNITY_WRITE : community used for write tests (snmpset()).
                     17: SNMP_MIBDIR : Directory containing MIBS
                     18: 
                     19: To run test suite you may use this command (presuming that you pwd is where
                     20: this README file is located):
                     21: > make -C ../../.. test TESTS="`cd ../../..; /bin/ls -1 ext/snmp/tests/*.phpt | xargs echo`"
                     22: Running run-tests.php directly will clear your environment and therefore
                     23: tests will fail if your SNMP configuration does not fit into default values
                     24: specified in snmp_include.inc.
                     25: 
                     26: ** Configuring the SNMPD server **
                     27: 
                     28: On 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:   
                     35: Before launching daemon make sure that there is no file /var/net-snmp/snmpd.conf
                     36: Delete it if exists. Ingoring to to so will fail SNMPv3 tests.
                     37: 
1.1.1.2 ! misho      38: - Place bigtest.sh near snmpd.conf, tune path to it in snmpd.conf
        !            39: 
1.1       misho      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: 
                     45: On Windows
                     46: ----------
                     47: 
                     48: [to be completed]

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>