★ wanayoo — archive 1999 http://www.php.net/manual/function.snmp-set-quick-print.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to SNMP
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
SNMP
* snmpget
* snmpset
* snmpwalk
* snmpwalkoid
* snmp_get_quick_print
* snmp_set_quick_print
Manual: snmp_set_quick_print
View the source code for this pageSearch the site



Previous page
 snmp_get_quick_print
 Updated
Sat, 12 Aug 2000
Strings 
Next page


snmp_set_quick_print

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

snmp_set_quick_print -- Set the value of quick_print within the UCD SNMP library.

Description

void snmp_set_quick_print (boolean quick_print)

Sets the value of quick_print within the UCD SNMP library. When this is set (1), the SNMP library will return 'quick printed' values. This means that just the value will be printed. When quick_print is not enabled (default) the UCD SNMP library prints extra information including the type of the value (i.e. IpAddress or OID). Additionally, if quick_print is not enabled, the library prints additional hex values for all strings of three characters or less.

Setting quick_print is often used when using the information returned rather then displaying it.

 
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 value printed might be: 'Timeticks: (0) 0:00:00.00', whereas with quick_print enabled, just '0:00:00.00' would be printed.

By default the UCD SNMP library returns verbose values, quick_print is used to return only the value.

Currently strings are still returned with extra quotes, this will be corrected in a later release.

snmp_set_quick_print() is only available when using the UCD SNMP library. This function is not available when using the Windows SNMP library.


 About Notes


Previous page
 snmp_get_quick_print
 Updated
Sat, 12 Aug 2000
Strings 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.