help regarding Snmptrap

2009-09-01 Thread ashutosh shanker
hi, i hav written my own MIB and add that to the list of mibs. Then using mib2c tool got the template of .c and .h file in which i have implemented my functionality. thereafter reconfiguring the netsnmp package the snmpset and snmpget is working fine for the objects in my MIB.txt. can sm one tell

Re: [PATCH] RFC: rename MIB to NETSNMP_MIB2_OID

2009-09-01 Thread Magnus Fromreide
On Tue, 2009-09-01 at 13:53 -0700, Wes Hardaker wrote: > > On Tue, 1 Sep 2009 08:48:20 +0100, Dave Shield > > said: > > DS> But that doesn't automatically make them public API calls, IMO. > > Ok, understood. > > DS> I would suggest that the public API for translating an object name > D

Re: [PATCH] RFC: rename MIB to NETSNMP_MIB2_OID

2009-09-01 Thread Wes Hardaker
> On Tue, 1 Sep 2009 08:48:20 +0100, Dave Shield > said: DS> But that doesn't automatically make them public API calls, IMO. Ok, understood. DS> I would suggest that the public API for translating an object name DS> into a numeric OID is "read_objid()". Sure, if that's all they wanted

Re: [PATCH] RFC: rename MIB to NETSNMP_MIB2_OID

2009-09-01 Thread Wes Hardaker
> On Tue, 01 Sep 2009 00:28:59 +0200, Thomas Anders > said: TA> Jan Safranek wrote: >> sure, here is second version of the patch, now with >> NETSNMP_NO_LEGACY_DEFINITIONS TA> +1 (wasn't that easy? :-)) That makes 3-0. Go ahead and apply it when you get a chance Jan (or I will come en

Re: How to register the ContextNames dynamically

2009-09-01 Thread Wes Hardaker
> On Tue, 1 Sep 2009 18:17:43 +0530, VENU POTLURI > said: VP> Here I have a scenario need to register the contextNames dynamically ? VP> is there any way to do this ? There isn't support for that at this time, no. You could try and implement it yourself (or pay someone else to), but yo

Re: Error in packet Reason: (noSuchName)

2009-09-01 Thread Wes Hardaker
> On Tue, 1 Sep 2009 11:09:03 -0400, "Graves, Alex D CTR USAF AFRL/RYAR" > said: ADG> The device has its own specific subset of MIB modules and variables ADG> located in the snmp oid hierarchy as ADG> iso.org.dod.internet.private.enterprises.l3com, so when I try: ADG> snmpget -v 2c -c p

Registering multiple context

2009-09-01 Thread Deepali Singalkar
HI, I could successfully register the context in snmpd with prefix and "" as context. I could register one context this way, but failing for the other, below is the code snippet DEBUGMSGTL(("dot1qBase", "Initializing dot1qVlanVersionNumber scalar integer. Default value = %d\

Error in packet Reason: (noSuchName)

2009-09-01 Thread Graves, Alex D CTR USAF AFRL/RYAR
Hello all, I am fairly new with snmp and net-snmp, however I have been all over the net-snmp website the past few weeks working with it. I have net-snmp running on Ubuntu 9.04 and I have a device on the network that accepts snmp requests. My problem is that I am not getting a response from th

Bug ID: 2776412

2009-09-01 Thread Jacob Steinberger
A few months ago on the users list, I brought up this bug. If memory serves, David Shield was working on a way to centralize how drives are monitored since right now each bit of code has its own method. I was wondering if this issue was "claimed" by anyone, and if not I'd like to give it a s

How to register the ContextNames dynamically

2009-09-01 Thread VENU POTLURI
Hi Here I have a scenario need to register the contextNames dynamically ? is there any way to do this ? Thanks in advance for your help. -- Thanks and Regards, VENU POTLURI -- Let Crystal Reports handle the reporting

Re: error on subcontainer '' insert (-1)

2009-09-01 Thread Dave Shield
2009/9/1 : > Is the action reconfiguring serves the same purpose > as Restarting the Agent? It's similar, but less drastic. Stopping and restarting the agent would lose any historical information (lists of notifications, etc) It would also update the 'sysUpTime' value. Reloading the configurati

RE: error on subcontainer '' insert (-1)

2009-09-01 Thread raja.singh
Thanks Dave. Is the action reconfiguring serves the same purpose as Restarting the Agent? Is the reconfiguring also calls init_snmp ? -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Tuesday, September 01, 2009 1:36 P

Re: Delay in snmptrap processing

2009-09-01 Thread Dave Shield
2009/8/31 Hiroshi Tsuji : > I looked at the source code and apparently the program stops at line #722 in > snmptrapd_log.c for about 5 seconds > "tstr = transport->f_fmtaddr(transport, > pdu->transport_data,pdu->transport_data_length)" That will probably end up calling "gethostbyaddr()" or si

Re: Bugs discovered by a research group at CWRU

2009-09-01 Thread Dave Shield
2009/8/31 Gang Shu : > Thanks a lot for your kind reply. However, I am still confused about the > function 'shutdown_notification_log()', since there is no explicitly > resource release statement in it. Correct. > Could you please give me more details? *If* the agent were to explicitly release t

Re: error on subcontainer '' insert (-1)

2009-09-01 Thread Dave Shield
2009/9/1 : > 1. Is it really required for snmpd to go for a reconfig for SIGHUP signal ? That's the purpose of the HUP signal - to request the agent to reload the configuration. > 2. What if the SIGHUP signal handler is modified as to do nothing ? Then it won't reload the config on demand. If t

Re: help needed regarding registering callback functions

2009-09-01 Thread Dave Shield
2009/9/1 sandeep patra : > I am writing a snmp subagent (say name xyz), whose purpose is to capture all > v2traps send out by the snmp master agent. I'm not sure that will be possible. The master agent and the subagent are separate processes. The only communication between them is as specified in

Re: snmpset ipv6

2009-09-01 Thread Dave Shield
2009/9/1 Karthika Arunkumar : >  okay,If the config file "snmpd.conf" is not relevant to the NMS, why does > it reside in NMS? It wouldn't. > Will this be used by the other end(Agent) or something? Yes - this is the agent configuration file. Remember, the Net-SNMP suite is fundamentally an

Re: [PATCH] RFC: rename MIB to NETSNMP_MIB2_OID

2009-09-01 Thread Dave Shield
2009/8/31 Wes Hardaker : > DS> My gut reaction is that get_tree()/get_node() are clearly internal APIs. > > You'd be wrong there actually.  I know for a fact people use them to > locate mib information.  Both snmptranslate and snmptable call get_tree > for example, and I think you'll agree there co

Help regarding context name

2009-09-01 Thread VENU POTLURI
Hi , We are trying to support a single MIB implementation for multiple virtual devices. Since contextName are loaded from the configuration file, and in handle_snmp_packet() function will do all the access checks for it. is there any way to disable that check for ContextName and forward the cont

Re: snmpset ipv6

2009-09-01 Thread Karthika Arunkumar
Hi Dave, okay,If the config file "snmpd.conf" is not relevant to the NMS, why does it reside in NMS? Will this be used by the other end(Agent) or something? I am working as root in the Manager and another user(but with admin powers) in Agent. Before starting: [(flash)r...@sunsp-:/e