java - 使用 snmp 获取打印机制造商

标签 java printing snmp oid

我目前正在开发一个项目,该项目涉及使用 SNMP 协议(protocol)从打印机获取值。其中一项任务是扫描特定网络并获取可用的打印机+制造商。

我尝试过这个 oid:1.3.6.1.2.1.43.8.2.1.14.1.1

现在这个OID适用于Brother,但不适用于Kyocera。是否有适用于(几乎)所有打印机的 OID 来获取打印机的制造商?

问候

最佳答案

来自RFC 1213你可以尝试 sysDescr(1.3.6.1.2.1.1.1 ):

系统描述

"A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software. It is mandatory that this only contain printable ASCII characters."

1213 的系统部分还有其他类似的有趣数据,例如 sysObjectID (1.3.6.1.2.1.1.2.0):

sysObjectID

DESCRIPTION

The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining "what kind of box" is being managed. For example, if vendor "Flintstones, Inc." was assigned the subtree 1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'."

关于java - 使用 snmp 获取打印机制造商,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22325854/

相关文章:

c++ - 使用 Qt 和 C++ 创建 SNMP 代理

java - 使用递归查找字符串是否具有所有唯一字符

java - 无法解析符号 HttpPost

java - 使用 javax.print 打印时选择 bin/tray

linux - Linux上COM口拦截和数据修改

c - net-snmp:如何注册新的企业陷阱?

java - 作业调度 setRequiresDeviceIdle(true) 和 setPeriodic() 不工作

java - 线程 "main"java.lang.StringIndexOutOfBoundsException : String index out of range: 10 中的异常

html - 第二页的边距不起作用

c++ - 需要一个简单的 SNMP 库 c++