RE: multiple set of table handling

2004-11-19 Thread Jim Su
Hi Robert: Thanks! RS> Did you generate the code using mib2c? Yes, the code was generated by mib2c. It's quite a neat tool to help a complete SNMP layman like me to start my project - and it works fine. RS> There is only one catch here - indexes aren't supposed to change. Although I d

Re: weird tutorial

2004-11-19 Thread Users
On Fri, 19 Nov 2004 13:15:38 + Mauricio wrote: MR> The snmpget with v 3 works perfectly. I have checked the tutorial and based MR> on it I modifyied to support both authentication and encryption. See code MR> above. I don't know what it is. the weird thing is that it works on linux. Hmm... We

WRB - Tutorial 5

2004-11-19 Thread wrb
Here is a documentation error that I found while, a) reviewing the code of the demo application at URL b) reviewing the documentation page at URL The err

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
Robert: The version of Net-SNMP is 5.1.2, and I am using the UCD api (v4) as produced by the mib2c script supplied with that version of Net-SNMP. The means to include the ieee802dot11 module is ./configure --with-mib-modules="dot11/ieee802dot11" Now, I surmised the process for placing modules in

Re: perl traphandler fatal relocation error

2004-11-19 Thread Users
On Fri, 19 Nov 2004 08:00:45 - Andy wrote: AF> I thought I had, but you are implying that I haven't read it thoroughly AF> enough!! No, I was just making sure you'd covered the bases. I'm not a solaris guy, but I know that there are perl/net-snmp issues on solaris. I'm waiting for Bruce, our

Re: WRB - Computing the next OID by an agent.

2004-11-19 Thread wrb
So, the process is facilitated by the registration process via the macro or function call REGISTER_MIB, and the OIDs that become known to the master agent (generally, the daemon snmpd) are those that are listed in the _variables structure, such as that generated by mib2c. This is what I might have

Re: WRB - mib2c anomaly.

2004-11-19 Thread Users
On Fri, 19 Nov 2004 01:54:13 -0800 [EMAIL PROTECTED] wrote: WC> during linking, I obtained an error regarding an undefined reference WC> to a routine, named *shutdown_ieee802dot11()* and it was not defined in WC> the source code generated for the MIB. What version of the agent are you using? How

Re: Please tell me how to implement USM and VACM in SNMPv3

2004-11-19 Thread Users
On Fri, 19 Nov 2004 20:52:29 +0900 [EMAIL PROTECTED] wrote: NNC> I'd like to use SNMPv3 (USM&VACM) in watching of server status. NNC> So I have to set up SNMPv3 agent, but it doesn't work. NNC> I think that USM works fine and VACM doesn't. NNC> NNC> I want to restrict SNMP request that receiving o

Re: question on Tk/Perl mib browser

2004-11-19 Thread Users
On Fri, 19 Nov 2004 10:26:09 -0600 [EMAIL PROTECTED] wrote: DC> Now i want to use Tk/perl mib browser to provide GUI. Does the net-snmp DC> package already contain this tool or i need to download and install by DC> myself? Actually, i already downloaded net-snmp-tkmib-5.1-4.i386.rpm, but DC> when i

Re: c/c++ library api for snmp traps

2004-11-19 Thread Users
On Thu, 18 Nov 2004 23:08:50 -0800 (PST) Hari wrote: HS> Net-snmp provides 'snmptrap' to generate a trap. It also provides an API to HS> generate trap from the agent. HS> HS> Do we have a c/c++ API for generating traps from a standalone application, HS> by using the snmp library? Yes. How do yo

question on Tk/Perl mib browser

2004-11-19 Thread dzhou
Now i want to use Tk/perl mib browser to provide GUI. Does the net-snmp package already contain this tool or i need to download and install by myself? Actually, i already downloaded net-snmp-tkmib-5.1-4.i386.rpm, but when i tried to install it, it seems need a lot dependancy packages. Does anyone

Re: WRB - mib2c anomaly.

2004-11-19 Thread Carlos Cantu
I had noticed a lack of DS around -- thought maybe he was on vacation... hee,hee. - Original Message - From: "Robert Story (Users)" <[EMAIL PROTECTED]> To: "Dave Shield" <[EMAIL PROTECTED]> Cc: "NetSNMPUsers" <[EMAIL PROTECTED]> Sent: Friday, November 19, 2004 8:57 AM Subject: Re: WRB

Re: About Ipv6 MIBs support

2004-11-19 Thread Users
On Fri, 19 Nov 2004 10:29:03 -0500 Robert wrote: RS> On Fri, 19 Nov 2004 09:38:45 +0530 Kurapati wrote: RS> KMG> We are using NET-SNMP-5.1.1. I am having a question about IPv6 MIBs RS> KMG> support in NET-SNMP package. I forgot to mention - if you are on Linux and it isn't a production machine,

Re: About Ipv6 MIBs support

