Little OT - Mock agent for testing SNMP OIDs - any OID, would prefer to use Net-SNMP for the basis of this

Max Schubert <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

I have been searching through the Net-SNMP source to see if there is a
framework to do with with Net-SNMP, tried to set pass_persist up to do
this, does not seem it will let me overwrite responses to built in
OIDs.

I really want a regression testing framework for our SNMP-based
programs / scripts, we use Net-SNMP extensively so I am hoping to use
it as a test harness as well :).

However, I really would like to be able to mock out any OID with this
agent and just have it act as a real harness, providing only data our
test cases provide.

I see an agent listener using TwistedSNMP that does this, but since we
use Net-SNMP almost exclusively, would be the best to have it be our
container.

Anyone know of a way to do this with Net-SNMP that does this?

Is the best solution to recompile a test agent with no mibs except for
pass_persist so that pass_persist can then respond to any OID at or
below 1.3.6.1?  Or would that plain fail too?  I am not by any means
an expert at the C parts of Net-SNMP though I have poked around in the
C files as needed and I submitted one small patch to the pass_persist
table handler that resolved a crash.

Any advice / help appreciated, am doing my best to do leg work on
this, but so far not coming up with any way to do this with Net-SNMP
as the SNMP mock server container ..

Thank you,
Max

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.