downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

snmp2_getnext> <snmp_set_valueretrieval
[edit] Last updated: Fri, 25 May 2012

view this page in

snmp2_get

(PHP 5 >= 5.2.0)

snmp2_getSNMP オブジェクトを取得する

説明

string snmp2_get ( string $host , string $community , string $object_id [, string $timeout = 1000000 [, string $retries = 5 ]] )

snmp2_get() 関数は、 object_id で指定した SNMP オブジェクトの値を取得します。

パラメータ

host

SNMP エージェント。

community

リードコミュニティ。

object_id

SNMP オブジェクト。

timeout

最初のタイムアウトまでのマイクロ秒数。

retries

タイムアウト発生時の再試行回数。

返り値

成功した場合に SNMP オブジェクトの値、エラー時に FALSE を返します。

例1 snmp2_get() の使用法

<?php
$syscontact 
snmp2_get("127.0.0.1""public""system.SysContact.0");
?>

参考

  • snmp2_set() - SNMP オブジェクトの値を設定する



add a note add a note User Contributed Notes snmp2_get
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites