Re: Quick question on adding MIB on windows XP

2006-08-21 Thread gary clark
Ok after reading readm.win32 file a little more I gor the picture.Thanks,  Garyc  gary clark [EMAIL PROTECTED] wrote:Hello,Having a wee' problem trying to see whether the generated MIB template code is being added to the agent.1) I create a directory in :   C:/net-snmp-5.3.1/agent/mibgroup/secureaxis and copy the .h and .c files to that directory. The ModuleId is secureAxis.2) I then create a header file in the mibgroup directory called secureAxis.h with   the following contents:   config_require(secureAxis/secureAxis)3) I then attempt to Configure by going to the win32 directory:perl Configure --with-sdk --with-ssl --with-mib-modules="secureAxis" --config=debug -prefix="C:/usr"It looks OK, when I thenexecute "build.pl" I dont think its building or attempting to build the the files within the secureAxis directory.I'm usingMicrosoft Visual Studio 7.Any ideas on this problem would be appreciated.Thanks,  Garyc  -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your
 job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Net-snmp-users mailing listNet-snmp-users@lists.sourceforge.netPlease see the following page to unsubscribe or change other options:https://lists.sourceforge.net/lists/listinfo/net-snmp-users-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Windows Perl on Net-SNMP?

2006-08-17 Thread gary clark
Hiya,

Been trying to build this windows Net-SNMP perl
version.
I downloaded ActivePerl which was fine for performing
get and set operations.

However I wanted to use the mib2c command to generate
the templates however this requires the Net-SNMP perl
installation.

Can somebody point to or offer some simple instruction
on how to build this blighter. I keep on hitting
problems whilst building and thought this has to be
simpler

Thanks,
Garyc

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Windows and Net-SNMP

2006-08-16 Thread gary clark
Hey,

I have a quick question regarding Net-SNMP on windows:

Just installed Net-SNMP 5.1.3.
Built snmpd and setup the snmpd.conf file.
Ran the command:
snmpd -a -d -Lf tempfile

I then perform the command:
  snmpget -v 2c -c public localhost sysUpTime

on the same machine:

When examining the tempfile, I can see that the agent
received the SNMP GET request:

Received SNMP packet(s) from UDP: [127.0.0.1]:1443
GET message
-- SNMPv2-MIB::sysUpTime

Sending 94 Bytes to UDP:[127.0.0.1]:162

Ok I get a timeout on the snmpget and dont see any
sysUpTime?

Any ideas?

Thanks,
Garyc

  -- SNMPv2-MIB::sysUpTime

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows and Net-SNMP

2006-08-16 Thread gary clark
Much appreciated everyone. Changing the snmpd.conf
helped and also using sysUpTime.0 cracked it for me.

Thanks now for the real work on this.

Cheers,
garyc


--- Juan Silva [EMAIL PROTECTED] wrote:

 Hello Gary !

   My first suggestion will be to test the command
 using the actual OID number, 
   and sysUpTime.0 (instead of sysUpTime), just in
 case. 
   The tutorial uses system.sysUpTime.0 for your
 command.
   (

http://www.net-snmp.org/tutorial/tutorial-5/commands/snmpget.html
 )

   The Retrieving a Single MIB Value and
 Retrieving Multiple MIB Values sections in Chapter
 7 of O'reilly's Essential SNMP book, second
 edition, include sample commands and perl scripts
 that I found the most useful to test Net-SNMP. You
 probably have seen those already.

   My second suggestion would be to restart the
 NetSNMP agent to make sure your 
   changes to config are implemented. Not sure if
 this will fix your problem, but double check just in
 case.  It is a simple fix but can save you time if
 this is it. If the restart does not work for you, I
 would recommend you double check the code in your
 config files and file locations. 

   Regarding the restart of the SNMP agent, I was
 also getting errors after 
   making configuration changes because I had not
 restarted the SNMP 
   agent (I describe below how to restart it, so you
 can give it a try). 
   Note: I believe it was not needed to reboot
 Windows.

   After installation you need to go to the Windows
 Control Panel -- 
   Administrative Tools -- Services. 
   There scroll down until you find the NetSNMP
 Agent.
   If it reads Started, right-click on it and
 select Stop. It will take just a 
   few seconds. After is has been stopped,
 right-click again and 
   select Start.
   Else, if it does not read Started, right-click
 and select Start.
   Then try your command again.
 
   Hope this helps...

   Juan
   
 gary clark [EMAIL PROTECTED] wrote:
   Hey,
 
 I have a quick question regarding Net-SNMP on
 windows:
 
 Just installed Net-SNMP 5.1.3.
 Built snmpd and setup the snmpd.conf file.
 Ran the command:
 snmpd -a -d -Lf tempfile
 
 I then perform the command:
 snmpget -v 2c -c public localhost sysUpTime
 
 on the same machine:
 
 When examining the tempfile, I can see that the
 agent
 received the SNMP GET request:
 
 Received SNMP packet(s) from UDP: [127.0.0.1]:1443
 GET message
 -- SNMPv2-MIB::sysUpTime
 
 Sending 94 Bytes to UDP:[127.0.0.1]:162
 
 Ok I get a timeout on the snmpget and dont see any
 sysUpTime?
 
 Any ideas?
 
 Thanks,
 Garyc
 
 -- SNMPv2-MIB::sysUpTime
 

-
 Using Tomcat but need to do more? Need to support
 web services, security?
 Get stuff done quickly with pre-integrated
 technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or
 change other options:

https://lists.sourceforge.net/lists/listinfo/net-snmp-users
 
 
   
 -
 Want to be your own boss? Learn how on  Yahoo! Small
 Business. 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows Net-SNMP

2005-09-29 Thread Gary Clark
I meant to say I already set up the cygwin on windows. Marvellous.

- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: Dave Shield [EMAIL PROTECTED]
Cc: PAUL WILLIAMSON [EMAIL PROTECTED];
net-snmp-users@lists.sourceforge.net
Sent: Thursday, September 29, 2005 2:01 PM
Subject: Re: Windows Net-SNMP


 Excellent. Yeh I already set up the windows on cygwin. Marvellous.

 Thanks,
 Garyc

 - Original Message -
 From: Dave Shield [EMAIL PROTECTED]
 To: Gary Clark [EMAIL PROTECTED]
 Cc: PAUL WILLIAMSON [EMAIL PROTECTED];
 net-snmp-users@lists.sourceforge.net
 Sent: Wednesday, September 28, 2005 3:20 AM
 Subject: Re: Windows Net-SNMP


  On Tue, 2005-09-27 at 14:42 -0500, Gary Clark wrote:
   How do you add you own mibs in Windows when you have the executable?
   I thought you would have to recompile hence wouldnt I need the source
 code?
 
  Correct.
  If you are looking to *extend* the agent (which wasn't clear from
  your original message), then you'll need to work with a source
  distribution.
 
  You can either use cygwin (or MinGW) and run configure to add
  the new MIBs - just as you would under Linux.
  Or you can use Visual C++, and add the new MIB modules to the
  relevant project.  There's instructions as to how to do this
  in the file README.win32.
 
 
  Dave
 
 
  ---
  This SF.Net email is sponsored by:
  Power Architecture Resource Center: Free content, downloads,
discussions,
  and more. http://solutions.newsforge.com/ibmarch.tmpl
  ___
  Net-snmp-users mailing list
  Net-snmp-users@lists.sourceforge.net
  Please see the following page to unsubscribe or change other options:
  https://lists.sourceforge.net/lists/listinfo/net-snmp-users




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows Net-SNMP

2005-09-27 Thread Gary Clark
I will have to check it out. How do you add you own mibs in Windows when you
have the executable?
I thought you would have to recompile hence wouldnt I need the source code?

Cheers,
Garyc

