zoukankan      html  css  js  c++  java
  • 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相关信息,譬如邻居列表。

  • 相关阅读:
    内网穿透事件参考
    mysql的优化总结
    linux切换普通用户遇bash-4.1解决
    python爬虫匹配实现步骤
    restful设计参考
    php扩展安装
    python算术
    python 文件操作
    python生成器
    Spring框架的事务管理之基于AspectJ的XML方式(重点掌握)
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/5091529.html
Copyright © 2011-2022 走看看