snmp

Use threading to process file chunk by chunk

妖精的绣舞 提交于 2019-12-02 03:20:51
问题 I have a arraylist which consists of 5000 IP Addresses. For each IP Address, I want to execute a SNMPGet request and a FTPDownload command. I want to implement it in a fashion, wherein at a time 2 different threads run simultaneously for the first five IP Addresses. After the execution of these IP Addresses, next 2 IP Addresses will be executed on these threads. Can anyone help how to do it? Here, connection is a class which extends the thread and the work to be implemented is written in its

How to find counters of printers through SNMP

ぐ巨炮叔叔 提交于 2019-12-02 02:52:23
问题 I'm currently working on a project, involving getting information from printers through SNMP. Now the printer I've been testing/working on, is a Lexmark X950. A problem I've been struggling with, is that I want this program to work for HP or Kyocera or Brother printers aswell, but the OIDs I used only seem to work on Lexmark. Here are some of the OIDs I used: <OID type="counter"> <name>Count total printed</name> <OIDN>1.3.6.1.4.1.641.2.1.5.1</OIDN> </OID> <OID type="counter"> <name>count

How to find counters of printers through SNMP

天大地大妈咪最大 提交于 2019-12-02 02:48:33
I'm currently working on a project, involving getting information from printers through SNMP. Now the printer I've been testing/working on, is a Lexmark X950. A problem I've been struggling with, is that I want this program to work for HP or Kyocera or Brother printers aswell, but the OIDs I used only seem to work on Lexmark. Here are some of the OIDs I used: <OID type="counter"> <name>Count total printed</name> <OIDN>1.3.6.1.4.1.641.2.1.5.1</OIDN> </OID> <OID type="counter"> <name>count total printed since last boot</name> <OIDN>1.3.6.1.2.1.43.10.2.1.5</OIDN> </OID> <OID type="counter"> <name

SDN-based Network Management Solution

本小妞迷上赌 提交于 2019-12-02 02:43:09
SDN-based Network Management Solution 摘要: 在此项目中,我们开发了一种网络管理应用程序,以监视和控制由支持OpenFlow的交换机和支持SNMP的设备组成的企业网络。 我们正在利用由控制器集中式软件定义网络控制器旋转的REST接口来运行此应用程序。 我们正在使用的SDN控制器是一个名为OpenDaylight(ODL)的开源控制器。 我们已使用SNMP和OpenFlow南向插件与网络设备进行通信。 为了测试该应用程序,我们在GNS3中模拟了一个网络,该网络结合了传统设备和OpenFlow交换机。 介绍: 用Opendaylight控制器结合提供的SNMP等插件,搭建网络拓扑。我们检索网络统计信息,链路统计信息以及有关基础设备(例如交换机和路由器)的信息,以控制和改善网络性能。尽管SDN具有许多优点,但它仍然缺乏良好的网络管理解决方案,并且难以让运营商实现全面部署、完全替代其原有的网络管理解决方案。因此有必要用SDN来结合传统网络管理方法(因为现在的底层都是传统的)进行管理。 OpenDaylight介绍: 模型驱动的服务抽象层(MDSAL):它将YANG模型用作行业标准,以将基础设备映射到网络应用程序,以随时支持现有网络中的技术和硬件。 支持标准网络管理的模块化插件式南向接口方法, 与这些其他设备和OpenFlow一起也受支持

Use threading to process file chunk by chunk

≡放荡痞女 提交于 2019-12-02 02:34:23
I have a arraylist which consists of 5000 IP Addresses. For each IP Address, I want to execute a SNMPGet request and a FTPDownload command. I want to implement it in a fashion, wherein at a time 2 different threads run simultaneously for the first five IP Addresses. After the execution of these IP Addresses, next 2 IP Addresses will be executed on these threads. Can anyone help how to do it? Here, connection is a class which extends the thread and the work to be implemented is written in its run() method. Please help. Connection newConnection =new Connection(0); Connection newConnection1 =new

Sending SNMP Traps containing custom data

