Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 947 Bytes

snmpset.adoc

File metadata and controls

42 lines (34 loc) · 947 Bytes

SNMPSet()

Important

Deprecated in 3.0.

Please use set method of [class-snmptransport] class.

SNMPSet(transport, oid, value, dataType) => Boolean

Perform SNMP SET request for oid over provided transport. Return boolean success indicator. value is automatically converted from string based in dataType. If dataType is not provided, default type "STRING" will be used.

Table 1. Parameters

transport

oid

SNMP OID string.

value

New value.

dataType

Type of the value, default to "STRING". <<[snmp-data-types]

Return

Boolean. TRUE on success and FALSE in case of failure.

Example
>>> if (!SNMPSet(transport, oid, "192.168.0.1", "IPADDR") {
>>>     trace(1, "SNMPSet failed");
>>> }