- Original Message -
From: PAUL WILLIAMSON [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Sent: Saturday, September 24, 2005 4:56 PM
Subject: Re: Windows Net-SNMP


 Why not just use the net-snmp for windows?

 It's a 32-bit exe, listed un der 5.2.1.2 binaries, about
 1/3 down the page.  Works like a charm too...

 Paul

  Gary Clark [EMAIL PROTECTED] 09/24/05 4:57 PM 
 Hello,

 Quick question. I managed to use linux redhat 9 and NET-SNMP 5.1.2 and
 it
 worked like a charm. Well the mantra was indeed long but eventually I
 got
 it. They now want me to use Windows XP? Any advise on this would be
 helpful.
 I thought I could download cygwin and just use windows like a unix
 platform
 and use the provided version for cygwin for NET-SNMP?
 Is that a good approach?

 Cheers,
 Garyc



 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server.
 Download it for free - -and be entered to win a 42 plasma tv or your
 very
 own Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users




 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server.
 Download it for free - -and be entered to win a 42 plasma tv or your very
 own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Windows Net-SNMP

2005-09-24 Thread Gary Clark
Hello,

Quick question. I managed to use linux redhat 9 and NET-SNMP 5.1.2 and it
worked like a charm. Well the mantra was indeed long but eventually I got
it. They now want me to use Windows XP? Any advise on this would be helpful.
I thought I could download cygwin and just use windows like a unix platform
and use the provided version for cygwin for NET-SNMP?
Is that a good approach?

Cheers,
Garyc



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Threading and Net-SNMP

2005-08-12 Thread Gary Clark
what I was told is that Net-SNMP is not thread safe. So be careful. Is this
a Red-Hat 9 system?

Cheers,
Garyc

- Original Message -
From: [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Sent: Thursday, August 11, 2005 3:47 PM
Subject: Threading and Net-SNMP


 I'm still having trouble finding my illegal instruction error and I've
 gotten to thinking about threads.  I have a multi-threaded program that
 sends traps from one thread and acts as a sub-agent in another thread.
 Traps are asychronous and don't require any kind of session or state so
 this is all safe, right?

Chris


 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: [Bulk] Re: What am I missing (traps/notifications)

2005-08-11 Thread Gary Clark
Can you run snmpd -D? This should dump the /var/snmpd.log. Have you modified
snmpd.conf?

Thanks,
Garyc


- Original Message -
From: Ben Z [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 1:32 PM
Subject: Re: [Bulk] Re: What am I missing (traps/notifications)


 Great! Thank you for the quick response.

 I am only really interested in coldStart traps for now, but they don't
 seem to be getting sent. I've used Ethereal and logging to verify.
 Would there be a good first place to start debugging?

 Regards,


 Ben Z

 On Thu, 2005-08-11 at 14:06, Gary Clark wrote:
  yes it can send traps but you need to add code to the agent to send your
  traps. By default when you start
  your agent a coldStart trap is sent.
 
  Thanks,
  Garyc
 
  - Original Message -
  From: Ben Z [EMAIL PROTECTED]
  To: Ben Z [EMAIL PROTECTED];
net-snmp-users@lists.sourceforge.net
  Sent: Thursday, August 11, 2005 11:03 AM
  Subject: Re: What am I missing (traps/notifications)
 
 
   Anyone?
  
   Can the agent be compiled to send traps??
  
   Thx,
  
   BZ
   --- Ben Z [EMAIL PROTECTED] wrote:
  
Whoops sorry, let me try that again... i guess i
copy-paste twice :S
   
./configure \
 --build=i386-unkown-freebsd4.9 \
 --disable-applications \
--enable-notification \
 --disable-manuals \
--with-mib-modules=notification disman/event-mib\
--with-out-mib-modules=agentx snmpv3mibs \
 --disable-scripts \
 --enable-mini-agent \
--without-kmem-usage \
--without-rpm \
--with-logfile=/var/log \
--with-sys-location=RadialinkNetwork \
[EMAIL PROTECTED] \
--with-default-snmp-version=2 \
  --with-persistent-directory=/var/ucd-snmp \
--enable-ucd-snmp-compatibility \
--with-transports=UDP \
--with-out-transports=TCP Unix Callback \
--enable-static \
--disable-shared \
LDFLAGS=-lm
--- Ben Z [EMAIL PROTECTED] wrote:
   
 Hi all;

 I am trying to compile a minimal agent for an
 embedded
 system, and I would like for it to send basic
 notifications for now (coldStart, etc).

 I have read and read through the documentation,
and
 from the bits and pieces I picked up, I have
 gathered
 (maybe mistakenly) that sending these traps from
the
 agent is possible

 Can someone tell me what I am doing wrong?? Here's
 the
 configuration directives I am using:

 ./configure \
  --build=i386-unkown-freebsd4.9 \
  --disable-applications \
 --enable-notification \
  --disable-manuals \
 --with-mib-modules=notification
disman/event-mib\
 --with-out-mib-modules=agentx snmpv3mibs \
  --disable-scripts \
  --enable-mini-agent \
 --without-kmem-usage \
 --without-rpm \
 --with-logfile=/var/log \
 --with-sys-location=RadialinkNetwork \
 [EMAIL PROTECTED] \
 --with-default-snmp-version=2 \./configure
\
  --build=i386-unkown-freebsd4.9 \
  --disable-applications \
 --enable-notification \
  --disable-manuals \
 --with-mib-modules=notification
disman/event-mib\
 --with-out-mib-modules=agentx snmpv3mibs \
  --disable-scripts \
  --enable-mini-agent \
 --without-kmem-usage \
 --without-rpm \
 --with-logfile=/var/log \
 --with-sys-location=RadialinkNetwork \
 [EMAIL PROTECTED] \
 --with-default-snmp-version=2 \
   --with-persistent-directory=/var/ucd-snmp \
 --enable-ucd-snmp-compatibility \
 --with-transports=UDP \
 --with-out-transports=TCP Unix Callback \
 --enable-static \
 --disable-shared \
 LDFLAGS=-lm
   --with-persistent-directory=/var/ucd-snmp \
 --enable-ucd-snmp-compatibility \
 --with-transports=UDP \
 --with-out-transports=TCP Unix Callback \
 --enable-static \
 --disable-shared \
 LDFLAGS=-lm


 Thanks!!

 Ben Z



   
   ---
 SF.Net email is Sponsored by the Better Software
 Conference  EXPO
 September 19-22, 2005 * San Francisco, CA *
 Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing
Projects
  Teams * Testing  QA
 Security * Process Improvement  Measurement *
 http://www.sqe.com/bsce5sf
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or
 change other options:

   
   https://lists.sourceforge.net/lists/listinfo/net-snmp-users

   
   
  
  
  
   ---
   SF.Net email is Sponsored by the Better Software Conference  EXPO
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
   Agile  Plan-Driven Development * Managing Projects  Teams * Testing
 QA
   Security * Process Improvement  Measurement *
http

Fw: How to get data in table through C code?

2005-05-02 Thread Gary Clark

- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]
Sent: Monday, May 02, 2005 8:23 AM
Subject: Re: How to get data in table through C code?


 Hello All,

 Ha-hum! please read the FAQ this is an excellent starting point to
 understand what the hell is
 going on. The simplest approach at least I found, was to your construct
MIB
 table entries using ASN.1 notation and then use the magical mib2c to
 construct your tables into c template code. This is also explained in the
 FAQ.

 Thanks,
 Garyc

 PS

 Try to make your life simple.

 - Original Message -
 From:  [EMAIL PROTECTED]
 To: net-snmp-users net-snmp-users@lists.sourceforge.net
 Sent: Saturday, April 30, 2005 5:19 AM
 Subject: How to get data in table through C code?


  dear all:
 In the example: data_set.c, it showed how to set some row of a table
 through c code. Now I want to know how to get  some column value in the
 table throught c code. For example, in the data_set.c, I want to get the
 value of column 2: IETFWGChair1 in snmpv3 row through C code.  What
can
 I do? And what function should I use ?
 Thank you very much!!
 
 

[EMAIL PROTECTED]

 
  ?z{l??x(?(!z?r???!1?f????sD ??i?X
?
 ??? 0???
 (???^'
?
 ??x%?Mz??b??qYh???r?z???
?
 z??'m?q-b??z???



Re: help please

2005-04-29 Thread Gary Clark
Hi,

What is this fusiv_linux? Do we have a net-snmp installation for this? I
know for sure that net-snmp-5.1.2 works for RH9 and is
fairly simple to install and build...or is my memory that blow.

Thanks,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: M. Vivek [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Sent: Friday, April 29, 2005 4:15 AM
Subject: Re: help please


 On Fri, 2005-04-29 at 10:27, M. Vivek wrote:
  Actually i was doing a cross compiling for
  fusiv_linux. But i am facing the following problem now,
  linux_kernal.c
  is not included in Makefiles and there were some linker
  errors happening.

 Pass - I have *no* experience of cross-compiling,
 which is probably where the problems are arising.

 Dave



 ---
 SF.Net email is sponsored by: Tell us your software development plans!
 Take this survey and enter to win a one-year sub to SourceForge.net
 Plus IDC's 2005 look-ahead and a copy of this survey
 Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Are there any examples of SNMP::TrapSession - I'll be darnedIf I can get it to work!

2005-04-21 Thread Gary Clark
Has anybody ran purify on this ?

Cheers,
Garyc
- Original Message -
From: Wes Hardaker [EMAIL PROTECTED]
To: Andy Ford [EMAIL PROTECTED]
Cc: Wes Hardaker [EMAIL PROTECTED];
[EMAIL PROTECTED]; Net-Snmp (E-mail)
net-snmp-users@lists.sourceforge.net
Sent: Wednesday, April 20, 2005 1:43 PM
Subject: Re: Are there any examples of SNMP::TrapSession - I'll be darnedIf
I can get it to work!


  On Wed, 20 Apr 2005 10:03:10 +0100, Andy Ford
[EMAIL PROTECTED] said:

 Andy I have taken a look at the embedded Perl approach and written a
script
 Andy to do exactly what I want. Unfortunately, there is a huge memory
leak in
 Andy the Perl side. I have already spoken to Robert Story ref this
problem
 Andy and we have agreed it is the embedded Perl implementation rather
than
 Andy snmptrapd itself.

 I actually have been planning on working on that issue, so maybe we
 can solve the problem in the first place.

 Andy I don't believe it's a memory leak per-say rather the embedded
 Andy perl is holding on to every processed trap.

 The c-code binding between perl and snmptrapd is probably not properly
 counting and releasing references.

 --
 Wes Hardaker
 Sparta, Inc.


 ---
 This SF.Net email is sponsored by: New Crystal Reports XI.
 Version 11 adds new functionality designed to reduce time involved in
 creating, integrating, and deploying reporting solutions. Free runtime
info,
 new features, or free trial, at: http://www.businessobjects.com/devxi/728
 ___
 Net-snmp-users mailing list
 Net-snmp-users@lists.sourceforge.net
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Net-SNMP 5.1.2 Memory leaks

2005-04-21 Thread Gary Clark
Ahh! I have just put the donkey outfit on and am now sitting in a corner
pretending I dont exist. Basically in my history with net-snmp project I
assumed better. Now much wiser, but still as stupid as a donkeys ass and
shining with pride I realized that I modified code in the table_array.c
which of course would not call the delete existing row. Now I have come to
my senses
and realize that I should chew on a carrot and lean towards sanity on this
issue. There is no leak.

Thank you.

- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Sent: Thursday, April 21, 2005 2:18 PM
Subject: Re: Net-SNMP 5.1.2 Memory leaks


 Robert thanks for the response. I'm using the RH9 top command and I
should
 see a drop in memory allocation when I call CONTAINER_REMOVE.
 I dont, I definetly see it when a container row is created but not when I
 call CONTAINER_REMOVE hence my concern.
 When I perform a get operation it does look like its getting removed from
 the container, but I dont see any memory size change which I should. The
 reason I know that the row is still present is that I can still use the
 pointer to the row object after CONTAINER_REMOVE. Hence the object still
 exists.
 Thats why I think its marked and not deallocated.

 When I add new rows to the container the snmpd grows in size despite it
 assuming previous deletion.

 I'm trying to get purify to run on this beast but its crashing. Yet to
 debug.

 Cheers,
 Garyc

 - Original Message -
 From: Robert Story [EMAIL PROTECTED]
 To: Gary Clark [EMAIL PROTECTED]
 Cc: net-snmp-users@lists.sourceforge.net
 Sent: Thursday, April 21, 2005 10:45 AM
 Subject: Re: Net-SNMP 5.1.2 Memory leaks


  On Tue, 19 Apr 2005 18:03:13 -0500 Gary wrote:
  GC Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
  GC I'm using the function CONTAINER_REMOVE to remove the context but
its
 looks
  GC like it does not free memory?
 
  Correct. It simply removes the item from the container. The container is
 dumb,
  and doesn't know how the thing it is holding was allocated (or if it was
  allocated at all).
 
  CC Eek? Has anybodyelse seen this? The context does
  GC appear to be free from the list but no memory deallocation?
 
  Which conf file/helper are you using?
 
  --
  NOTE: messages sent directly to me, instead of the lists, will be
deleted
unless they are requests for paid consulting services.
 
  Robert Story; NET-SNMP Junkie
  Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp
  Archive:
 http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users
 
  You are lost in a twisty maze of little standards, all different.




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Fw: Net-SNMP 5.1.2 Memory leaks on RH9

2005-04-20 Thread Gary Clark
Hello,

Ok I'm a little puzzled what I'm seeing:

I call CONTAINER_REMOVE (container,row);

This does indeed appear to remove the row. But the size of snmpd does not
reduce in size. After I have made the call the container does appear to be
purged of the row, but the memory size is still the same? Has anybody an
answer to this or seen this? its like row is marked as deleted but not
removed?

Thanks,
Garyc

- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Sent: Tuesday, April 19, 2005 6:03 PM
Subject: Net-SNMP 5.1.2 Memory leaks


 hello,

 Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
 I'm using the function CONTAINER_REMOVE to remove the context but its
looks
 like
 it does not free memory? Eek? Has anybodyelse seen this? The context does
 appear to be free from the list but no memory deallocation?

 Thanks,
 Garyc





---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Net-SNMP 5.1.2 Memory leaks

2005-04-19 Thread Gary Clark
hello,

Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
I'm using the function CONTAINER_REMOVE to remove the context but its looks
like
it does not free memory? Eek? Has anybodyelse seen this? The context does
appear to be free from the list but no memory deallocation?

Thanks,
Garyc




---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Mib row deletion

2004-12-30 Thread Gary Clark
Hi Robert,

Yeh thats true that would work.

Thanks,
Garyc



- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Sent: Wednesday, December 29, 2004 5:49 PM
Subject: Re: Mib row deletion


 On Wed, 8 Dec 2004 11:19:18 -0600 Gary wrote:
 GC A quick question on deleting mibs. I'm using mib2c to generate the c
code.
 GC All very dandy except I'm not on exactly how
 GC to remove rows from the table. I thought I could use
 GC
 GC CONTAINER_REMOVE(sig.container,row_ctx);
 GC
 GC This does indeed remove the row from the mib table however I'm seeing
an
 GC error in the snmpd log:
 GC
 GC error on subcontainer remove (-1)
 GC
 GC Now I take it I'm doing something wrong. Whats the procedure for
removing a
 GC row_entry?

 I'm assuming this is the array-use code, in which case you can simply set
 'rg-row_deleted = 1;' and the helper code will delete it for you.

 --
 Robert Story; NET-SNMP Junkie
 Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Deletion of rows from tables

2004-12-28 Thread Gary Clark
Robert,

The point is that I was trying to understand where and how I can delete a
row from a MIB entry since there
is no documentation on this issue. I simply tried to trace how rows get
inserted and how they get removed.

 GC When I delete a row there are of course multiple containers within the
list
 GC when I only added one entry hence the failed error message.

 I don't follow your logic here. If there are multiple containers, insert
would
 have added the row to all of them, and thus it needs to be removed from
all of
 them.

Yes its a little fuzzy. The row index gets added to multiple containers when
I insert a row.

 If you are not using the secondary container, I suggest you undefine the
macro
 controlling its use (eg myTable_IDX2, defined in the header file).

Ahh thats the answer.Would really like to of known that.


Much appreciated,
Garyc




- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Sent: Monday, December 27, 2004 8:59 AM
Subject: Re: Deletion of rows from tables


 On Thu, 23 Dec 2004 11:20:58 -0600 Gary wrote:
 GC mib2c was used tocreate a template from the MIB.Everything was fine
until I
 GC wanted to delete an entry from the MIB.

 I assume you used the array-user mib2c conf file?

 GC I was seeing an error to delete a row from the container.

 How were you deleting the row, and what was the error?

 GC one is called CONTAINER_REMOVE and one is called CONTAINER_INSERT
 GC .Within the insert function inserts the row of the table into a linked
list
 GC and then gets the next ptr of the table.

 This is to allow a container to have multiple sort orders. For example,
being
 sorted by the MIB index (maybe an integer) and a string (like a name).
There is
 still only a single row, shared by two containers.

 GC When I delete a row there are of course multiple containers within the
list
 GC when I only added one entry hence the failed error message.

 I don't follow your logic here. If there are multiple containers, insert
would
 have added the row to all of them, and thus it needs to be removed from
all of
 them.

 If you are not using the secondary container, I suggest you undefine the
macro
 controlling its use (eg myTable_IDX2, defined in the header file).

 --
 Robert Story; NET-SNMP Junkie
 Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Ok can you add the line:

trap2sink ipaddress comunityname
trapcommunity communityname

to your snmpd.conf file.


The ipaddress is the ip address of your local machine and community name is
the community name you specified
whilst building.

Much appreciated,
Garyc

- Original Message -
From: Russ Woodman [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 9:22 AM
Subject: Re: Cannot Process SNMP Traps


 Hi,

 You are correct in your assessment.  I'm running snmpd and snmptrapd on
 the same machine in this instance.  My Ethernet ports are set up
 correctly and receiving trap packets (snmptrapd -d and tcpdump both show
 them).  When I start up snmptrapd thusly:

 snmptrapd -d -Lo -f -Dsnmptrapd,read_config:traphandle

 I get this:

 read_config:traphandle: registering handler for: SNMPv2-MIB::coldStart
 read_config:traphandle: registering handler for: default
 2004-12-16 09:15:17 NET-SNMP version 5.1.2 Started.

 And then when I start up snmpd, I get nothing.  No packet, no log entry,
 no log to standard out, nothing.  I can see other traps coming in from
 remote hosts.  For example:

 Received 226 bytes from 205.167.142.15
 : 30 81 DF 02  01 00 04 05  4E 61 74 63  6F A4 81 D2
0...Natco...
 0016: 06 06 2B 06  01 04 01 09  40 04 CD A7  8E 0F 02 01
[EMAIL PROTECTED]
 0032: 06 02 01 01  43 04 07 D3  4E 5A 30 81  B5 30 12 06
C...NZ0..0..
 0048: 0D 2B 06 01  04 01 09 02  09 03 01 01  02 01 02 01
.+..
 0064: 05 30 20 06  1B 2B 06 01  02 01 06 0D  01 01 81 4D.0
..+.M
 0080: 81 27 81 0E  0F 17 81 4D  81 27 81 0E  1E 82 B1 7D
.'.M.'.}
 0096: 02 01 00 30  23 06 1D 2B  06 01 04 01  09 02 06 01
...0#..+
 0112: 01 05 81 4D  81 27 81 0E  0F 17 81 4D  81 27 81 0E
...M.'.M.'..
 0128: 1E 82 B1 7D  02 02 00 C8  30 22 06 1D  2B 06 01 04
...}0..+...
 0144: 01 09 02 06  01 01 01 81  4D 81 27 81  0E 0F 17 81
M.'.
 0160: 4D 81 27 81  0E 1E 82 B1  7D 02 01 00  30 22 06 1D
M.'.}...0..
 0176: 2B 06 01 04  01 09 02 06  01 01 02 81  4D 81 27 81
+...M.'.
 0192: 0E 0F 17 81  4D 81 27 81  0E 1E 82 B1  7D 02 01 0C
M.'.}...
 0208: 30 10 06 0C  2B 06 01 04  01 09 02 09  02 01 12 02
0...+...
 0224: 04 00 ..

 But nothing is logged by the trap handlers.  My snmpd.conf and
 snmptrapd.conf files are attached.  I don't have /var/snmpd logs.  I'm
 running net-snmp from Debian packages.

 Thanks,
 Russ

 Gary Clark wrote:
  Ok let me get this right:
 
  1) You start the snmptrapd
  2) You start the snmpd
  3) You dont see a coldStart trap when you use the perl script and trapd
  configuration file I sent you.
 
 
  Are you running the snmpd and snmptrapd locally or remotely?
 
  Can you also send the output from the /var/snmpd log?
 
  Can you also send the snmpd configuration file?
 
  I know this might sound dumb but I'm assuming your ethernet ports are
set
  correctly.
 
  Thanks,
  Garyc
 
 
  - Original Message -
  From: Russ Woodman [EMAIL PROTECTED]
  To: Gary Clark [EMAIL PROTECTED]
  Cc: Alex Burger [EMAIL PROTECTED];
  [EMAIL PROTECTED]
  Sent: Thursday, December 16, 2004 8:14 AM
  Subject: Re: Cannot Process SNMP Traps
 
 
 
 Hi,
 
 Yes, I tried those scripts and configs as you sent them.  The results
 are the same.  No traps are ever logged.
 
 Russ
 
 Gary Clark wrote:
 
 Hi,
 
 snmptrapd -c /home/garyc/snmptrapd.conf
 
 I sent the snmptrapd.conf I use for coldstart trap out yesterday and
 
  also a
 
 perl script you can use
 inconjunction with the snmptrapd.conf.
 
 Have you tried doing that?
 
 Thanks,
 Garyc
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users

 --
 Russ Woodman
 Systems Administrator
 Northern Arkansas Telephone Co.
 PO Box 209
 Flippin AR 72634
 +1-870-453-8811 (Tel)
 +1-870-453-9286 (Fax)









###
 #
 # EXAMPLE.conf:
 #   An example configuration file for configuring the ucd-snmp snmpd
 agent.
 #


###
 #
 # This file is intended to only be an example.  If, however, you want
 # to use it, it should be placed in /etc/snmp/snmpd.conf.
 # When the snmpd agent starts up, this is where it will look for it.
 #
 # You might be interested in generating your own snmpd.conf file using
 # the snmpconf program (perl script) instead

Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark



My apologies what I wanted to say was I'm guessing snmptrapd doesnt know
about snmptrapd.conf.

 Thanks,
 Garyc

 - Original Message -
 From: Gary Clark [EMAIL PROTECTED]
 To: Russ Woodman [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, December 16, 2004 9:47 AM
 Subject: Re: Cannot Process SNMP Traps


  Hi Russ,
 
  Can you tell me what lines you exactly put into the snmpd.conf
  and also exactly how you run snmptrapd. I'm guessing snmptrapd doesnt
know
  about snmpd.conf.
 
  Also what the path on perl?
 
  i.e which perl.
 
  Thanks,
  Garyc
  - Original Message -
  From: Russ Woodman [EMAIL PROTECTED]
  To: Gary Clark [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Thursday, December 16, 2004 9:47 AM
  Subject: Re: Cannot Process SNMP Traps
 
 
   Gary,
  
   I didn't built snmp, I installed it from debs, so I don't know what
the
   trap community would be.  However, I did put these lines in snmpd.conf
   and then checked snmptrapd.  The packets were received then, but still
   not logged.  In each case, I got this output from snmptrapd's debug:
  
   trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
   netsnmp_udp: recvfrom fd 7 got 97 bytes (from 127.0.0.1)
   trace: _sess_process_packet(): snmp_api.c, 4892:
   sess_process_packet: session 0x808b860 fd 7 pkt 0x808d118 length 97
   trace: _sess_process_packet(): snmp_api.c, 4916:
   sess_process_packet: pre-parse fail
   trace: _sess_read(): snmp_api.c, 5210:
   sess_read: not reading 5 (fdset 0xbc60 set 0)
   trace: _sess_read(): snmp_api.c, 5210:
   sess_read: not reading 3 (fdset 0xbc60 set 0)
   trace: snmp_sess_select_info(): snmp_api.c, 5622:
   sess_select: for all sessions: 7 5 3
  
   I don't know what pre-parse fail means, but it seems like it must be
   the root of my problem.
  
   Regards,
   Russ
  
   Gary Clark wrote:
Ok can you add the line:
   
trap2sink ipaddress comunityname
trapcommunity communityname
   
to your snmpd.conf file.
   
   
The ipaddress is the ip address of your local machine and community
 name
  is
the community name you specified
whilst building.
   
Much appreciated,
Garyc
 
 
 
  ---
  SF email is sponsored by - The IT Product Guide
  Read honest  candid reviews on hundreds of IT Products from real users.
  Discover which products truly live up to the hype. Start reading now.
  http://productguide.itmanagersjournal.com/
  ___
  Net-snmp-users mailing list
  [EMAIL PROTECTED]
  Please see the following page to unsubscribe or change other options:
  https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Hi Russ,

Can you tell me what lines you exactly put into the snmpd.conf
and also exactly how you run snmptrapd. I'm guessing snmptrapd doesnt know
about snmpd.conf.

Also what the path on perl?

i.e which perl.

Thanks,
Garyc
- Original Message -
From: Russ Woodman [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 9:47 AM
Subject: Re: Cannot Process SNMP Traps


 Gary,

 I didn't built snmp, I installed it from debs, so I don't know what the
 trap community would be.  However, I did put these lines in snmpd.conf
 and then checked snmptrapd.  The packets were received then, but still
 not logged.  In each case, I got this output from snmptrapd's debug:

 trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
 netsnmp_udp: recvfrom fd 7 got 97 bytes (from 127.0.0.1)
 trace: _sess_process_packet(): snmp_api.c, 4892:
 sess_process_packet: session 0x808b860 fd 7 pkt 0x808d118 length 97
 trace: _sess_process_packet(): snmp_api.c, 4916:
 sess_process_packet: pre-parse fail
 trace: _sess_read(): snmp_api.c, 5210:
 sess_read: not reading 5 (fdset 0xbc60 set 0)
 trace: _sess_read(): snmp_api.c, 5210:
 sess_read: not reading 3 (fdset 0xbc60 set 0)
 trace: snmp_sess_select_info(): snmp_api.c, 5622:
 sess_select: for all sessions: 7 5 3

 I don't know what pre-parse fail means, but it seems like it must be
 the root of my problem.

 Regards,
 Russ

 Gary Clark wrote:
  Ok can you add the line:
 
  trap2sink ipaddress comunityname
  trapcommunity communityname
 
  to your snmpd.conf file.
 
 
  The ipaddress is the ip address of your local machine and community name
is
  the community name you specified
  whilst building.
 
  Much appreciated,
  Garyc



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark

Hi Russ,

Can you please run:

snmptrapd -c /home/snmptrapd.conf

with the configuration file I sent you. The perl script I also provided
should be in the same directory that you have the snmptrapd.conf.

Thanks,
Garyc
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 9:54 AM
Subject: Cannot Process SNMP Traps





 My apologies what I wanted to say was I'm guessing snmptrapd doesnt know
 about snmptrapd.conf.

  Thanks,
  Garyc
 
  - Original Message -
  From: Gary Clark [EMAIL PROTECTED]
  To: Russ Woodman [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Thursday, December 16, 2004 9:47 AM
  Subject: Re: Cannot Process SNMP Traps
 
 
   Hi Russ,
  
   Can you tell me what lines you exactly put into the snmpd.conf
   and also exactly how you run snmptrapd. I'm guessing snmptrapd doesnt
 know
   about snmpd.conf.
  
   Also what the path on perl?
  
   i.e which perl.
  
   Thanks,
   Garyc
   - Original Message -
   From: Russ Woodman [EMAIL PROTECTED]
   To: Gary Clark [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Thursday, December 16, 2004 9:47 AM
   Subject: Re: Cannot Process SNMP Traps
  
  
Gary,
   
I didn't built snmp, I installed it from debs, so I don't know what
 the
trap community would be.  However, I did put these lines in
snmpd.conf
and then checked snmptrapd.  The packets were received then, but
still
not logged.  In each case, I got this output from snmptrapd's debug:
   
trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
netsnmp_udp: recvfrom fd 7 got 97 bytes (from 127.0.0.1)
trace: _sess_process_packet(): snmp_api.c, 4892:
sess_process_packet: session 0x808b860 fd 7 pkt 0x808d118 length 97
trace: _sess_process_packet(): snmp_api.c, 4916:
sess_process_packet: pre-parse fail
trace: _sess_read(): snmp_api.c, 5210:
sess_read: not reading 5 (fdset 0xbc60 set 0)
trace: _sess_read(): snmp_api.c, 5210:
sess_read: not reading 3 (fdset 0xbc60 set 0)
trace: snmp_sess_select_info(): snmp_api.c, 5622:
sess_select: for all sessions: 7 5 3
   
I don't know what pre-parse fail means, but it seems like it must
be
the root of my problem.
   
Regards,
Russ
   
Gary Clark wrote:
 Ok can you add the line:

 trap2sink ipaddress comunityname
 trapcommunity communityname

 to your snmpd.conf file.


 The ipaddress is the ip address of your local machine and
community
  name
   is
 the community name you specified
 whilst building.

 Much appreciated,
 Garyc
  
  
  
   ---
   SF email is sponsored by - The IT Product Guide
   Read honest  candid reviews on hundreds of IT Products from real
users.
   Discover which products truly live up to the hype. Start reading now.
   http://productguide.itmanagersjournal.com/
   ___
   Net-snmp-users mailing list
   [EMAIL PROTECTED]
   Please see the following page to unsubscribe or change other options:
   https://lists.sourceforge.net/lists/listinfo/net-snmp-users



 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Traps creation

2004-12-16 Thread Gary Clark
Have a wee' brouse at the notification.c in the examples directory of you
net-snmp installation.

Cheers,
Garyc

- Original Message -
From: Mike Mohamet [EMAIL PROTECTED]
To: Net-Snmp [EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 3:57 AM
Subject: Traps creation


 Hi all,

 I am using ucd-snmp-4.2.6 in my workstation PC. I read the tutorial about
the
 UCD-SNMP traps. In this tutorial I have to send the trap in order for the
 trap handler to dislpay it.
 I was wondering if there is a way (and documentation about it ) for the
agent
 to automatically send the trap when a specific event occur (e.g. when a
 counter reach a specific value).

 Regards,
 Mike


 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Hi,

snmptrapd -c /home/garyc/snmptrapd.conf

I sent the snmptrapd.conf I use for coldstart trap out yesterday and also a
perl script you can use
inconjunction with the snmptrapd.conf.

Have you tried doing that?

Thanks,
Garyc

- Original Message -
From: Russ Woodman [EMAIL PROTECTED]
To: Alex Burger [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 1:25 PM
Subject: Re: Cannot Process SNMP Traps


 Hi,

 When I run snmptrapd with the options specified below, I get:

 read_config:traphandle: registering handler for: default
 2004-12-15 13:20:19 NET-SNMP version 5.1.2 Started.

 When I send a trap, either from a Cisco device or by using the following
 command:

 snmptrap -v 1 - c public localhost TRAP-TEST-MIB::demotraps localhost 6 17
 '' SNMPv2-MIB::sysLocation.0 s Just here

 There is no debugging output at all.  I know the packets are being
 received because tcpdump shows them, but they seem to be summarily ignored
 by snmpd/snmptrapd.

 As you can see from the debug output, I am running version 5.1.2.

 Any clue what's wrong?

 Russ

 
  Try running snmptrapd in the foreground with debugging for
  read_config:traphandle and snmptrapd.
 
  snmptrapd -f -Lo -Dsnmptrapd,read_config:traphandle
 
  When I send a test trap, I get:
 
  read_config:traphandle: registering handler for: default
  2004-12-14 21:41:49 NET-SNMP version 5.2.pre1 Started.
  snmptrapd: input: a7
  snmptrapd: Trap OID: SNMPv2-SMI::enterprises.534.1.11.4.1.0.22
  snmptrapd: print_handler
  snmptrapd: v2/3 format
  2004-12-14 21:41:55 localhost [127.0.0.1]:
  SNMPv2-MIB::sysUpTime.0 = Timeticks: (12345) 0:02:03.45
  SNMPv2-MIB::snmpTrapOID.0 = OID:
  SNMPv2-SMI::enterprises.534.1.11.4.1.0.22
  SNMPv2-SMI::enterprises.534.1.7.2.1.1.52 = INTEGER: 52
  SNMPv2-SMI::enterprises.534.1.7.2.1.2.52 = OID:
  SNMPv2-SMI::enterprises.534.1.7.15
  SNMPv2-SMI::enterprises.534.1.11.3.0 = STRING: Alex
  snmptrapd: get_traphandler default (80704d8)
  snmptrapd: command_handler
  snmptrapd: token = '/root/traphandle-help default'
  snmptrapd: execute format
  snmptrapd: notification_handler
 
  What do you get?
 
  What version of Net-SNMP are you using?
 
  Alex



 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Repost: Unable to send v2 coldstart traps under 5.2

2004-12-15 Thread Gary Clark
Have you configured your ip machine correctly?
 ipconfig

Thanks,
Garyc

- Original Message -
From: Darren Gamble [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 3:55 PM
Subject: Repost: Unable to send v2 coldstart traps under 5.2


 Good day,

 I sent this message to the list last week, but no one replied.

 I'd really like to get this problem resolved so that I can upgrade to 5.2,
 so I'm just trying once more...  Any help would be really appreciated.

 Thanks in advance!

 
 Darren Gamble
 Planner, Regional Services
 Shaw Cablesystems GP
 630 - 3rd Avenue SW
 Calgary, Alberta, Canada
 T2P 4L4
 (403) 781-4948


 -Original Message-
 From: Darren Gamble
 Sent: December 8, 2004 3:35 PM
 To: [EMAIL PROTECTED]
 Subject: Unable to send v2 coldstart traps under 5.2


 Good day,

 I've just installed net-snmp-5.2, and am doing some testing on it before
we
 roll it out.  This is on Fedora Core 2, 2.6.9 smp kernel.  I grabbed the
5.2
 tarball, put it into the FC2 rpm and took out the Fedora rpm patches.

 It mostly works, but, now the v2 cold start and cold stop traps don't get
 sent.  The server logs:


 snmpd: send_trap: Failure in sendto (Invalid argument)


 The config file entry is simply:


 trap2sink x.x.x.x public


 Searching came up with one person with a similar problem, who noted that
the
 agent was trying to send his v3 traps from the localhost address (his
 problem didn't get resolved).  I noticed that if I change the trap host to
 127.0.0.1, then the trap is successfully sent via loopback.  Any
 non-localhost address appears to fail.

 Am I missing something here?  I also tried putting the Fedora rpm patches
 back in; no luck.

 Thanks in advance!

 
 Darren Gamble
 Planner, Regional Services
 Shaw Cablesystems GP
 630 - 3rd Avenue SW
 Calgary, Alberta, Canada
 T2P 4L4
 (403) 781-4948



 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users


 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-14 Thread Gary Clark
Hello,

Only the first line of the snmptrapd.conf is relevant. Its the coldstart
trap. You need to remove the rest.
I'm too idle. The trap.pl is the script which trapd will call when it
receives the coldStart trap after
you initialised your agent correctly. The trap.pl will dump the trap
information to a text file correctly.

Thanks,
Garyc


- Original Message -
From: Russ Woodman [EMAIL PROTECTED]
To: Alex Burger [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 2:46 PM
Subject: Re: Cannot Process SNMP Traps


 Alex,

 I've attempted to test the traps as shown in the tutorial.  When I send
 a manufactured trap, the debug output from snmptrapd shows this:

 trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
 netsnmp_udp: recvfrom fd 9 got 96 bytes (from 127.0.0.1)
 trace: _sess_process_packet(): snmp_api.c, 4892:
 sess_process_packet: session 0x808ba90 fd 9 pkt 0x808f4b8 length 96
 trace: _sess_process_packet(): snmp_api.c, 4916:
 sess_process_packet: pre-parse fail
 trace: _sess_read(): snmp_api.c, 5210:
 sess_read: not reading 6 (fdset 0xbc70 set 0)
 trace: _sess_read(): snmp_api.c, 5210:
 sess_read: not reading 5 (fdset 0xbc70 set 0)
 trace: _sess_read(): snmp_api.c, 5210:
 sess_read: not reading 3 (fdset 0xbc70 set 0)
 trace: snmp_sess_select_info(): snmp_api.c, 5622:
 sess_select: for all sessions: 9 6 5 3

 And nothing is recorded in the /tmp/snmptrapd.log file.  I'm cutting and
 pasting things directly from the tutorial and using the traphandle.sh
 you outlined below.

 Any ideas?

 Russ

 Alex Burger wrote:
 
  Hi Russ.
 
  Russ Woodman wrote:
 
  Hi,
 
  I am attempting to receive traps from various devices on my network
  (Copper Mountain DSLAMs, Cisco routers, etc.) so that I can then
  funnel the traps into Nagios for network monitoring.  However, nothing
  I have tried for the last three or more months has allowed me to
  receive/handle any traps sent by any devices.  Below are some relevant
  files and configuration.
 
 
  It looks like your script is not processing the output of snmptrapd
  correctly.  Snmptrapd will output multiple lines to the handler.  If you
  try the following snmptrapd.conf and traphandle.sh, it should work.  The
  script is a slightly modified version of the snmptrap tutorial at:
 
  http://www.net-snmp.org/tutorial-5/commands/snmptrap.html
 
  snmptrapd.conf:
  traphandle default /usr/local/bin/traphandle.sh
 
  traphandle.sh:
  #!/bin/bash
  LOGFILE=/tmp/snmptrapd.log
  read host
  read ip
  vars=
  while read oid val
  do
if [ $vars =  ]
then
  vars=$oid = $val
else
  vars=$vars, $oid = $val
fi
  done
  echo trap: $1 $host $ip $vars  ${LOGFILE}
  exit 0

 --
 Russ Woodman
 Systems Administrator
 Northern Arkansas Telephone Co.
 PO Box 209
 Flippin AR 72634
 +1-870-453-8811 (Tel)
 +1-870-453-9286 (Fax)


 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users


trap.pl
Description: Perl program


snmptrapd.conf
Description: Binary data


Mib row deletion

2004-12-08 Thread Gary Clark
Hello,

A quick question on deleting mibs. I'm using mib2c to generate the c code.
All very dandy except I'm not on exactly how
to remove rows from the table. I thought I could use

CONTAINER_REMOVE(sig.container,row_ctx);

This does indeed remove the row from the mib table however I'm seeing an
error in the snmpd log:

error on subcontainer remove (-1)

Now I take it I'm doing something wrong. Whats the procedure for removing a
row_entry?

Much appreciated,
Garyc




---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: What is a SNMP session?

2004-12-01 Thread Gary Clark
oh boy!!!

- Original Message -
From: Gemma Snchez [EMAIL PROTECTED]
To: Users [EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 6:36 AM
Subject: What is a SNMP session?


 Hello 

 I am finishing my tasks with NET-SNMP. These tasks are a part of my
thesis.
 In this state, a doubt arises. It is almost a philosophical one.

 Knowing SNMP is not oriented to conexion, what is exactly a SNMP session?

 Perhaps you could think it is a silly quiestion, and perhaps it is, but I
 can't find the answer and it is important for the documentation of my
 project.

 Could somebody clarify this concept (SNMP session) to me? Could you tell
me
 what does the opening and closing of a SNMP session involve exactly?

 Thanks a lot to all.

 Gemma S. Anton



 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 - 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 the newbies until you're done!  :-P

 --
 Robert Story; NET-SNMP Junkie
 Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.Net email is sponsored by: InterSystems CACHE
 FREE OODBMS DOWNLOAD - A multidimensional database that combines
 robust object and relational technologies, making it a perfect match
 for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Using persistent file as config file

2004-11-16 Thread Gary Clark
Hello,

To append what Robert stated. Yes of course you can do this. Basically ( I
hate using that word but at this time
it seems appropriate) you will register a callback function which is
associated to a token. The token eg a unique string pattern
will exist in the persistence file i.e snmpd.conf  in
/var/net-snmp/snmpd.conf. You need to register a callback function.
An example of how to do this can be seen /agent/mibgroup/mibII/system_mib.c.

This was my starting point.
The function of interest is:

snmpd_register_config_handler(token,CallbackFunction,NULL,NULL);

This callback function is called when the agent identifies the presence of
the token. Of course the callback function is something you will create and
not something provided from mib template generation.

Cheers,
Garyc

- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Sridhar S [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 9:47 PM
Subject: Re: Using persistent file as config file


 On Mon, 15 Nov 2004 19:20:57 +0530 Sridhar wrote:
 SS I am using net-snmp 5.1. My question is can I use persistent file as
 SS configuration file ? As I observed, the configuration entries
 SS (rwcommunity for example) being not written in the persitent file (as
 SS warning says). How can I retain these configuration entries in the
 SS persistent file ?

 You would have to make some modifications to the code, to add a save
routine
 for the variables in question. It would not be a supported configuration,
but
 it may very well work without problems.

 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.Net email is sponsored by: InterSystems CACHE
 FREE OODBMS DOWNLOAD - A multidimensional database that combines
 robust object and relational technologies, making it a perfect match
 for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Linking to static Net-SNMP libraries

2004-11-01 Thread Gary Clark
Are you attempting to build this on Linux? If so you need to have a complete
installation. Not partial when installing on linux.
You will get missing libraries if you only partially installing and yes
lcrypto is one of those missing libs. I also hit this problem.

Cheers,
Garyc
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 01, 2004 12:51 PM
Subject: Linking to static Net-SNMP libraries


 I'm trying to confirm that a problem I'm having with 5.2rc1 is in my use
of dynamic libraries leading to some conflict but when I try to link against
static libraries, I get an error.  I've modified the Makefile link line for
my client to:

 $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) \
  -static -lnetsnmp -dynamic -ldl -lcrypto -lm

 But I get:

   ld: cannot find -lcrypto
   collect2: ld returned 1 exit status

 I know I'm a little dim this week but shouldn't surrounding -lnetsnmp by
-static and -dynmaic leave everything else unchanged?

 TIA




 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Install on Redhat ES with RPM

2004-10-29 Thread Gary Clark

rpm -i net-snmp-5.1.2-1.rh9.i386.rpm --nodeps

Cheers,
Garyc

- Original Message -
From: Jon Hoover [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 29, 2004 11:11 AM
Subject: Install on Redhat ES with RPM


 How can I tell the rpm not to install SNMP with perl modules?

 When I run:

 rpm -i net-snmp-5.1.2-1.rh9.i386.rpm

 I get dependency erros:

 error: Failed dependencies:
 perl(Term::ReadKey) is needed by net-snmp-5.1.2-1.rh9
 perl(Tk) is needed by net-snmp-5.1.2-1.rh9

 My thought is, I don't need the perl modules, so how I can install without
 them?

 Thanks,
 Jon


 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-28 Thread Gary Clark
Download of Image to hardware

When a set request is received by the agent to download an image to
hardware
a function call is made to download.
Within this download function I have the mutex to lock to prevent multiple
requests to download and then I spawn a thread that downloads the image to
the hardware device. Once complete the lock is disabled. The thread
resources are removed once the thread exits.

This is what I sent out yesterday. Yes your both correct. The main thread
however is blocked as stated in the above text.

Thanks,
Garyc

- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
Cc: Gary Clark [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 8:06 AM
Subject: Re: Sending traps in another thread


 On Thu, 28 Oct 2004 09:39:43 +0100 Dave wrote:
 DS Robert Ok, lets see if I got this right. You have the main agent
thread,
 DS Robert and two worker threads. The worker threads don't do any SNMP
other
 DS Robert than to call send_v2trap. Is that right?
 DS
 DS Gary Yep you got it.
 DS
 DS Urk!  I'm not sure that's safe.
 DS
 DS As far as I remember, doesn't the 'send_trap_vars' mechanism use the
 DS same (non-thread-safe) set of APIs as the incoming request handling?
 DS I'd expect this to suffer from problems between generating traps
 DS and receiving incoming requests.
 DS
 DS In order for that to work safely, wouldn't it be necessary to rework
 DS the 'send_trap_vars' code to use the SSI approach instead?
 DS
 DS All of the locking that you talk about sounds to be aimed at a
different
 DS area of potential conflict.  I'm not at all sure that you're protected
 DS against races within the SNMP library itself.

 Dave's right. If you were using the mutexes such that only one thread at a
time
 was doing SNMP, you'd probably be ok. But if the main thread isn't blocked
 while the worker thread is doing it's trap thing, and you get an incoming
 request to the main thread, you've got two threads accessing the same
data.

 The odds of getting a request while sending/processing traps may be low,
but
 when it does happen, it could cause problems.

 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-28 Thread Gary Clark
Well I've got running and I'm seeing no problems of conflict. No downloads
requests are handled whilst the mutex is locked hence
only a single trap is sent and only any one download requests is handled at
any one time.

- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 3:39 AM
Subject: Re: Sending traps in another thread


 Robert Ok, lets see if I got this right. You have the main agent thread,
 Robert and two worker threads. The worker threads don't do any SNMP other
 Robert than to call send_v2trap. Is that right?

 Gary Yep you got it.

 Urk!  I'm not sure that's safe.

 As far as I remember, doesn't the 'send_trap_vars' mechanism use the
 same (non-thread-safe) set of APIs as the incoming request handling?
 I'd expect this to suffer from problems between generating traps
 and receiving incoming requests.

 In order for that to work safely, wouldn't it be necessary to rework
 the 'send_trap_vars' code to use the SSI approach instead?

 All of the locking that you talk about sounds to be aimed at a different
 area of potential conflict.  I'm not at all sure that you're protected
 against races within the SNMP library itself.


 Dave



 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
Yes,

I have sent traps in using a pthread. No problem. Are you trying to free a
PDU that has not been malloc?
Segmentation faults are usual candidates (using the the political term) for
bad memory accesses.
So your pointer may be invalid? Can you dump out what you allocate and what
you free? Again adding trace
is essential.

Much appreciated,
Garyc
- Original Message -
From: Vili Germic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 6:08 AM
Subject: Sending traps in another thread


 Hi all,

 I'm writting NET-Snmp sub agent.
 Has anybody tried to send traps in other thread that in main thread of
 sub agent?
 I'm having problems when snmp_free_pdu() is called. (segmentation fault).
 Any ideas on this? Has anybody do something like this?

 Best regards,
 Vili


 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
Hi,

Wow! I'm blessed one of the gurus. Ok no problem.

What platform are you using?

The OS platform is Redhat 9. Complete installation. If you do a partial
installation your going to hit all sorts of missing
libraries. Quite funny when you only do a regular installationnot.

 - What threading mechanism are you using?

I'm using Linux pthread. I'm not a fan of threads having seen the disasters
of misuse. But this seemed to be
an acceptable solution.

 The number of threads I use in my application. I link a library which I
know uses pthreads which performs alot of the driver
functionality to the hardware.
However the generated code produced using mib2c I wanted to keep pretty much
the same (to avoid additional headaches when changing mibs etc) so I created
global object that the table functionality directed requests to. Its within
this oject that I created threads. I have only two threads in this global
object. One to monitor link up and link downs and to invoke a trap when this
happens. Another to send a trap upon the completion
of a download or upload to and from the hardware. I dont want to block the
main thread so this was a good solution.

 Have you implemented any locking mechanism?

Standard pthread mutexs were used.

 Is your application an agent

Yes my application is an agent. Its controlled either from a perl script
which I wrote which uses Dave M.Towns Net::SNMP perl module. Its going to be
controlled by a browser which one of our guys are working.

  Do you call init_snmp()/init_agent() in more than one thread?

never.

 - Are you using methods other than those documented in README.threads in a
 thread other than the 'main' snmp thread?

I would have to read the README documentation on threads. I am using the
pthread implementation and including the pthreadlib.


  And about traps in particular:
 - What method do you use to send the trap? Manual building and
 sending using the single-session API, or something like send_easy_trap?

It was very easy to perform manual building. Using the notification example
you could figure out what was going on.
send_v2trap is what I am using.

Much appreciated,
Garyc


- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 10:23 AM
Subject: Re: Sending traps in another thread


 On Wed, 27 Oct 2004 08:47:42 -0500 Gary wrote:
 GC I have sent traps in using a pthread.

 Hi Gary,

 Do you mind if I ask a few questions about how your app works? We need to
 gather information to help identify what does and doesn't work. Even if
you can
 only answer briefly, like 'yes/no', that helps. If you can expound a bit,
even
 better. If you can't respond publicly, a private message to me would be
great.

 - What platform are you using?
 - What threading mechanism are you using?
 - How many threads use functions the snmp or agent libraries?
 - Have you implemented any locking mechanism?
 - Is your application an agent?
 - Do you call init_snmp()/init_agent() in more than one thread?
 - Are you using methods other than those documented in README.threads in a
 thread other than the 'main' snmp thread?

 And about traps in particular:
 - What method do you use to send the trap? Manual building and
 sending using the single-session API, or something like send_easy_trap?


 Thanks!


 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
 I assume that the same mutex used in the main agent thread and the other
worker
 thread? Where is the mutex set-up/locked in the agent?

The same type of mutex is used in other worker threads that is correct.
I am initializing the mutex in the main thread in my global object.

Download of Image to hardware

When a set request is received by the agent to download an image to hardware
a function call is made to download.
Within this download function I have the mutex to lock to prevent multiple
requests to download and then I spawn a thread that downloads the image to
the hardware device. Once complete the lock is disabled. The thread
resources are removed once the thread exits.


Thanks,
Garyc


- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 1:28 PM
Subject: Re: Sending traps in another thread


 On Wed, 27 Oct 2004 12:24:17 -0500 Gary wrote:
 GC  GC  Have you implemented any locking mechanism?
 GC  GC
 GC  GC Standard pthread mutexs were used.
 GC 
 GC  Can you elaborate on that? Where are they used? Who blocks who, and
when?
 GC
 GC The download to the hardware device or upload can take time and didnt
want
 GC another request to be handled
 GC so I use:
 GC
 I assume that the same mutex used in the main agent thread and the other
worker
 thread? Where is the mutex set-up/locked in the agent?

 I assume that the same mutex used in the main agent thread and the other
worker
 thread? Where is the mutex set-up/locked in the agent?

 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.Net email is sponsored by:
 Sybase ASE Linux Express Edition - download now for FREE
 LinuxWorld Reader's Choice Award Winner for best database on Linux.
 http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Packaging of snmpd

2004-10-26 Thread Gary Clark
Hello,

I managed to build my agent and run it. It still dies but I am tracking it
down exactly why.

Use:

./configure --enable-static=yes --enable-dynamic=no --with-mib_modules=psb

It appears to be ok for one of the tables initialisation etc. I will find
out in the next hour whats going on.
No shared libraries are pulled in.

Much appreciated,
Garyc

- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 25, 2004 5:19 PM
Subject: Re: Packaging of snmpd


 Hello,

 I rebuilt the executable. Yes it does build but it still contains shared
 libraries.
 'configure --with-ldflags=-Bstatic'.

 The static flag does indeed gets added but the dyamic libraries are still
 being pulled in and I can see them by performing an
 ' ldd'.

 I looked at the rest of the static explanation.

 NETSNMPDIR=/usr/local/build/snmp/full-clean-cvs-V5-1-patches
NETSNMPCONFIG=$(NETSNMPDIR)/net-snmp-config

NETSNMPBASECFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
NETSNMPINCLUDES := $(shell $(NETSNMPCONFIG) --build-includes
 $(NETSNMPDIR))
# base flags after build/src include, in case it has /usr/local/include
NETSNMPCFLAGS=$(NETSNMPINCLUDES) $(NETSNMPBASECFLAGS)

NETSNMPBASELIBS := $(shell $(NETSNMPCONFIG) --base-agent-libs)
NETSNMPEXTLIBS := $(shell $(NETSNMPCONFIG) --external-agent-libs)
NETSNMPLIBDIRS := $(shell $(NETSNMPCONFIG) --build-lib-dirs
 $(NETSNMPDIR))
NETSNMPLIBDEPS := $(shell $(NETSNMPCONFIG) --build-lib-deps
 $(NETSNMPDIR))
LIB_DEPS=$(NETSNMPLIBDEPS)
LIBS=$(NETSNMPLIBDIRS) -Wl,-Bstatic $(NETSNMPBASELIBS) -Wl,-Bdynamic
 $(NETSNMPEXTLIBS)


STRICT_FLAGS = -Wall -Wstrict-prototypes
CFLAGS=-I. $(NETSNMPCFLAGS) $(STRICT_FLAGS)

 This replaces the standard Makefile section, which will used installed
 libraries:

NETSNMPCONFIG=net-snmp-config

# uncomment this if you have GNU make
#NETSNMPCFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
#NETSNMPLIBS := $(shell $(NETSNMPCONFIG) --agent-libs)
NETSNMPCFLAGS=`$(NETSNMPCONFIG) --base-cflags`
NETSNMPLIBS=`$(NETSNMPCONFIG) --agent-libs`

LIBS=$(NETSNMPLIBS)

 The below section in the Makefile? Which Makefile? The standard Makefile
 section does not contains any of the definitions.
 Do we have a set of static libraries I can use to replace the share
 libaries? I'm using 5.1.2 for linux red-hat.

 Much appreciated,
 Garyc


 I performed
 - Original Message -
 From: Robert Story (Users) [EMAIL PROTECTED]
 To: Gary Clark [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, October 25, 2004 3:12 PM
 Subject: Re: Packaging of snmpd


  On Mon, 25 Oct 2004 12:04:27 -0500 Gary wrote:
  GC 1) I want the snmpd executable to be self-contained and not
dependant
 on
  GC installation of net-snmp. Is this possible.
 
  Yes. Try the static linking tips here:
 
  http://www.net-snmp.org/faqs/rstory/#static
 
  GC 2) The snmpd.conf file is situated in /usr/local/share/snmp. If
there
 is no
  GC /usr/local/share/snmp then can the agent
  GC  point to it using an environment variable. I know SNMPCONFPATH
is
 a
  GC way. However this gave me problems
  GC  when trying to use persistence and was advised to not to set
the
  GC environment variable. Do I simply ask the user to create
  GC  a directory /usr/local/share/snmp ?
 
  That directory is not used for persistence and dose not need to exist.
The
  normal configuration of snmpd can be loaded from anyplace on the
 filesystem by
  pointing to it with the -c option.
 
  The persistent directory defaults to /var/net-snmp. See the configure
help
 for
  options on configuring various paths.
 
  --
  Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
  irc://irc.freenode.net/#net-snmp
  Archive:
 http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users
 
  You are lost in a twisty maze of little standards, all different.
 
 
  ---
  This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
  Use IT products in your business? Tell us what you think of them. Give
us
  Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
 more
  http://productguide.itmanagersjournal.com/guidepromo.tmpl
  ___
  Net-snmp-users mailing list
  [EMAIL PROTECTED]
  Please see the following page to unsubscribe or change other options:
  https://lists.sourceforge.net/lists/listinfo/net-snmp-users



 ---
 This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 Use IT products in your business? Tell us what you think of them. Give us
 Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
 http://productguide.itmanagersjournal.com/guidepromo.tmpl
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page

Packaging of snmpd

2004-10-25 Thread Gary Clark
Hello,

I have a couple of questions:

1) I want the snmpd executable to be self-contained and not dependant on
installation of net-snmp. Is this possible.
The snmpd excutable resides in nets-snmp5.1.2/agent/.libs and when excuted
when net-snmp has been installed
everything is starts correctly. When trying to run the snmpd on a separate
linux machine it crashed with the
underfined symbol net-snmp daemonize.

Basically I want to make it very simple for the customer to install and use.

2) The snmpd.conf file is situated in /usr/local/share/snmp. If there is no
/usr/local/share/snmp then can the agent
 point to it using an environment variable. I know SNMPCONFPATH is a
way. However this gave me problems
 when trying to use persistence and was advised to not to set the
environment variable. Do I simply ask the user to create
 a directory /usr/local/share/snmp ?


Thanks,
Garyc




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Packaging of snmpd

2004-10-25 Thread Gary Clark
Much appreciated that looks like its doing the job. Very nice.

Cheers,
Garyc
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 25, 2004 3:12 PM
Subject: Re: Packaging of snmpd


 On Mon, 25 Oct 2004 12:04:27 -0500 Gary wrote:
 GC 1) I want the snmpd executable to be self-contained and not dependant
on
 GC installation of net-snmp. Is this possible.

 Yes. Try the static linking tips here:

 http://www.net-snmp.org/faqs/rstory/#static

 GC 2) The snmpd.conf file is situated in /usr/local/share/snmp. If there
is no
 GC /usr/local/share/snmp then can the agent
 GC  point to it using an environment variable. I know SNMPCONFPATH is
a
 GC way. However this gave me problems
 GC  when trying to use persistence and was advised to not to set the
 GC environment variable. Do I simply ask the user to create
 GC  a directory /usr/local/share/snmp ?

 That directory is not used for persistence and dose not need to exist. The
 normal configuration of snmpd can be loaded from anyplace on the
filesystem by
 pointing to it with the -c option.

 The persistent directory defaults to /var/net-snmp. See the configure help
for
 options on configuring various paths.

 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 Use IT products in your business? Tell us what you think of them. Give us
 Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
 http://productguide.itmanagersjournal.com/guidepromo.tmpl
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Is it possible? I'm sure it can be done

2004-10-22 Thread Gary Clark
My beloved company has asked me to write another agent. Yep no rest for the
wicked.
They want me to write a net-snmp agent(A) that can send set and get requests
to another snmp agent(B) whilst agent(A)
can receive set and get requests from the NMS (which I contructed using
perl).
I went over some of the problems in my head maybe i.e agent configuration
file issues and using the application code examples in
net-snmp/Apps and integrating that into my agent might be the best approach?

Any ideas on this? Has anybody tried to do this?

Much appreciated,
Garyc



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Is it possible? I'm sure it can be done

2004-10-22 Thread Gary Clark
Yeh thats it.

- Original Message - 
From: Gary Clark [EMAIL PROTECTED]
To: Dave Shield [EMAIL PROTECTED]
Sent: Friday, October 22, 2004 10:48 AM
Subject: Re: Is it possible? I'm sure it can be done 


 Yeh thats it.
 
 - Original Message - 
 From: Dave Shield [EMAIL PROTECTED]
 To: Gary Clark [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, October 22, 2004 10:48 AM
 Subject: Re: Is it possible? I'm sure it can be done 
 
 
  
   They want me to write a net-snmp agent(A) that can send set and get
   requests to another snmp agent(B) whilst agent(A) can receive set
   and get requests from the NMS (which I contructed using perl).
  
  You mean something like the proxy capability?
  
  Dave
 



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Hi Dave,

 What do you mean by pull a link ?
My apologies. On our board we have optical fibers referred to as links. When
a link is pulled its state changes from IN-SERVICE
to OUT-OF-SERVICE. The oid associated with this link is of
NOTIFICATION_TYPE.

 Sorry - that doesn't make sense.
 NOTIFICATION-TYPE objects don't have values,
 and you can't SET them.

Ok thats the first thing cleared up. I thought I could just set a value and
a trap would be triggered.
Is there documentation or a code example of how I can generate a trap? How
do I trigger trap generation?

My apologies for the confusion. I misunderstood the usage of the
NOTIFICATION_TYPE.

Much appreciated,
Garyc

- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3:31 AM
Subject: Re: trap question



  4) Pull a link which has an associated MIB oid type of NOTIFICATION_TYPE

 What do you mean by pull a link ?


  So if I set a value in the NOTIFICATION object

 Sorry - that doesn't make sense.
 NOTIFICATION-TYPE objects don't have values,
 and you can't SET them.

 You can specify a NOTIFICATION object when sending a trap
 (to identify which trap you're sending), but this doesn't
 happen automatically.  *Something* has to trigger the trap
 generation.
   Either you do this yourself, or some application will
 need to do so.


  Is there any stage I'm missing here?
  I gave the link oid the same type as NOTIFICATION_TYPE.
  Is there an example where I see this in action.

 Sorry - it's not particularly clear exactly what you are
 doing.  Maybe if you listed the exact command(s) you're trying?

 Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Hi Dave,

I have just found an example.

In /net-snmp/agent/mibgroup/example/notification.c

I will use this code if thats Ok?

Cheers,
Garyc

- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3:31 AM
Subject: Re: trap question



  4) Pull a link which has an associated MIB oid type of NOTIFICATION_TYPE

 What do you mean by pull a link ?


  So if I set a value in the NOTIFICATION object

 Sorry - that doesn't make sense.
 NOTIFICATION-TYPE objects don't have values,
 and you can't SET them.

 You can specify a NOTIFICATION object when sending a trap
 (to identify which trap you're sending), but this doesn't
 happen automatically.  *Something* has to trigger the trap
 generation.
   Either you do this yourself, or some application will
 need to do so.


  Is there any stage I'm missing here?
  I gave the link oid the same type as NOTIFICATION_TYPE.
  Is there an example where I see this in action.

 Sorry - it's not particularly clear exactly what you are
 doing.  Maybe if you listed the exact command(s) you're trying?

 Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Ahh ''mib2c -c mib2c.notify.conf' would seem to be the magic charm I'm
seeking.

Much appreciated,
Garyc

- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:54 AM
Subject: Re: trap question



  I have just found an example.
 
  In /net-snmp/agent/mibgroup/example/notification.c
 
  I will use this code if thats Ok?

 Yup - that's a reasonable place to start.
 Another is to run
 'mib2c -c mib2c.notify.conf'
 on your MIB.

 But both of these are primarily concerned with *how* to generate
 the trap, rather than *when*.   The 'example/notification.c' code
 will generate this trap every 30 seconds, the mib2c output doesn't
 itself generate any trap at all.

   But they both provide a routine that you can invoke whenever
 it's appropriate to send a trap.  But it's up to *you* to work
 out when to call this routine - perhaps in a signal handler,
 or following a regular check if anything has changed.

 Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Just imnplemented the traps into the agent. Works like a charm. I wrote a
perl script which dumps all traps.

Again they should seriously reward the support on this. No question.

Cheers,
Garyc

- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:54 AM
Subject: Re: trap question



  I have just found an example.
 
  In /net-snmp/agent/mibgroup/example/notification.c
 
  I will use this code if thats Ok?

 Yup - that's a reasonable place to start.
 Another is to run
 'mib2c -c mib2c.notify.conf'
 on your MIB.

 But both of these are primarily concerned with *how* to generate
 the trap, rather than *when*.   The 'example/notification.c' code
 will generate this trap every 30 seconds, the mib2c output doesn't
 itself generate any trap at all.

   But they both provide a routine that you can invoke whenever
 it's appropriate to send a trap.  But it's up to *you* to work
 out when to call this routine - perhaps in a signal handler,
 or following a regular check if anything has changed.

 Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


trap question

2004-10-19 Thread Gary Clark
Hello,

1) Start snmptrapd
2) Start snmpd
3) Perl script is fired and I dump the coldStart data to a file which is
what I expect to see.
4) Pull a link which has an associated MIB oid type of NOTIFICATION_TYPE
5) The link oid exists in the snmptrapd.conf file

I see that thesnmptrapd does indeed register with the correct callback
function for the link oid.

So if I set a value in the NOTIFICATION object should I see a trap being
sent?
Is there any stage I'm missing here? I gave the link oid the same type as
NOTIFICATION_TYPE.
Is there an example where I see this in action.

Thanks,
Garyc



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Master Agent Design approach?

2004-10-04 Thread Gary Clark

Thanks for tha advise Robert. I guess I need to do some more research on how
to constructy this baby the NMS.

Cheers,
Garyc

- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, October 02, 2004 12:03 PM
Subject: Re: Master Agent Design approach?


 On Fri, 1 Oct 2004 14:45:39 -0500 Gary wrote:
 GC  On Fri, 1 Oct 2004 08:47:36 -0500 Gary wrote:
 GC  GC Ok built the agent (very dandy) works like a charm. The question
I
 GC  GC have is where do I begin with the master agent?
 GC 
 GC  hhh The agent is a master agent [...]
 GC 
 GC My apologies terminology. In my design the snmp agent would be the
subagent
 GC on the line card. The master agent would be an NMS.

 I'm still not clear here. First, we need to establish what an agent is. An
 responds to requests from a manager. If an agent receives requests and
sends
 them to another process for processing, then that agent is also a master
 agent. (Assuming the two processes communicate via a sub-agent protocol,
 like AgentX or SMUX. If it simply sends a SNMP request to the other
process,
 then it is a proxy agent, not a master agent).

 So if you have a device that has line cards, a management station (NMS)
would
 probably send SNMP requests to the device. The agent on the device would
then
 communicate with the line cards, then generate a response to send back to
the
 NMS.

 GC What I would like to know is the approach needed to design an NMS that
can
 GC be used with the agent? I hope that sounds clearer.

 Well, that's a rather broad question. You have a MIB for your device, and
the
 protocol to communicate with the device. The NMS is basically a GUI
wrapper
 around the protocol. You should design it in a way that makes sense for
your
 device.

 From the SNMP perspective, the important thing is that you have a well
thought
 out MIB, so that the device can be monitored and/or managed by any generic
NMS,
 not just yours.

 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 Use IT products in your business? Tell us what you think of them. Give us
 Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
 http://productguide.itmanagersjournal.com/guidepromo.tmpl
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Master Agent Design approach?

2004-10-01 Thread Gary Clark
Hello,

Ok built the agent (very dandy) works like a charm. The question I have is
where do I begin with the master agent?
Whats the approach? Any ideas would be useful?

Thanks,
Garyc




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


CLI for net-snmp

2004-09-17 Thread Gary Clark
Hello,

Does anybody know if there is a CLI (command line interface) application
that presents data in a better format than using the snmpget and snmpset
routines for linux?

I dont want to embark on writing an application if there is one that
currently exists. If anyone knows where I can access
an application that would help me alot.

Thanks,
Garyc



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: squid mib

2004-09-13 Thread Gary Clark
Hello,

Have you tried to perform an snmptranslate on a MIB item that currently
exists? Was it successful.

i.e
snmptranslate -On SNMPv2-MIB::coldStart

Thanks,
Garyc
- Original Message -
From: Capacci Thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 11, 2004 6:09 PM
Subject: squid mib


 Hi,

 i use net-snmp.
 I've downloaded a mib.txt from squid to monitor related squid things.
 I am now reading the snmp tutorial especially the part talking about
 using local mibs.
 as it says i've put the squid mib.txt in the directory where snmp tools
 look for mibs.
 I've tried then snmptranslate -m +mib.txt -IR cacheClient.
 It returns an error (could not find squid.mib module At line 1 in (none)).
 I was wondering what went wrong.

 Thanks for replies.


 ---
 This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
 Project Admins to receive an Apple iPod Mini FREE for your judgement on
 who ports your project to Linux PPC the best. Sponsored by IBM.
 Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Adding traps

2004-09-10 Thread Gary Clark
Hi Dave,

Yep did that. Its looks like its doing something different.

I see it crashing with a broken pipe? Any ideas?

Cheers,
Garyc

- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 9:26 AM
Subject: Re: Adding traps



  I can see the coldStart trap being received but my script is not run.
 
  Within the snmptrapd.conf file I added the following line:
 
  traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl

 Try
   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl


 Dave



 ---
 This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
 Project Admins to receive an Apple iPod Mini FREE for your judgement on
 who ports your project to Linux PPC the best. Sponsored by IBM.
 Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Adding traps

2004-09-10 Thread Gary Clark
Hello,

The problem I'm seeing is that the snmptrapd.conf I dont think is being
accessed due to the script not being ran.

The snmptrapd.conf: now contains the following which Dave recommended:

   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl

I then used the following cold.pl perl script:

#!/usr/bin/perl -w

print At last the coldStart handler is alive!!\n;

sub getline()
{
while (STDIN)
 {
  my $line =$_;
  chomp ($line);
  print $line;
  }
}
sub main()
{
  getline();
}
main();

Simple. It accepts lines from STDIN and prints them out. This looks ok?
So if I dont see any output line I dont think the configuration is being
accessed.
Can somebody enlighten me on this? Is it an environment issue, if so how can
I determine this?
The snmptrapd.conf is located in /usr/local/share/snmp.

I'm running the trapd and it does receive the coldStart trap I just dont see
my script being ran.

Cheers,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 9:26 AM
Subject: Re: Adding traps



  I can see the coldStart trap being received but my script is not run.
 
  Within the snmptrapd.conf file I added the following line:
 
  traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl

 Try
   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl


 Dave



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Adding traps

2004-09-10 Thread Gary Clark
Hello,

I correct the perl script to dump to a text file and everything works fine.

Thanks,
garyc

- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]; Dave Shield
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 3:36 PM
Subject: Re: Adding traps


 Hello,

 By turning on the debug trace on the trace:

 snmptrapd -f -D -Lf dummy

 I can capture all the dump.

 I could then view the trace and saw that indeed the token traphandler
did
 get registered and a call was being made to my
 handler. My perl script was handling the trap handler call incorrectly.
But
 of course.

 Thanks,
 Garyc

 - Original Message -
 From: Gary Clark [EMAIL PROTECTED]
 To: Dave Shield [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 10, 2004 12:48 PM
 Subject: Re: Adding traps


  Hello,
 
  The problem I'm seeing is that the snmptrapd.conf I dont think is being
  accessed due to the script not being ran.
 
  The snmptrapd.conf: now contains the following which Dave recommended:
 
 traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
  /usr/local/share/snmp/cold.pl
 
  I then used the following cold.pl perl script:
 
  #!/usr/bin/perl -w
 
  print At last the coldStart handler is alive!!\n;
 
  sub getline()
  {
  while (STDIN)
   {
my $line =$_;
chomp ($line);
print $line;
}
  }
  sub main()
  {
getline();
  }
  main();
 
  Simple. It accepts lines from STDIN and prints them out. This looks ok?
  So if I dont see any output line I dont think the configuration is being
  accessed.
  Can somebody enlighten me on this? Is it an environment issue, if so how
 can
  I determine this?
  The snmptrapd.conf is located in /usr/local/share/snmp.
 
  I'm running the trapd and it does receive the coldStart trap I just dont
 see
  my script being ran.
 
  Cheers,
  Garyc
  - Original Message -
  From: Dave Shield [EMAIL PROTECTED]
  To: Gary Clark [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Friday, September 10, 2004 9:26 AM
  Subject: Re: Adding traps
 
 
  
I can see the coldStart trap being received but my script is not
run.
   
Within the snmptrapd.conf file I added the following line:
   
traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl
  /usr/local/share/snmp/cold.pl
  
   Try
 traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
  /usr/local/share/snmp/cold.pl
  
  
   Dave
 
 
 
  ---
  This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
  Project Admins to receive an Apple iPod Mini FREE for your judgement on
  who ports your project to Linux PPC the best. Sponsored by IBM.
  Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
  ___
  Net-snmp-users mailing list
  [EMAIL PROTECTED]
  Please see the following page to unsubscribe or change other options:
  https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Newbie : New MIB

2004-09-10 Thread Gary Clark

Hiya,

What I did when trying (still trying) to understand this baby was fill it
with trace. There are examples already in the code.
However run the snmpd agent with -d or -D this will dump allow you to see
some action. See the log file in /var/net-snmp/snmpd.log.

Providing you have built everything correctly you should be able to perform
snmpset and snmpget requests on the oid.
Note you need to fill the template code with your specific needs.
In its present state it will have the capability of allowing get and set
requests but may need embellishing.
But its upto to you to build the persistence and create your own data
structures to manage the contexts.

Thanks,
Garyc

- Original Message -
From: Preethy Yarlagadda [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 2:04 PM
Subject: Newbie : New MIB


 Hi everyone,

 I am a student implementing a project for one of my classes. I want to
 add a new MIB and poll the values. I tried to follow all the steps
 given at http://www.net-snmp.org/tutorial-5/toolkit/mib_module/index.html

 Immediately after adding the MIB, I can see everything through
 snmptranslate but once I build it into the agent I am getting the
 unknown Object Identifier error. I am listing down the steps I
 followed.
 1. Defined a new MIB with a simple scalar variable.
 (Extended netSnmpPlaypen)
 2. Used mib2c to generate .c and .h files
 3. Moved those files into agent/mibgroup directory
 4. Ran the configure script with the object variable
 ./configure --with-mib-modules=myModuleObject
 5. Build the agent
 make
 6.Installed everything
 make install

 4,5,6 steps are given at the netsnmp sources directory.

 As I told earlier, after following all these steps I am unable to see
 anything from the agent. How can I fix or debug this? I would be
 really glad if somebody can help me out here.

 Thank you
 Preethy


 ---
 This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
 Project Admins to receive an Apple iPod Mini FREE for your judgement on
 who ports your project to Linux PPC the best. Sponsored by IBM.
 Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: configuring VLANS or multiple variable sets in one SNMP command

2004-09-01 Thread Gary Clark
I didnt know we could pass multiple requests. Thats good.

- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: MrD [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 6:37 PM
Subject: Re: configuring VLANS or multiple variable sets in one SNMP command


 On Tue, 31 Aug 2004 15:04:31 -0700 (PDT) MrD wrote:
 M Can multiple variables be set in differnet modules in
 M one snmp set command?

 Yes.

 M I know that mib2c prototypes a function for each
 M variable to be set is this the only way snmp set will
 M work, one variable or one module at a time?

 The old style (v4) API did pass in a single request at a time. The new
style
 (v5) passes in a list of requests.

 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.


 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Being persistent with persistence

2004-08-29 Thread Gary Clark
Ahh. Much appreciated.

Garyc

- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: Gary Clark [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, August 28, 2004 7:49 PM
Subject: Re: Being persistent with persistence


 On Sat, 28 Aug 2004 15:51:36 -0500 Gary wrote:
 GC This is what confused me. I have two configuration files both called
 GC snmpd.conf.
 GC One is for persistence and one is for general configuration which is
 GC produced using snmpconf -g basic_setup.
 GC My SNMPCONFPATH was set to the point general at /usr/var/local/share.
The
 GC persistence configuration resides in /var/net-snmp.
 GC
 GC I was manually inserting my token into the persistence file. Thinking
that
 GC it would be
 GC read and my callback function would be called. Idiot, total idiot. The
 GC callback function would only be called if the token resided in the
 GC snmpd.conf file pointed to...yes you get it SNMPCONFPATH.
 GC At some point I must of altered this environment variable to point to
 GC /var/net-snmp and pick up the tokens.
 GC
 GC The reason why I am doing this. Basically when the agent restarts I
want to
 GC pull the tokens from the persistence and re-create the oids.
 GC
 GC The question begs. The SNMPCONFPATH points to the general agent
 GC configuration.

 No, SNMPCONFPATH is a path. If there are multipe directories, multiple
files
 can be read. If you unset SNMPCONFPATH, you'll find that both will
magically be
 read. Run with-Dread_config to watch it in action. The default will look
 something like this:

 read_config: reading premib configuration tokens
 read_config: config path used:

/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/rks/.snm
p:
 /var/net-snmp


 GC Should there be two configuration files?
 GC I think there should just be one right?

 Nope. The persistence file is separate because it is re-written by the
agent.
 The main configuration file is usually pretty static.

 --
 Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
 irc://irc.freenode.net/#net-snmp
 Archive:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

 You are lost in a twisty maze of little standards, all different.



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Being persistent with persistence

2004-08-28 Thread Gary Clark
Hello,

Ok I messed up somewhere. Just dont know where. I think its an environment
variable issue?
I have been using persistence. Extracting tokens and creating oids in my MIB
tree and all is well.
Then I did something which has caused my environment to change. I cannot get
persistence to load again.

Here is what I am doing:

./configure --with-mib-modules=psb_test
make

Everything builds fine and I can perform set and get requests on the oid. I
register the app handler
and create a function that should be called.

snmpd_register_config_handler(myFredToken,parse_func,NULL,NULL);


I manully modify the /var/snmpd.conf to contain:

myfredToken 1

I dont see my parse function being called. I enabled trace and saw that the
token is getting registered however no callback is made.
This is probably going to be blatently obvious to the net-snmp gurus, myself
a humble novice has been stumped.

However I think its my configuration environment. Likely SNMPCONFPATH
environment variable?

I use snmpconf -g basic_setup. This produces the snmpd.conf configuration. I
point the SNMPCONFPATH to /usr/local/share/snmp?

Is this OK.

If anybody can shed some light on this blind fellow much appreciated and
promise to return help if I can.

Cheers,
Garyc





---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Being persistent with persistence

2004-08-28 Thread Gary Clark
Hello,

Ok I was on the right path. Basically I completely forgot the little trick I
did.

This is what confused me. I have two configuration files both called
snmpd.conf.
One is for persistence and one is for general configuration which is
produced using snmpconf -g basic_setup.
My SNMPCONFPATH was set to the point general at /usr/var/local/share. The
persistence configuration resides in /var/net-snmp.

I was manually inserting my token into the persistence file. Thinking that
it would be
read and my callback function would be called. Idiot, total idiot. The
callback function would only be called if the token resided in the
snmpd.conf file pointed to...yes you get it SNMPCONFPATH.
At some point I must of altered this environment variable to point to
/var/net-snmp and pick up the tokens.

The reason why I am doing this. Basically when the agent restarts I want to
pull the tokens from the persistence and re-create the oids.

The question begs. The SNMPCONFPATH points to the general agent
configuration. Should there be two configuration files?
I think there should just be one right?

Thanks,
Garyc

- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 28, 2004 11:39 AM
Subject: Being persistent with persistence


 Hello,

 Ok I messed up somewhere. Just dont know where. I think its an environment
 variable issue?
 I have been using persistence. Extracting tokens and creating oids in my
MIB
 tree and all is well.
 Then I did something which has caused my environment to change. I cannot
get
 persistence to load again.

 Here is what I am doing:

 ./configure --with-mib-modules=psb_test
 make

 Everything builds fine and I can perform set and get requests on the oid.
I
 register the app handler
 and create a function that should be called.

 snmpd_register_config_handler(myFredToken,parse_func,NULL,NULL);


 I manully modify the /var/snmpd.conf to contain:

 myfredToken 1

 I dont see my parse function being called. I enabled trace and saw that
the
 token is getting registered however no callback is made.
 This is probably going to be blatently obvious to the net-snmp gurus,
myself
 a humble novice has been stumped.

 However I think its my configuration environment. Likely SNMPCONFPATH
 environment variable?

 I use snmpconf -g basic_setup. This produces the snmpd.conf configuration.
I
 point the SNMPCONFPATH to /usr/local/share/snmp?

 Is this OK.

 If anybody can shed some light on this blind fellow much appreciated and
 promise to return help if I can.

 Cheers,
 Garyc





 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Policy for commiting mibs?

2004-08-19 Thread Gary Clark
Hello,

Is there a policy for commiting MIBS to persistence in net-snmp. At the
moment all SET actions are followed by a COMMIT.
I then cycle through the columns of the row and insert them into the
persistence file. Not really what I should be doing.
Only when a selected field is set (i.e FLAG_COMMIT) should I commit the
entries to persistence? I know this could
be a potential solution. However is that what is generally adopted and
accepted?

Much appreciated,
Garyc

P.S

This is so cool.



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


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 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
 
 
 -Original Message-
 From: Marlena Miller [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 12, 2004 2:59 PM
 To: John Blake
 Cc: [EMAIL PROTECTED]
 Subject: RE: no response
 
 
 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:[EMAIL PROTECTED]
  Sent: Thursday, August 12, 2004 2:54 PM
  To: John Blake
  Cc: [EMAIL PROTECTED]
  Subject: RE: no response
  
  
  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: Thursday, August 12, 2004 2:37 PM
   To: [EMAIL PROTECTED]
   Subject: no response
   
   
   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). Can someone please tell me where I
  should
   look to debug this problem?
   
   Marlena
   
   _
   Don't just search. Find. Check out the new MSN Search!
   http://search.msn.click-url.com/go/onm00200636ave/direct/01/
   
   
   
   ---
   SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank
Media
   100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
   Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
   http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
   ___
   Net-snmp-users mailing list
   [EMAIL PROTECTED]
   Please see the following page to unsubscribe or change other options:
   https://lists.sourceforge.net/lists/listinfo/net-snmp-users
  
  _
  Don't just search. Find. Check out the new MSN Search!
  http://search.msn.click-url.com/go/onm00200636ave/direct/01/
 
 _
 Is your PC infected? Get a FREE online computer virus scan from McAfee(r)
 Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

 _
 On the road to retirement? Check out MSN Life Events for advice on how to
 get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



 ---
 SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
 Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
 http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


cool totally cool

2004-08-05 Thread Gary Clark
Hi,

I was advised to stick with the current approach of generating template code
and filling the code out to get persistence to work.
Basically I can save the mib to a persistence file and reload the
persistence into the mib. When set requests are performed the agent updates
the mib and the persistence file.
Thanks for the advice I now have a mib loaded into the trees, matching the
contents of the persistence. Its so cool. I'm having one
of those rare engineering moments that what I'm doing is worthwhile.

Much appreciated,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Merge changes?

2004-08-05 Thread Gary Clark
Hello,

After I have implemented the changes in the template code generated the I
realise that I need to add something to the MIB.
Can I just make the change to the XX-MIB.txt file and then make the changes
to the .c and .h files and rebuild?

Or are there additional bindings needed?

Thanks,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Generated templates

2004-08-02 Thread Gary Clark
Hello,

I have generated the templates using the mib2c command.
I initially chose to use the templates that contained tables which are
contained in internal memory.
When the agent dies...the tables die without any persistence.
Having tried out the get and set routines which work like a charm on the
tables on those tables.

I would like to use persistence for the MIBS and need some advice on this. I
would like to still use the
internal memory table generated code and simply add extensions to this code
so that I can add close a file.
Is there a standard procedure for creating persistence?

Thanks,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


walking snmpd

2004-07-30 Thread Gary Clark
hello,

I am running Linux version 9 with version 5.1.1 of net-snmp.

I have added and built the MIB and included it into the directory
/usr/local/share/snmp directory.
Generated the templates successfully and moved them into mibgroup and
created the top header with
the config_require(mibfiles.c) etc.

Performed ./configure and performed make.

Ok I am using the snmpd -d to debug whats happenning. When I perform
snmpwalk -v 1 -c erlang local host .1.3.6.1.2.1.6.15

I see the the snmp daemon Receiving a get request and sending a response to
the local machine:

TCP-MIB::tcpOutRsts.0 = counter32: 2

Marvelous. Just what I expected. Ok when I try to do the same with myMib. I
see the snmp daemon receive
and send but I dont see anything on my machine. The snmptranslate for the
given OID works fine though.

Questions do I have to perform a set on an entry within the MIB prior to
performing the snmpwalk command?
Is there a stage I have missed?

Cheers,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: walking snmpd

2004-07-30 Thread Gary Clark
Much appreciated Wes. The light bulb has just lit-up.

Thanks for the quick response.

Cheers,
Garyc

- Original Message -
From: Wes Hardaker [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:14 PM
Subject: Re: walking snmpd


  On Fri, 30 Jul 2004 11:41:47 -0500, Gary Clark
[EMAIL PROTECTED] said:

 Gary Questions do I have to perform a set on an entry within the MIB
prior to
 Gary performing the snmpwalk command?
 Gary Is there a stage I have missed?

 Did you actually write code to support that table within snmpd?  If
 you didn't or you just used the template code that mib2c produced, it
 won't actually return any real data until you make it.

 --
 Wes Hardaker
 Sparta



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


UnLinked OID

2004-07-27 Thread Gary Clark



Hello,

Ok I read the FAQ on UnLinked OID and even though 
its a relevant definition I dont think 
it relates to the problem I am seeing.

I am basically building a simple table,populate all 
the object elements etc and then run mib2c.
It goes ahead and constructs the templates and 
kindly asks me to fill the functionality. 

When I alter a name of an element in the table and 
make the correct changes to the MIB. It then
throws out the complaint of UnLinked OID. When I 
revert back to the original change it then happily goes
ahead and regenerates the templates.

What I'm gathering its already performed some 
storage
and is getting confused when another another 
attempt is made to generate the code.

Where can I remove the stale objects?

Much apprecaited,
Garyc


Re: perl(Term::ReadKey) error installing 5.1.1

2004-07-22 Thread Gary Clark



Yeh I had that exact problem yesterday. I am 
ensuring today that my Linux version of RedHat 9is complete on my 
machinetoday.
I'm hoping that will resolve the issue and have all 
the.pm module etc. Thisis painful especially when I'm not sure if 
this is going to resolve
the problem.

I tried an earlier version of installation and only 
to "hit the obvious wall" of version mismatches. I will let you know how it 
goes.

Cheers,
Garyc

  - Original Message - 
  From: 
  Christina McAghon 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, July 22, 2004 9:45 
  AM
  Subject: perl(Term::ReadKey) error 
  installing 5.1.1
  I am trying to install version 
  5.1.1 on Redhat 9 and I am receiving the following error: # rpm -U net-snmp-5.1.1-1.i386.rpm error: Failed dependencies: perl(Term::ReadKey) is 
  needed by net-snmp-5.1.1-1 However, the Term::ReadKey is installed on this machine...Any 
  ideas? cpan install 
  Term::ReadKey Term::ReadKey is up to 
  date. cpan test 
  Term::ReadKey Running test for module 
  Term::ReadKey Running make for 
  J/JS/JSTOWE/TermReadKey-2.21.tar.gz  Is already unwrapped into directory 
  /root/.cpan/build/TermReadKey-2.21  CPAN.pm: Going to build 
  J/JS/JSTOWE/TermReadKey-2.21.tar.gz Checking if your kit is complete... Looks good Writing Makefile for 
  Term::ReadKey cp ReadKey.pm 
  blib/lib/Term/ReadKey.pm AutoSplitting 
  blib/lib/Term/ReadKey.pm (blib/lib/auto/Term/ReadKey) /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp 
  -noprototypes -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap ReadKey.xs 
   ReadKey.xsc  mv ReadKey.xsc ReadKey.c gcc -c  -D_REENTRANT -D_GNU_SOURCE 
  -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe 
  -march=i386 -mcpu=i686  -DVERSION=\"2.21\" -DXS_VERSION=\"2.21\" -fPIC 
  "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"  ReadKey.c 
  Running Mkbootstrap for Term::ReadKey 
  () chmod 644 ReadKey.bs 
  rm -f 
  blib/arch/auto/Term/ReadKey/ReadKey.so LD_RUN_PATH="" gcc -shared -L/usr/local/lib ReadKey.o -o 
  blib/arch/auto/Term/ReadKey/ReadKey.so chmod 755 blib/arch/auto/Term/ReadKey/ReadKey.so cp ReadKey.bs 
  blib/arch/auto/Term/ReadKey/ReadKey.bs chmod 644 blib/arch/auto/Term/ReadKey/ReadKey.bs Manifying blib/man3/Term::ReadKey.3pm  /usr/bin/make -- OK Running make test Prepending /root/.cpan/build/TermReadKey-2.21/blib/arch 
  /root/.cpan/build/TermReadKey-2.21/blib/lib to PERL5LIB. PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" 
  "-Iblib/arch" -w test.pl 1 .. 8 
  ok 1 ok 2 ok 3 ok 4 ok 
  5 ok 6 ok 7 ok 
  8  /usr/bin/make test -- 
  OK cpan


Re: perl(Term::ReadKey) error installing 5.1.1

2004-07-22 Thread Gary Clark
We are doing a complete installation of linux redhat version 9 and will let
you know how the ship goes.

Cheers,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Christina McAghon [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 10:35 AM
Subject: Re: perl(Term::ReadKey) error installing 5.1.1



  # rpm -U net-snmp-5.1.1-1.i386.rpm
  error: Failed dependencies:
  perl(Term::ReadKey) is needed by net-snmp-5.1.1-1
 
  However, the Term::ReadKey is installed on this machine...Any ideas?
 
  cpan install Term::ReadKey
  Term::ReadKey is up to date.

 But how was this installed?
 In particular, was it installed via an RPM, or manually?
 If it was installed manually, then the RPM database won't
 have any idea that it is available, hence the error message.

 If that's the only thing it's complaining about you're probably
 OK to use -force, but that something of a slippery slope.
 In general, it's preferable to try and use RPMs for all installs.

 Dave

 PS: Please - no HTML mail.  Thanks



 ---
 This SF.Net email is sponsored by BEA Weblogic Workshop
 FREE Java Enterprise J2EE developer tools!
 Get your free copy of BEA WebLogic Workshop 8.1 today.
 http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click
 ___
 Net-snmp-users mailing list
 [EMAIL PROTECTED]
 Please see the following page to unsubscribe or change other options:
 https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


PERL problem with mib2c

2004-07-20 Thread Gary Clark




Running net-snmp-5.1.2.pre3 release.

When performing the following
$ mib2c etherStatsEntry

It looks like the two expected templates get 
generated:

etherStatsEntry.c and 
etherStatsEntry.h

However I then see the following:

running indent on etherStatsEntry.c
C:\cygwin\bin\perl.exe (3996): *** unable to remap 
C:\cygwin\lib\perl5\site_perl\5.8.2\cygwin-thread-multi-64int\auto\NetSNMP\default_store\default_store.dll 
to same address as parent (0xEF) != 0xFF
 237 [main] perl 2196 
sync_with_child: child 3996 (0x5fc) died before initialization with status code 
0x1
 734 [main] perl 2196 
sync_with_child: *** child state child loading dlls

ok I think there is a conflict between versions of 
perl? However can I still assume the templates generated
are valid?

Any answers to this would be 
appreciated?

Cheers,
Garyc


PERL problem with mib2c

2004-07-20 Thread Gary Clark



Running net-snmp-5.1.2.pre3 release.

When performing the following
$ mib2c etherStatsEntry

It looks like the two expected templates get 
generated:

etherStatsEntry.c and 
etherStatsEntry.h

However I then see the following:

running indent on etherStatsEntry.c
C:\cygwin\bin\perl.exe (3996): *** unable to remap 
C:\cygwin\lib\perl5\site_perl\5.8.2\cygwin-thread-multi-64int\auto\NetSNMP\default_store\default_store.dll 
to same address as parent (0xEF) != 0xFF
 237 [main] perl 2196 
sync_with_child: child 3996 (0x5fc) died before initialization with status code 
0x1
 734 [main] perl 2196 
sync_with_child: *** child state child loading dlls

ok I think there is a conflict between versions of 
perl? However can I still assume the templates generated
are valid?

Any answers to this would be 
appreciated?

Cheers,
Garyc