npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-node-snmp

v2.0.0

Published

A Node-RED node that gets and sets SNMP oid values. Supports v1, v2c and v3

Downloads

1,258

Readme

node-red-node-snmp

A set of Node-RED nodes that fetch values from SNMP enabled hosts. Supports v1, v2c and v3.

  • SNMP get - Simple SNMP oid or oid list fetcher
  • SNMP set - Simple snmp Set node.
  • SNMP subtree - Simple sub tree fetcher
  • SNMP table - Simple SNMP oid table fetcher
  • SNMP walker - Simple SNMP oid walker fetcher

v2 Breaking Change

v2 has a breaking change in that the single snmp node no longer tries to stringify an octet string type (04). This makes it consistent with the other nodes in this bundle. this means the user now has to convert to a string if required but has better control of how they wish to do that.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-snmp

Usage

snmp

SNMP oids fetcher. Can fetch a single or comma separated list of oids. Triggered by any input.

msg.host may contain the host including the port.

msg.community may contain the community. (v1 and v2c only)

msg.username may contain the username. (v3 only)

msg.authkey may contain the digest security key. (v3 only)

msg.privkey may contain the encryption security key. (v3 only)

msg.oid may contain a comma separated list of oids to search for. (no spaces)

The host configured in the edit config will override msg.host. Leave blank if you want to use msg.host to provide input.

The community configured in the edit config will override msg.community. Leave blank if you want to use msg.community to provide input.

The username configured in the edit config will override msg.username. Leave blank if you want to use msg.username to provide input.

The digest security key configured in the edit config will override msg.authkey. Leave blank if you want to use msg.authkey to provide input.

The encryption security key configured in the edit config will override msg.privkey. Leave blank if you want to use msg.privkey to provide input.

The oids configured in the edit config will override msg.oid. Leave blank if you want to use msg.oid to provide input.

Outputs msg.payload containing a table of objects, and the requested msg.oid. Values depends on the oids being requested.

snmp-set

SNMP sets the value of one or more OIDs.

msg.host may contain the host including the port.

msg.community may contain the community. (v1 and v2c only)

msg.username may contain the username. (v3 only)

msg.authkey may contain the digest security key. (v3 only)

msg.privkey may contain the encryption security key. (v3 only)

msg.varbinds may contain an array of varbind JSON objects e.g.:

    msg.varbinds = [
        {
            "oid": "1.3.6.1.2.1.1.5.0",
            "type": "OctetString",
            "value": "host1"
        }, {
            "oid": "1.3.6.1.2.1.1.6.0",
            "type": "OctetString",
            "value": "somewhere"
        }
    ];

Types can be:

  • Boolean
  • Integer
  • OctetString
  • Null
  • OID
  • IpAddress
  • Counter
  • Gauge
  • TimeTicks
  • Opaque
  • Integer32
  • Counter32
  • Gauge32
  • Unsigned32
  • Counter64
  • NoSuchObject
  • NoSuchInstance
  • EndOfMibView

The host configured in the edit config will override msg.host. Leave blank if you want to use msg.host to provide input.

The community configured in the edit config will override msg.community. Leave blank if you want to use msg.community to provide input.

The username configured in the edit config will override msg.username. Leave blank if you want to use msg.username to provide input.

The digest security key configured in the edit config will override msg.authkey. Leave blank if you want to use msg.authkey to provide input.

The encryption security key configured in the edit config will override msg.privkey. Leave blank if you want to use msg.privkey to provide input.

The varbinds configured in the edit config will override msg.varbinds. Leave blank if you want to use msg.varbinds to provide input.

snmp-table

Simple SNMP table oid fetcher. Triggered by any input.

msg.host may contain the host including the port.

msg.community may contain the community. (v1 and v2c only)

msg.username may contain the username. (v3 only)

msg.authkey may contain the digest security key. (v3 only)

msg.privkey may contain the encryption security key. (v3 only)

msg.oid may contain a comma separated list of oids to search for. (no spaces)

The host configured in the edit config will override msg.host. Leave blank if you want to use msg.host to provide input.

The community configured in the edit config will override msg.community. Leave blank if you want to use msg.community to provide input.

The username configured in the edit config will override msg.username. Leave blank if you want to use msg.username to provide input.

The digest security key configured in the edit config will override msg.authkey. Leave blank if you want to use msg.authkey to provide input.

The encryption security key configured in the edit config will override msg.privkey. Leave blank if you want to use msg.privkey to provide input.

The oid configured in the edit config will override msg.oid. Leave blank if you want to use msg.oid to provide input.

Outputs msg.payload containing the table of objects, and the requested msg.oid. Values depends on the oids being requested.

snmp-subtree

Simple SNMP oid subtree fetcher. Triggered by any input. Reads from OID specified and any below it.

msg.host may contain the host including the port.

msg.community may contain the community. (v1 and v2c only)

msg.username may contain the username. (v3 only)

msg.authkey may contain the digest security key. (v3 only)

msg.privkey may contain the encryption security key. (v3 only)

msg.oid may contain the oid of a single table to search for.

The host configured in the edit config will override msg.host. Leave blank if you want to use msg.host to provide input.

The community configured in the edit config will override msg.community. Leave blank if you want to use msg.community to provide input.

The username configured in the edit config will override msg.username. Leave blank if you want to use msg.username to provide input.

The digest security key configured in the edit config will override msg.authkey. Leave blank if you want to use msg.authkey to provide input.

The encryption security key configured in the edit config will override msg.privkey. Leave blank if you want to use msg.privkey to provide input.

The oid configured in the edit config will override msg.oid. Leave blank if you want to use msg.oid to provide input.

Outputs msg.payload containing the table of objects, and the requested msg.oid. Values depends on the oids being requested.

snmp-walker

Simple SNMP oid walker fetcher. Triggered by any input. Reads from OID specified to the end of the table.

msg.host may contain the host including the port.

msg.community may contain the community. (v1 and v2c only)

msg.username may contain the username. (v3 only)

msg.authkey may contain the digest security key. (v3 only)

msg.privkey may contain the encryption security key. (v3 only)

msg.oid may contain the oid of a single table to search for.

The host configured in the edit config will override msg.host. Leave blank if you want to use msg.host to provide input.

The community configured in the edit config will override msg.community. Leave blank if you want to use msg.community to provide input.

The username configured in the edit config will override msg.username. Leave blank if you want to use msg.username to provide input.

The digest security key configured in the edit config will override msg.authkey. Leave blank if you want to use msg.authkey to provide input.

The encryption security key configured in the edit config will override msg.privkey. Leave blank if you want to use msg.privkey to provide input.

The oid configured in the edit config will override msg.oid. Leave blank if you want to use msg.oid to provide input.

Outputs msg.payload containing the table of objects, and the requested msg.oid. Values depends on the oids being requested.