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

  • 相关阅读:
    ArrayList用法
    MessageBox
    将文本文件导入Sql数据库
    在桌面和菜单中添加快捷方式
    泡沫排序
    Making use of localized variables in javascript.
    Remove double empty lines in Visual Studio 2012
    Using Operations Manager Connectors
    Clear SharePoint Designer cache
    Programmatically set navigation settings in SharePoint 2013
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/5091529.html
Copyright © 2011-2022 走看看