Hi all,

I am trying to send snmp v3 traps through command line and want to see
it in mib browser.

I have configured everything properly. SNMP v3 traps are sent properly
to the destination, I could see this using ethereal/tcpdump. But they
are not visible on the Mib Browser.

If I send v2 traps, I am able to see the traps on the browser.

All v3 parameters are set properly mean to say configuration is proper
in snmpd.conf. If I used snmp api for sending v3 trap the application
sends trap and it is visible in the mib browser.

Is there any thing additional we need to do? When I send v3 trap through
command line the engine boot and engine time is always zero. Even
setting engine boot and engine time to some values using -Z trap did not
display on Mib Browser. But through ethereal it says trap sent to the
destination and the command was successful.

Regards,
Som

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, April 13, 2007 12:40 AM
To: [email protected]
Subject: Net-snmp-users Digest, Vol 11, Issue 25

Send Net-snmp-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/net-snmp-users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Net-snmp-users digest..."


Today's Topics:

   1. RE: Compiled variable code in net-snmp-5.4 (Adam Bell)
   2. OpenBSD ports snmpd Net-SNMP Segfault Sig11 Update
      (Brian A. Seklecki)
   3. Unable to query lm_sensors MIB (Benton Roberts)
   4. RE: Compiled variable code in net-snmp-5.4 ([EMAIL PROTECTED])
   5. RE: Compiled variable code in net-snmp-5.4 ([EMAIL PROTECTED])


----------------------------------------------------------------------

Message: 1
Date: Thu, 12 Apr 2007 09:57:41 -0400
From: Adam Bell <[EMAIL PROTECTED]>
Subject: RE: Compiled variable code in net-snmp-5.4
To: [EMAIL PROTECTED]
Cc: [email protected]
Message-ID:
        
<[EMAIL PROTECTED]>
Content-Type: text/plain

After a bunch of messing around, here is what I did

use --with-mib-module=xxx  in configure just as you did.
Then create agent/mibgroup/dellmib directory and
agent/mibgroup/dellmib.h put all your mib2c created code files in
dellmib

In dellmib.h add lines for every file compiled within the dir dellmib
        config_require(dellmib/filename.c)
        config_add_mib(DELL-CMC-MIB)

Run make clean and configure.

This causes configure to place the proper init calls into the
mib_modules_inits.h (not mib_module_includes.h) - my mistake.


Hope this helps.
Adam

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 4:15 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: RE: Compiled variable code in net-snmp-5.4

Hi, Adam -

Thanks for the suggestion!

It is not listed. 

'mib_module_includes.h' has /*#include "mibgroup/DELL-CMC-MIB.h"*/

... in it. 

Strange. Is the configure fooked here?

./configure --with-mib-modules="DELL-CMC-MIB"
--with-default-snmp-version="2" --with-sys-contact="root@"
--with-sys-location="Unknown" --with-logfile="/var/log/snmp.log"
--with-persistent-directory="/var/net-snmp"

I do see my drs* functrions when grepping DELL-CMC-MIB.o and
utilk_funcs.o.
 
--
Don Wilde                           512-723-8255
Dell, Incorporated         Austin, Texas, USA


-----Original Message-----
From: Adam Bell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 3:06 PM
To: Wilde, Donald
Subject: RE: Compiled variable code in net-snmp-5.4

Check agent/mibgroup/mib_module_inits.h - see if you init() routines are
listed to be called.
Without this the handler is not registered. 

configure makes this happen for the listed mib modules, odd if it
missing since the code is compiled and linked in, one would think all is
well.

I added a file.h that lists the file to be compiled in
agent/mibgroup/file.h (this is a new mib module)

Adam

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 2:39 PM
To: [email protected]
Subject: Compiled variable code in net-snmp-5.4

Good gentlebeings -

I am having difficulty recognizing my enterprise-specific variables with
net-snmp-5.4.

My system is RHEL4u4 Linux.

First off, I have verified that my var handlers are being compiled using


nm /usr/local/lib/libnetsnmpmibs* | grep handle_drs

I can access all system-related objects using snmpwalk and snmpget.

My snmp.conf has 'mibs +DELL-CMC-MIB'
My snmpd.conf has 'rocommunity mystring'

The snmpd -d shows communication in both directions.

I've tried various combinations of the other four variables from the
supplied example snmpd.conf file.

When I try to access my variables, I get 

# snmpget -v 2c -c mystring localhost drsProductName
DELL-CMC-MIB::drsProductName = No such object available on this agent at
this OID

I am not seeing my init_ or handle_ debugging code get called, and I am
not seeing my stuff in NET-SNMP-AGENT-MIB::nsModuleTable.
NET-SNMP-MIB::nsModuleTable does not exist.

Please, what silly | stupid | undocumented thing am I missing?

Thanks in advance!

--
Don Wilde                           512-723-8255
Dell, Incorporated         Austin, Texas, USA


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
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

The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure.
If you have received this communication in error, please notify us
immediately by replying to this message and deleting it from your
computer without copying or disclosing it.

The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure.
If you have received this communication in error, please notify us
immediately by replying to this message and deleting it from your
computer without copying or disclosing it.



------------------------------

Message: 2
Date: Thu, 12 Apr 2007 12:07:51 -0400 (EDT)
From: "Brian A. Seklecki" <[EMAIL PROTECTED]>
Subject: OpenBSD ports snmpd Net-SNMP Segfault Sig11 Update
To: [email protected], [EMAIL PROTECTED],    Thomas
        Anders <[EMAIL PROTECTED]>, [EMAIL PROTECTED],
Marc Balmer
        <[EMAIL PROTECTED]>, [EMAIL PROTECTED],         Lauren Austin
<[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; FORMAT=flowed

Just as an FYI:  I went to go revisit this via our internal ticket
system and found that the 5.4 binaries from an experimental unofficial
port/package someone sent me have been running fine and stable without
segfaults for 4+ months.

I highly recommend that the port maintainers consider bringing in 5.4
into the -current ports tree for the 4.1-RELEASE

~~BAS


On Wed, 28 Feb 2007, Brian A. Seklecki wrote:

>
> No it still rocks out a segfault for me even with the experimental 
> version
> (5.3) that Opti circulated.
>
> ~BAS
>
> On Wed, 28 Feb 2007, Lauren Austin wrote:
>
>> Hi Brian,
>> 
>> I saw your posting about getting a sig 11 segfault in 
>> net-snmp-5.1.3p4 on OpenBSD 4.0/i386 but I didn't see a summary so
don't know if you sorted it?
>> 
>> I was getting a similar problem with the same versions of net-snmp 
>> and OpenBSD - snmpd would run for a couple of minutes then core dump 
>> with a segmentation fault.
>> 
>> I had in my snmpd.conf the lines:




------------------------------

Message: 3
Date: Thu, 12 Apr 2007 12:10:35 -0400
From: Benton Roberts <[EMAIL PROTECTED]>
Subject: Unable to query lm_sensors MIB
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Hello, all.

I am trying to read lm_sensors data from my SNMP server, version
5.3.1-14.fc6 for Fedora Core 6 (the current stable Fedora release RPM).
I have installed the lm_sensors package and can read my sensor data from
the command-line with 'sensors':
    k8temp-pci-00c3
    Adapter: PCI adapter
    Core0 Temp: +41?C
    Core1 Temp: +40?C
    Case Fan: 2083 RPM
    etc...

I have attempted to make sure that all MIB data for this host are
available through the SNMP server, in snmpd.conf:
    view    systemview    included   .1.3.6.1.2.1
This seems correct, because I can read network interface stats and disk
usage stats through SNMP just fine. But I still cannot get any sensor
data.  :(

The command "snmpwalk -c <my_community> -v1 localhost lmSensors"
produces only the line "End of MIB".
The command "snmpwalk -c <my_community> -v1 localhost" produces
information from the following MIBs, none of which seems to be sensor
data:
    DISMAN-EVENT-MIB, HOST-RESOURCES-MIB, IF-MIB, IP-FORWARD-MIB,
    IP-MIB, IPV6-MIB, MTA-MIB, NOTIFICATION-LOG-MIB, RFC1213-MIB,
    SNMPv2-MIB, TCP-MIB, UDP-MIB

I am 99% sure that this build of the SNMP server *does* include support
for lm_sensors, for three reasons. First, the release notes for this
RRPM contain the following entries:
    * Wed Aug 23 2006 Radek Vokal <[EMAIL PROTECTED]> 5.3.1.0-5
    - fix lm_sensors issues
    * Wed Nov 26 2003 Phil Knirsch <[EMAIL PROTECTED]> 5.1-2
    - Included BuildPrereq on lm_sensors-devel on x86 archs (#110616).
        * Wed Nov 19 2003 Phil Knirsch <[EMAIL PROTECTED]> 5.1-1
    - Added lm_sensors support patch for x86 archs from Kaj J. Niemi
(#107618).
Second, this RPM contains the file
/usr/share/snmp/mibs/LM-SENSORS-MIB.txt!        
And third, when I issue the command "rpmbuild --rebuild
SRPMS/net-snmp-5.3.1-14.fc6.src.rpm", I get:
    error: Failed build dependencies:
    lm_sensors-devel is needed by net-snmp-5.3.1-14.i386 When I resolve
these dependencies and rebuild the RPM, it behaves exactly as the stock
build -- that is, it shows no lm_sensor data at all.

I have even tried to force loading the MIB with a directive in
snmpd.conf:
    mibs +lmSensors
This has no noticeable effect.

So it seems that there may be some run-time directive I'm missing. Or is
it an SNMP version problem? Why wouldn't the lmSensors MIB be loading?
Has anyone else here tried this, or have any idea why it isn't working?

Thanks in advance,
- benton



------------------------------

Message: 4
Date: Thu, 12 Apr 2007 14:03:08 -0500
From: <[EMAIL PROTECTED]>
Subject: RE: Compiled variable code in net-snmp-5.4
To: <[email protected]>
Message-ID:
        
<[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="US-ASCII"

-----Original Message-----
From: Daniel Hobi [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 2:24 AM
To: [email protected]
Cc: Wilde, Donald
Subject: Re: Compiled variable code in net-snmp-5.4

On 12.04.2007 02:13, [EMAIL PROTECTED] wrote:
> Okay, by manually patching agent/mibgroup/mib_module_inits.h after 
> ./configure, I can get
> 
>  snmpwalk -v 2c -c mystring localhost dell
> 
>  ... to work, showing me all the props I've manually patched into that

> file.
> 
> However, snmpget of any one of the props does not work, returning 'No 
> such object'. I realize that this is a kludge, and I hope Somebody Who

> Knows will kindly correct my obvious lack of understanding and show me

> how to fix this properly. ;-]

You may need to add a trailing index, such as:

# snmpget -v 2c -c mystring localhost drsProductName.0

Or just use snmpgetnext:

# snmpgetnext -v 2c -c mystring localhost drsProductName

Regards,
Daniel


I found a strange thing... The gets started working when I took the
quotes off --with-enterprise-oid="674".

Thanks for the tips, Daniel1
--
Don Wilde                           512-723-8255
Dell, Incorporated         Austin, Texas, USA



------------------------------

Message: 5
Date: Thu, 12 Apr 2007 14:07:00 -0500
From: <[EMAIL PROTECTED]>
Subject: RE: Compiled variable code in net-snmp-5.4
To: <[email protected]>
Message-ID:
        
<[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="US-ASCII"

 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Thursday, April 12, 2007 3:46 AM
To: Wilde, Donald
Cc: [EMAIL PROTECTED]; [email protected]
Subject: Re: Compiled variable code in net-snmp-5.4

On 11/04/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> ./configure --with-mib-modules="DELL-CMC-MIB"

What is the name of the code file?
That's what --with-mib-module is wanting, not the name of the MIB.

If your code is in the file 'drs.c', then the configure command should
be

   ./configure   --with-mib-modules=drs ....

and it will invoke the routine 'init_drs'

If your init routine is called 'init_drsProductName', then the file must
be called 'drsProductName.c', and you invoke configure as

   ./configure   --with-mib-modules=drsProductName ....

These three values must match.
That's probably why you needed to hack things manually.

Dave

My code files are also combined into DELL-CMC-MIB.[ch] in
agent/mibgroup, and /usr/local/share/snmp/mibs/DELL-CMC-MIB.txt is the
MIB.


--
Don Wilde                           512-723-8255
Dell, Incorporated         Austin, Texas, USA



------------------------------

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V

------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


End of Net-snmp-users Digest, Vol 11, Issue 25
**********************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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

Reply via email to