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

search for in the

snmp_read_mib> <snmp_get_quick_print
[edit] Last updated: Fri, 25 May 2012

view this page in

snmp_get_valueretrieval

(PHP 4 >= 4.3.3, PHP 5)

snmp_get_valueretrieval SNMP の値が返される方法を返す

説明

int snmp_get_valueretrieval ( void )

返り値

OR でつないだ定数 ( SNMP_VALUE_LIBRARY あるいは SNMP_VALUE_PLAIN) に、場合によって SNMP_VALUE_OBJECT を組み合わせて返します。

例1 snmp_get_valueretrieval の使用法

<?php
 $ret 
snmpget('localhost''public''IF-MIB::ifName.1');
 if (
snmp_get_valueretrieval() & SNMP_VALUE_OBJECT) {
   echo 
$ret->value;
 } else {
   echo 
$ret;
 }
?>

参考



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

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