求助:WMI 如何列举所有snmp的MIB表的内容?

channelv 2007-08-10 09:40:49
求教:网上资料比较匮乏,请教各位大侠!

WMI脚本部分代码:
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\snmp\localhost")
Set colItems = objWMIService.ExecQuery("SELECT * FROM SNMP_RFC1213_MIB_ifTable", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

例如上面的VB代码只能列举mib表ifTable部分的内容,如何把该MIB表的所有内容列举出来呢?

目的:需要读出ADSL modem的参数内容。不是标准的位置。

位置: http://support.ipmonitor.com/mib ... lAtucChanCurrTxRate

ADSL-LINE-MIB :: adslAtucChanCurrTxRate
Name: adslAtucChanCurrTxRate
Oid: 1.3.6.1.2.1.10.94.1.1.4.1.2
Path: iso . org . dod . internet . mgmt . mib-2 . transmission . adslMIB . adslLineMib . adslMibObjects . adslAtucChanTable . adslAtucChanEntry . adslAtucChanCurrTxRate
Type Gauge32
Value-Ranges 0 to 4294967295
Access read-only
Status current
Description

--------------------------------------------------------------------------------

Actual transmit rate on this channel.


...全文
229 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
jyhnly 2010-05-18
  • 打赏
  • 举报
回复
我也是。求一个C语言的。从另一台局域网中的电脑中获得电脑是路着的MIB Browser的MIB表。
qisong123456 2008-09-16
  • 打赏
  • 举报
回复
同求
channelv 2008-01-02
  • 打赏
  • 举报
回复
求教!
channelv 2007-08-10
  • 打赏
  • 举报
回复
刚才位置错了,应该是:
http://support.ipmonitor.com/mibs/ADSL-LINE-MIB/item.aspx?id=adslAtucChanCurrTxRate

1,502

社区成员

发帖
与我相关
我的任务
社区描述
VB 网络编程
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