孤人 提交于 2019-12-01 19:50:37
A client has requested that instead of email alerts that we send SNMP Traps to their Nagios server instead. The only thing I knew about SNMP before yesterday was that it sounded like an acronym, so please excuse (and correct me on) any misconceptions about it that I may have. The only information that needs to be sent in the trap pertains to data about the event we are alerting our client about, which is just a couple of values pulled from our database. Needless to say these aren't in any sort of MIB, nor do they have any OIDs, and this is where I'm having trouble finding answers. I can't

ubuntu snmp 安装与配置

我是研究僧i 提交于 2019-12-01 12:16:17
0.说明 关于一个完整的教程,还是那句话,国内的要么不完整,要么就太旧了,而且思路也不清晰,所以这里写一篇完整的给大家分享一下。 虽然对于Linux主机的监控可以通过执行特定的命令来完成,但是相比之后,通过snmp的方式来获取Linux主机的信息则会更轻松简单些,只不过在使用前的配置可能需要花多一点时间,不过这绝对值得!而且如果需要开发Linux主机的监控软件,那使用snmp肯定是首选,毕竟它可以获得的信息太多太多! 后面的内容就来分享一下在Ubuntu上安装、配置、启动snmp以及进行远程测试的完整过程。 这里使用的操作系统为:Ubuntu 15.10 1.安装 我们需要安装下面三个软件包: snmpd:snmp服务端软件 snmp:snmp客户端软件 snmp-mibs-downloader:用来下载更新本地mib库的软件 虽然最后我会用另一台主机来进行远程的测试,不过刚开始时,还是在服务端也把snmp客户端软件安装好,方便做一些基本的测试。 执行下面的命令安装这三个软件: ubuntu@leaf:~$ sudo apt-get install snmpd snmp snmp-mibs-downloader 需要注意的是,在安装snmp-mibs-downloader的过程中,程序会帮我们自动下载mib库,并保存在/usr/share/mibs目录中: ubuntu@leaf:

ZABBIX监控TCP连接状态

我与影子孤独终老i 提交于 2019-12-01 11:53:30
一、获取监控数据 # /bin/netstat -an|awk '/^tcp/{++S[$NF]}END{for(a in S) print a,S[a]}' LISTEN 6 ESTABLISHED 1 TIME_WAIT 1 TCP各监控状态描述 二、监控脚本 # cat /etc/zabbix/tcp_conn_status.sh #!/bin/bash #this script is used to get tcp and udp connetion status #tcp status metric=$1 tmp_file=/tmp/tcp_status.txt /bin/netstat -an|awk '/^tcp/{++S[$NF]}END{for(a in S) print a,S[a]}' > $tmp_file case $metric in closed) output=$(awk '/CLOSED/{print $2}' $tmp_file) if [ "$output" == "" ];then echo 0 else echo $output fi ;; listen) output=$(awk '/LISTEN/{print $2}' $tmp_file) if [ "$output" == "" ];then echo 0 else echo

Looking for an .NET SNMP Extension agent

家住魔仙堡 提交于 2019-12-01 11:32:10
问题 I am developing a C# (targeting full framework 4) windows app. I need that app to write to a few simple counters and more importantly raise (or should that be fire) a few SNMP traps when significant app events occur. Now most .NET SNMP libraries avalable can do this, so far so good. However I have one significant further requirement; my MIB must add to the PC's own MIB, it must not replace all the good SNMP things that come "out of the bag" with your Windows PC. This last one seems to be the

How do I collect bandwidth utilization data on remote devices/switches/servers?

我是研究僧i 提交于 2019-12-01 10:46:16
How do I collect bandwidth usage/utilzation on devices/switches. From what I understand there are systems that do something like this. They seem to all have snmp in common. I am looking for imformation on possibly rolling my own system for collecting this data that will be later used on a web-based front-end. For a real-world but perhaps a bit over complicated example of what I'm talking about take a look at ubersmith de . Most of it will be in a LAMP environment. Thanks. On pure SNMP point of view, there is a Management Information Base (MIB) on your SNMP device. This base is a kind of tree