Re: net-snmp errors in 64 bit.

2005-08-09 Thread toby sebastian
Hello All when i tried to apply the setvarvalue patch into the source directory error is coming in the snmplib while i make the mib C file. So i tried with the second patch (netsnmp-5.2.1-asn patch) alone ,then netsnmp run successfully in 64 bit os.But when i am trying to patch the setvarvalue pat

Re: question related to inform response

2005-08-09 Thread Robert Story
On Fri, 29 Jul 2005 16:17:16 -0500 Bogdan wrote: BA> Can someone tell me what the snmpd agent does when it send and inform BA> request and doesn't receive inform response in the time? I have a feeling BA> that it doesn't try to retransmit the inform request again. Am i right? I BA> think it should

Fw: snmp for 2.6 kernel

2005-08-09 Thread toby sebastian
  - Original Message - From: toby sebastian To: [email protected] Sent: Wednesday, August 10, 2005 9:41 AM Subject: snmp for 2.6 kernel Hello All   i have already run netsnmp in linux 2.4 kernel (32 bit os).now i want  to run the same  in linux 2.6 kernel. Wha

Re: snmpset for (most) read-write objects failing

2005-08-09 Thread Robert Story
On Thu, 28 Jul 2005 07:04:57 -0700 (PDT) harish wrote: HB> On further investigation , we found that the file HB> agent/mibgroup/mibII/ip.c did not have any relevant HB> reference to ipForwarding (and other scalar objects.) What release are you running? There is code for ipForwarding in all current

Re: net-snmp in 64-bit

2005-08-09 Thread Robert Story
On Fri, 29 Jul 2005 13:58:58 +0530 toby wrote: TS> I have configured and made MIB module in net-snmp 5.2 in 64 bit OS. After TS> that when I tried to run snmpd executable it shows "Error in opening file TS> snmpd.conf. No such file or directory". But when I checked it the file was TS> already there

Re: snmp over TCP

2005-08-09 Thread Robert Story
On Thu, 28 Jul 2005 14:55:16 -0700 Srini wrote: SK> I am testing snmp over TCP. I am using 5.1 version. SK> On doing snmpget with the following, I get an below error. SK> I started snmpd as : snmpd tcp:161 SK> SK> snmpget -v 2c -c public -D All TCP:172.20.150.24:161 sysDescr.0 SK> SK> I have a

snmp for 2.6 kernel

2005-08-09 Thread toby sebastian
Hello All   i have already run netsnmp in linux 2.4 kernel (32 bit os).now i want  to run the same  in linux 2.6 kernel. What all changes or configurations need to be done in order to run this in 2.6 kernel.  

gettimeofday problem

2005-08-09 Thread Richard Sun
I see lots of calls of gettimeofday. My question is: when system clock changes, how will it affect all routines that use gettimeofday? Will there be false alarms? My problem is that my agentx status changes too often (I set agentX ping interval to 45 seconds). I am not sure if this is because sys

SNMP Tools for linux

2005-08-09 Thread Asim Zaka
Hi, I want to use an SNMP host manager with trap reception support, to load the MIBs, browse through the MIBs, try out get/set APIs and the Traps. Can anyone suggest a link to a "Graphical" SNMP Manager on top of Linux? If not then what tools do you suggest to setup the environment for implementi

Re: net snmp compilation error with g++

2005-08-09 Thread Robert Story
On Tue, 2 Aug 2005 14:58:07 +0530 [EMAIL PROTECTED] wrote: KSC> following errors are displayed while compiling, KSC> KSC> snmpProxy.cc: In constructor `snmpProxy::snmpProxy()': KSC> snmpProxy.cc:65: `snmp_init' undeclared (first use this function). KSC> === May

Re: regarding snmp trap PDU

2005-08-09 Thread Robert Story
On Thu, 28 Jul 2005 06:33:38 -0700 (PDT) jigar wrote: JC> Thanks for your suggestion. And sorry to intrupt you again. But I JC> am not understanding your one line that I am mentioning below: JC> " define a suitable MIB notification for the error events that you're JC> interested in." JC>

Re: how to open endpoint"udp:161"

2005-08-09 Thread Robert Story
On Fri, 29 Jul 2005 17:45:02 +0800 [EMAIL PROTECTED] wrote: NC>When i tested this command: snmpd -f -L -Dread_config , the output NC> was interrupted by an error: Error opening specified endpoint "udp:161" NC> server exiting with code 1 The the port was already open by another application,

mib2c for RMON

2005-08-09 Thread Fong Tsui
What mib2c conf file(s) should be used for creating full RMON and RMON2 code? Thanks, FT --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile

Re: How to raise traps

2005-08-09 Thread Robert Story
On Fri, 29 Jul 2005 02:30:41 -0500 Rajnish wrote: DR> I have configured net-snmp in windows and Register Trap Service. I want DR> to raise traps. Can you tell me how to raise traps & setting procedures. See the tutorial on our web page. DR> What are the command to create snmptrapd.conf file. See

Re: net-snmp errors in 64 bit.

2005-08-09 Thread Robert Story
On Sun, 31 Jul 2005 10:08:10 +0530 toby wrote: TS> I have already installed net-snmp-5.2.1.0 on AMD Opteron. Previously I had TS> written a MIB-module for using along with net-snmp, that worked fine in 32 TS> bit machines. I followed the same steps for compiling net-snmp in 64-bit TS> OS, ie:- TS>

Re: cache in a mib stub code

2005-08-09 Thread Robert Story
On Sat, 6 Aug 2005 18:04:45 +0100 (BST) saifulla wrote: SMA> For that purpose, i need to know whether the request SMA> has come from the same session of snmpwalk/get-next. SMA> Is there any way to get this info? Nope. Each get-next is independent, and there is no state information passed from cli

Re: snmp proxy fails

2005-08-09 Thread Dave Shield
On Mon, 2005-08-01 at 09:42 -0700, Rav wrote: > Basically my project requirement is that there will be 2 net-snmp > agents the agent with port number 161 should act as the proxy for > the agent with the port number 5050. Any snmpget request to this linux > box, the response should be from the

Cross compiling Net-SNMP 5.2.1 for "ppc" target machine in MontaVista linux gives error in Mib II groups

2005-08-09 Thread kanda.samy
Hi I am cross compiling the net-SNMP 5.2.1 source in Monta Vista Linux. I had configured the package by ./configure --host=x86 --target=ppc --with-cc=ppc-405-gcc --with-endianness=big It configures the package successfully When I do "make" for this package it is giving the following error.

-l option missing from snmptrapd?

2005-08-09 Thread John Pfaff
Looking in snmptrapd.c, I see "l:" (for specifying the syslog facility) in options, but it's not handled in the getopt case statement. Has it been deprecated? -- John Pfaff [EMAIL PROTECTED] --- SF.Net email is Sponsored by the Better Softwar

Re: RE:snmp proxy fails

2005-08-09 Thread Dave Shield
On Tue, 2005-08-02 at 14:42 +0200, Schoenbach Andreas wrote: > 3. In the /etc/snmp/snmpd.conf file I introduced a line like >"proxy -v 3 -u -A -l authNoPriv > -p 5050 192.168.1.100 .1" for the proxy configuration. > > try ".1.3" for OID instead ".1" > > I think, ".1" is not a

Re: MfD initialisation

2005-08-09 Thread Robert Story
On Thu, 28 Jul 2005 14:26:11 +0100 Dave wrote: DS> But I can't immediately grasp the purpose of the preceding 'init_data' DS> routine, and haven't been able to find an example of how it might be DS> used. The example code talks about being the "sole writer" to some DS> file - but I'm not sure qui

Re: net-snmp errors in 64 bit.

2005-08-09 Thread toby sebastian
hi robert we have downloaded the patches. where we have to apply the patches. are they kernel patches ? please help us regards Toby - Original Message - From: "Robert Story" <[EMAIL PROTECTED]> To: "toby sebastian" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, August 09, 2005 4:42 AM Sub

Re: net snmp compilation error with g++

