php-src/ext/snmp/tests/README

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2011-01-31 11:41:33 +00:00
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
2011-01-31 11:41:33 +00:00
SNMP_COMMUNITY : community name
SNMP_COMMUNITY_WRITE : community used for write tests (snmpset()).
SNMP_MIBDIR : Directory containing MIBS
** 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.
2011-01-31 11:41:33 +00:00
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.
2011-01-31 11:41:33 +00:00
- 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
2011-01-31 11:41:33 +00:00
On Windows
----------
[to be completed]