Mike Brodbelt | 2 Oct 15:40 2006

Compile trouble with 5.4pre3

I'm trying to compile the 5.4pre3 from source on Solaris 10, as I'm
interested in testing the new ifXTable implementation, but I can't get
it to configure happily. When I configure --with-mib-modules="if-mib", I
get:-

mib module error
configure: WARNING: mib module 'mibII/ifTable' requires module
'mibII/interfaces' but someone told me to compile without it

Configure does complete, and leaves me with:-

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Net-SNMP Version:           5.4.pre3
  Building for:               solaris2
  Network transport support:  Callback Unix UDP TCP
  SNMPv3 Security Modules:     usm
  *** MIB Module warning *** mib module 'mibII/ifTable' requires module 'mibII/interfaces' but someone
told me to compile without it
  Agent MIB code:             if-mib default_modules =>  if-mib/ifTable if-mib/ifXTable snmpv3mibs mibII ucd_snmp
notification notification-log-mib target agent_mibs agentx disman/event disman/schedule
utilities host
  Embedded Perl support:      disabled
  SNMP Perl modules:          disabled
  SNMP Python modules:        disabled
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
(Continue reading)

Jean-Sebastien Morisset | 2 Oct 18:17 2006
Picon

Excluding OIDs -- is this right?

Hi everyone,

I've been using the "rocommunity" directive, but had to use the whole
com2sec/group/access/view thing to exclude virtual interaces. Although
the following works, I'm not sure if the syntax is correct...

com2sec read default ********
group read v1 read
group read v2c read
group read usm read
access read "" any noauth exact read none none
view read included .1 80
# exclude virtual interfaces
view read excluded interfaces.ifTable.ifEntry.ifIndex.3
view read excluded interfaces.ifTable.ifEntry.ifIndex.4
view read excluded interfaces.ifTable.ifEntry.ifIndex.5
view read excluded interfaces.ifTable.ifEntry.ifIndex.6

Does this look good? If anyone can suggest an alternative to exclude
virtual interfaces on Solaris, I'd appreciate any tips.

Thanks!
js.
--

-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <jsmoriss <at> mvlan.net>
Personal Home Page <http://jsmoriss.mvlan.net/>
Underwater and Travel Photographs <http://www.mvpix.com/>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
(Continue reading)

Anders Persson | 2 Oct 18:52 2006
Picon

Re: Compile trouble with 5.4pre3

Hi Mike,

After you run configure, open agent/mibgroup/mib_module_includes.h and 
move the line "#include mibgroup/kernel_sunos5.h" to the top. Then run make.

PS. You also need to include the line "#define 
NETSNMP_INCLUDE_IFTABLE_REWRITES" in include/net-snmp/system/solaris.h 
to get the new tables to work.

Cheers,
Anders

Mike Brodbelt wrote:
> I'm trying to compile the 5.4pre3 from source on Solaris 10, as I'm
> interested in testing the new ifXTable implementation, but I can't get
> it to configure happily. When I configure --with-mib-modules="if-mib", I
> get:-
>
> mib module error
> configure: WARNING: mib module 'mibII/ifTable' requires module
> 'mibII/interfaces' but someone told me to compile without it
>
> Configure does complete, and leaves me with:-
>
>
> ---------------------------------------------------------
>             Net-SNMP configuration summary:
> ---------------------------------------------------------
>
>   SNMP Versions Supported:    1 2c 3
(Continue reading)

Dominique bastien | 2 Oct 19:18 2006
Picon

Re: Excluding OIDs -- is this right?

Try with a mask 0xff:0xa0 at the end to exclude the
interface.

ex:
view read excluded
interfaces.ifTable.ifEntry.ifIndex.6   0xff:0xa0

--- Jean-Sebastien Morisset <jsmoriss <at> mvlan.net>
wrote:

> Hi everyone,
> 
> I've been using the "rocommunity" directive, but had
> to use the whole
> com2sec/group/access/view thing to exclude virtual
> interaces. Although
> the following works, I'm not sure if the syntax is
> correct...
> 
> com2sec read default ********
> group read v1 read
> group read v2c read
> group read usm read
> access read "" any noauth exact read none none
> view read included .1 80
> # exclude virtual interfaces
> view read excluded
> interfaces.ifTable.ifEntry.ifIndex.3
> view read excluded
> interfaces.ifTable.ifEntry.ifIndex.4
(Continue reading)

