We got some devices with one strange concept.
Snmp Get values for 2 oids
identRectifierSerialNumbers.0 = 4577,34578,34579,34580,XXXXX,XXXXX,XXXXX,XXXXX,XXX XX,XXX XX,XXXXX,XXXXX,X
systemRectifierCurrents.0 = 020,010,016,015,XXX,XXX,XXX,XXX,XXX,XXX,XXX,XXX,XX X,XXX,X XX,XXX,XXX,XXX,X
Is there a way to create a snmp discovery using the items from a get request instead of walk?
Idea is to preprocess using javascript
Snmp Get values for 2 oids
identRectifierSerialNumbers.0 = 4577,34578,34579,34580,XXXXX,XXXXX,XXXXX,XXXXX,XXX XX,XXX XX,XXXXX,XXXXX,X
systemRectifierCurrents.0 = 020,010,016,015,XXX,XXX,XXX,XXX,XXX,XXX,XXX,XXX,XX X,XXX,X XX,XXX,XXX,XXX,X
Is there a way to create a snmp discovery using the items from a get request instead of walk?
Idea is to preprocess using javascript
Code:
var lld = [];
var lines = value.split(",");
var lines_num = lines.length;
for (i = 0; i < lines_num; i++)
{
var row = {};
row["{#SERIAL}"] = lines[i]
lld.push(row);
}
return JSON.stringify(lld);