# snmpjs-new

> Simple Network Management Protocol toolkit

Latest version **0.0.2** (published 2017-02-08) · 0 weekly downloads

## Install

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

## 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.0.2 |
| Published | 2017-02-08 |
| First published | 2017-02-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.9 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Dan Griscom |
| Maintainers | dtgriscom |

## Links

- npm: https://www.npmjs.com/package/snmpjs-new
- Repository: https://github.com/dtgriscom/node-snmpjs-new
- Homepage: https://github.com/dtgriscom/node-snmpjs-new#readme
- Issues: http://github.com/dtgriscom/node-snmpjs-new/issues
- npm.io page: https://npm.io/package/snmpjs-new

## 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) ~1.8
- [dtrace-provider](https://npm.io/package/dtrace-provider.md) ~0.8

## Recent versions

- 0.0.2 (latest) — 2017-02-08
- 0.0.1 — 2017-02-08

## README

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

Note: this was forked from http://joyent.github.com/node-snmpjs
for the purpose of various bug fixes.

## Usage

For full docs, see <http://joyent.github.com/node-snmpjs/> (I haven't made a doc page custom to this package).

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

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