Comparing version 3.4.2 to 3.4.3
@@ -9,2 +9,3 @@ var snmp = require ("../"); | ||
port: options.p, | ||
transport: options.t, | ||
engineID: options.e | ||
@@ -26,4 +27,6 @@ }; | ||
console.log (now + ": " + trapType + ": " + trap.rinfo.address + " : " + trap.pdu.enterprise); | ||
} else { | ||
console.log (now + ": " + trapType + ": " + trap.rinfo.address + " : " + trap.pdu.varbinds[1].value); | ||
} else { | ||
for (var i = 0; i < trap.pdu.varbinds.length; i++) { | ||
console.log (now + ": " + trapType + ": " + trap.rinfo.address + " : " + trap.pdu.varbinds[i].oid + " -> " + trap.pdu.varbinds[i].value); | ||
} | ||
} | ||
@@ -30,0 +33,0 @@ } |
{ | ||
"name": "net-snmp", | ||
"version": "3.4.2", | ||
"version": "3.4.3", | ||
"description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
1649676
7652
3157