Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cityssm/snmp-oid-collector
Collect OID values from a series of SNMP-enabled servers in a flash!
https://github.com/cityssm/snmp-oid-collector
canon-imagerunner printer-management snmp-poll-script
Last synced: about 1 month ago
JSON representation
Collect OID values from a series of SNMP-enabled servers in a flash!
- Host: GitHub
- URL: https://github.com/cityssm/snmp-oid-collector
- Owner: cityssm
- License: mit
- Created: 2022-12-02T17:33:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T15:46:37.000Z (9 months ago)
- Last Synced: 2024-04-30T16:29:41.942Z (9 months ago)
- Topics: canon-imagerunner, printer-management, snmp-poll-script
- Language: TypeScript
- Homepage:
- Size: 165 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# SNMP OID Collector
[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/cityssm/snmp-oid-collector?include_prereleases)](https://github.com/cityssm/snmp-oid-collector/releases)
[![DeepSource](https://app.deepsource.com/gh/cityssm/snmp-oid-collector.svg/?label=active+issues&show_trend=true&token=-bJZ4DPfA9kBFuPpv2iM7z22)](https://app.deepsource.com/gh/cityssm/snmp-oid-collector/)
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/cityssm/snmp-oid-collector)](https://codeclimate.com/github/cityssm/snmp-oid-collector)
[![codecov](https://codecov.io/gh/cityssm/snmp-oid-collector/graph/badge.svg?token=0FYGX3DMUK)](https://codecov.io/gh/cityssm/snmp-oid-collector)The main purpose of this project is to quickly collect counters from printers at City facilities.
It can however be used to poll other devices for other types of counters as well.## Getting Started
Download a release or clone this repository.
If not already installed, install [Node.js](https://nodejs.org/) version 16 or better.
Install the dependencies.
```sh
npm install
```Create a `config.js` file like the one below.
Note that descriptive server names can be included after the `|` character.```javascript
export const config = {
ips: [
'192.168.20.100',
'192.168.21.100 | Legal Printer',
'192.168.22.100 | Payroll Printer',
'192.168.23.100 | HR Printer'
],
communityString: 'public',
oids: [
'1.3.6.1.4.1.1602.1.11.1.3.1.4.101',
'1.3.6.1.4.1.1602.1.11.1.3.1.4.108'
]
}
export default config
```Run the application.
```sh
npm start
```View the output on screen or in output.csv.
```text
┌──────────────────────────────────┬───────────────┬───────────────────────────────┐
│ (index) │ 101 : Total 1 │ 108 : Total (Black & White 1) │
├──────────────────────────────────┼───────────────┼───────────────────────────────┤
│ 192.168.20.100 │ │ │
│ 192.168.21.100 | Legal Printer │ 8468 │ 7290 │
│ 192.168.22.100 | Payroll Printer │ 34474 │ 16620 │
│ 192.168.23.100 | HR Printer │ 10908 │ 9144 │
└──────────────────────────────────┴───────────────┴───────────────────────────────┘
```