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.

Table 11.3. ASN.1 Keywords Used with SNMP<br />

BEGIN OCTET STRING OBJECT<br />

IDENTIFIER SEQUENCE OF NULL<br />

END INTEGER DEFINITIONS DESCRIPTION<br />

To implement <strong>the</strong> SMI MIB, an ASN.1 module is used. The ASN.1 module is a<br />

collection of ASN.1 data representations that are related <strong>to</strong> a common global data<br />

set. The ASN.1 module provides <strong>the</strong> ability <strong>to</strong> reference specific data objects in an<br />

ordered manner. The ASN.1 module is constructed with an ordered list of SMI MIB<br />

objects. The objects contained in <strong>the</strong> module can be imported and exported<br />

between different modules.<br />

These "MIB objects" are created with an ASN.1 macro. All SMI managed objects are<br />

described using <strong>the</strong> OBJECT-TYPE macro (ASN.1 macro names appear in all<br />

uppercase). A macro is a special data type that supports clauses. Clauses are a<br />

defined subset of data definitions that are used <strong>to</strong> describe <strong>the</strong> macro-defined data<br />

type. The clauses enforce <strong>the</strong> use of specific set information <strong>to</strong> define <strong>the</strong> proprieties<br />

of <strong>the</strong> macro-defined data type. Every time <strong>the</strong> macro is used, some or all of <strong>the</strong>se<br />

properties must be defined. The OBJECT-TYPE macro uses following format:<br />

data type value name OBJECT-TYPE<br />

SYNTAX data type identifier<br />

UNITS<br />

ACCESS<br />

STATUS<br />

DESCRIPTION<br />

REFRENCE<br />

INDEX<br />

DEFVAL<br />

::= { data value}<br />

• SYNTAX—Defines <strong>the</strong> ASN.1 data type (simple, application wide [tagged], or<br />

structured [list or table]) which is used <strong>to</strong> define <strong>the</strong> object.<br />

• ACCESS—Defines <strong>the</strong> level of access for <strong>the</strong> object (read-only, read-write, and<br />

so on).<br />

• STATUS—Defines <strong>the</strong> definition status of <strong>the</strong> object (current, obsolete, and so<br />

on).

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

Saved successfully!

Ooh no, something went wrong!