(PHP 5, PHP 7, PHP 8)
snmpgetnext — Получает объект SNMP, который следует за идентификатором объекта
$hostname,$community,$object_id,$timeout = -1,$retries = -1
Функция snmpgetnext() читает значение
объекта SNMP, который следует за объектом
object_id.
hostnamecommunityobject_idtimeoutretries
Функция возвращает значение объекта SNMP
в случае успешного выполнения или false , если возникла ошибка.
При ошибке функция выдаёт ошибку уровня E_WARNING.
Пример #1 Пример использования функции snmpgetnext()
<?php
$nameOfSecondInterface = snmpgetnext('localhost', 'public', 'IF-MIB::ifName.1');
?>with snmpget api, the agent returns the value associated
with the OID (or OIDs) specified in the original request.
The snmpgetnext api is similar, but the agent returns the
value associated with the next (valid) OID
eg:
snmpgetnext('192.168.40.134',
'public',
'SNMPv2-MIB::sysUpTime.0');
will give the output:
STRING: user@hostname