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.

accepted values are getRequest, getNextRequest, getResponse,<br />

setRequest, and trap.<br />

• PDU Length—Describes <strong>the</strong> size of <strong>the</strong> PDU (in octets) after <strong>the</strong> PDU length<br />

field.<br />

• Request ID—This field is used by <strong>the</strong> management station for matching send<br />

requests with received requests. It is not used by <strong>the</strong> agent. However, <strong>the</strong><br />

agent needs <strong>to</strong> include <strong>the</strong> Request ID in its response <strong>to</strong> <strong>the</strong> management<br />

station.<br />

• Error Status—This field is used by <strong>the</strong> agent <strong>to</strong> notify <strong>the</strong> management<br />

station that <strong>the</strong> request was a failure. Different values are supported <strong>to</strong><br />

indicate <strong>the</strong> type of error. If no error occurred, <strong>the</strong> field is set <strong>to</strong> zero.<br />

• Error Index—This field (if possible) associates <strong>the</strong> error with a specific<br />

variable binding that is contained in <strong>the</strong> PDU message body.<br />

• Message Body—When management data is requested, it is done so using <strong>the</strong><br />

global OID of <strong>the</strong> management object. The agent in response sends <strong>the</strong><br />

value it has for <strong>the</strong> specified OID. This can be ei<strong>the</strong>r an ASN.1 data type or a<br />

NULL. It is also possible <strong>to</strong> specify <strong>the</strong> value of data type being requested.<br />

These messages are known as variable bindings. Each variable binding<br />

consists of four fields: length, OID, type, and value. When <strong>the</strong> variable<br />

binding is sent as a request form <strong>to</strong> <strong>the</strong> management station, only <strong>the</strong> length<br />

and OID fields will contain data. The amount of variable bindings contained<br />

in a message is undefined. Instead, <strong>the</strong> size of <strong>the</strong> SNMP message is defined<br />

by <strong>the</strong> agent and is typically 64 bytes in size. The message size is, however,<br />

an adjustable variable.<br />

• Enterprise—This field contains <strong>the</strong> variable-length OID of <strong>the</strong> object that has<br />

generated <strong>the</strong> Trap message.<br />

• Agent Address—This field contains <strong>the</strong> <strong>network</strong> address of <strong>the</strong> station that<br />

has generated <strong>the</strong> Trap.<br />

• Generic Trap Type—This field identifies <strong>the</strong> type of Trap message being sent<br />

(linkup, linkDown, coldStart, warmStart, enterpriseSpecific, and<br />

so on).<br />

• Specific Trap Type—This field is used <strong>to</strong> indicate <strong>the</strong> type of Trap being<br />

generated if it's not a generic Trap. If <strong>the</strong> generic Trap type is set <strong>to</strong><br />

enterpriseSpecific, this value is checked and compared <strong>to</strong> Traps listed in <strong>the</strong><br />

enterprise-specific MIB, which is indicated in <strong>the</strong> Enterprise Trap header<br />

field.<br />

• Time Stamp—This field indicates <strong>the</strong> time (in hundredths of a second) of <strong>the</strong><br />

Trap event relative <strong>to</strong> <strong>the</strong> system's bootstrap. It uses <strong>the</strong> MIB-2 sysUpTime<br />

variable at <strong>the</strong> time of <strong>the</strong> Trap generation <strong>to</strong> derive this value.<br />

• Message Body—This contains <strong>the</strong> variable bindings associated with <strong>the</strong> Trap<br />

event.<br />

• PDU Type—Specifically identifies this SNMP message as a GetBulkResponse<br />

operation.

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

Saved successfully!

Ooh no, something went wrong!