snmp

Why is SNMP usually run over UDP and not TCP/IP?

北城余情 提交于 2019-11-27 12:01:25
This morning, there were big problems at work because an SNMP trap didn't "go through" because SNMP is run over UDP. I remember from the networking class in college that UDP isn't guaranteed delivery like TCP/IP. And Wikipedia says that SNMP can be run over TCP/IP, but UDP is more common. I get that some of the advantages of UDP over TCP/IP are speed, broadcasting, and multicasting. But it seems to me that guaranteed delivery is more important for network monitoring than broadcasting ability. Particularly when there are serious high-security needs. One of my coworkers told me that UDP packets

Easy to use SNMP client library for c++? [closed]

戏子无情 提交于 2019-11-27 11:04:29
问题 What's an easy to use SNMP client library for c++? 回答1: Probably the best choice is net-snmp. Note that the library has "C" linkage but will work just fine with C++. 回答2: SNMP++ is also a nice and open source library for C++ developers. http://www.agentpp.com/api/cpp/snmp_pp.html 回答3: I have found that Net-SNMP does not support multi-threading with v3 type queries. So if you are writing an SNMP monitoring tool that will be polling multiple hosts then you will need to take this into

Linux snmp导入MIB库

这一生的挚爱 提交于 2019-11-27 09:39:21
Linux 中所使用的net-snmp自带了一些标准的MIB,但是世界上支持snmp的设备有无数种,各厂家都有自己的定义,这些定义不可能都包含在net-snmp自带的MIB中,因此,想要正确轮询一个这样的设备,必须载入厂家自己的MIB文件。 一般我们下载回来的MIB文件可能后缀名为.mib,为了清晰起见,一般改成 MIB_NAME.txt这样的形式,当然不改也可以,这个MIB文件叫什么名字无关紧要。 系统要载入一个MIB文 件,net-snmp必须知道从哪里载入。默认情况下是下边两个目录: 1. $HOME/.snmp/mibs 2. /usr/local/share/snmp/mibs 不过也有些发行版会改变这个默认路径,那么可以用下边两种方法之一获取它所使用的路径。 1.如果系统安装了net-snmp-config: # net-snmp-config --default-mibdirs 2.如果未安装net-snmp-config: # snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR init_mib: Seen MIBDIRS: Looking in '/root/.snmp/mibs:/usr/share/snmp/mibs' for mib dirs ... 二、net-snmp加载MIB文件方法

SNMP: ASN.1 MIB Definitions. Referencing a table within a table

早过忘川 提交于 2019-11-27 05:37:53
问题 Its's been a while since I've written ASN.1 so.. Our data model is comprised of several table definitions within a table. This is not workable in SNMP, so we need to flatten the definitions. The easiest way to do this would be to have the embedded table indexed by the same OID as the parent table. Thus someTableEntry ::= SEQUENCE { someTableIndex Integer32, someTableDomain Integer32, someTableFooTable SEQUENCE OF SomeTableFooTable } becomes someTableEntry ::= SEQUENCE { someTableIndex

NA西游第九难:SNMP和GRE

余生颓废 提交于 2019-11-27 01:36:13
SNMP SNMP(Simple Network Management Protocol,简单网络管理协议)提供了对设备的网络管理功能,网络管理站可以远程查看设备的状态,同时设备也能够在特定类型的事件发生时向网络管理工作站发出警告。 SNMP就是规定网管站和设备之间如何传递管理信息的应用层协议。SNMP定义了网管管理设备的几种操作,以及设备故障时能向网管主动发送告警。 三种角色 网络管理站(NMS):向被管理设备发送各种查询报文,以及接受被管理设备发送的告警; 代理进程(Agent):是被管理设备上的一个代理进程,用于维护被管理设备的信息数据并响应来自NMS的请求,把管理数据汇报给发送请求的NMS。Agent的作用为接收、解析来自网管站的查询报文;根据报文类型对管理变量进行Read或Write操作,并生成响应报文,返回给网管站;根据各协议模块对告警触发条件的定义,在达到触发条件后,如进入、退出系统视图或设备重新启动等,相应的模块通过Agent主动向网管站发送警告,报告所发生的事件; 被管理设备:接受网管的管理,产生和主动上报告警; 基本配置 配置路由器模拟代理站设备,启动SNMP agent [agent]snmp-agent 查看SNMP信息 [agent]display snmp-agent sys-info The contact person for this

How can I get MIBs list from a remote server by using PHP?

让人想犯罪 __ 提交于 2019-11-26 23:41:22
问题 I am working on a project that involves SNMP. Basically I need to construct MIB and OID tree in PHP. I know that there are programs that do this already, but I am trying to implement my own version to incorporate with my webapp. What I know : I am familiar with php SNMP function. I can do SNMPWALk to get OIDs and such. Unfortunately there is no function that I know of that finds all MIBs and parses them. What I need : Get all MIB docs first from remote server, then based on each docs get

Cisco IOS Switch Hardening Template

ぃ、小莉子 提交于 2019-11-26 16:27:22
Here is my template for access layer switches in my environment. Some of blue color words will need to replace with your specific information. Red words will be the explanation for next commands. Some commands may only apply to certain devices. Not all commands will work on every device series (router/switch) or on every IOS version. Always test it first before apply them to your production devices. version 15.0 ! Disable PAD service: no service pad no service password-recovery ! Configure Service Timestamps for Debug and Log Messages: service timestamps debug datetime msec show-timezone

Monitoring Juniper SRX Firewall CPU, Memory and Flow Session Information from PRTG

泄露秘密 提交于 2019-11-26 16:16:28
While using PRTG to monitor our firewalls, we found by default it could not poll Juniper SRX’s CPU and flow information with auto discovery method. From command line, we are able to use following SNMP Mib to get CPU, Memory and Flow Session information, but not directly from PRTG. PRTG is powerful network monitoring tools for enterprise with following features I likes : Easy to deployment, as it said it can be installed in 2 minutes Auto discovery methods to find monitoring elements. Support distribution implementation. You could install agents it in multiple location. Support Multiple

Enabling SNMP v3 – Part 1: Cisco IOS Devices – Disable SNMP v1 and SNMP v2c

匆匆过客 提交于 2019-11-26 16:15:45
1. Enable SNMPv3 It is time to retire SNMPv2 on our network environment. Here is sample configuration for all of our Cisco devices. Some of old devices do not support AES , then DES will be the choice. ip access-list standard snmp-Allow permit 192.168.1.0 0.0.0.255 snmp-server view ReadAccess iso included snmp-server view ReadAccess 1.3.6.1.6.3.18 excluded snmp-server view ReadAccess 1.3.6.1.6.3.16 excluded snmp-server view ReadAccess 1.3.6.1.6.3.15 excluded snmp-server view ReadAccess 1.3.6.1.2.1.4.21 excluded snmp-server view ReadAccess 1.3.6.1.2.1.4.22 excluded snmp-server view ReadAccess

[zabbix社群QA] “专家坐诊”第21期问答汇总

大兔子大兔子 提交于 2019-11-26 12:20:53
Q:如何让告警一直在主面板显示,除非我人工确认 A:选择最近问题,可以看到最近的所有问题,包括已恢复的问题 Q:【问题现象】 我的wlc host经常Timeout while connecting to "10.58.1.130:161".应该如何排查? 【问题前操作】 zabbix 通过自动发现检测到wlc上的800多ap,频率为5分钟。发现后,问题出现 【已做排查】 出现问题时,zabbix snmpwalk 能取到wlc 的ap信息。 A:zabbix_server.conf上设置的超时时间是多少? Q:4 A:可以改为30,重启zabbix服务后看下是否还有这个问题。 Q:配置更改后已重启,问题还未恢复,还需要作其他操作吗? A:需要等待监控项成功获取一次数据才会变成绿色。如果需要排查问题,需要在最新数据界面,找一下是否有部分监控项到了时间间隔,但是数据却没更新的。 Q:部分监控获取到了数据。另snmp监控 ap设置的5分钟间隔已过去 A:你的自动发现规则是怎么配置的? Q: A:那个自动发现规则里的snmp OID的内容可以复制出来吗? Q:SNMPv2-SMI::enterprises.9.9.513.1.1.1.1.5.{#SNMPINDEX} A:是第一张图的那个snmp OID的全部内容,我感觉是写错了 Qdiscovery[{#APNAME},SNMPv2