2004-11-19 Thread Users
On Fri, 19 Nov 2004 09:38:45 +0530 Kurapati wrote: KMG> We are using NET-SNMP-5.1.1. I am having a question about IPv6 MIBs KMG> support in NET-SNMP package. KMG> KMG> Do I need to configure with --enable_ipv6 to get these IPv6 MIBs build KMG> into the system? Or is it that the IPv6 MIBs will b

Re: how to program a snmp agent

2004-11-19 Thread Users
On Fri, 19 Nov 2004 17:04:01 +0800 C wrote: CY> I want to use net-snmp to program a snmp agent which can get a few private CY> MIB.After the program get some infomation from the managed mathine,should I CY> program a part to send these infomation to the requesting mathine? You need to write a MI

Re: WRB - mib2c anomaly.

2004-11-19 Thread Gary Clark
hee,hee. - Original Message - From: "Robert Story (Users)" <[EMAIL PROTECTED]> To: "Dave Shield" <[EMAIL PROTECTED]> Cc: "NetSNMPUsers" <[EMAIL PROTECTED]> Sent: Friday, November 19, 2004 8:57 AM Subject: Re: WRB - mib2c anomaly. > On Fri, 19 Nov 2004 10:24:09 + Dave wrote: > DS> Yes

Re: Net-SNMP for AS400

2004-11-19 Thread Users
On Thu, 18 Nov 2004 13:30:55 -0700 [EMAIL PROTECTED] wrote: SC> Has anyone seen the Net-SNMP agent compile and run on an AS/400? Not that I'm aware of. But if it has a C compiler and any sort of unix compatibility library, the core agent shouldn't be to hard to build. Most of the mib modules proba

Re: WRB - Computing the next OID by an agent.

2004-11-19 Thread Users
On Thu, 18 Nov 2004 17:46:52 -0800 [EMAIL PROTECTED] wrote: WC> I am looking to understand the detailed process used by the WC> Net-SNMP toolkit of computing the next OID, such as is done WC> during a walk of a MIB. The agent does not compute the value. It searches the registration tree for the fi

Re: multiple set of table handling

2004-11-19 Thread Users
On Fri, 19 Nov 2004 11:02:35 +0800 Jim wrote: JS> What is the possible approach to enhance the current agent to return JS> multiple "set" of data in one walk? The table is defined as variable4 JS> {}. Did you generate the code using mib2c? JS I think to define the multiple sets of

Re: WRB - mib2c anomaly.

2004-11-19 Thread Users
On Fri, 19 Nov 2004 10:24:09 + Dave wrote: DS> Yes - this is the difference between the old (v4) and new (v5) MIB APIs. All right now young man. What are you doing out of your room? Have you finished your homewor - err, book, yet? No? Ok then, march right back into your room. And no feeding th

Re: SNMP leak bug update?

2004-11-19 Thread Rob Kudyba
Robert Story (Users) wrote: On Wed, 17 Nov 2004 17:47:40 -0500 Rob wrote: RK> >On Tue, 16 Nov 2004 17:06:16 -0500 Rob wrote: RK> >RK> Any update on this? This makes our app. almost useless as the memory RK> >RK> usage gets unruly...for example: RK> >RK> RK> >http://sourceforge.net/tracker/index.ph

Re: weird tutorial

2004-11-19 Thread Mauricio Reyes
Hi Robert, The snmpget with v 3 works perfectly. I have checked the tutorial and based on it I modifyied to support both authentication and encryption. See code above. I don't know what it is. the weird thing is that it works on linux. thanks Mauricio. From: Robert Story (Users) <[EMAIL PROTECT

Re: making extended mib return an integer instead of a string?

2004-11-19 Thread Dave Shield
Michael> I'm using the MIB extension in snmpd.conf to run a shell script that Michael> returns a number, so I can map this value via MRTG. While I get the Michael> correct number if I walk the SNMP output, MRTG isn't working Michael> correctly. I believe it is because net-snmp is returning a stri

Re: Please tell me how to implement USM and VACM in SNMPv3

2004-11-19 Thread cnelson
> I'd like to use SNMPv3 (USM&VACM) in watching of server status. > So I have to set up SNMPv3 agent, but it doesn't work. > I think that USM works fine and VACM doesn't. I'm not an expert but maybe I can get you started. Goodness knows it took me long enough to get v3 security working. > ... >

Please tell me how to implement USM and VACM in SNMPv3

