Files
librenms-librenms/tests/snmpsim
Cody Harris d67df039e3 device - Added Baicells Atom OD04 CPE support (#14838)
This adds a MIB from the Baicells website, lightly modified
(s/BAICELLS-MIB/BAICELLS-CPE-MIB), and yaml files for LibreNMS. Currently OS
detection works, but sensors are reporting '0'.

I can easily get the data with snmpget, so I know that part is working. The
issue I'm seeing looks like the {{ $index }} substitution in my sensor yaml
isn't being filled out. Here's some example output from poller.php that backs
this up:

```
.1.3.6.1.4.1.53058.2.2.7.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.8.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.12.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.13.: Unknown Object Identifier ()
```

* adjustments to baicells od04

* undo modification to mib

* add original unmodified mib, tweak yaml, add time conversion function

* added baicells od04 snmprec

* skip invalid values

* Rename baicells-od04.snmprec.txt to baicells-od04.snmprec

* Update and rename BaiCE-BM-2.5.23_SNMP_MIB-CAT4.txt to BAICELLS-MIB

* Update baicells-od04.yaml

* Create BaicellsOd04.php

* move userfunc into OS

* style

* squash php casting warning

* missing static

* style

* fix {{ $index }}

* Create baicells-od04.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-08-02 19:18:17 +02:00
..
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2023-06-23 15:08:48 -05:00
2021-03-12 18:10:14 -06:00
2021-03-12 18:10:14 -06:00
2022-08-10 09:07:31 -05:00
2021-04-05 10:21:49 -05:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2021-11-10 15:23:53 +01:00
2020-11-23 15:35:35 -06:00
2023-11-02 19:25:56 -05:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2021-10-29 00:37:36 -05:00
2020-09-23 18:23:57 +02:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2021-10-18 19:42:13 -05:00
2020-11-07 09:27:25 -06:00
2020-11-07 09:27:25 -06:00
2020-11-07 09:27:25 -06:00
2023-01-24 11:20:18 -06:00
2021-03-18 20:11:25 +01:00
2022-10-06 20:24:37 +02:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2021-09-15 17:44:36 +02:00
2021-01-21 03:53:01 +01:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2023-04-07 13:01:30 -05:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2020-11-23 15:35:35 -06:00
2023-12-17 18:52:28 +01:00
2021-05-13 13:29:07 -05:00
2021-02-02 16:12:41 +01:00
2021-11-12 07:18:56 -06:00
2021-06-01 07:58:06 -05:00
2024-04-30 14:38:01 +02:00
2023-10-19 07:22:46 -05:00
2022-01-29 14:52:05 +01:00
2022-01-29 14:52:05 +01:00
2022-01-29 14:52:05 +01:00
2022-11-13 13:53:34 +01:00

Instructions

Copy the skel.snmprec file to the desired filename this must start with the os name. This skel.snmprec file contains empty sysDescr and sysObjectID entries.

File format

Data file format is optimized to be compact, human-readable and inexpensive to parse. It's also important to store full and exact response information in a most intact form. Here's an example data file content:

1.3.6.1.2.1.1.1.0|4|Linux 2.6.25.5-smp SMP Tue Jun 19 14:58:11 CDT 2007 i686 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10 1.3.6.1.2.1.1.3.0|67|233425120 1.3.6.1.2.1.2.2.1.6.2|4x|00127962f940 1.3.6.1.2.1.4.22.1.3.2.192.21.54.7|64x|c3dafe61 There is a pipe-separated triplet of OID-tag-value items where:

OID is a dot-separated set of numbers. Tag is a BER-encoded ASN.1 tag. When value is hexified, an 'x' literal is appended. Reference to a variation module can also be embedded into tag. Value is either a printable string, a number or a hexifed value. Valid tag values and their corresponding ASN.1/SNMP types are:

type value
Integer32 2
OCTET STRING 4
NULL 5
OBJECT IDENTIFIER 6
IpAddress 64
Counter32 65
Gauge32 66
TimeTicks 67
Opaque 68
Counter64 70