Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] Broken SNMP in latest forwarder code

Subject: Rare project developers

List archive

Re: [rare-dev] Broken SNMP in latest forwarder code


Chronological Thread 
  • From: Frédéric LOUI <>
  • To: Alexander Gall <>
  • Cc: mc36 <>, "" <>
  • Subject: Re: [rare-dev] Broken SNMP in latest forwarder code
  • Date: Fri, 11 Feb 2022 18:27:20 +0100
  • Dkim-filter: OpenDKIM Filter v2.10.3 zmtaauth01.partage.renater.fr 72C591403A3

> SNMP in the latest code (95739f) is broken:
Yes, it still needs some adjustments.

> Speaking of SNMP, can you please explain (again) the problem that
> occured with NMaaS and SNMP queries?

I used LibreNMS real time graph, that started polling at shorter interval.
After 3 hours, Linux crashed.
I had to reboot it via BMC

> @csaba: If freerouter now has SNMP support built in (that was news to
> me), how exactly does it work?
If this works in freeRtr, I’d rather adapt the code in order to fill freeRtr
SNMP counters.
But IIRC, we had Alex SNMP dev because it was not available. But indeed it
was 2 years ago ...

I’ve to finish exposing counters to freeRtr, but once I finished I’ll tacle
SNMP.
It would be great iin which direction I would have to go in that moment.

Thanks !
Frederic

> Le 11 févr. 2022 à 18:09, Alexander Gall <> a écrit :
>
> Hi Frederic
>
> SNMP in the latest code (95739f) is broken:
>
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: BfIfSnmpClient - main
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: bf_switchd started with
> SNMP export
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Generic table clearing:
> (Order not matters)
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Exception in thread
> bf_snmp:
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Traceback (most recent
> call last):
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
> "/nix/store/bvz1i8rik3ynd1rpb8gczwqfayxv4dfz-bf_forwarder-22.02.11/lib/python3.8/site-packages/rare/bf_snmp_client/__init__.py",
> line 35, in run
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: self.active_subifs =
> self.getAllActiveSubInterfaces()
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
> "/nix/store/bvz1i8rik3ynd1rpb8gczwqfayxv4dfz-bf_forwarder-22.02.11/lib/python3.8/site-packages/rare/bf_snmp_client/__init__.py",
> line 297, in getAllActiveSubInterfaces
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: tbl_global_path =
> "%s.ig_ctl" % self.pipe_name
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: AttributeError:
> 'BfIfSnmpClient' object has no attribute 'pipe_name'
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: During handling of the
> above exception, another exception occurred:
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Traceback (most recent
> call last):
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
> "/nix/store/v72cj06nk69cynckz2s12rhar25k1h7v-python3-3.8.5/lib/python3.8/threading.py",
> line 932, in _bootstrap_inner
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: self.run()
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
> "/nix/store/bvz1i8rik3ynd1rpb8gczwqfayxv4dfz-bf_forwarder-22.02.11/lib/python3.8/site-packages/rare/bf_snmp_client/__init__.py",
> line 80, in run
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: "%s - exited with code
> [%s]" % (self.class_name, _Exception())
> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: NameError: name
> '_Exception' is not defined
>
> Speaking of SNMP, can you please explain (again) the problem that
> occured with NMaaS and SNMP queries?
>
> @csaba: If freerouter now has SNMP support built in (that was news to
> me), how exactly does it work?
>
> --
> Alex




Archive powered by MHonArc 2.6.19.

Top of Page