snmp_read_mib

(PHP 5, PHP 7) Reads and parses a MIB file into the active MIB tree bool snmp_read_mib ( string $filename ) This function is used to load additional, e.g. vendor specific, MIBs so that human readable OIDs like VENDOR-MIB::foo.1 instead of error prone numeric OIDs can be used. The order in which the MIBs are loaded does matter as the underlying Net-SNMP libary will print warnings if referenced objects cannot be resolved.

snmp_get_valueretrieval

(PHP 4 >= 4.3.3, PHP 5, PHP 7) Return the method how the SNMP values will be returned int snmp_get_valueretrieval ( void ) Returns: OR-ed combitantion of constants ( SNMP_VALUE_LIBRARY or SNMP_VALUE_PLAIN ) with possible SNMP_VALUE_OBJECT set. Examples: Using snmp_get_valueretrieval <?php  $ret = snmpget('localhost'

snmp_get_quick_print

(PHP 4, PHP 5, PHP 7) Fetches the current value of the UCD library's quick_print setting bool snmp_get_quick_print ( void ) Returns the current value stored in the UCD Library for quick_print. quick_print is off by default. Returns: Returns TRUE if quick_print is on, FALSE otherwise. Examples: snmp_get_quick_print() example

SAMMessage::header

(PECL sam >= 0.1.0) The header properties of the message. object $SAMMessage->header; The header property is a container for any system or user properties that area associated with the message. Properties may be assigned by the sender of a message to control the way the messaging systems handles it or may be assigned by the messaging system itself to tell the recipient extra information about the message or the way in which it has

SAMMessage::__construct

(PECL sam >= 0.1.0) Creates a new Message object SAMMessage::__construct ([ mixed $body ] ) Creates a new SAMMessage object optionally specifying a message body. Parameters: body The optional body for the message. Examples: Creating a message <?php $msg = new SAMMessage(); ?> Cr

SAMMessage::body

(PECL sam >= 0.1.0) The body of the message. string $SAMMessage->body; The "body" property contains the actual body of the message. It may not always be set. Examples: Setting a text string into the body of a message <?php $msg = new SAMMessage(); $msg->body = 'This is a simple message'; ?> See also:

SAMConnection::unsubscribe

(PECL sam >= 0.1.0) Cancel a subscription to a specified topic. bool SAMConnection::unsubscribe ( string $subscriptionId [, string $targetTopic ] ) The "unsubscribe" method is used to delete an existing subscription to a specified topic. Parameters: subscriptionId The identifier of an existing subscription as returned by a call to the subscribe method.

SAMConnection::subscribe

(PECL sam >= 0.1.0) Create a subscription to a specified topic. string SAMConnection::subscribe ( string $targetTopic ) The "subscribe" method is used to create a new subscription to a specified topic. Parameters: targetTopic The identity of the topic (topic://topicname) to subscribe to. Returns: A subscription identifier that can be used in

SAMConnection::setDebug

(PECL sam >= 1.1.0) Turn on or off additional debugging output. void SAMConnection::setDebug ( bool $switch ) The "setdebug" method is used to turn on or off additional debugging output. The SAM framework will provide method/function entry and exit trace data plus additional information. Protocol specific implementations also provide extra output. Parameters: switch

SAMConnection::send

(PECL sam >= 0.1.0) Send a message to a queue or publish an item to a topic. string SAMConnection::send ( string $target, SAMMessage $msg [, array $properties ] ) The "send" method is used to send a message to a specific queue or to publish to a specific topic. The method returns a correlation id that can be used as a selector to identify reply or response messages when these are requested. Parameters: