Skip to content

YudiYamamoto/olt-client-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

olt-client-parser

Biblioteca para acessar OLTs multimarcas e transformar em JSON

Instalação

$ npm install @thiago.zampieri/olt-client-parser

Uso

Configuração da API

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
  }
});

Para verificar nivel de permissão do user:

(async () => {
  const data = await olt.displayPermissionByUser('user')
  console.log(data)
})();

Mostra placas do chassi:

(async () => {
  const data = await olt.displayBoard(0)
  console.log(data)  
})();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%