28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

such as GetNext and GetBulk), or as being read-write, meaning that the manager can<br />

change the object’s information with an SNMP Set command.<br />

MIBs are defined using a language called Abstract Syntax Notation 1 (ASN.1). The<br />

IETF has defined a number of MIBs in various RFCs that contain objects common<br />

across all network devices. Some of these MIBs are mandatory, while others are<br />

optional. On NMS systems, most of the mandatory MIBs are typically compiled into<br />

the SNMP manager software. If you need standard MIBs that are not provided with<br />

your NMS, you can find them in the IETF RFCs and at other web sites, including<br />

http://www.net-snmp.org, http://www.rfc-editor.org, and http://net-snmp.sourceforge.<br />

net. There is a list of SMI numbers on the IANA web site (http://www.iana.org).<br />

For objects specific to a device, the manufacturer of the device provides enterprisespecific<br />

MIBs. They must have the same structure as standard MIBs. The following<br />

example of the beginning Juniper chassis MIB illustrates the ASN.1 language:<br />

-- Juniper Enterprise Specific MIB: Chassis MIB<br />

JUNIPER-MIB DEFINITIONS ::= BEGIN<br />

...<br />

-- Juniper Box Anatomy MIB<br />

-- Top level objects<br />

jnxBoxClass OBJECT-TYPE<br />

SYNTAX OBJECT IDENTIFIER<br />

MAX-ACCESSread-only<br />

STATUS current<br />

DESCRIPTION<br />

"The class of the box, indicating which product line<br />

the box is about, for example, 'Internet Router'."<br />

::= { jnxBoxAnatomy 1 }<br />

jnxBoxDescr OBJECT-TYPE<br />

SYNTAX DisplayString (SIZE (0..255))<br />

MAX-ACCESSread-only<br />

STATUS current<br />

DESCRIPTION<br />

"The name, model, or detailed description of the box,<br />

indicating which product the box is about, for example<br />

'M40'."<br />

::= { jnxBoxAnatomy 2 }<br />

jnxBoxSerialNo OBJECT-TYPE<br />

SYNTAX DisplayString (SIZE (0..255))<br />

MAX-ACCESSread-only<br />

STATUS current<br />

DESCRIPTION<br />

"The serial number of this subject, blank if unknown<br />

or unavailable."<br />

::= { jnxBoxAnatomy 3 }<br />

These three objects provide information about the physical Juniper Networks router,<br />

specifically the family, model name, and serial number.<br />

132 | Chapter 4: SNMP<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!