• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Protocols - SNMP I/O
  • SNMP I/O Configuration Manual
  • 5.0.0

SNMP Setup Guide About SNMP Protocol

SNMP I/O Configuration Manual

Introduction

This document describes how the SNMPManagerIO component works, how to set it up and use it within a CDP system. It also describes basics about the SNMP protocol.

The SNMPManagerIO is able to send SNMP Set and Get requests to several SNMP agents. Get requests can be sent regularly, specified by two different intervals. Get request Responses from agents can be used to update CDP Signals. The SNMPManagerIO is able to receive and decode SNMP Trap messages sent from several sources. The different Traps can either be configured to Set/Clear CDPAlarm, or to generate property change Event. If communication with SNMP Agents on different ethernet-interfaces is needed, several SNMPManagerIO components can be created, each working on a separate ethernet-interface. The SNMPManagerIO supports SNMP v.1 and 2. When configuring Requests and Traps, the OIDs of the variables must be known. Vendor of the device (SNMP Agent) should have this information (MIB). Another possibility is to use a MIB Browser to retrieve this information.

Terms and Definitions

SNMPSimple Network Management Protocol. A protocol using UDP that enables a management station to configure, monitor, and receive trap messages from network devices.
SNMP AgentSoftware that enables a device to respond to manager requests to view or update MIB data, and send traps reporting problems or significant events.
MIBManagement Information Base. A logical database made up of the configuration, status and statistical information stored at a device. MIB-files are readable text-files.
OIDObjec Identifier, a string of numbers derived from a global naming tree, used to identify an object. E.g.: '1.3.6.1.4.1.16177.1.1.9.1'
Get RequestA manager-to-agent request to retrieve the value of a variable. A Response with current values is returned.
Set RequestA manager-to-agent request to change the value of a variable. A Response with (current) new value for the variable may be returned.
TrapAsynchronous notification from agent to manager. SNMP traps enable an agent to notify the management station of significant events by way of an unsolicited SNMP message.
BERBasic Encoding Rules - A set of rules for translating ASN.1 values into a stream of octets to be transmitted across a network.

Configuration of SNMP I/O Server

The SNMPManagerIO can be added to the selected application from the Resource tree under SNMPIO.

SNMPManagerIO Transport

The SNMPManagerIO Transport table makes it possible to configure how to send and receive SNMP messages.

NameValueDescription
NameNetworkTransportThe name of the transport
ProtocolSNMPThe Ethernet protocol used.
LocalNameETH0The name, as specified in the Application NetworkInterface, of the local ethernet interface to use.
SetGetPort161The port to send to, used for Set- and Get-Requests. 161 is reserved as destination port for SNMP Set- and Get-Requests, but may be configured to another value if the SNMP agent(s) needs that.
TrapPort162The port to listen for incoming Traps. 162 is reserved as destination port for Traps sent from SNMP agents, but may be configured to another value if the SNMP agent(s) needs that.
OwnSrcPort30543The port used as Src-port when sending Set- and Get-Requests. SNMPManagerIO will listen on this port for incoming Responses. Can be any available port number (1-65535), but numbers <1024 are typically reserved by the Operating System and require Administrator permissions to access.
ModelSNMPIO.NetworkInterface

SNMPManagerIO Properties

There are 3 extra properties for the SNMPManagerIO: PollInterval1, PollInterval2 and TimeoutLostContact. PollInterval1 and PollInterval2 specifies in seconds two different intervals for how often to send a GetRequest. TimeoutLostContact specifies number of seconds without getting any reply of GetRequests, before setting LostContact alarm for an agent. Value should be at least twice as large as the smallest PollInterval to avoid setting alarm unnecessarily.

Configuration of SNMP Agent

To be able to send and receive SNMP messages, you must first add one or more SNMPAgent resources to the SNMPManagerIO. Give the SNMP Agent a Name, specify the agent's IP address in RemoteIP and choose SNMP version 1 or 2.

