Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 900 Bytes

createsnmptransport.adoc

File metadata and controls

42 lines (34 loc) · 900 Bytes

CreateSNMPTransport()

Important

Deprecated in 3.0.

Please use method createSNMPTransport of class [class-node].

CreateSNMPTransport(node, port, context, community) => 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.

context

Optional parameter with context as a string.

community

Optional parameter with community string as a string.

Return

Instance of [class-snmptransport] or null if failed.

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