update : 2015.11.03
php.shukuma.com검색:
|
SNMP::getnext(PHP 5 >= 5.4.0) SNMP::getnext — Fetch an SNMP object which follows the given object id 설명
Fetch an SNMP object that follows specified 인수
If
반환값
Returns SNMP objects requested as string or array
depending on 오류/예외
This method does not throw any exceptions by default.
To enable throwing an SNMPException exception when some of library errors occur
the SNMP class parameter 예제Example #1 Single SNMP object Single SNMP object may be requested in two ways: as string resulting string return value or as single-element array with associative array as output.
<?php 위 예제의 출력 예시: OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 Array ( [SNMPv2-MIB::sysObjectID.0] => OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 ) Example #2 Miltiple SNMP objects
<?php 위 예제의 출력 예시: Array ( [SNMPv2-MIB::sysObjectID.0] => OID: NET-SNMP-MIB::netSnmpAgentOIDs.8 [SNMPv2-MIB::sysLocation.0] => STRING: Nowhere ) 참고
|