Dart PowerSNMP GetTable不返回任何记录
我正在为.Net使用dart powerSNMP。 我正在尝试使用GetTable()查询表,它对我不起作用 下面的C#代码不返回任何行Dart PowerSNMP GetTable不返回任何记录,snmp,dart-communications,Snmp,Dart Communications,我正在为.Net使用dart powerSNMP。 我正在尝试使用GetTable()查询表,它对我不起作用 下面的C#代码不返回任何行 const string address = "xxx.xxx.xx.x"; using (var mgr = new Manager()) { var slave = new ManagerSlave(mgr); slave.Socket.ReceiveTimeo
const string address = "xxx.xxx.xx.x";
using (var mgr = new Manager())
{
var slave = new ManagerSlave(mgr);
slave.Socket.ReceiveTimeout = 13000;
try
{
//Retrieve table using GetNext requests
Variable[,] table = slave.GetTable("1.3.6.1.4.1.14823.2.2.1.1.1.9",
SnmpVersion.Three,
null,
new Security()
{
AuthenticationPassword = "mypassword1",
AuthenticationProtocol = AuthenticationProtocol.Md5,
PrivacyPassword = "mypassword2",
PrivacyProtocol = PrivacyProtocol.Des
},
new IPEndPoint(IPAddress.Parse(address), 161),
0);
}catch(Exception ez)
{
}
}
这应该是从给定OID返回一组记录。但它没有给我任何回报。当我使用MIB浏览器时,我看到GetBulk操作为我获取所有记录
但是GetTable()在这里有什么问题?标记net snmp用于其他用途,所以不要误用它。由于我认为Dart支持部门不会监视任何讨论(该标记是我创建的),您应该尝试直接联系其支持部门,@LexLi感谢您添加了一个新标记。我没有足够的权限添加标记,这就是为什么最终使用了一个非常匹配的标记。