Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 5783

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set the value of quick_print within the UCD SNMP library</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.snmp-set-oid-output-format.html">snmp_set_oid_output_format</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.snmp-set-valueretrieval.html">snmp_set_valueretrieval</a></div>
 <div class="up"><a href="ref.snmp.html">SNMP Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.snmp-set-quick-print" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">snmp_set_quick_print</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">snmp_set_quick_print</span> &mdash; <span class="dc-title">Set the value of <em><code class="parameter">quick_print</code></em> within the UCD <acronym title="Simple Network Management Protocol">SNMP</acronym> library
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.snmp-set-quick-print-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>snmp_set_quick_print</strong></span>
    ( <span class="methodparam"><span class="type">bool</span> <code class="parameter">$quick_print</code></span>
   )</div>


  <p class="para rdfs-comment">
   Sets the value of <em><code class="parameter">quick_print</code></em> within the UCD <acronym title="Simple Network Management Protocol">SNMP</acronym> library.  When this
   is set (1), the <acronym title="Simple Network Management Protocol">SNMP</acronym> library will return &#039;quick printed&#039; values.  This
   means that just the value will be printed.  When <em><code class="parameter">quick_print</code></em> is not
   enabled (default) the UCD <acronym title="Simple Network Management Protocol">SNMP</acronym> 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.
  </p>
  <p class="para">
   By default the UCD <acronym title="Simple Network Management Protocol">SNMP</acronym> library returns verbose values, quick_print is
   used to return only the value.
  </p>
  <p class="para">
   Currently strings are still returned with extra quotes, this will be
   corrected in a later release.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.snmp-set-quick-print-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">quick_print</code></em></span>
     <dd>

      <p class="para">
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.snmp-set-quick-print-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.snmp-set-quick-print-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   Setting quick_print is often used when using the information returned
   rather than displaying it.
  </p>
  <p class="para">  
   <div class="example" id="example-4552">
    <p><strong>Example #1 Using  <span class="function"><strong>snmp_set_quick_print()</strong></span></strong></p>
    <div class="example-contents"> 
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />snmp_set_quick_print</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$a&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">snmpget</span><span style="color: #007700">(</span><span style="color: #DD0000">"127.0.0.1"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"public"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">".1.3.6.1.2.1.2.2.1.9.1"</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$a</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">snmp_set_quick_print</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$a&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">snmpget</span><span style="color: #007700">(</span><span style="color: #DD0000">"127.0.0.1"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"public"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">".1.3.6.1.2.1.2.2.1.9.1"</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$a</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>The above example will output
something similar to:</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
&#039;Timeticks: (0) 0:00:00.00&#039;
&#039;0:00:00.00&#039;
</pre></div>
    </div>
   </div>
  </p> 
 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.snmp-set-quick-print-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.snmp-get-quick-print.html" class="function" rel="rdfs-seeAlso">snmp_get_quick_print()</a> - Fetches the current value of the UCD library's quick_print setting</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.snmp-set-oid-output-format.html">snmp_set_oid_output_format</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.snmp-set-valueretrieval.html">snmp_set_valueretrieval</a></div>
 <div class="up"><a href="ref.snmp.html">SNMP Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>