我正在尝试执行以下请求,结果应该是大约 900 个变量,而不是 100 个。我发送 1 或 10 个 oid 并不重要,我总是得到不超过 100 个变量。我做错了什么?
var readCommunity = new OctetString("XXXXX");
var oidsList = new List<string>
{
"1.3.6.1.2.1.2.2.1.3",
"1.3.6.1.2.1.2.2.1.5",
"1.3.6.1.2.1.2.2.1.6",
"1.3.6.1.2.1.2.2.1.7",
"1.3.6.1.2.1.2.2.1.8",
"1.3.6.1.2.1.2.2.1.2",
"1.3.6.1.2.1.2.2.1.10",
"1.3.6.1.2.1.2.2.1.16",
"1.3.6.1.2.1.2.2.1.14",
"1.3.6.1.2.1.31.1.1.1.6"
};
var oids = oidsList.Select(oid => new Variable(new ObjectIdentifier(oid))).ToArray();
ISnmpMessage request= new GetBulkRequestMessage(
0,
VersionCode.V2,
readCommunity,
0,
1000,
oids);
var response = request.GetResponse(60000, new IPEndPoint(IPAddress.Parse("1.1.1.1"), 161));