Re: Removing functions

2007-10-23 Thread Dave Shield
On 22/10/2007, Magnus Fromreide [EMAIL PROTECTED] wrote: I would like to remove the following functions as they are redundant, all that they do can be done by other, more general functions. Do you propose to remove them completely, or replace them by wrappers round the more general function? I

Re: extending snmp agent

2007-10-23 Thread Dave Shield
On 23/10/2007, wqs [EMAIL PROTECTED] wrote: And what's the difference between MODE_SET_RESERVE1 and MODE_SET_RESERVE2? Please see the wiki page http://www.net-snmp.org/wiki/index.php/Agent_Modes Dave - This SF.net

Figuring out which access routines to use

2007-10-23 Thread David T. Perkins
HI, For the first time, I'm writing access routines for a NET-SNMP agent and I'm having some problems getting started. Part of the problem is terminology used in the descriptions (man pages tutorials), and the other part is what appears incomplete examples. For example, on page

Re: Figuring out which access routines to use

2007-10-23 Thread Wes Hardaker
DTP == David T Perkins [EMAIL PROTECTED] writes: DTP I'm not sure what is meant by external data vs internal DTP data. It seems like the approach that is appropriate for my use is DTP direct. external: outside the scope of the process (eg, interface information) internal: the agent itself

Re: Regarding Network to Host byte conversion

2007-10-23 Thread Wes Hardaker
skk == shwth k kk shwth_k writes: skk Does SNMP daemon take care of converting data from hostbyte order to skk network byte order and viceversa ? Yes. You return data from your access functions in a datatype that is compatible with what is expected and the library takes care of converting it

Re: Figuring out which access routines to use

2007-10-23 Thread David T. Perkins
HI, I haven't yet looked at the code, but the 5.4.1 man page for mib2c is confusing in the description of the types of tables. This is, in http://www.net-snmp.org/docs/man/mib2c.html, the following seems contradictory: If your table data is kept somewhere else (e.g. it's in the kernel

net-snmp 5.4.1 on RHEL 4 gives error: error on subcontainer 'ia_addr' insert (-1)

2007-10-23 Thread Rajendra, Singh
Hi All, I am trying to upgrade net-snmp to net-snmp 5.4.1 from net-snmp5.1.2 on Red Hat Enterprise Linux 4 systems. I start the service with -f -Le options. I get this error on output error on subcontainer 'ia_addr' insert (-1) error on subcontainer '' insert (-1). The snmpd service dies

Re: Removing functions

2007-10-23 Thread Magnus Fromreide
On tis, 2007-10-23 at 10:10 +0100, Dave Shield wrote: On 22/10/2007, Magnus Fromreide [EMAIL PROTECTED] wrote: I would like to remove the following functions as they are redundant, all that they do can be done by other, more general functions. Do you propose to remove them completely, or

Re: Figuring out which access routines to use

2007-10-23 Thread David T. Perkins
HI, Now that I've gotten v5.4.1 installed and can run mib2c, the problem is the following question that mib2C asks: Which method would you like to use to gather data about available rows? 1) container : [DEFAULT] This access method uses a netsnmp_container to store all row data in

Subagent not responding

2007-10-23 Thread Anurag Singh
Hello All, I have snmpd running as a master. I have another process that runs a single thread for SNMP work. This thread has the same code as the example code for Writing a Subagent tutorial. However, I run into a deadlock issue. The master sends AgentX pdu to subagent. The subagent hangs. The

Re:Re: extending snmp agent

2007-10-23 Thread wqs
It seems that the item DEFVAL {} in the mib file does not appear in the c file mib2c generated.So should I define it myself?And in which mode should I do this?Should I register them with the function:snmp_set_var_typed_value or something else? 在2007-10-23,Dave Shield [EMAIL PROTECTED] 写道: