• v7.1.1
    • v7.11.0 (latest)
    • v7.10.0
    • v7.9.0
    • v7.8.0
    • v7.7.0
    • v7.6.0
    • v7.5.0
    • v7.3.0
    • v7.2.0
    • v7.1.1
    • v7.1.0
    • v7.0.8
  • Services & Support
  • Devo.com
  • Contact
    • Contact Us
    • Request a Demo
    • Partner Inquiry
  • Log In
    • USA Devo
    • EU Devo
PREVIOUS
Forward response to Kafka
NEXT
Send requests with Postman

API reference / Query API / Running queries with the Query API / Forward response to SNMP

Download as PDF

Forward response to SNMP

You can send the query results as SNMP traps V2 over UDP protocol. To do it, you must include the destination object in your request and set type to snmp like this:

"destination": {
 "type":"snmp"
}

Parameters

With the destination.type set to snmp, you need to specify some additional parameters to create a "trap", which are the notification messages sent from a remote SNMP-enabled device. The API request requires a destination address to which send the traps.

ParameterDescription

oidField*required

Indicate the unique OID of the trap. The value must be a string representing a valid OID value.

address*required

Field that includes the address to which send the trap, in format IP/port (for example, 127.0.0.1/2222).

payloadField*required

Field to get the payload from.

descField

Field to get the description from.

community

Field to get the SNMP community string from.

Query using LINQ and forwarding to SNMP

{
  "query":"LinQ_query",
  "from":1549627003.141,
  "destination":{
    "type":"snmp",
    "params":{
      "oidField":"myOid",
      "address":"127.0.0.1/2222",
      "payloadField":"url",
      "community":"public"
    }
  }
}

The result of the request is the SNMP trap with the provided fields.

Errors

The following table describes the possible errors you may get with your response:

Error codeMessageDescription

420

QUERY_SNMP_NO_PARAMS

No params sent

421

QUERY_SNMP_MISSED_OID_FIELD

Missing parameter oidField

422

QUERY_SNMP_MISSED_ADDRESS

Missing parameter address

423

QUERY_SNMP_BAD_ADDRESS

Wrong address. Must follow format "host/port"

424

QUERY_SNMP_MISSED_PAYLOAD_FIELD

Missing parameter payloadField

Download as PDF

PREVIOUS
Forward response to Kafka
NEXT
Send requests with Postman

Export

See what Devo can do for you. Request a demo!
Discover what's new (Release notes)
  • v7.1.1
    • v7.11.0 (latest)
    • v7.10.0
    • v7.9.0
    • v7.8.0
    • v7.7.0
    • v7.6.0
    • v7.5.0
    • v7.3.0
    • v7.2.0
    • v7.1.1
    • v7.1.0
    • v7.0.8
  • Services & Support
  • Devo.com
  • Contact
    • Contact Us
    • Request a Demo
    • Partner Inquiry
  • Log In
    • USA Devo
    • EU Devo
  • +1 888 6830910 (USA)
  • +34 900 838 880 (Spain)
Copyright © 2019 Legal Terms Privacy Policy Cookies Policy

Powered by Confluence and Scroll Viewport