# vutlan-snmp

> Test snmp in node

Latest version **1.0.0** (published 2017-02-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install vutlan-snmp
pnpm add vutlan-snmp
yarn add vutlan-snmp
bun add vutlan-snmp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-25 |
| First published | 2017-02-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rattapum Puttaraksa |
| Maintainers | whitedevilza |
| Keywords | vutlan, snmp |

## Links

- npm: https://www.npmjs.com/package/vutlan-snmp
- Repository: https://github.com/whitedevilza/Vutlan-SubserviceV2
- Homepage: https://github.com/whitedevilza/Vutlan-SubserviceV2#readme
- Issues: https://github.com/whitedevilza/Vutlan-SubserviceV2/issues
- npm.io page: https://npm.io/package/vutlan-snmp

## Dependencies (3)

- [util](https://npm.io/package/util.md) ^0.10.3
- [net-snmp](https://npm.io/package/net-snmp.md) ^1.1.19
- [snmp-native](https://npm.io/package/snmp-native.md) ^1.1.0

## Recent versions

- 1.0.0 (latest) — 2017-02-25

## README

```javascript
var Monitor = require("./models/monitor.js");
    Sensor = require("./models/sensor.js");
    mylibs = require("./controllers/mylibs");

sessionInfo = {
    targetIP : "161.246.6.96",
    community : "write", // read(read data) or write(set&read data)
}

var session = new mylibs.MonitorObj(sessionInfo);
// console.log(session.getSnmpInfo());
setData = { // look at jsonModel/JsonEx.json
    "sid":"203001",
    "class":"analog", //analog/discret/switch
    "type":"Internal", //Internal/CAN/Rs
    "set":{ //if don't want to set something don't fill it
        "name":"Masda5",  //like I didn't want to set name just delete it from Json
        "lowAlarm" : "3",
        "lowWarning" : "10",
        "highWarning" : "40",
        "highAlarm" : "60",
        "at0" : "2",
        "at75" : "1",
    }
}

session.setSensorById(setData, function(err, res){
    // if(err) console.log(err);
    console.log(res);
});


session.getElementsTable(20, function(err,res){
    if(err){
        console.log(err);
    }else{
        console.log(res);
    }
});

```

---
_Source: https://npm.io/package/vutlan-snmp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
