The return values will be objects with the properties "value" and "type", where the latter
is one of the SNMP_OCTET_STR, SNMP_COUNTER etc. constants. The
way "value" is returned is based on which one of SNMP_VALUE_LIBRARY,
SNMP_VALUE_PLAIN is set

quick_print

Value of quick_print within the NET-SNMP library

Sets the value of quick_print within the NET-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.

enum_print

Controls the way enum values are printed

Parameter toggles if walk/get etc. should automatically lookup enum values
in the MIB and return them together with their human readable string.

Some SNMP agents are known for returning OIDs out
of order but can complete the walk anyway. Other agents return OIDs
that are out of order and can cause SNMP::walk()
to loop indefinitely until memory limit will be reached.
PHP SNMP library by default performs OID increasing check and stops
walking on OID tree when it detects possible loop with issuing warning
about non-increasing OID faced.
Set oid_increasing_check to FALSE to disable this
check.

exceptions_enabled

Controls which failures will raise SNMPException instead of
warning. Use bitwise OR'ed SNMP::ERRNO_* constants.
By default all SNMP exceptions are disabled.

Library failed while parsing OID (and/or type for SET command).
No queries has been made.

SNMP::ERRNO_MULTIPLE_SET_QUERIES

Library will use multiple queries for SET operation requested.
That means that operation will be performed in a non-transaction manner
and second or subsequent chunks may fail if a type or value failure
will be faced.

User Contributed Notes 1 note

Part of my diploma thesis was to create web interface to command device via SNMP. So I create my own level of abstraction over SNMP class:

<?php

/** * Snmp library which add one level of abstraction to snmp native library. * It adds functionality to work with module PicoIP.With this library you can: * 1.Activate/deactive defined pin; * 2.Get status of all pins. * * When make an instance you should pass to the constructor key word which will * make the library create an object with necessary properetis and access permissions. * * Private properties set some of configurations: * Host is IP address of the divece which we will command. * Two passwords are set for reading and writing. * Version of snmp protocol that we will use is version 1. * * @author Radoslav Madjev * @year 2016 * @version 1.0 beta * * */class snmp_lib {