note 58657 added to ref.snmp

From: Date: Thu, 10 Nov 2005 21:29:46 +0000
Subject: note 58657 added to ref.snmp
Groups: php.notes 
Request: Send a blank email to php-notes+get-98407@lists.php.net to get a copy of this message
For my purposes in PHP coding, I have the following SNMP options set, always. These aren't documented very well in PHP's docs, but they make dealing with the SNMP results a LOT easier: <?php // Return back the numeric OIDs, instead of text strings. snmp_set_oid_numeric_print(1); // Get just the values. snmp_set_quick_print(TRUE); // For sequence types, return just the numbers, not the string and numbers. snmp_set_enum_print(TRUE); // Don't let the SNMP library get cute with value interpretation. This makes // MAC addresses return the 6 binary bytes, timeticks to return just the integer // value, and some other things. snmp_set_valueretrieval(SNMP_VALUE_PLAIN); ?> ---- Manual Page -- http://www.php.net/manual/en/ref.snmp.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58657 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58657&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58657&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58657&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58657&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58657&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58657&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58657&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58657&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98407) next »