Usage szenario:
- segmented network,
- about 20 vlans
- about 10 venerable HP-1810 / 1820 switches,
- about 6 ... 10 OpenWRT AP
- openWRT on x86 as router
- SNMP web GUI observium to keep track of the beast
Configured my 20 vlans on the router now, but see they don't show up in SNMP.
As far as I can figure out, qBridgeMIB
is located at .1.3.6.1.2.1.17.7
e.g. on a HP switch, it displays as
.1.3.6.1.2.1.17.7.1.4.3.1.1.1
Name/OID: dot1qVlanStaticName.578; Value (OctetString): cctv
Name/OID: dot1qVlanStaticName.4067; Value (OctetString): test3
On openWRT, this path is empty. (snmpd, standard config)
However, at least I can find the vlans in the ifTable of IF-MIB .1.3.6.1.2.1.2.2,
so they are listet as they were plain ethernet devices.
Name/OID: ifDescr.20; Value (OctetString): bond-bond0
Name/OID: ifDescr.22; Value (OctetString): bond-bond0.20
Name/OID: ifDescr.23; Value (OctetString): bond-bond0.21
/etc/config$ opkg list-installed | grep snmp
libnetsnmp - 5.9.1-7
luci-app-snmpd - git-24.322.79771-ee4c08d
snmp-mibs - 5.9.1-7
snmp-utils - 5.9.1-7
snmpd - 5.9.1-7
In /etc/config/snmpd
I can find some engineid
stanza.
Smells like there might be a door to just enable other features, but I could not find any documentation yet.
There also is an exec
stanza, but I think this only is for scalar values, right?
here (and in some linux-configs) we may find pass
and pass_persist
'pass' is a more general mechanism for implementing arbitrary MIB
objects. The specified command will be invoked for any request within
the named MIB subtree, and passed details of the requested OID. It
should return the information relevant to the requested OID.
Might this be a proper hook to reinvent the wheel?
But do we have to do so?
And is the the pass
and pass_persist
- syntax forwarded by the uci-machine?
In the forum here, I found mentioned by @NPeca75 that he has a "few custom script for q-bridge-mib emulation for vlans"
May be that's right what I'm looking for
?