Jean-Sebastien Morisset | 2 Oct 19:36 2006
Picon

Re: Excluding OIDs -- is this right?

On Mon, Oct 02, 2006 at 01:18:19PM -0400, Dominique bastien wrote:
> Try with a mask 0xff:0xa0 at the end to exclude the
> interface.

Oh, nice! Thanks!

js.

> ex:
> view read excluded
> interfaces.ifTable.ifEntry.ifIndex.6   0xff:0xa0
> 
> --- Jean-Sebastien Morisset <jsmoriss <at> mvlan.net>
> wrote:
[snip!]

--

-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <jsmoriss <at> mvlan.net>
Personal Home Page <http://jsmoriss.mvlan.net/>
Underwater and Travel Photographs <http://www.mvpix.com/>

-------------------------------------------------------------------------
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=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
(Continue reading)

Mathew Bielejeski | 2 Oct 20:15 2006

RE: Using async sends

I figured out what my problem was; I was misreading the example code in
asyncapp.c

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

Message: 1
Date: Fri, 29 Sep 2006 16:34:36 -0700
From: "Mathew Bielejeski" <mathewb <at> neon.com>
Subject: Using async sends
To: <net-snmp-users <at> lists.sourceforge.net>
Message-ID: <1052549836-2242240 <at> neon.com>
Content-Type: text/plain; charset="us-ascii"

I am trying to set up an asynchronous send with a callback in my code but it
doesn't seem to be working.  My debugger never hits the breakpoint in my
callback function.

Here is what I have

int testCallback(int operator, struct snmp_session * session, int reqid,
struct snmp_pdu * pdu, void * data);

{

            Return 1;

}

In my code I have

(Continue reading)

James Mckenzie | 2 Oct 20:57 2006
Picon
Picon

Problems with Monitor on Solaris 9

Well, I followed the advice of a list member but I still cannot run monitors against the Apache httpd process
and get a trap when the httpd process fails.

Attached are the snmpd.conf (stripped of comments) and the snmpd.log file.

Note: If I do not provide a valid user name with the noauth parameter, the monitor line fails requesting that
I provide a user name with the agentSecName parameter, and I have definitely added one.

James McKenzie
syslocation  "TIC Raised Floor"
syscontact  "System Administrator"
sysservices 79
createUser me MD5 "single pass phrase"
createUser _internal MD5 "the first sign of madness"
createUser rouser MD5 "single pass phrase"
rwuser me noauth
rouser rouser 
rouser _internal noauth
rocommunity  public  
rwcommunity  private 127.0.0.1 
agentSecName _internal
iquerySecName me
trapsink  147.227.217.50  
trapsink  147.227.217.26  
trapcommunity  public
authtrapenable  1
exec tester1 /usr/local/src/tester1
#exec tester2 /usr/local/src/tester2
(Continue reading)

Markus Zehnder | 2 Oct 22:01 2006
Picon

Markus Zehnder ist außer Haus.


Ich werde ab  02.10.2006 nicht im Büro sein. Ich kehre zurück am
16.10.2006.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten, Ihr Mail wird
nicht weitergeleitet.

-------------------------------------------------------------------------
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=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Hai Wang | 2 Oct 22:22 2006

SNMP Agent extension in C

Hello all,

    I am wondering if any of u is kindly pointing out where I can find
comprehensive materials/tutorials on how to extend SNMP agent in C?

Many thanks!

--
Hai Wang
Principal Software Engineer
Fine Point Technologies, Inc.
139 Centre Street, 6th Floor
New York, New York 10013-4408
email: hwang <at> finepoint.com
phone: +1.212.962.7410 x 326
fax: +1.212.962.7404
web: http://www.finepoint.com

-------------------------------------------------------------------------
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=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

(Continue reading)

Alex Burger | 2 Oct 23:29 2006
Picon
Picon

Re: SNMP Agent extension in C

Hai Wang wrote:
>     I am wondering if any of u is kindly pointing out where I can find
> comprehensive materials/tutorials on how to extend SNMP agent in C?

http://www.net-snmp.org/tutorial/tutorial-5/toolkit/index.html

Alex

-------------------------------------------------------------------------
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=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Gmane