snmp

SNMP for Local printer?

て烟熏妆下的殇ゞ 提交于 2019-11-30 02:13:11
I am searching for a way to Get Information from a local printer. Maybe with the SNMP Protocol? The printer is connected with USB or PPI (parallel port). All printers have a internal TotalPagesCount and support SNMP. Here some examples of the Printers: Brother HL1430 Brother HL5150 Brother HL1230 Kyocera 1118 Kyocera 1128 Kyocera 2000 Kyocera 1300 Kyocera 3920 Kyocera 1920 Kyocera 1350 Is this possible? Thanks Cristian T I think SNMP is the correct approach. Most printers implement the standard printer MIB and the RFC 1213 MIB so any property you can get from there is going to be model

What SNMP library for .NET makes traps, sets or gets simple? [closed]

风格不统一 提交于 2019-11-30 02:02:07
What are the best SNMP libraries to use with .NET? Specifically for listening for traps or sending set or get requests. I am using the Sharp SNMP Suite (#SNMP) : LGPL, Mono compatible, developed in C# 3.0, has very good API. Hi as the author of #SNMP, I try my best to be unbiased here :) I have a blog post here which is a simple evaluation report. http://www.lextm.com/index.php/2007/12/product-review-snmp-libraries-for-net-evaluation-report/ In my opinion, PowerSNMP is the leading one which has both complete feature set and simple/natural API. There are many commercial and open source products

snmp

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 21:07:04
1 snmptranslate .1.3.6.1.2.1.1.3.0 # 查看映射关系 2 DISMAN-EVENT-MIB::sysUpTimeInstance 3 snmpdf -v 1 -c public localhost # SNMP监视远程主机的磁盘空间 4 snmpnetstat -v 2c -c public -a 192.168.6.53 # SNMP获取指定IP的所有开放端口状态 5 snmpwalk -v 2c -c public 10.152.14.117 .1.3.6.1.2.1.1.3.0 # SNMP获取主机启动时间 6 # MIB安装(ubuntu) 7 # sudo apt-get install snmp-mibs-downloader 8 # sudo download-mibs 9 snmpwalk -v 2c -c public 10.152.14.117 sysUpTimeInstance # SNMP通过MIB库获取主机启动时间 来源: https://www.cnblogs.com/alog9/p/11532558.html

IOMA 实现snmp trap监控

旧城冷巷雨未停 提交于 2019-11-29 19:10:50
1、 修改服务器端 Read SNMP Community 设置,默认是public。将public修改成你自己设置的read community,再重启snmptrapd服务。 [root@localhost ~]# vi /etc/snmp/snmptrapd.conf authCommunity log,execute public traphandle default /usr/local/4cman_ioma/ioma/program/setup/conf/trap.sh [root@localhost ~]# systemctl restart snmpd [root@localhost ~]# systemctl restart snmptrapd [root@localhost ~]# 2、在对应的被监控主机上,创建SNMP TRAP监控项(在路由器、交换机等多个网卡设备上,请设置好trap发送的IP地址,要与被监控主机IP地址一样)。 3、 最后再创建告警触发器。(此触发器不需要在问题中显示,所以有下面2种设置方法。)    第一种方法:    第二种方法:      来源: https://www.cnblogs.com/ccccwork/p/11527777.html

Linux系统安装snmp服务

霸气de小男生 提交于 2019-11-29 19:02:00
Linux安装snmp详解 Snmp一种网络之间的传输协议,通过snmp可以采集很多指标比如cpu、内存及磁盘的信息,现在越来越多的网络设备基本上都支持snmp,本文介绍了snmp的安装过程。 二、安工具/原料 SecureCrt Xftp 三、安方法/步骤 l 从网上下载snmp的相关tar包,然后上传到服务器中,然后解压安装包,执行如下命令:tar -zxvf net-snmp-5.7.2.1.tar.gz l 修改解压后的文件名称,默认解压后的文件名称为tar包前面的内容。执行命令:mv net-snmp-5.7.2.1 net-snmp l 然后进入net-snmp的目录,执行下面的命令:./configure --prefix=/usr/local/net-snmp --with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-mib-modules="ucd-snmp/diskio" l 输入该命令后,会有一个交互的过程,所有的交互直接回车即可。configure运行完成后,执行make指令。 l make命令执行完毕后,记得切换到root用户执行命令make install,进行安装

How can i get a printer's make and model in Java?

爷,独闯天下 提交于 2019-11-29 13:22:22
I'm actually working on a Java application that shares printers to a server, and I need this application to get the make and model of the printers it shares. I know this question has been asked three or four times but nobody seems to have found an answer. I've tried this code : PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null); for (PrintService printer : printServices){ System.out.println(printer.getDefaultAttributeValue(PrinterMakeAndModel.class)); System.out.println(printer.getAttribute(PrinterURI.class)); } the first print always returns a null string and

PHP SNMP - Cannot find module

天涯浪子 提交于 2019-11-29 09:31:22
I've enabled the SNMP module was trying to the functions in the module. I have set the MIBDIRS environment variable to where I have my mibs but I'm still getting these "Cannot find module" warnings: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (NOTIFICATION-LOG

PHP cant find SNMP modules under Windows 7

本秂侑毒 提交于 2019-11-29 08:51:25
I've enabled the SNMP module was trying to the functions in the module. I have set the MIBDIRS environment variable to where I have my mibs but I'm still getting these "Cannot find module" warnings: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (NOTIFICATION-LOG

How can I check the data transfer on a network interface in python?

你说的曾经没有我的故事 提交于 2019-11-29 07:28:49
There is a socket method for getting the IP of a given network interface: import socket import fcntl import struct def get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl( s.fileno(), 0x8915, # SIOCGIFADDR struct.pack('256s', ifname[:15]) )[20:24]) Which returns the following: >>> get_ip_address('lo') '127.0.0.1' >>> get_ip_address('eth0') '38.113.228.130' Is there a similar method to return the network transfer of that interface? I know I can read /proc/net/dev but I'd love a socket method. Mike Pennington The best way to poll

Zabbix监控系统系列之十二:SNMP Traps主动告警

拟墨画扇 提交于 2019-11-29 06:56:08
SNMPTrap监控主要用于设备发生故障时的主动通知的监控,比如存储监控硬盘故障、网络监控抖动; 整个流程说明大体如下: 1.监控对象发送SNMPTrap信息到snmptrapd(Net-SNMP)服务器, 2.snmptrapd服务器将接收到的SNMPTrap信息发送给SNMPTT(或者Perl trap receiver), 3.SNMPTT(或者Perl trap receiver)将按照指定的数据格式将SNMPTrap信息写入SNMPTrapperFile, 4.Zabbix服务器的snmptrapper进程将读取SNMPTrapperFile的内容,对其进行解析,将值传递给对应的监控对象,并保存数据到DB。 ※ 如果trap未设置为任何监控项的值,Zabbix默认记录不匹配的trap。(通过Administration → General → Other中的“Log unmatched SNMP traps”配置。) [配置步骤] Zabbix 功能配置: -- 部署Net-SNMP组件 yum -y install net-snmp* systemctl enable snmptrapd.service -- SNMP Trap配置 wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest