25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

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.

SNMP<br />

Manager<br />

walk ifType<br />

ifMtu.1=d<br />

ifType.1 = a<br />

ifType.2 = b<br />

ifType.3 = c<br />

walk returned<br />

ifType.1=a<br />

ifType.2=b<br />

ifType.3=c<br />

Note that, had the getNext request been for an object in the System Group or<br />

SNMP Group MIBs, the SNMP agent would have recognized the object <strong>and</strong><br />

responded directly to the manager. No subagent would have been involved in<br />

this circumstance.<br />

While the concept of the get, getNext, getBulk, <strong>and</strong> set processes are<br />

somewhat simple, the process of executing a walk warrants additional<br />

discussion. As noted previously, a walk request is never actually sent to the<br />

SNMP agent. Instead, the walk is a manager convention, <strong>and</strong> is implemented as<br />

a series of getNext requests. In each iteration of the series, the object returned<br />

previously by the agent becomes the next object specified on the getNext<br />

request. The first time the agent returns a value outside of the range specified on<br />

the walk request, the walk ends. To demonstrate this, assume that there are<br />

three instances of ifType at the time a walk is issued for the ifType object: ifType.1<br />

through ifType.3. The processing of the walk proceeds as illustrated in<br />

Figure 17-6.<br />

getNext ifType<br />

ifType.1 = a<br />

getNext ifType.1<br />

Figure 17-6 An example of a walk on ifType<br />

SNMP<br />

Agent<br />

getNext ifType<br />

ifType.1 = a<br />

getNext ifType.1<br />

ifType.2 = b ifType.2 = b<br />

getNext ifType.2<br />

getNext ifType.2<br />

ifType.3 = c ifType.3 = c<br />

getNext ifType.3<br />

ifMtu.1-d<br />

getNext ifType.3<br />

ifMtu.1-d<br />

<strong>TCP</strong><strong>IP</strong><br />

Sub-agent<br />

Interface MIB<br />

ifDescr.2<br />

ifDescr.3<br />

ifType<br />

ifType.1 = a<br />

ifType.2 = b<br />

ifType.3 = c<br />

ifMtu<br />

ifMtu.1=d<br />

ifMtu.2=e<br />

ifMtu.3=f<br />

ifSpeed<br />

ifSpeed.1=g<br />

ifSpeed.2=h<br />

ifSpeed.3=i<br />

ifPhysAddress<br />

Chapter 17. Network management 637

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

Saved successfully!

Ooh no, something went wrong!