# snmpjs

> Simple Network Management Protocol toolkit

Latest version **0.1.8** (published 2014-09-03) · 0 weekly downloads

## Install

```sh
npm install snmpjs
pnpm add snmpjs
yarn add snmpjs
bun add snmpjs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2014-09-03 |
| First published | 2012-03-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.9 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 113 |
| Author | Keith M Wesolowski |
| Maintainers | wesolows |

## Links

- npm: https://www.npmjs.com/package/snmpjs
- Repository: https://github.com/joyent/node-snmpjs
- Issues: http://github.com/joyent/node-snmpjs/issues
- npm.io page: https://npm.io/package/snmpjs

## Dependencies (4)

- [asn1](https://npm.io/package/asn1.md) ~0.2.2
- [jison](https://npm.io/package/jison.md) 0.3
- [bunyan](https://npm.io/package/bunyan.md) ~0.21
- [dtrace-provider](https://npm.io/package/dtrace-provider.md) ~0.2

## Recent versions

- 0.1.8 (latest) — 2014-09-03
- 0.1.7 — 2014-07-23
- 0.1.6 — 2014-02-22
- 0.1.5 — 2014-02-19
- 0.1.4 — 2013-05-21
- 0.1.3 — 2013-04-05
- 0.1.2 — 2013-03-14
- 0.1.1 — 2013-03-07
- 0.1.0 — 2013-02-21
- 0.0.4 — 2013-02-01
- 0.0.3 — 2012-08-16
- 0.0.2 — 2012-03-13
- 0.0.1 — 2012-03-08

## README

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/joyent/node-snmpjs/issues>.

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