seg. fault on calling send_v2Trap

2004-09-10 Thread Narinder Soni
I am using ucd-snmp-4.2.5. I have everything running in the agent i.e. snmpget, snmpset etc. But as shown in example.c, if I trigger send_v2Trap() through a snmpset call then the agent gives segmentation fault. i.e. I make a snmpset on a particular column and within its write function I call

Re: magic numbers

2004-09-09 Thread Narinder Soni
My question is answered from the first part which you have explained. I am using v4 API (ucd-snmp-4.2.5). I already tried to do the same i.e. { 1, .,, var_this, . }, { 2, .,, var_this, . }, { 1, .,, var_that, . } it didn't give any problem but still

coldStart, warmStart, linkUp, linkDown Traps

2004-08-26 Thread Narinder Soni
Hi all, * I am using ucd-snmp-4.2.5. When I start the agent I get coldStart trap with following variables: 12:58 TRAP0.0 from 0.0.0.0 Trap-Type: Cold Start Variables: system.sysUpTime.0 = Timeticks: (5) 0:00:00.05

Re: --with-cc

2004-08-17 Thread Narinder Soni
documentation? Certainly an alternative is to make changes to the Makefile directly but, such approaches seem beyond the design goals of the toolkit. William R. Buckley -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Narinder Soni Sent: Monday

Re: implement snmpv3

2004-08-10 Thread Narinder Soni
Thanks Dave. It clears most of my doubts. Dave Shield wrote: The Net-SNMP toolkit find it automatically but once I tried to use some 3rd party SNMP manager. In order to configure it so that it could query/set the values from agent, it asked me to provide the EngineID of my UCD-SNMP

Re: EngineID

2004-08-03 Thread Narinder Soni
that something is not in order in my previous application. Thats what I am curious to find out so that I don't make that mistake again. Thanks for the help. Wes Hardaker wrote: On Mon, 02 Aug 2004 14:26:22 +0200, Narinder Soni [EMAIL PROTECTED] said: Narinder Ya, I am also trying to find out the same

Re: EngineID

2004-08-02 Thread Narinder Soni
, format); register_config_handler(snmptrapd, format2, parse_trap2_fmt, free_trap2_fmt, format); Thanks Soni Wes Hardaker wrote: On Wed, 28 Jul 2004 14:47:25 +0200, Narinder Soni [EMAIL PROTECTED] said: Narinder In my application

Re: EngineID

2004-08-02 Thread Narinder Soni
I am sorry but still I didn't find init_agent(snmptrapd) in snmptrapd.c of ucd-snmp-0.4.2.5 rather init_snmp(snmptrapd) is there. And I am also calling this function. Does this routine also do same as init_agent?? or should I explicitly use init_agent instead od init_snmp or BOTH? Thanks Soni

Re: EngineID

2004-08-02 Thread Narinder Soni
Ya, I am also trying to find out the same i.e. why my app. doesn't pick up these tokens automatically. May be - while mixing up the code of snmpget and snmptrapd I have eaten up something(I did this 2 years back) or I have called the initialization routines in different order or this is happening

snmp_open_ex()

2004-08-02 Thread Narinder Soni
what is the difference between using snmp_open() and snmp_open_ex() functions? Will it be fine if I use snmp_sess_open() instead of snmp_open_ex() for the traphandler(in snmptrapd.c)? Thanks Soni --- This SF.Net email is sponsored by OSTG.

Re: EngineID

2004-07-30 Thread Narinder Soni
Thanks Dave. This I will read. The reason why I asked this was because I am using the Single API functions equivalent to the Traditional API functions used in ucd-snmp-0.4.2.5 's snmpget application. Till now I was using only v2c(and everything worked fine), but now I wanted to get it running for

Re: Snmp Agent as a thread

2004-07-28 Thread Narinder Soni
I have tried my application's code as a separate thread from within the ucd-snmp agent's code. It works fine. And within my application's code I am further creating multiple threads using mutex etc. This way everything works. Soni Wes Hardaker wrote: On Wed, 21 Jul 2004 13:53:57 -0400,

EngineID

2004-07-28 Thread Narinder Soni
Hi, How and where does snmpget application discover the engine ID of agent's machine? Thanks Soni --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic

Re: few more questions related to SNMPv3

2004-07-26 Thread Narinder Soni
Thanks Dave. I have one more question - If I try to access UCD-SNMP-4.2.5 agent v3 with any other 3rd party SNMP Manager then it is required to mention the EngineId of agent into the configuration files of some of these SNMP Managers. Where do I find the value of EngineId of agent? Please note

Re: problem in configuring agent for SNMPv3 protocol

2004-07-14 Thread Narinder Soni
Yes, you are right. SNMPv2 traps I could receive with HP Openview but not SNMPv3 traps. The reason was same as stated by you..I found that the HP Openview's version which I was using for testing doesnot support SNMPv3. Thanks Dave. Dave Shield wrote: One more question. What does this

few more questions related to SNMPv3

2004-07-14 Thread Narinder Soni
1) I create the following entries: ---in /var/ucd-snmp/snmpd.conf createUser userSoni MD5 lightlight DES ---in snmpd.conf(where SNMPCONFPATH is set) rouser userSoni This is how its mentioned in README.snmpv3 file and then I do snmpget -v 3 -l noAuthNoPriv -u userSoni 192.168.1.189:9000

Re: few more questions related to SNMPv3

2004-07-14 Thread Narinder Soni
Thanks dave. Please read my explanation after your remarks Dave Shield wrote: 1) I create the following entries: ---in /var/ucd-snmp/snmpd.conf createUser userSoni MD5 lightlight DES Which version of the code are you using? The v5 line would normally look in

Re: problem in configuring agent for SNMPv3 protocol

2004-07-13 Thread Narinder Soni
? trapsess -v 3 localhost:9001 Do I have to set anything else somewhere OR Do I have to provide 'version number' command line parameter while running snmptrapd?? Thanks Soni narinder soni wrote: Hi all, I am using UCD-SNMP-0.4.2.5 Everything used to work with SNMPv2 - snmpget, snmpset and traps also

Re: problem in configuring agent for SNMPv3 protocol

2004-07-13 Thread Narinder Soni
Thanks Dave. It works now :) Soni Dave Shield wrote: when I give the version as -- trapsess -v 2c localhost:9001 then the snmptrapd receive all the traps, but with -v 3 it doesn't receive anythingnot even the Cold Start trap from agent. You need to specify *all* the SNMPv3