RE: Error while starting a subagent

2006-02-14 Thread vishakha s
Hi Dave I am able to do the subagent configuration and able to retrieve the value .I am providing the steps for this that i followed taking reference from the FAQ abd your mails ,hope these are correct . For Configuring the Master Agent & Subagent on two Linux Machine: MASTER AGENT: On the maste

Failed make using Net-SNMP with netdisco default install on Linux

2006-02-14 Thread Troy Tripp
I know something about UNIX, but little about running make, so forgive me if the answer is obvious.  I’m installing netdisco on a Red Hat Linux box (2.6.9-22.0.2.EL), and after running ./configure on Net-SNMP (which seems to work OK), I run make from the command line (no switches).  It work

Re: Emanate

2006-02-14 Thread Wes Hardaker
> On Mon, 13 Feb 2006 01:37:54 -0800 (PST), Luigi Damis <[EMAIL PROTECTED]> > said: Luigi> I want to replace, in my snmp application, the EMANATE API in Luigi> C++ on HP-UX/Windows platform and architecture with net-snmp on Luigi> linux platform. Luigi> Please tell me more about compa

Re: Implementing persistant data.

2006-02-14 Thread Wes Hardaker
> On Mon, 13 Feb 2006 15:37:32 +0530, <[EMAIL PROTECTED]> said: vikas> As soon as it reads the token from the file given , it has to call the vikas> parser function which will get the token and its value as its vikas> paramters . But in my code the parser function is not being called at vikas>

Re: new to net SNMP

2006-02-14 Thread Wes Hardaker
> On Mon, 13 Feb 2006 06:42:16 + (GMT), Raja Sekhar <[EMAIL PROTECTED]> > said: Raja> i am new to net snmp. i have down loaded the Raja> net-snmp-5.3.0.1-1.EL4.i386 current version from the site. i Raja> have installed it in linux and i am able to run the snmpd Raja> successfully. But

Re: SNMP Query

2006-02-14 Thread Wes Hardaker
> On Fri, 10 Feb 2006 15:03:30 -, "Singh, Sandeep, VF UK - Technology > (TS)" <[EMAIL PROTECTED]> said: Sandeep> I want to create the SNMP messages(GetRequest,GetResponse,Trap) Sandeep> messages for a test tool that we curruntly are using for testing IN Sandeep> messages.it supports t

Re: snmpd with -D seg faults

2006-02-14 Thread Kyle Tucker
> On Tue, 2006-02-14 at 11:03 -0500, Kyle Tucker wrote: > > > > > > > > # snmpd -DALL -f > > > > Segmentation Fault(coredump) > > > > > > It would be rather useful to know *where* it dies. > > > Can you try running this under a debugger, and send us > > > the backtrace? > >

Re: COUNTER64 Error

2006-02-14 Thread Sean Dilda
Dave Shield wrote: On Tue, 2006-02-14 at 20:08 +0530, [EMAIL PROTECTED] wrote: Thanks for ur inputs count.high = lval&0x; I'm very suspicious about this. count.high should be a 32-bit value (containing the upper-32 bits of the full 64-bit value). The code you show doesn'