NameValueDescription
NameSNMPAgentThe name of the SNMP Agent
RemoteIP127.0.0.1The IP address of the remoteSNMP Agent to communicate with. Must be on the same subnet as LocalName configured in Transport.
SNMPversion2The SNMP version the agent is using. SNMPManagerIO supports 1 and 2.
ModelSNMPIO.SNMPAgent

Configuring what to send and receive

Inside the SNMP agent, you may choose between SetRequest, GetRequest, ReceiveAlarmTrap and ReceiveEventTrap from the Resource tree.

SetRequest

To be able to change/set a value inside the SNMP Agent, add a SetRequest from the Resource tree.

NameValueDescription
NameSetRequestThe name of the SetRequest
OID1.3.6.1.4.1The Object Identifier for this SetRequest.
DataTypeINTEGERWhat datatype to use/how to encode the SetValue.
CommunityprivateWhat community to use, usually private or public.
SetValueThe value to send to the SNMP agent.
ModelSNMPIO.SetRequest

GetRequest

To be able to retrieve a value from the SNMP Agent, add a GetRequest from the Resource tree.

NameValueDescription
NameGetRequestThe name of the GetRequest
OID1.3.6.1.4.1The Object Identifier for this GetRequest.
DataTypeINTEGERWhat datatype to use for the GetValue.
CommunityprivateWhat community to use, usually private or public.
PollInterval2How often to send the GetRequest. Value 1 and 2 corresponds to PollInterval1 and PollInterval2 in the Properties for SNMPManagerIO. Value 0 means sending once (or until receiving Response).
GetValueThe value retrieved from the SNMP agent.
ModelSNMPIO.GetRequest

If you want a CDPSignal to be updated with the value retrieved from the GetRequest, click at the GetRequest and add a CDPSignal of correct type under CDPCore from the Resource tree. Only the following types can be converted to a CDPSignal: BOOLEAN, INTEGER, COUNTER32, GAUGE32, UINTEGER32 or COUNTER64.

ReceiveAlarmTrap

The SNMP Agent must be set up to send traps to the SNMPManagerIO. This is done by configuring the SNMP Agent to send traps to the same IP Address that the SNMPManagerIO application runs on. If a received trap shall Set/Clear a CDPAlarm, where one OID shall Set a CDPAlarm, and one OID shall Clear the same CDPAlarm, add a ReceiveAlarmTrap from the Resource tree.

NameValueDescription
NameReceiveAlarmTrapThe name of the ReceiveAlarmTrap
OID_Set1.3.6.1.4.1The Object Identifier causing the CDPAlarm to be Set.
OID_Clear1.3.6.1.4.1The Object Identifier causing the CDPAlarm to be Cleared (different than OID_Set).
ValueToSetClearAlarmOptional. If you specifiy a value here, the CDPAlarm will only be Set/Cleared if the value received together with the OID_Set/OID_Clear match this value.
ModelSNMPIO.ReceiveAlarmTrap

ReceiveEventTrap

The SNMP Agent must be set up to send traps to the SNMPManagerIO. This is done by configuring the SNMP Agent to send traps to the same IP Address that the SNMPManagerIO application runs on. If a received trap shall trig a CDP Event, add a ReceiveEventTrap from the Resource tree.

NameValueDescription
NameReceiveEventTrapThe name of the ReceiveEventTrap
OID1.3.6.1.4.1The Object Identifier causing the Event to be trigged.
TrapValueIf this Trap/OID is received, TrapValue will contain the received value in the trap.
ModelSNMPIO.ReceiveEventTrap

If this trap contains several OIDs (and correspondign value), which you want to trig Events for, click at ReceiveEventTrap and add SubOIDEvent from the Resource tree.

NameValueDescription
NameSubOIDEventThe name of the SubOIDEvent
SubOID1.3.6.1.4.1Another Object Identifier causing an Event to be trigged.
TrapValueIf this Trap/OID is received, TrapValue will contain the received value in the trap.
ModelSNMPIO.SubOIDEvent

SNMP Setup Guide About SNMP Protocol

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top