This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

CreateSNMPTransport()

Deprecated in 3.0.

Please use method createSNMPTransport of class Node.

CreateSNMPTransport(node, port, community, context) => SNMP_Transport

Create SNMP transport with communication settings defined on the node. It is possible to specify a community string but only community strings listed in Network Credentials will be accepted.

Table 1. Parameters

node

Target node.

port

Optional parameter with port. If omitted or null, port configured on the node is used.

community

Optional parameter with community string as a string.

context

Optional parameter with context as a string.

Return

Instance of SNMPTransport or null if failed (including community not in the list, SNMP disabled on the node, or missing SNMP read access).

>>> transport = CreateSNMPTransport(FindObject("Server1"))
>>> print transport.snmpVersion
2c