Biblioteca para acessar OLTs multimarcas e transformar em JSON
$ npm install @thiago.zampieri/olt-client-parser
const OLTClientParser = require('@thiago.zampieri/olt-client-parser')
const olt = new OLTClientParser({
brand: 'Huawei',
model: 'MA5608T',
firmware: 1.9,
options: {
host: '127.0.0.1',
port: 23,
username: 'username', // default root
password: 'password', // default guest
}
});
(async () => {
const data = await olt.displayPermissionByUser('user')
console.log(data)
})();
(async () => {
const data = await olt.displayBoard(0)
console.log(data)
})();