PHP 매뉴얼
이전 |  | 다음

# CII. SNMP Functions

# 소개

# 요구 사항

In order to use the SNMP functions on Unix you need to install the NET-SNMP package. On Windows these functions are only available on NT and not on Win95/98.

# 설치

Important: In order to use the UCD SNMP package, you need to define NO_ZEROLENGTH_COMMUNITY to 1 before compiling it. After configuring UCD SNMP, edit `config.h` and search for NO_ZEROLENGTH_COMMUNITY. Uncomment the #define line. It should look like this afterwards:

    #define NO_ZEROLENGTH_COMMUNITY 1

Now compile PHP `--with-snmp[=DIR]`.

If you see strange segmentation faults in combination with SNMP commands, you did not follow the above instructions. If you do not want to recompile UCD SNMP, you can compile PHP with the `--enable-ucd-snmp-hack` switch which will work around the misfeature.

The Windows distribution contains support files for SNMP in the `mibs` directory. This directory should be moved to `DRIVE:\usr\mibs`, where DRIVE must be replaced with the driveletter where `PHP` is installed on, e.g.: `c:\usr\mibs`.

# 런타임 설정

이 확장 모듈은 `php.ini` 설정이 존재하지 않습니다.

# 리소스 종류

# 상수 정의

이 확장 모듈은 상수를 정의하지 않습니다.

이전 | 처음으로 | 다음
swf_viewport | 위로 | snmp_get_quick_print