AgentX Notify response encoding from net-snmp snmpd

2004-08-12 Thread Andreas Vinsander
Hi! We have written our own AgentX C++ subagent library and are testing it against net-snmp snmpd. We found the following: If we try to send an agentx Notify-PDU containing the varbinds snmpTrapOid.0 = anyOid .2.1 = [OctetString: "test" ] and have the include bit cleared in all Oids then the re

Re: Having a separate thread for shared mem

2004-08-12 Thread Andreas Vinsander
Mukherjee, Arijit (Arijit) wrote: All, Managed to get myself stuck again:( I have got quite a few mib modules that use shared memory. Updating these for int is not a big deal. However, for char * I am in trouble - I can keep the pointers in the shared memory - but not the memory that they p

Re: MIB Access Permissions

2004-08-12 Thread Dave Shield
> If I do a set command on an oid that is marked as read-only in the MIB file, > should the agent handle the wrong call or should snmpd catch it before the > agent is even run? I presume by "agent" you actually mean "subagent" ? (since snmpd *is* the SNMP agent) In which case, William is quite

Re: 1.3.6.1.4.1.8072.3.2.3

2004-08-12 Thread Dave Shield
Sorry, Paul - this is nothing to do with scalar instances, or the difference between "snmpget" and "snmpwalk" It's down to the particular MIB object(s) involved > If I an snmpwalk -O n (blah blah), it returns: > .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.3 In other words: SNMPv

Re: snmpset on a read-only oid

2004-08-12 Thread Dave Shield
> When I do: > enterprises.myBranch.main.myTable.myEntry.myIndex.5 > snmpset -v1 -c private -m all localhost .1.3.6.1.4.1..1.4.1.1.5 > > myIndex does have a STATUS of 'read-only'. But the core agent driving code doesn't know that. It's up to the "subagent" (i.e. the pass-script) to reject an

Re: traps

2004-08-12 Thread Tina Agarwal
Hi, I am not able to get through the point. Can you please explain a little bit more on my question.. Thanx and Regards! Tina - Original Message - From: "C Wells" <[EMAIL PROTECTED]> To: "net-snmp-users" <[EMAIL PROTECTED]> Sent: Wednesday, August 11, 2004 8:35 PM Subje

strange behavior with "pass" demo example

2004-08-12 Thread Ferréol de Soras
hi I'm dealing with the local/passtest "pass" example script it is quite clear to understand, however I get some strange behavior, that I, unhappily, cannot describe better than "sometimes works, sometimes doesn't" I am running net snmp 5.1.1 on FreeBSD 4.10. When I do a simple snmpget request,

UCD-SNMP-MIB memory?

2004-08-12 Thread Bill Whitacre
I'm new to net-snmp and MRTG but I'm working my way through it. I have a question about the UCD-SNMP-MIB. I'm not seeing some of the available OIDs -- like memory [.4] -- and am wondering if I have to add something more to my snmpd.conf file to gain access to them. Here is what my snmpd.conf

Re: UCD-SNMP-MIB memory?

2004-08-12 Thread Dave Shield
> I have a question about the UCD-SNMP-MIB. I'm not seeing some of the > available OIDs -- like memory [.4] -- and am wondering if I have to add > something more to my snmpd.conf file to gain access to them. > This is running on Mac OS X 10.3.5. It's more likely that the agent simply doesn'

Re: 1.3.6.1.4.1.8072.3.2.3

2004-08-12 Thread PAUL WILLIAMSON
Ah, I hate when that happens...Thanks for the correction. Should have checked my own Solaris boxen... Paul >>> "Dave Shield" <[EMAIL PROTECTED]> 08/12/04 4:20 AM >>> Sorry, Paul - this is nothing to do with scalar instances, or the difference between "snmpget" and "snmpwalk" It's down to the pa

Subagent crashing(Core dump)

2004-08-12 Thread Sasikumar Bodathula
Hi, My subagent(Trap & notification) is crashing with core dump.This happens when a large number of alarms(600/sec) is pumped to the subagent. Net-snmp version : net-snmp-5.1.1-1. --- SF.Net email is sponsored by Shop4tech.com-Lowest price

no response

2004-08-12 Thread Marlena Miller
I have built and installed snmp, and have started snmpd. When I attempt anything like: % snmpwalk localhost public system I get the following error: Timeout: no response from localhost. My config file is very basic (I haven't even changed the community name to something other then public yet). C

RE: no response

2004-08-12 Thread Marlena Miller
That results in the same error. From: John Blake <[EMAIL PROTECTED]> To: 'Marlena Miller' <[EMAIL PROTECTED]> Subject: RE: no response Date: Thu, 12 Aug 2004 14:50:36 -0400 try snmpwalk -c public localhost system -Original Message- From: Marlena Miller [mailto:[EMAIL PROTECTED] Sent: Thu

RE: no response

2004-08-12 Thread Marlena Miller
I am doing everything on the local machine. From: John Blake <[EMAIL PROTECTED]> To: 'Marlena Miller' <[EMAIL PROTECTED]> Subject: RE: no response Date: Thu, 12 Aug 2004 14:57:11 -0400 Can you ping the box you are trying to do snmp to? -Original Message- From: Marlena Miller [mailto:[EMA

RE: no response

2004-08-12 Thread Reitberger, Susan
Sometimes, the localhost is not configured. You can run ifconfig on unix to see if local loopback is there. If it's not use ifconfig lo 127.0.0.1 That's what fixed it for me. Susan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marlena Miller Sent: Thur

RE: no response

2004-08-12 Thread Marlena Miller
Yes, snmpd is running. What should I specifically be looking to check in the .conf file? From: John Blake <[EMAIL PROTECTED]> To: 'Marlena Miller' <[EMAIL PROTECTED]> Subject: RE: no response Date: Thu, 12 Aug 2004 15:01:50 -0400 And the snmpd is running? If it is, reverify the .conf -Orig

RE: no response

2004-08-12 Thread Marlena Miller
Here is the community and permissions part of the snmpd.conf file: # First, map the community name (COMMUNITY) into a security name # (local and mynetwork, depending on where the request is coming # from): # sec.name source community com2sec local localhost public com

RE: no response

2004-08-12 Thread Bruce Shaw
What platform are you on? Are there any competing SNMP daemons? >% snmpwalk localhost public system >I get the following error: >Timeout: no response from localhost. This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal an

RE: no response

2004-08-12 Thread Marlena Miller
I am on Linux. There are no competing SNMP daemons. From: Bruce Shaw <[EMAIL PROTECTED]> To: 'Marlena Miller' <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: RE: no response Date: Thu, 12 Aug 2004 13:39:06 -0600 What platform are you on? Are there any competing SNMP daemons? >% snmpwalk localh

RE: no response

2004-08-12 Thread Marlena Miller
My localhost is configured. The local loopback is there when I run ifconfig. I also tried 127.0.0.1 in the snmpwalk command. That gave me the same error. I can ping both localhost and 127.0.0.1, but can't get a response when I use them in the snmpwalk (or get, or set) command. From: "Reitberge

Re: no response

2004-08-12 Thread Gary Clark
Perform ps -A to see if the agent is running. How did you build the agent V2,V1? Thanks, Garyc - Original Message - From: "Marlena Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 12, 2004 2:19 PM Subject: RE: no response > Yes, snmpd is

Response message to wrong community string

2004-08-12 Thread Robert Waltz
Hi, It looks like Net-SNMP (running v2c) does not respond to input pdu's with the wrong community string, the request just times out. I understand that this is for security - is there a way to get it to respond with an error? I know about the "authtrapenable" config value, but in reading the RF

More Details regarding sub-agent crash

2004-08-12 Thread Sasikumar Bodathula
Hi, In my previous mail I forgot give the complete details.The subagent crashes when burst of alarms is pumped in to the agent(600alarms/sec). The server and the proxy agent(Trap and Notification) is running in the same machine (DELL machine P4 HT , Linux RedHat 9), sub-agent is not crashing when