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相关信息,譬如邻居列表。

 

转载于:https://www.cnblogs.com/rohens-hbg/p/5091529.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值