Re: netsnmp_register_table_iterator() failing

2024-11-08 Thread bps tech
Thanks Brian. No problem. Anyone else can help please. Regards, Bhashkar On Sat, Nov 9, 2024 at 1:10 AM Atkins, Brian wrote: > Hi Bhashkar, > > > > Ok, that makes sense. Unfortunately, I don’t have any experience using > the C AgentX API bindings with Net-SNMP. The Python bindings for Agent

RE: netsnmp_register_table_iterator() failing

2024-11-08 Thread Atkins, Brian via Net-snmp-users
Hi Bhashkar, Ok, that makes sense. Unfortunately, I don’t have any experience using the C AgentX API bindings with Net-SNMP. The Python bindings for AgentX that I have used look very different. Sorry I couldn’t be more help. Brian From: bps tech Sent: Friday, November 8, 2024 12:26 PM To:

RE: netsnmp_register_table_iterator() failing

2024-11-08 Thread Atkins, Brian via Net-snmp-users
First, you shouldn’t be adding things to MIB-2, it is standards controlled. If you want to add a MIB branch, you should do it under the enterprise branch (1.3.6.1.4.1). You’ll need a private enterprise number, which are controlled by the IANA: https://www.iana.org/assignments/enterprise-numbers

Re: netsnmp_register_table_iterator() failing

2024-11-08 Thread bps tech
Hi Brian, Thanks for the quick reply. I understand your point, however it will take it's own time if I am going with private enterprise number, controlled by IANA. But for now, could you help me what mistake I might be doing. I hope it is possible to extend MIB-2 standard interface, I found thi

netsnmp_register_table_iterator() failing

2024-11-08 Thread bps tech
Hi, I am writing my first code for SNMP. I am trying to extend the MIB-2 standard interface table. During this process table iterator registration functionnetsnmp_register_table_iterator(reg, iinfo) is failing. Here is my code: void init_myCustomIfTable(void) { static oid ifTable_oid[