|
snmp3_walk(PHP 4, PHP 5) snmp3_walk — Fetch all the SNMP objects from an agent Описание
array snmp3_walk
( string $host
, string $sec_name
, string $sec_level
, string $auth_protocol
, string $auth_passphrase
, string $priv_protocol
, string $priv_passphrase
, string $object_id
[, string $timeout = 1000000
[, string $retries = 5
]] )
snmp3_walk() function is used to read all the values from an SNMP agent specified by the hostname. Even if the security level does not use an auth or priv protocol/password valid values have to be specified. Список параметров
Возвращаемые значенияReturns an array of SNMP object values starting from the object_id as root or FALSE on error. Примеры
Пример #1 snmp3_walk() Example
<?php Above function call would return all the SNMP objects from the SNMP agent running on localhost: array ( 0 => 'STRING: lo', 1 => 'STRING: eth0', 2 => 'STRING: eth2', 3 => 'STRING: sit0', 4 => 'STRING: sixxs', ) Смотрите также
|
|