Re: netsnmp_register_scalar vs netsnmp_register_instance for registering Strings

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 16:12 +, Raffles wrote: > In a similar vein, is "netsnmp_register_watched_scalar" still the right > call to make to register my watched integers, or to put it another way, > is there any reason not to use "netsnmp_register_watched_instance" for > them too (it would be nice

netsnmp_register_scalar vs netsnmp_register_instance for registering Strings

2006-02-14 Thread Raffles
Hi There, I'm using watchers in my MIB code, for both integers and strings. I had been using "netsnmp_register_watched_scalar" for both. However today I reread the watcher.c example on the website (http://www.net-snmp.com/dev/agent/examples.html). This uses "netsnmp_register_watched_instance". Ho

Re: snmpd with -D seg faults

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 11:03 -0500, Kyle Tucker wrote: > > > > > > # snmpd -DALL -f > > > Segmentation Fault(coredump) > > > > It would be rather useful to know *where* it dies. > > Can you try running this under a debugger, and send us > > the backtrace? > > Would truss be

Re: snmpd with -D seg faults

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 10:49 -0500, Kyle Tucker wrote: > I am trying to debug snmpd on Solaris 8 and have run into > some snags. snmpd runs fine in the background, with just a > -p arg. If I try -D, it just dies. > If I give tell it to not fork, I get a seg fault. > > # snmpd -DALL -f

snmpd with -D seg faults

2006-02-14 Thread Kyle Tucker
I am trying to debug snmpd on Solaris 8 and have run into some snags. snmpd runs fine in the background, with just a -p arg. If I try -D, it just dies. # snmpd -DALL -L /var/log/snmpd.log trace: main(): snmpd.c, 823: snmpd/main: optind 3, argc 4 trace: netsnmp_ds_set_string(): default_stor

RE: COUNTER64 Error

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 20:08 +0530, [EMAIL PROTECTED] wrote: > Thanks for ur inputs > count.high = lval&0x; I'm very suspicious about this. count.high should be a 32-bit value (containing the upper-32 bits of the full 64-bit value). The code you show doesn't seem to do this. I'm n

RE: COUNTER64 Error

2006-02-14 Thread sasikumar.bodathula
Title: RE: COUNTER64 Error Thanks for ur inputs I tried somthing like this long long lval; struct counter64 count; count.low = lval&0x; count.high = lval&0x; this is also working. Rgards, Sasikumar. -Original Message- From: Dave Shield [mailto:[EM

RE: COUNTER64 Error

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 19:08 +0530, [EMAIL PROTECTED] wrote: > IN the "struct counter64" it has two value low and high as > attributes. That's correct - being the lower and upper 32-bits of the 64-bit value respectively. > Is there any example code which comes with net-snmp src package > whi

RE: COUNTER64 Error

2006-02-14 Thread sasikumar.bodathula
Title: RE: COUNTER64 Error Dave,     IN the "struct counter64" it has two value low and high as attributes. Is there any example code which comes with net-snmp src package which i can refer. Rgards, Sasikumar. -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED]] Sent:

Re: excluding subtrees with views.

2006-02-14 Thread H. McManus
On Tuesday 14 February 2006 13:19, Dave Shield wrote: > The difference between the two lies in how they treat any objects > *outside* .1.3.6.1. The first configuration would allow access, > the second would deny access. >Of course, if there are no such objects, then it's all a bit > irreleva

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-14 Thread H. McManus
On Tuesday 14 February 2006 12:49, Dave Shield wrote: > I though we'd already said that? Yes. At least three times. H. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJA

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 12:07 +, Paulo Ricardo wrote: > We don´t have DisMan section in the snmpd.conf attached. Well add one, dear Paulo, dear Paulo, dear Paulo Well add one, dear Paulo, dear Paulo, my dear > NET-SNMP version 5.1.2 That's a fairly old release (18 months+), and there have be

Re: excluding subtrees with views.

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 12:05 +0100, H. McManus wrote: > let's pretend that I want to create a view that allows > access to all of .1.3.6.1.* except .1.3.6.1.4 > > If I specify nothing more than > view notprivate excluded .1.3.6.1.4 > is this enough for it to give me access to everything except .1.

RE: Error while starting a subagent

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 16:38 +0530, vishakha s wrote: > But now it is giving the > error while running the subagent as "unknown host" > Do we need to have a master agent in the system in which > subagent is there to start it . If you're running a subagent, then there has to be a master agent for it

Re: COUNTER64 Error

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 16:49 +0530, [EMAIL PROTECTED] wrote: > Hi All, > I am using ASN_COUNTER64 as type in the function > 'snmp_set_var_typed_value' the value is of type > "unsigned long long int" No - it doesn't work that way. The ASN_COUNTER64 type requires a "struct counter64" value, not

Re: Uninstall error

2006-02-14 Thread Dave Shield
On Mon, 2006-02-13 at 21:50 +0200, Makavy, Erez (Erez) wrote: > I got this error while commiting 'make uninstall' for > net-snmp-5.2.1.2: > 1) Does this happen on all installations, or is mine messed up? No - I think it's probably common behaviour. It looks suspiciously as if the perl MakeMaker

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-14 Thread Paulo Ricardo
Hi Dave, We don´t have DisMan section in the snmpd.conf attached. NET-SNMP version 5.1.2 BR, Paulo From: Dave Shield <[EMAIL PROTECTED]> To: Paulo Ricardo <[EMAIL PROTECTED]> CC: net-snmp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject: Re: No traps for Link down/up in SUN Netra 240

