-1

I am in charge of SNMP module in an embedded Linux-based NAS (Network Attached Storage). The SNMP module is net-snmp-based, wrapped by customized OIDs. It works fine before I took over it. I added handlers of some new OIDs and built it. The strange phenomenon occurred:

  1. It works fine at my x64_g3 platform against iReasoning MIB Browser, Paessler's SNMP Tester and PRTG.
  2. When I tested it at arm64rt platform: 2.1 iReasoning MIB Browser works fine. 2.2 when testing against SNMP Tester or PRTG, the SNMP module prompted lots of "Error: Connection failure: Connection refused". I analyzed it using WireShark, I found the response status of the OIDs which cause the above error message are "No such instance".

Reference data:

  1. It's built from same source, either at x64_g3 or arm64rt platforms. The codes of either net-snmp or customized modules are high level C programs. In my opinion, the behavior shouldn't be different in the two platforms.
  2. I can't locate the source codes which prompted " Error: Connection failure: Connection refused". It could be the whole message is not an literal string among the source files. It could be combined at run-time, hard to locate it.

I can turn on net-snmp's debugging message, but I don't know how to figure out such issue. Any idea to help me?

  • 2
    You will have to hire an experienced consultant to help you debug into the code base. I don't think anyone can guess what's wrong from the thin air by merely reading the paragraphs above. – Lex Li Sep 01 '23 at 07:33

0 Answers0