snmpVariable (Structure)

Top  Previous  Next

Architecture:

NX32L

Device support:

All NX devices

Firmware version:

1.50.00


The snmpVariable structure contains the value of a received SNMP variable.

 

The structure is used with the snmpGetNextVar function.

 

 

Fields:

Type : SINT

The type of the variable.

 

OID : STRING

The OID of the variable.

 

Time_value : DINT

Timeticks, 32bit unsigned signed integer value. Type = 1.

 

INT_value : DINT

32bit signed integer value. Type = 2.

 

UINT_value : DINT

32bit unsigned integer value. Type = 3.

 

STR_value : STRING

String value. Type = 4.

 

Hex_value : STRING

Hex string value. Type= 5.

 

OID_value : STRING

OID variable value in string format. Type = 6.

 

IP_value : STRING

IP address value as a string. Type = 7.

 

FLOAT_value : FLOAT

Floating point value. Type = 8.

 

DOUBLE_value : DOUBLE

Double floating point value. Type = 9.

 

 

Declaration:

STRUCT_BLOCK snmpVariable;
  Type         : SINT;
  OID          : STRING;
  Time_value   : DINT;
  INT_value    : DINT;
  UINT_value   : DINT;
  STR_value    : STRING;
  Hex_value    : STRING;
  OID_value    : STRING;
  IP_value     : STRING;
  FLOAT_value  : FLOAT;
  DOUBLE_value : DOUBLE;
END_STRUCT_BLOCK;