in reply to Writing a Perl net-snmp Agent

I've used the SNMP modules on a large project where I used SNMP to talk with different types of network equipment. The largest problem I encountered was not with the module but with the inconsistancy of the SNMP MIBs or rather how those MIBs were populated with data. There really needs to be a standard that everyone follows. /rant but what sort of road block have you encountered specificly, I might be able to help if I know what problems you are having.

Replies are listed 'Best First'.
Re: Re: Writing a Perl net-snmp Agent
by linux454 (Pilgrim) on Apr 29, 2004 at 22:47 UTC
    Well, my problems are more related to fulfilling SNMP requests than asking requesting information from other hosts. I've just hit a void of documentation with regards of implementing a Table type of variable in my agent. For example I have something in my MIB that looks similar to:
    ... snmpExampleTable OBJECT-TYPE SYNTAX SEQUENCE OF TableEntry MAX-ACCESS not-accessible STATUS current ::= { parentOID 1 } tableEntry OBJECT-TYPE SYNTAX TableEntry MAX-ACCESS not-accessible STATUS current INDEX { tableEntryIndex } ::= { snmpExampleTable 1 } TableEntry ::= SEQUENCE { tableEntryIndex DisplayString, tableEntryName DisplayString, tableEntryVal DisplayString } tableEntryIndex OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current ::= { tableEntry 1 } ...
    I'm not entirely sure what I need to pass to the NetSNMP::agent::netsnmp_request_infoPtr->setValue() method to get this table to work.