Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

SNMPGet

  • Last UpdatedOct 29, 2026
  • 1 minute read

Gets information from computers or network devices through the SNMP protocol.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

SNMPGet

System Info

Synchronous

Yes

Supported

Not supported

Not supported

Supported

Not supported

Syntax

SNMPGet( strAddress, strCommunity, strOID, "strTagName" )

strAddress

The address of the machine/computer (for example, "127.0.0.1" or "localhost" ).

strCommunity

SNMP community name when communicating with the computer (for example, "public" ).

strOID

OID to be consulted (for example, ".1.3.6.1.2.1.1.1.0" ).

strTagName

Name of the tag that will receive the requested value.

Note: If this parameter is enclosed in quotes, the string literal will be used. Otherwise, the value of the tag/expression will be used.

Returned value

Value

Description

0

No error

-1

Invalid number of parameters

-2

Invalid parameter

-5

GET operation failed

-7

Invalid tag name

-8

Invalid tag type

-9

This function is not supported on the current operating system

If you receive any other values, please contact technical support.

Examples

Tag Name

Expression

ErrorTag

SNMPGet( "127.0.0.1", "public", ".1.3.6.1.2.1.1.1.0", "SysDescrTag" ) //ErrorTag will receive the error code. If the function succeeds, the value in the OID ".1.3.6.1.2.1.1.1.0" will be saved in the tag SysDescrTag.

In This Topic