transport CreateSNMPTransport FindObject node- id if transport null re

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
transport = CreateSNMPTransport(FindObject($node->id));
if (transport == null)
return "SNMP transport err ";
oid = ".1.3.6.1.2.1.43.11.1.1.6";
vars = SNMPWalk(transport, oid);
if (vars == null)
return "SNMP SNMPWalk err ";
x = "";
foreach (v: vars) {
//x = x.v->name."=".v->value.";";
x .= v->value.";";
}
return x;