Data types and debug levels

This chapter describes the SNMP datatypes, and the debug settings for the SNMP Manager.

SNMP data types

Data type Meaning SNMP Syntax
SNMPTransInt32Type This data type is used to send and receive integer values. The corresponding SNMP data types are INTEGER and Integer32. The data types bool, bit32, int and uint can be processed in the send direction. 2
SNMPTransBitType This data type is used to send and receive bit values. The data type bit32, can be processed in the send direction. 3
SNMPTransUInt32Type Unsigned integer values are sent and received via this data type. The corresponding SNMP data types are Unsigned32, Gauge, Gauge32, Counter, Counter32, Timeticks and Timestamp. The data types bool, bit32, int and uint can be processed in the send direction. 65,66,67
SNMPTransUInt64Type

This data type was set for 64bit numbers. The corresponding SNMP data type is Counter64.

In WinCC OA the data type ulong must be used.

70
SNMPTransObjectIdentifierType The object identifier represents a SNMP OID. In WinCC OA it is represented as a string. 6
SNMPTransOctetType The octet type represents the SNMP octet type generally. It processes data that is represented as a blob in WinCC OA. 4
SNMPTransDisplayStringType

The DisplayString is a specific octet string that follows the C convention. According to RFC 2579 this type has a maximum length of 255 characters. The corresponding WinCC OA data type is text.

The transformation "visible string" shows only character that can be displayed and the transformation "visible string hex" shows only hex values.

4
SNMPTransDateTimeType According to the RFC 2579 this format transfers time information. This time information is represented as TimeVar in WinCC OA. 4
SNMPTransMACAddressType This data type represents the MAC address. In WinCC OA this address is saved as text (00:03:45:FF:35:6D). 4
SNMPTransIPAddressType Represents the Ipv4 address. The address is specified as dotted decimal notation and is saved in WinCC OA as a text (192.168.1.2). 4,64
SNMPTransBitsType The bits type represents the SNMP bit type generally. Using this data type int, uint as well as bit types can be processed. 3
SNMPTransHexStringType

The HexString is a specific Hex string that follows the C convention. According to RFC 2579 this type has a maximum length of 255 characters. The corresponding WinCC OA data type is text.

The transformation "visible string" shows only character that can be displayed and the transformation "visible string hex" shows only hex values.

4

Debug settings for the SNMP Manager

The following debug levels can be used for error analysis and for support at startup.

Debug level Meaning
-dbg 2 Shows driver working info.
-dbg 8 Shows driver poll info.
-dbg 9 Shows driver workproc info.
-dbg 10 Shows SNMP get info.
-dbg 11 Shows SNMP put info.
-dbg 16 Shows SNMP lib info.
-dbg 24 Shows ComDrv information.
-dbg 25 Shows DP management info.
-dbg 26 .Shows SNMP management info, traps.
-dbg 27 Shows mapper info.
-dbg 29 Shows OID error information-