Setting Values for Data Types

 

The various values that are to be specified in a SET operation with respect to the SYNTAX of the object is given in the following table.

 

Base

Data Types or TCs

How to Set the Value
Value Value in Hexadecimal Value in Binary

INTEGER

100

'64'h

'1100100'b

OCTET STRING

adventnet

 

 

OBJECT IDENTIFIER

1.3.6.1.2.1.1.1.0

or

1.1.0

 

 

NULL

 

 

 

Counter

100

'64'h

'1100100'b

Gauge

100

'64'h

'1100100'b

TIMETICKS

100

'64'h

'1100100'b

IpAddress

192.168.1.220/

hostName

 

 

NetworkAddress

192.168.1.220/

hostName

 

 

OPAQUE

 

'64'h

 

DateAndTime

1995-9-21,

13:53:32.3,

-7:0

 

or

 

995-9-21,

13:53:32.3

'07:cb:09:15:0d:35:

20:03:2d:07:00'
 

or

 

'07:cb:09:15:0d:35:

20:03'

 

TAddress

192.168.1.120/

161

 

 

MacAddress

 

f1:f2:f3:f4:f5:f6

 

 

Refer Handling Datatypes for more information on datatypes.

 

 



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.