NXSL:SNMPSet

From NetXMS Wiki
Revision as of 11:56, 9 July 2012 by Victor (talk | contribs)
Jump to navigation Jump to search

Assign a specific value to the given SNMP object for the node. The node and all SNMP communication details defined by SNMP transport.

Since: 1.2.1

Syntax

SNMPSet(transport,oid,value,[data type]);

Parameters

transport SNMP_Transport SNMP transport object.
oid SNMP object id to start walking from.
value Value to assign to oid.
data type SNMP data type (optional).

Return Value

TRUE on success, FALSE in case of failure.

Examples

	ret = SNMPSet(transport, oid, "192.168.0.1", "IPADDR");
	if (!ret)
	{
		trace(1,"SNMPSet failed");
		return -1;
	}