AgentX Roles
1、master
An entity acting in a master agent role performs the following functions:
- Accepts AgentX session establishment requests from subagents.
接受来自于subagents的会话请求
- Accepts registration of MIB regions by subagents.
接受来自于subagents的会话请求
- Sends and accepts SNMP protocol messages on the agent‘s
specified transport addresses.
接受来自于subagents的会话请求
- Implements the agent role Elements of Procedure specified for
the administrative framework applicable to the SNMP protocol
message, except where they specify performing management
operations. (The application of MIB views, and the access
control policy for the managed node, are implemented by the
master agent.)
- Provides instrumentation for the MIB objects defined in RFC
1907 [17], and for any MIB objects relevant to any
administrative framework it supports.
- Sends and receives AgentX protocol messages to access
management information, based on the current registry of MIB
regions.
基于注册的mib库文件,接收和发送agentx协议消息
- Forwards notifications on behalf of subagents.
转发subagents消息
2、subagent
An entity acting in a subagent role performs the following functions:
- Initiates AgentX sessions with the master agent.
初始化与master端的会话
- Registers MIB regions with the master agent.
向master端注册mib库
- Instantiates managed objects.
实例化对象
- Binds OIDs within its registered MIB regions to actual
variables.
绑定对象
- Performs management operations on variables.
实现管理动作
- Initiates notifications.
初始化通知
=======================================
agentX的报文类型:
agentx-Open-PDU (1),
agentx-Close-PDU (2),
agentx-Register-PDU (3),
agentx-Unregister-PDU (4),
agentx-Get-PDU (5),
agentx-GetNext-PDU (6),
agentx-GetBulk-PDU (7),
agentx-TestSet-PDU (8),
agentx-CommitSet-PDU (9),
agentx-UndoSet-PDU (10),
agentx-CleanupSet-PDU (11),
agentx-Notify-PDU (12),
agentx-Ping-PDU (13),
agentx-IndexAllocate-PDU (14),
agentx-IndexDeallocate-PDU (15),
agentx-AddAgentCaps-PDU (16),
agentx-RemoveAgentCaps-PDU (17),
agentx-Response-PDU (18)
其中1-4和12-17部分属于“administrative processing”, 5-11属于snmp请求处理。