pysnmp icon indicating copy to clipboard operation
pysnmp copied to clipboard

Need help creating table rows to an agent

Open martillyu opened this issue 6 years ago • 5 comments

Hi, I'm new to PYSNMP and I need all the help I can get.

I need to create rows to an agent (Hirchsmann router) and I have followed the guide in this site but the rows are not being created at the agent. I'm sure I'm missing the part on how to send the mibInstrumController.writevar to the agent.

Hope someone can help check my code. Please see attachment.

TableUpdate.txt

martillyu avatar Apr 09 '19 10:04 martillyu

It seems you are trying to implement SNMP agent serving the HMSECURITY2-MIB MIB. Is that correct?

etingof avatar Apr 09 '19 12:04 etingof

Hi, that is correct. Do you need a copy of the MIB HMSECURITY2-MIB? Please let me know what other info you need from me. I really need help on this one.

I have attached the table screenshot to have a better view of what rows I want to create at the table.

Table Screenshot

martillyu avatar Apr 09 '19 13:04 martillyu

Hi, can someone help verify if this is possible?

martillyu avatar Apr 11 '19 08:04 martillyu

Hi, anyone has an idea how to do this in PYSNMP?

martillyu avatar Apr 15 '19 05:04 martillyu

In short, adding rows to a table requires

  1. The SNMP agent allows it.
  2. You perform the correct SET operations.

For PySNMP test agent, a dedicated test case has been provided to illustrate the entire process,

https://github.com/lextudio/pysnmp/blob/v7.0.2/tests/hlapi/asyncio/manager/cmdgen/test_v1_set.py#L33

The issue you described, however, is different, where you use an SNMP agent from a vendor. It's not clear whether the vendor provides this functionality or if there are extra steps you need to enable table creation there. Thus, this isn't something PySNMP repo can answer.

lextm avatar Aug 25 '24 08:08 lextm