snmp_get_valueretrieval Return the method how the SNMP values will be returned php函数分享


snmp_get_valueretrieval

(PHP 4 >= 4.3.3, PHP 5)

snmp_get_valueretrieval Return the method how the SNMP values will be returned

说明

int snmp_get_valueretrieval ( void )

返回值

OR-ed combitantion of constants ( SNMP_VALUE_LIBRARY or SNMP_VALUE_PLAIN ) with possible SNMP_VALUE_OBJECT set.

范例

Example #1 Using 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;
 }

参见

  • snmp_set_valueretrieval() – Specify the method how the SNMP values will be returned
  • 预定义常量

—-想了解更多的linux相关异常处理怎么解决关注<计算机技术网(www.ctvol.com)!!>



本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/htmltutorial/75893.html

(0)
上一篇 2020年4月20日
下一篇 2020年4月20日

精彩推荐