随笔分类 -  SNMP

摘要:SNMP使用的协议为UDP,默认端口为161和162. 使用iptables 命令如下: iptables -A INPUT -p udp -m udp --dport 161:162 -j DROP 使用mib browser采集设备上的节点,会超时(timeout) 在串口打开tcpdump打印 阅读全文
posted @ 2016-05-13 15:27 hbg-rohens 阅读(1721) 评论(1) 推荐(0) 编辑
摘要:cd /tmp/ 上传: tftp -gr libnetsnmp_5.4.4-1_ar71xx.ipk 192.168.11.56 安装: opkg install libnetsnmp_5.4.4-1_ar71xx.ipk 启动调试模式: snmpd -f -Lo: 阅读全文
posted @ 2016-03-29 15:54 hbg-rohens 阅读(802) 评论(0) 推荐(0) 编辑
摘要:AgentXRoles1、masterAnentityactinginamasteragentroleperformsthefollowingfunctions:-AcceptsAgentXsessionestablishmentrequestsfromsubagents.接受来自于subagent... 阅读全文
posted @ 2015-12-28 11:46 hbg-rohens 阅读(753) 评论(0) 推荐(0) 编辑
摘要:OpenWRT uses UCI (/etc/config/snmpd) to generate the /etc/snmp/snmpd.conf , so you cannot simply edit this file and restart snmpd.翻译:OpenWRT利用UCI(/etc... 阅读全文
posted @ 2015-11-23 11:17 hbg-rohens 阅读(2444) 评论(0) 推荐(0) 编辑
摘要:此结构体中定义了各个回调函数,在函数init_ksm(E:\code\net-snmp-5.4.2.1\snmplib)中进行了初始化。void init_ksm(void){ struct snmp_secmod_def *def;//申请内存 def = SNMP_MALLOC_STRUCT(s... 阅读全文
posted @ 2015-08-26 10:03 hbg-rohens 阅读(395) 评论(0) 推荐(0) 编辑
摘要:函数 sprint_realloc_by_type (E:\code\net-snmp-5.4.2.1\snmplib\mib.c)的主要作用是:解析传入的mib中的节点,根据mib节点类型,将其转换为可以识别的数字存入buffer中。intsprint_realloc_by_type(u_char... 阅读全文
posted @ 2015-08-21 14:46 hbg-rohens 阅读(360) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示