agnentX学习存在疑问?

在RFC2741中这样定义:

 

4.3中有如下段落:

   A general architectural division of labor between master agent and  subagent:

   master agent和subagent有这明确的分工:

   The master agent is MIB ignorant and SNMP omniscient, while the subagent is SNMP ignorant and MIB omniscient (for the  MIB  variables  it     instantiates ).  

     master端不关心mib但是关心SNMP,而subagent不关心SNMP只关心mib

     That is, master agents,exclusively, are concerned with SNMP protocol operations and the translations to and from AgentX protocol operations needed to

      也就是说,master agent关心SNMP协议相关操作,相关的snmp报文由agentX协议来进行执行(master 与 subagent之间的通信)

      carry them out; subagents are exclusively concerned with management instrumentation; and neither should intrude on the other's territory.

    subagents关心管理信息,他们互补打扰。

 

 

那么现在这里就有一个疑问,lldp的mib库文件对于snmp中如何使用?

lldp的mib定义在:

#define LLDP_OID  1,0,8802,1,1,2

#define SNMPTRAP_OID  1,3,6,1,6,3,1,1,4,1,0

static oid lldp_oid[] = {LLDP_OID}

 

我在net-snmp-5.4.4的代码中如何取出lldp相关信息,譬如邻居列表。

 

posted @ 2015-12-31 13:59  hbg-rohens  阅读(291)  评论(0编辑  收藏  举报