Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

snmp-set.js 368B

12345678910111213141516
  1. // Copyright 2013 Stephen Vickers
  2. var options = require("./option-parser");
  3. var session = options.session;
  4. var varbinds = options.varbinds;
  5. session.set (varbinds, function (error, varbinds) {
  6. if (error) {
  7. console.error (error.toString ());
  8. } else {
  9. for (var i = 0; i < varbinds.length; i++)
  10. console.log (varbinds[i].oid + "|" + varbinds[i].value);
  11. }
  12. });