2005-08-09 Thread Dave Shield
On Tue, 2005-08-02 at 14:58 +0530, [EMAIL PROTECTED] wrote: > I am using the net snmp apis(5.2.1) in C++ class, > i tried to compile using g++ compiler > following errors are displayed while compiling, > > snmpProxy.cc: In constructor `snmpProxy::snmpProxy()': > snmpProxy.cc

Re: Extending agent in ucd-SNMP 4.6.2 for V3

2005-08-09 Thread Dave Shield
On Thu, 2005-08-04 at 15:21 +0530, [EMAIL PROTECTED] wrote: > I have to extend the agent of UCD-SNMP 4.6.2 for SNMP v3 . > Is MD5 authentication is supported in UCD-SNMP 4.2.6 version? Yes. > What are the issues/bugs UCD-SNMP 4.6.2 have while extending the > agent. Fundamentally: Old Age. Th

Re: Problem to access elements in a Table

2005-08-09 Thread Dave Shield
On Mon, 2005-08-01 at 12:51 +0200, Cicerone Vincenzo wrote: > I've a static table with read-write elements > I've used the 'mib2c.iterate.conf' configuration file to generate the > 'C' mib module > When I query the Agent to SET Element.2 i receive the following answer: > > Error Indication in resp

Re: inform request-response question

2005-08-09 Thread Dave Shield
On Wed, 2005-08-03 at 08:21 -0500, Bogdan Antonovici wrote: > Can someone tell me what happens(i mean what snmpd does?) when there > is no response for a inform request message? > Normally the agent should retransmit inform request message. That's certainly what I'd expect to happen, yes. > I a

Re: cache in a mib stub code

2005-08-09 Thread Dave Shield
On Sat, 2005-08-06 at 18:04 +0100, saifulla Mohd Abdul wrote: > I have implemented my mib code using net-snmp 4.1. Errr... Do you mean 'ucd-snmp 4.1' or 'net-snmp 5.1' ? There has never been a 'net-snmp 4.1' (and the UCD code is *very* old now) > What i need is: I want effectivly utilise tha

Re: Receive trap???

2005-08-09 Thread Dave Shield
On Tue, 2005-08-02 at 13:34 +0530, Awadehsh Kumar wrote: > I want to use the snmptrapd application. How should > i execute this application, so that it start to listen trap? Run snmptrapd as root. That will start listening for traps, and logging them to the default log file. If yo

Re: Application for Enterprise-number

2005-08-09 Thread Dave Shield
On Thu, 2005-07-28 at 11:47 +0900, Muthu wrote: > I have requested for an Enterprise-number in IANA. > I got the below mail immediately after my application. > But there were no message after that. Robert and I have both just got back from the IETF meeting in Paris, where there was a report from I

Re: -l option missing from snmptrapd?

2005-08-09 Thread John Pfaff
Nevermind. I see in the man page that it's being deprecated. But it is still in the options array. Version 5.2.1 BTW. On 8/8/05, John Pfaff <[EMAIL PROTECTED]> wrote: > Looking in snmptrapd.c, I see "l:" (for specifying the syslog > facility) in options, but it's not handled in the getopt case

Re: Solaris-Binary

2005-08-09 Thread Dave Shield
On Thu, 2005-08-04 at 15:21 +0200, MandyMarko wrote: > im looking for a binary for Solaris-2.5.1/x86! All the binaries we have are listed on the SourceForge web page. If there's nothing suitable there, then you'll probably need to compile it yourself. Dave -

Re: how to open endpoint"udp:161"

2005-08-09 Thread Dave Shield
On Fri, 2005-07-29 at 17:45 +0800, [EMAIL PROTECTED] wrote: > When i tested this command: snmpd -f -L -Dread_config , the output > was interrupted by an error: Error opening specified endpoint > "udp:161" server exiting with code 1 Two possibilities spring to mind: a) There's already an SN

Re: snmp request/response oid length

2005-08-09 Thread Dave Shield
On Tue, 2005-08-09 at 06:44 +0100, saifulla Mohd Abdul wrote: > As per the SNMP standard, the MAX OID length should > not be > 128 bytes. > Question is : What is the correct behaviour: > > 1. Does agent must Return Error(ASN Parse Error) for > any GET/SET/NEXT request with OID > 128? > > OR >

Re: question to notification example

2005-08-09 Thread Torben Surmer
Hallo, sorry, but I did not get the point. :-( Example: I have my own netsnmp subagent enterprise OID 1.3.6.1.4.1.4711 and I want to send a trap with three variables with the oids: 1.3.6.1.4.1.4711.1, 1.3.6.1.4.1.4711.2 and 1.3.6.1.4.1.4711.3 . I thought I can simply call three times the snmp

Re: mib2c for RMON

2005-08-09 Thread Emi . Yanagi
I used mib2c.mfd.conf for RMON. Emi ">"Fong Tsui" <[EMAIL PROTECTED]> "Fong Tsui" <[EMAIL PROTECTED]> 08/08/2005 05:40 PM To , <[EMAIL PROTECTED]> cc Subject mib2c for RMON What mib2c conf file(s) should be used for creating full RMON and RMON2 code? Thanks, FT

mib2c OID type populate OID of length 4 times longer, e.g. historyControlDataSource

2005-08-09 Thread Emi . Yanagi
Hi Robert, Using the patch you sent me on 7/25, I still have problem with mib2c generated OID type such as historyControlDataSource. See the snmpwalk result below, the populated oid length is 4 times of it should be. $ snmpwalk localhost historyControlDataSource RMON-MIB::historyControlDataSourc

Re: snmp request/response oid length

2005-08-09 Thread Austin Schutz
On Tue, Aug 09, 2005 at 01:50:21PM -0400, Robert Story wrote: > On Tue, 9 Aug 2005 06:44:24 +0100 (BST) saifulla wrote: > SMA> As per the SNMP standard, the MAX OID length should > SMA> not be > 128 bytes. > SMA> > SMA> We have found that SNMP agents(Commercial, open > SMA> software) take care o

Re: SNMP Tools for linux

2005-08-09 Thread Robert Story
On Tue, 9 Aug 2005 09:29:56 +0300 Asim wrote: AZ> I want to use an SNMP host manager with trap reception support, to load the AZ> MIBs, browse through the MIBs, try out get/set APIs and the Traps. Can AZ> anyone suggest a link to a "Graphical" SNMP Manager on top of Linux? Try poking around on sn

Re: snmp request/response oid length

2005-08-09 Thread Robert Story
On Tue, 9 Aug 2005 06:44:24 +0100 (BST) saifulla wrote: SMA> As per the SNMP standard, the MAX OID length should SMA> not be > 128 bytes. SMA> SMA> We have found that SNMP agents(Commercial, open SMA> software) take care of this differently. SMA> SMA> Question is : What is the correct behaviou

Re: net-snmp errors in 64 bit.

2005-08-09 Thread Robert Story
On Tue, 9 Aug 2005 12:00:05 +0530 toby wrote: TS> > we have downloaded the patches. where we have to apply the patches. TS> > are they kernel patches ? How can we apply this patches To apply a patch, first save the patch to a file (for example, /tmp/XXX.pat). Then change to the source direc