Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TritonDataCenter/node-snmpjs
SNMP toolkit for Node.js
https://github.com/TritonDataCenter/node-snmpjs
Last synced: 3 months ago
JSON representation
SNMP toolkit for Node.js
- Host: GitHub
- URL: https://github.com/TritonDataCenter/node-snmpjs
- Owner: TritonDataCenter
- Created: 2012-02-29T22:11:49.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T17:00:41.000Z (12 months ago)
- Last Synced: 2024-04-12T04:14:46.365Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 491 KB
- Stars: 111
- Watchers: 64
- Forks: 60
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-snmp - node-snmpjs - This package provides a toolkit for SNMP agents and management applications in Node.js. (Libraries / JavaScript)
README
snmpjs provides a toolkit for SNMP agents and management applications in
Node.js.## Usage
For full docs, see .
var os = require('os');
var snmp = require('snmpjs');var agent = snmp.createAgent();
agent.request({ oid: '.1.3.6.1.2.1.1.5', handler: function (prq) {
var nodename = os.hostname();
var val = snmp.data.createData({ type: 'OctetString',
value: nodename });snmp.provider.readOnlyScalar(prq, val);
} });agent.bind({ family: 'udp4', port: 161 });
Try hitting that with your favourite SNMP get utility, such as:
$ snmpget -v 2c -c any localhost .1.3.6.1.2.1.1.5.0
## Installation
$ npm install snmpjs
## License
MIT.
## Bugs
See .