Re: snmp_set_var_typed_value with ASN_TIMETICKS problem

2006-02-14 Thread Dave Shield
On Fri, 2006-02-10 at 14:10 -0800, stan buyanov wrote: > u_char str_return[MAX_VAR_LEN+1]; > long returnVal = 123456; > sprintf((char*)str_return,"%d",returnVal); > int str_return_len = strlen((char*)str_return); > snmp_set_var_typed_value(requests->requestvb, ASN_TIM

Re: snmpd startup error

2006-02-14 Thread Dave Shield
On Sat, 2006-02-11 at 16:17 +0530, [EMAIL PROTECTED] wrote: > Hi, >I am using snmpd as thread in my process when start the process i > am getting the following error. This is working in my machine but when > i tar the entire setup and reconfigure the agent in another machine i > am getting this

Re: problem with inital set-up

2006-02-14 Thread Dave Shield
On Fri, 2006-02-10 at 12:03 -0800, Tony Cratz wrote: > This is what I get with I do the following: > > # /usr/local/sbin/snmpd -f -Le -c /usr/local/etc/snmp/snmpd.conf > NET-SNMP version 5.1.1 > ^CReceived TERM or STOP signal... shutting down... > # /usr/local/sbin/snmpd -f -Le -Dread_confi

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 11:40 +, Paulo Ricardo wrote: > Dave > > is it possible to ENABLE LinkDown/Up trap in smpd.conf file ??? Yes. You need an entry linkUpDownNotification yes plus the related DisMan access control stuff. I though we'd already said that? Dave --

Re: Net-SNMP support for IPv6

2006-02-14 Thread Dave Shield
On Fri, 2006-02-10 at 09:34 -0800, McGuerty, Jay S. wrote: > Does your product support IPv6? What do you mean by "support IPv6"? Are you talking about using IPv6 as a transport mechanism, or reporting IPv6-related information (or both)? The Net-SNMP suite can support SNMP requests using IPv6-bas

Re: exec - need extResult and extOutput

2006-02-14 Thread Kyle Tucker
> > On Mon, 2006-02-13 at 13:06 -0500, Kyle Tucker wrote: > >Is there a method to obtain both OIDs > > (or all for a given exec) with one snmpget call? > > snmpget ... localhost extResult.1 extOutput.1 This is what I've been doing and this triggers two runs of the script, at l

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-14 Thread Paulo Ricardo
Dave is it possible to ENABLE LinkDown/Up trap in smpd.conf file ??? BR Paulo From: Dave Shield <[EMAIL PROTECTED]> To: Paulo Ricardo <[EMAIL PROTECTED]> CC: net-snmp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject: Re: No traps for Link down/up in SUN Netra 240 machines Date: Tue, 14

COUNTER64 Error

2006-02-14 Thread sasikumar.bodathula
Title: COUNTER64 Error Hi All,     I am using ASN_COUNTER64 as type in the function 'snmp_set_var_typed_value' the value is of type "unsigned long long int" but the manager is i.e snmpget/snmpgetnext is displaying large value. sample implemntation is unsigned long long int lval = 0; lval =

Re: Net-SNMP support for IPv6

2006-02-14 Thread Birgit Arkesteijn
Hi, We tried net-snmp 5.3.0.1 on a IPv6 network. It seems to run fine. The manuals will explain how to set up your configuration. See man snmpd man snmpd.conf As for the IPv6 mibs, we recompiled net-snmp with the following flags; ./configure --prefix=/usr --with-openssl=/usr \ --with-persi

RE: Error while starting a subagent

2006-02-14 Thread vishakha s
Hi Thanks a lot Ya that problem is solved ,I referred some FAQ .But now it is giving the error while running the subagent as "unknown host" Do we need to have a master agent in the system in which subagent is there to start it . Thanks & Regards Vishakha -Original Message- From: Dave Shie

Re: ifNumber /nosuchname

2006-02-14 Thread Dave Shield
On Wed, 2006-02-08 at 20:43 +0100, Snmp Portal wrote: > I can't get the snmp object ifNumber. I use Net-Snmp 5.4.dev Please see the patch attached to bug #1399369 (It's not quite correct, as it should really register a scalar object, not an instance. But it's close enough to get you working aga

excluding subtrees with views.

2006-02-14 Thread H. McManus
Hello, I'm trying to understand how to use views to restrict what can be seen by certain community strings. For argument's sake, let's pretend that I want to create a view that allows access to all of .1.3.6.1.* except .1.3.6.1.4 If I specify nothing more than view notprivate excluded .1.3.6.1

Re: IPMI MIB

2006-02-14 Thread Dave Shield
On Mon, 2006-02-13 at 17:35 +0530, Sridhar Addagada wrote: > Is there a standerd MIB available for download, is there an RFC or is > it still in draft mode. I am not aware of any standard work being done on an IPMI MIB. There are a couple of proprietary ones kicking around, but the IETF standard M

Re: ifIndex problem

2006-02-14 Thread Dave Shield
On Tue, 2006-02-14 at 10:46 +0100, Taner mehmetali wrote: > The management application that should detect the agent scans the ifTable > beginning with ifPhysAddress.1 than ifPhysAddress.2. > > When it fails to detect any Entries at ifPhysaddress.2 it breaks up the > scan. Then the management app

Re: Masteragent & subagent Communication

2006-02-14 Thread Birgit Arkesteijn
Hi, I've got no idea how your system is setup up, but try the following to get some insight into the problem; 01. Locate libnetsnmpagent.so.5 (or another version of libnetsnmpagent.so) on your system. 02. If you have a different version of libnetsnmpagent.so, you might have mixed net-snm

Re: exec - need extResult and extOutput

2006-02-14 Thread Dave Shield
On Mon, 2006-02-13 at 13:06 -0500, Kyle Tucker wrote: >Is there a method to obtain both OIDs > (or all for a given exec) with one snmpget call? snmpget ... localhost extResult.1 extOutput.1 You might also like to investigate the "extend" directive, which caches the results of r

Re: Error while starting a subagent

2006-02-14 Thread Dave Shield
On Mon, 2006-02-13 at 11:56 +0530, vishakha s wrote: > running: gcc ... -L/usr/local/lib -lnetsnmpagent -lnetsnmpmibs... > > ./mysubagent: error while loading shared libraries: libnetsnmpagent.so.5: > cannot open shared object file: Error 40 Does the file /usr/local/lib/libnetsnmpagent.so.5 exi

Re: Configuring snmpv3 informs

2006-02-14 Thread Dave Shield
On Sun, 2006-02-12 at 13:20 -0500, Daniel Savard wrote: > On the client, I configured in the snmpd.conf the following (I have > other definitions, but these are relevant to my problem): > > agentSecName myUser > trapsess -v3 -Ci mySnmpTrapdserver Try listing the security name, level, types (and p

Re: changing the ipAdEntAddr and ifPhysAddress entry order

2006-02-14 Thread Dave Shield
On Sun, 2006-02-12 at 21:47 +0100, Taner mehmetali wrote: > i need the change the order of the Entries for the Loopback ip Adress and > the network address of the Ethernet Card. > > my ipAddrTable looks like this > > IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1 //ipAdEntifIndex 1 > IP-MIB

ifIndex problem

2006-02-14 Thread Taner mehmetali
Hi, i have the problem that my ethernet Card has the ifIndex.65539 and therefore the physical address at the column ifPhysAddress.65539 in the ifTable. The loopback interface has the ifIndex.1 and physAddress.1 The management application that should detect the agent scans the ifTable beginnin

Re: net-snmp agent and MIBs

2006-02-14 Thread Dave Shield
On Mon, 2006-02-13 at 22:57 +0100, [EMAIL PROTECTED] wrote: > > As we become more confident about the behaviour of these optional > > modules, we can consider including them within the default build > > configuration. We're moving towards including more and more by > > default, but this has to be

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-14 Thread Dave Shield
On Mon, 2006-02-13 at 16:25 +, Paulo Ricardo wrote: > [EMAIL PROTECTED]> snmpget -v1 -Cf -c public DNS2 LinkDown > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: IF-MIB::linkDown > > I suppose that the something are missing in the variable n

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-14 Thread Dave Shield
Sorry - I wasn't in work yesterday, so couldn't respond sooner. Ignore all the discussion about IF-MIB, and ifXTable and the like. It's a red-herring in your situation. On Mon, 2006-02-13 at 13:00 +, Paulo Ricardo wrote: > How can I know if in my net-snmp product the linkUpDownnotifications