0.2.1 • Published 7 years ago

redcheck v0.2.1

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

RedCheck

Install

npm install redcheck

Usage

var RedCheck = require('redcheck');

var redcheck = new RedCheck({
    hostname: 'YourHost',
    protocol: 'http',
    port: 4142,
    pathname: '/redcheck',
    password: 'YourPassword'
});

redcheck.info(function (err, result) {
    if (err) {
        console.error(err);
    } else {
        console.log(result);
    }
});

Other methods

Get all hosts

redcheck.hosts(function (err, result) {
    if (err) {
        console.error(err);
    } else {
        console.log(result);
    }
});

Get all vulnerabilities in host

redcheck.vulnerability(hostId, function (err, result) {
    if (err) {
        console.error(err);
    } else {
        console.log(result);
    }
});

Get all definitions in host

redcheck.definitions(hostId, function (err, result) {
    if (err) {
        console.error(err);
    } else {
        console.log(result);
    }
});

Get all patches in host

redcheck.patch(hostId, function (err, result) {
    if (err) {
        console.error(err);
    } else {
        console.log(result);
    }
});

Get inventory report in host

redcheck.inventory(hostId, function (err, result) {
    if (err) {
        console.error(err);
    } else {
        console.log(result);
    }
});

Dependencies

  • request
  • xml2js
  • lodash
0.2.1

7 years ago

0.1.1

7 years ago

0.2.0

8 years ago

0.1.0

10 years ago

0.0.1

10 years ago