SNMP Function library: snmp_set_quick_print

Source: Internet
Author: User
Keywords PHP Chinese function manual Snmp_set_quick_print snmp function library
Tags aliyun displays example function function library html http it is

Snmp_set_quick_print

(PHP3 >= 3.0.8, PHP4 >= 4.0b2)

Snmp_set_quick_print---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Set the value of quick_print in the UCD SNMP FUNCTION LIBRARY

Syntax: void Snmp_set_quick_print (Boolean quick_print)

Description:

Sets the value of the internal quick_print of the UCD snmp function LIBRARY. When it is set to (1), the SNMP function library returns the value of ' quick_print ', meaning that it only displays its value. When it is set to (0), the UCD SNMP function library Displays additional information that contains a value's form (for example, IPAddress or OID) and, in addition, it displays an additional three characters or a hexadecimal value of less than three characters.

When you use the returned information without displaying it, you usually use the quick_print.

Example:

<?php

Snmp_set_quick_print (0);

$a = Snmpget ("127.0.0.1", "public", ". 1.3.6.1.2.1.2.2.1.9.1");

echo "$a <br>\n"; Snmp_set_quick_print (1);

$a = Snmpget ("127.0.0.1", "public", ". 1.3.6.1.2.1.2.2.1.9.1");

echo "$a <br>\n";

?>

The first shown value of the above example may be: ' Timeticks: (0) 0:00:00.00 ', if set to 1 will only show ' 0:00:00.00 '.

The UCD SNMP function library Preset Returns a lengthy value that can be passed back only using Quick_print.

The string still returns extra quotes, which will be corrected in later versions.

When using the UCD SNMP function LIBRARY, snmp_get_quick_print () is valid, and this function is not valid when using the Windows SNMP function library.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.