09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SEQUENCE OF. The SEQUENCE type is used for creating an ordered list or list<br />

of lists (essentially a table). ASN.1 SEQUENCE definitions use <strong>the</strong> following<br />

format:<br />

•<br />

• ASN.1 data type name ::= SEQUENCE<br />

•<br />

• {<br />

• data identifier data value,<br />

•<br />

• }<br />

•<br />

The SEQUENCE OF type is used for <strong>the</strong> creation of an ordered list of data values that<br />

are associated with <strong>the</strong> same data type. This is a function similar <strong>to</strong> creating an<br />

array in C. Here is an example of <strong>the</strong> basic format and a simple array:<br />

ASN.1 data type name ::= SEQUENCE OF<br />

ASN.1 data type name ASN.1 data type identifier ::= { }<br />

UselessArray ::= SEQUENCE OF INTEGER<br />

UselessArray uselessArray ::= { 23,78,898,122,45}<br />

Structured data types make it possible for MIB objects <strong>to</strong> contain lists and tables.<br />

The SEQUENCE data type is used by <strong>the</strong> SMI for <strong>the</strong> creation of one-dimensional<br />

columnar data structures. The SEQUENCE OF data type is used for <strong>the</strong> creation of<br />

two-dimensional tabular data structures. Here is an example of a MIB object using<br />

a SEQUENCE data type:<br />

— Define <strong>the</strong> object that will use <strong>the</strong> SEQUENCE<br />

someSequence OBJECT-TYPE<br />

SYNTAX TestSequence<br />

ACCESS read-only<br />

STATUS obsolete<br />

DESCRIPTION<br />

"A sequence example"<br />

::= (exampleMib 1)<br />

— Then define <strong>the</strong> SEQUENCE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!