11.2 ReadObject method

Reads an SNMP object.

11.2.1 Syntax

object.ReadObject( 
   sObjectID As String) 
   [,iMaxBufferSize As Integer]

11.2.2 Parameters

sObjectID

The identifier of the SNMP object that is being read.

iMaxBufferSize

Optional. The size of the buffer, in kilobytes (default=256).

11.2.3 Return Values

Variant.

11.2.4 Example

This example reads the SNMP object whose ID is 1.3.6.1.2.1.1.3.

set SNMP = CreateObject("ucx:SNMP") 
X = SNMP.ReadObject("1.3.6.1.2.1.1.3") 
if (Err = 0) 
     print ("Value of 1.3.6.1.2.1.1.3 is ", X) 
endif

11.2.5 See Also