0

I can't figure out how to create more than one api connection to microtics (I have more than 20 of them) using routeros-client at the same time. Is it possible to somehow connect a config with parameters and credentials? I will be glad to any advice and tips

const RouterOSClient = require('routeros-client').RouterOSClient;

const api = new RouterOSClient({
host: '',
user: '',
password: '',
})
sdvjke
  • 55
  • 6
  • I see there are no answers, so I want to recommend you to try to implement the necessary functionality on Python, multithreading is relatively easy to do there. – viilpe Nov 22 '20 at 17:16

1 Answers1

0

Problem solved in such way: Firstly there was created config.yml, then defined variables and use forEach() method.

const yaml_config = require('node-yaml-config');
const config = yaml_config.load(__dirname + '/config/host.yml');
sdvjke
  • 55
  • 6