mib2c: external index and internal index

2005-02-25 Thread Srinivas Athuluru (ATG)
hi, could someone tell mewhats an externalindex and whats an internalindex? I see there is a distinction being made in mib2c? thanks Srinivas --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of

Re: how to return no such instance for delegated requests

2005-02-25 Thread madanagopal
hai, M> I know that i will get queries for only certain columns which will be > M> always walks. > > No, you don't know that. You may know that *your* management application will > only send walks for columns, but you have no idea what some other user who has > access to your agent will do. Thu

prtStorageRefTable indexing

2005-02-25 Thread Lisa Morgan
I'm implementing the Printer-MIB as an AgentX subagent, but I'm running into a problem trying to implement the prtStorageRefTable. One of its indices is hrStorageIndex from HOST-RESOURCES-MIB. For example, if hrStorageTable uses index '101' for some RAM that's used by the printer, then prtStorageRe

RE: trap pdu forwarding [was Re: File Descriptor Event Management]

2005-02-25 Thread Olsson, Sten
OS> One last thing. Since the address and port of the trap publisher will OS> need to be configurable (snmpd.conf, etc...) RS> Bad news. While trying to figure out better names for the tokens, I RS> Realized that there is already a 'forward' token for forwarding traps. RS> This already allows s

Re: trap pdu forwarding [was Re: File Descriptor Event Management]

2005-02-25 Thread Dave Shield
On Fri, 2005-02-25 at 15:21, Robert Story wrote: > Bad news. While trying to figure out better names for the tokens, I realized > that there is already a 'forward' token for forwarding traps. This already > allows specifying an IP address and a port. The big difference between it and > your scheme

Re: how to return no such instance for delegated requests

2005-02-25 Thread Robert Story
On Thu, 24 Feb 2005 23:28:47 +0530 (IST) madanagopal wrote: M> I know that i will get queries for only certain columns which will be M> always walks. No, you don't know that. You may know that *your* management application will only send walks for columns, but you have no idea what some other use

Re: how to return no such instance for delegated requests

2005-02-25 Thread Robert Story
On Wed, 23 Feb 2005 22:30:23 +0530 (IST) madanagopal wrote: M> > M> If [the response] has not come, i set "SNMP_ERR_NOSUCHNAME" to M> > M> requests->status and unmark the request as delegated. But i get another M> > M> M> > M> request for the next registered mib tree. M> > M> [...] M> > M> when i

Re: Problem calling a shellscript via the pass command

2005-02-25 Thread Robert Story
On Thu, 24 Feb 2005 15:21:14 -0300 Thomas wrote: TMS> What surprises me that nearly the same script worked already with net-snmp TMS> version 5.0.7. Well, I'm pretty sure the exec code changed in 5.1, so that's the likely cause. Unfortunately, as I said, I can't help much more for binary packages

Re: trap pdu forwarding [was Re: File Descriptor Event Management]

2005-02-25 Thread Robert Story
On Wed, 23 Feb 2005 14:35:31 -0500 Olsson, wrote: OS> RS> Another good idea. My only question is, how is it published? As a PDU? OS> RS> the formatted text string? OS> OS> It publishes a PDU (netsnmp_pdu) that has been packed into a byte stream OS> and then can be unpacked on the other end. On T

Re: File Descriptor Event Management

2005-02-25 Thread Robert Story
On Thu, 24 Feb 2005 16:02:29 -0500 Olsson, wrote: OS> RS> Also, you changed the priority such that external events are OS> RS> handled before snmp events. The order shouldn't change. OS> OS> The reason I did this is because snmp_read() didn't return the count of OS> events left to be processed.

Re: File Descriptor Event Management

2005-02-25 Thread Robert Story
On Wed, 23 Feb 2005 14:35:31 -0500 Olsson, wrote: OS> RS> Good idea. I only see a few minor changes, but I don't see why this OS> RS> couldn't make it into 5.3. OS> Cool. If you let me know I can make the changes and resubmit the patch. Let's see.. - fd_event_manager -> external_fd_manager - ne

Re: Problem calling a shellscript via the pass command

2005-02-25 Thread Robert Story
On Wed, 23 Feb 2005 16:20:26 -0300 Thomas wrote: TMS> I installed net-snmp 5.1.1 which I downloaded from sunfreeware for Solaris TMS> 9. The pass commandof the configuration file for the snmpd looks like TMS> [...] TMS> TMS> If the script is called from the command line, it seems to work fine. TMS

RE: Problem calling a shellscript via the pass command

2005-02-25 Thread Thomas Markus Stephan
The script has already a log function which writes an error message on every exit point or the messages below when exiting as expected: # cat /var/log/diveoBackup/BackupHeads.log 02/24/2005 14:36:37 - REQUEST: -g .1.3.6.1.4.1.13069.20.3.3.1.2.1 Read: oid=.1.3.6.1.4.1.13069.20.3.3.1.2.1 robot:1 he

Re: Agent Code

2005-02-25 Thread Robert Story
On 24 Feb 2005 09:31:50 - Jude wrote: JAAP> 1. How do i start it.? What is the command to start my Agent JAAP> alone. How do i stop the other agent processes. The procedure for stopping the agent varies by platform. For example, on some Linux systems it is 'service snmpd stop'. But on any sys

Agent Code

2005-02-25 Thread Jude Amal Anand P
Hi all, I have Created a MIB to send notification to the manager. I have also created the AGENT code (.c and .h) files. I have placed them in the "Agent /Mibgroup " directory and configured using the "-with-mib-modules" giving the name of the file as input. Now i need to start the AGENT. 1. Ho

RE: File Descriptor Event Management

2005-02-25 Thread Olsson, Sten
RS> Let's see.. RS> - fd_event_manager -> external_fd_manager RS> - netsnmp_external_event_info -> netsnmp_external_fd_info RS> - netsnmp_dispatch_external_events -> netsnmp_external_fd_read OK, cool. Thanks. RS> Also, you changed the priority such that external events are RS> handled before sn

trap pdu forwarding [was Re: File Descriptor Event Management]

2005-02-25 Thread Robert Story
On Wed, 23 Feb 2005 14:35:31 -0500 Olsson, wrote: OS> RS> Another good idea. My only question is, how is it published? As a PDU? OS> RS> the formatted text string? OS> OS> It publishes a PDU (netsnmp_pdu) that has been packed into a byte stream OS> and then can be unpacked on the other end. I su