求助:WMI 如何列举所有snmp的MIB表的内容?
求教:网上资料比较匮乏,请教各位大侠!
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.