2004-11-19 Thread nagataki
Hi, I'd like to use SNMPv3 (USM&VACM) in watching of server status. So I have to set up SNMPv3 agent, but it doesn't work. I think that USM works fine and VACM doesn't. I want to restrict SNMP request that receiving only from localhost. Please tell me how to implement USM

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> I am always generating for UCD format (or the v4 api, as you > call it - I will try to adopt this naming convention). In which case, I *STRONGLY* advise you to use the 'mib2c' script from one of the 4.2.x distributions. The 'old-api' config is really only there as a sop to backwards compatab

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> As for my (clight) crack about regression testing, this is really > my way of asking the core developers to seek my assistance for > such activities prior to a full release. We do - every time. Wes has sent out three messages in the last month asking people to try out the release candidates, a

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
Dave: Even with the ribbing, it is often quite a good laugh to read your postings. The good company remark made me laugh. I did read the other reply, regarding the number of defines being generated. What you may not have realised is that I am always generating for UCD format (or the v4 api, as

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
Dave: Actually, I am using the prompt feature, so I am not really sure of which configuration file is used. Asyou know, mib2c now asks several higher-level questions, and clearly the configuration file used is selected based upon the answers given by the user for each of those questions. In the

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> Well, Dave, I guess you caught me not being able to remember my > own good work. Don't worry - you're in good company. Wes is quite used to me throwing his own words back at him when we start arguing (and Robert's getting used to it too!) > You say that the correcti

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> I am working with RH9, Net-SNMP 5.1.2, and the 802.11 MIB. I notice > that the output of mib2c is different, depending on use of the UCD > versus NET formats. Yes - this is the difference between the old (v4) and new (v5) MIB APIs. > Specifically, UCD generates names and OID's that

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
Well, Dave, I guess you caught me not being able to remember my own good work. And, yes, I do know we are human, and as much as I hate to be so (that is, a mistaken human), I am quite used to it. Really, I have been quite surprised by the fact that I had found the problem earlier. You say that t

WRB - mib2c anomaly.

2004-11-19 Thread wrb
For my last such posting of the evening (though it has turned to morning, at 2AM), I want to point out that the mib2c delivered with Net-SNMP 5.0.8 (this is the version included with the Kenati OS - and notice how the name Kenati has a pejorative sound, as in CANNOT - in this sense, I think the com

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> Well, now I have found more problems with mib2c in Net-SNMP 5.1.2 > . The output from MIB compilation yields source code that > does not include the *case* component of a switch statement. How > could such an error go unnoticed? Because we're human, and make mistakes. You should be used to

WRB - mib2c anomaly.

2004-11-19 Thread wrb
Well, I found another problem. As a good programmer should, I cleaned up the problems found with the mib2c generated code for the 802dot11 MIB, and compiled to the point of generating the daemon, snmpd. At that point, during linking, I obtained an error regarding an undefined reference to a routi

Re: Problems with snmptrapd eventhandler

2004-11-19 Thread Thomas Anders
Brian Ipsen wrote: Is there a quick way to get the INTELCORPORATIONBASEBOARD-MIB::trap1ForPowerSupply translated to a "pure numeric" oid - just to see if it really solves my problem ?? snmptranslate -On INTELCORPORATIONBASEBOARD-MIB::trap1ForPowerSupply +Thomas -- Thomas Anders (thomas.anders at bl

Problems with snmptrapd eventhandler

2004-11-19 Thread Brian Ipsen
Hi, I'm trying to set up eventhandlers for some snmp traps. But somehow it seems like only trapandlers with numeric OID's are executed - the ones defined with the OID names from the MIB files aren't ecenuted... E.g: traphandle .1.3.6.1.4.1.343.2.10.3.2.1.5.1.0.16 /usr/bin/tee -a /var/tmp/trap-i

Net-SNMP for AS400

2004-11-19 Thread Steve_Lewis
Has anyone seen the Net-SNMP agent compile and run on an AS/400? Steve Lewis 303-334-2461 (Internal 6-204-2461) PeopleSoft Enterprise Management Tools One Technology Way Denver, Colorado 80237 --- This SF.Net email is sponsored by: InterSy

WRB - mib2c anomaly.

2004-11-19 Thread wrb
Of course, the problem with mib2c in Net-SNMP 5.1.2 occurs only in the *var-* routines, not in the *write-* routines. William R. Buckley President SoftNerd, A California Corporation Director Emeritus, International Core Wars Society [EMAIL PROTECTED] 415-240-6107

WRB - mib2c anomaly.

2004-11-19 Thread wrb
Well, now I have found more problems with mib2c in Net-SNMP 5.1.2, and this is a big one, at least from the point of view of code quality. The output from MIB compilation yields source code that does not include the *case* component of a switch statement. How could such an error go unnoticed? Or

how to program a snmp agent

2004-11-19 Thread C Y
Hi everyone I want to use net-snmp to program a snmp agent which can get a few private MIB.After the program get some infomation from the managed mathine,should I program a part to send these infomation to the requesting mathine? Thanks a lot. ___

Re: Trap reception problem in Perl

2004-11-19 Thread =?iso-8859-1?Q?GRUNCHEC_Ga=EBl?=
Hello, I did not try the 5.2 rc, I'm using the 51.2 version. But I made again different tests. I checked if there was no other application using at the same time the 5000 port. This time I used netstat to check which ports were opened after creating a trap session. Thus, I create a TrapSession

Re: perl traphandler fatal relocation error

2004-11-19 Thread Andy Ford
Title: Re: perl traphandler fatal relocation error I thought I had, but you are implying that I haven't read it thoroughly enough!! I'll read it again this morning. I have it working now with gcc3.3.2 although it did compile fine with gcc3.2.2 on a previous box. It was a freshly jumpstarted