List Impago - siriuscrm/ejemplos GitHub Wiki
var api = require('mikronode');
var connection = new api('192.168.33.1','admin','clave'); connection.connect(function(conn) {
var chan=conn.openChannel();
chan.write('/ip/firewall/address-list/getall',function() {
chan.on('done',function(data) {
var parsed = api.parseItems(data);
var dat = 'mac-address';
parsed.forEach(function(item) {
console.log('Radio-Name/Uptime: '+item[dat]+"/"+item.uptime);
console.log("Session: %j", item);
});
chan.close();
conn.close();
});
});
});