Socket
Socket
Sign inDemoInstall

snmpjs-f

Package Overview
Dependencies
44
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    snmpjs-f

Simple Network Management Protocol toolkit


Version published
Weekly downloads
11
Maintainers
1
Install size
10.1 MB
Created
Weekly downloads
 

Readme

Source

FORK

snmpjs provides a toolkit for SNMP agents and management applications in Node.js.

Usage

For full docs, see http://joyent.github.com/node-snmpjs/.

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 https://github.com/cryol/snmpjs-f/issues.

FAQs

Last updated on 30 May 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc