SNMP协议的7种PDU
来源:互联网 发布:python memoryerror 编辑:程序博客网 时间:2024/05/16 11:13
Simple Network Management Protocol i.e. SNMP is a simple request/response protocol in which SNMP manager communicates with SNMP agents/managed devices using SNMP PDU’s (Packet Data Unit). There are 7 types of SNMP PDUs which are used by SNMP manager to manage SNMP agents. These PDUs are used to communicate with managed devices by retrieving information from them, configuring and monitoring them. Let us now understand what are these 7 PDUs and what are their functions:
1.Get: It is a SNMP request sent by a manager to the agent to fetch the values of a specified variable or a list of variables. In SNMPv1, if in a get request one of the object instance in multiple-attribute request does not exist or is invalid, no response would be given, only an error message would return. In SNMPv2, in such a scenario, response would return for all other object instances or attributes except the invalid value i.e. partial response would be there rather than an error.
2.GetNext: It is a SNMP request sent by a manager to the agent to fetch the value of lexicographically next variable in the MIB (next to the one specified in variable binding). Iterative application of this request allows manager to “walk” through the entire MIB of the agent and determine all attribute names and values the agent support.
3.GetBulk: GetBulk is introduced in SNMPv2. The GetBulk operation is used by the manager to efficiently retrieve large blocks of data, such as multiple rows in a table. If in a GetBulk request one of the object instance in multiple-attribute request does not exist or is invalid, agent provides partial results. GetBulk request has two additional parameters “non-repeators” and “max-repetition”. For an instance if in getbulk pdu, non-repeators is set to n and max-repetitions is set to m, it implies that first n variables specified in variable binding will be treated like a normal getnext request and next variables in variable binding will be treated like getnext operation is repeated m times for each of them.
4.Set: It is a SNMP request sent by a manager to the agent to configure the required parameters on the managed device. If in a set request one of the object instance in multiple-attribute request does not exist or is invalid, value will not be set for any attribute i.e. the operation needs to be atomic.
5.Trap: It is a SNMP message sent by an agent to the manager to notify the manager of a problem with the device. This typically requires each device on the network to be configured to issue SNMP traps to one or more network managers that are awaiting these traps.
6.Informs: Informs are similar to traps but they are acknowledged and apart from being sent by an agent to manager, informs can be sent from one manager to another manager. Informs is introduced in SNMPv2.
7.Response: Respons PDU is the information sent by agent to the manager in response to the performed operation. It returns variable bindings and acknowledgement from agent to manager for Get, GetNext, GetBulk, Set and Inform. Error reporting is provided by error-status and error-index fields.
To understand format of each of the above SNMP PDU, visit here.
Hope you find the information presented here useful. Feel free to leave your footprints for any queries, feedback or suggestions in the comments section below.
- SNMP协议的7种PDU
- SNMP协议的7种PDU
- snmp 中的pdu协议数据单元定义
- snmp 中的pdu协议数据单元定义
- snmp 中的pdu协议数据单元定义
- 网络协议:SNMP协议PDU报文格式解析
- 关于SNMP的GetNextRequest PDU实现分析
- SNMP协议 PDU报文格式分析(BER编码)
- SNMP PDU 格式
- SNMP之PDU
- SNMP PDU Format总结
- SNMP PDU Format总结 .
- SNMP报文PDU格式
- SNMP报文PDU格式
- SNMP PDU解析
- SNMP的5种协议数据单元
- SNMP的5种协议数据单元
- SNMP的5种协议数据单元
- Fedora9的虚拟机安装
- 淘宝Web服务器Tengine正式开源
- android Toast大全(五种情形)(转)
- 【游戏设计】游戏设计师修炼秘籍 读书笔记三(说说IOS游戏水果忍者和捕鱼达人的事情)
- ORACLE用户解锁
- SNMP协议的7种PDU
- 开源需要规范——我的变量命名法则
- 程序员的十层楼
- getfilename.c
- (Android学习笔记一)Hello, Google Map
- UC故事2011/12/03 - 1 线程相关的东东
- HTML5版QQ游戏大厅将携欢乐斗地主亮相
- oracle数据库备份
- 加快模拟器运行速度,模拟器不能上网解决办法