infowatch

1.3.0 • Public • Published

infowatch

Usage

// Oracle
var options = {
    user: "username",
    password: "password",
    connectString: "192.168.23.150/iwtm"
};
 
// MSSQL
var options = {
    user: "username",
    password: "password",
    server: "hostname",
    database: 'iwdm',
    domain: 'DOMAIN'
};
 
var infowatch = new Infowatch(options);
 
infowatch
    .connect()
    .then(function () {
        return infowatch.getHosts();
    })
    .map(function (host) {
        host.users = infowatch.getUsers(host.id);
        return Bluebird.props(host);
    }, {concurrency: 1})
    .then(function (hosts) {
        console.log(hosts);
    })
    .finally(function () {
        return infowatch.disconnect();
    });

Readme

Keywords

none

Package Sidebar

Install

npm i infowatch

Weekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

9.48 kB

Total Files

4

Last publish

Collaborators

  • notmedia
  • stainful
  • zmeevsky
  • dos