如何通过c#中的snmp获取打印机型号? [英] How do i get printer model via snmp in c#?

查看:118
本文介绍了如何通过c#中的snmp获取打印机型号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我想要做的是通过 c# 中的 SNMP 从网络打印机检索 hp 的打印机模型.搜索 SO 没有产生任何有用的东西.

Basicaly what i want to do is retrieve hp's Printer Model from network printer via SNMP in c#. Searching SO didn't yield anything usefull.

我从哪里开始?

推荐答案

您需要编写一个 SNMP 管理器或使用现有的库(那里有很多;这是我使用的这是另一个.)从那里您将轮询适当的 OID 以获取您的打印机型号(您将希望查看该值的打印机 MIB).

You'll need to either write an SNMP manager or use an existing library (there are plenty out there; this is the one I use, and here's another.) From there you'll poll the apropriate OID to get your printer model (you'll want to see the printer's MIB for that value).

这篇关于如何通过c#中的snmp获取打印机型号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