The virtual element snmpget is designed to read information from external equipment through the GET SNMP PDUThe sensor can be of analog or discrete. For the analog sensor, the value read by SNMP GET is converted to a numerical form. For a discrete sensor, the read value is compared with the string specified by the user, and according to the result of the comparison, its state is established.

Requests for managing virtual sensor snmpget analog:

addvirtual - add a virtual sensor. Extra options are:


Requests for managing virtual sensor snmpget discrete:

addvirtual - add a virtual sensor. Extra options are:


If the new analog element is successfully created, the response is:

<error type="no error" id="216002" />

Or for discrete element:

<error type="no error" id="110004" />



When creating a new sensor (id is not specified), some parameters are mandatory - name, virtual_typevmax (for analog only), vmin (for analog only), server, port, version, community, oid, period. The rest of the query parameters are optional, and if not set, they will be set to the default values.

When editing an element, you can change individual fields.


delvirtual - remove the virtual sensor. Extra options:


getelement - read the element. Extra options are:

Information about the analog element looks like:

<element id="216001" index="12" module="2008" clas="analog" type="snmpget" name="virtual get 01" state="low warning" um="Volts" hwport="1" value="24.54" vmax="457.2" vmin="-24.0" low_alarm="13.0" low_warning="36.0" high_warning="174.0" high_alarm="197.0" expr="x*2" hyst_type="time" hyst_low_alarm="1" hyst_low_warning="1" hyst_normal="0" hyst_high_warning="1" hyst_high_alarm="1" hyst_value="0.300" period="20" server="192.168.0.25" port="161" version="2c" comunity="read" oid=".1.3.6.1.4.1.39052.1.3.1.9.203001" valuestr="12.27" status="working" >

<time t="1579681575" last="1579681475" period="1">

<d v="24.540" t="1579681574"/>

<d v="24.540" t="1579681573"/>

</time>

<time t="1579681575" last="1579681455" period="60">

<d v="24.540" t="1579681515"/>

<d v="24.540" t="1579681455"/>

</time>

<time t="1579681452" last="1579681452" period="3600">

</time>

<time t="1579681453" last="1579681453" period="86400">

</time>

</element>

Information about the discrete element looks like:

<element id="110001" module="2008" clas="discrete" type="snmpget" name="virtual get 02" state="normal" hwport="2" value="0" reverse="0" period="20" server="192.168.0.25" port="161" version="2c" comunity="read" oid=".1.3.6.1.4.1.39052.1.3.1.7.201001" control="Onboard" valuestr="Onboard Temperature" status="working" >

<time t="1579682300" last="0">

<d v="0" t="0" /><d v="0" t="1579682300" />

</time>

</element>

Additional read only fields is:


Deprecated commands

This command is no longer supported.

addsnmpget - add a virtual snmpget device. Extra options are:


If a new element is successfully created, the response contains the element identifier, and looks like:

<error type="no error" id="505001" />

When creating a new element (id is not specified), when defining vartype=analog, the following parameters are mandatory: low_alarm, low_warning, high_warning, high_alarm. When defining vartype=discrete, these parameters can be omitted. The rest of the query parameters are mandatory, empty fields are not allowed.

When editing an item, you can change individual fields.