Steve S. Law | 1 May 2006 18:21
Picon
Favicon

MIB table data aggregation question


Hi all:

This is more like a SNMP design question. Currently, I
have developed net-snmp AgentX sub-agent which pulls
data from a set of application processes. There are
five TYPES of processes. Each type can have more than
one instances running. My MIB is a table which has a
composite key of process type and process ID. Each row
represents data from each running instance. For
example, assume there are 3 data columns and two types
of processes. The following table shows that there are
2 processes running  which are Type 1 and another 2
proceses running which are Type 2.
1, 345, 10, 20, 50
1, 346,  12, 40, 12
2, 347,  11, 23, 60
2, 358,  11, 22, 60

Question: How can I get the aggregate data? For
example, the query would be "give me the sum of
column1 values for all processes of type 1" (using the
above example, the result will be 10+12 = 22).
Can I implement aggegates at the SNMP level? Or is it
the client responsibility to do the aggregation? Is it
possible to extend my MIB to include another table
which stores aggregates only (in additon to the
existing table which stores individual values) and
then let the sub-agent handle the query of that second
table by the client?
(Continue reading)

cnelson | 1 May 2006 18:44
Picon

Which MIBs for PPP?

RFC 1473 is pretty clear on its applicability:

   This document specifies the following group:

   The PPP IP Group

   The PPP IP Group contains configuration, status, and control
   variables that apply to the operation of IP over PPP.

   Implementation of this group is mandatory for all implementations
   of PPP that support IP over PPP.

But (earlier) it also says:

   The PPP MIB is organized into several MIB Groups, including, but not
   limited to, the following groups:

          o The PPP Link Group
          o The PPP LQR Group
          o The PPP LQR Extensions Group
          o The PPP IP Group
          o The PPP Bridge Group
          o The PPP Security Group

Without clear references to where those groups come from.  Since
PPP-IP-NCP-MIB imports ppp from PPP-LCP-MIB, I guess I need to at least
look at RFC1471.  I'm not so sure of the others.

I also found RFC 1317 which shows PPP in a protocol stack with RS-232
says:
(Continue reading)

sdgesa gaeharth | 1 May 2006 22:58
Picon
Favicon

just copmiled/installed latest version..min. config for snmptrapd.conf

I just downloaded, installed, and compiled net-snmp-5.3.0.1.tar.gz on my fedora 4 box.  the only option I ran was:

./configure --prefix=/usr/local/net-snmp

I have not done anything else.

It seems to be working . I run /usr/local/net-snmp/sbin/snmptrapd and get:

No log handling enabled - turning on stderr logging
Warning: no access control information configured.
This receiver will *NOT* accept any incoming notifications.

All I need to do if have snmptrapd accept all incoming snmpttraps and rout them to 2 other hosts on the network.  What is the minimum I need to do to get this to work.I am guessing I just create a config file and run it like this:

/usr/local/net-snmp/sbin/snmptrapd -c /etc/net-snmp/snmptrapd.conf


What needs to be in the config file?

thanks

Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
Andrew Heagle | 2 May 2006 06:33
Favicon

No such MIB...

Sorry if this has been covered before, but I have looked through the
list archives and I guess I can't figure out how search this properly.

Anyway, I am probably missing something really obvious.

I have 2 servers that I am monitoring with SNMP.

One is running debian unstable and the other is debian stable.

servers: Blackstar & Redstar

blackstar:~# snmpd -v
NET-SNMP version:  5.2.1.2

blackstar:~# cat /etc/snmp/snmpd.conf
syscontact  "Root <andrew <at> logaan.com>"
syslocation  "File Server"
sysname Blackstar
sysservices 15
rocommunity  <password>     default
com2sec      readonly   default  <password>
group        RO_Group   usm   readonly
group        RO_Group   v1    readonly
group        RO_Group   v2c   readonly
view         all    included   .1
access  RO_Group   ""       any        noauth     exact  all     none   none

blackstar:~# snmpget -v2c -c<password> localhost diskIONRead.17
UCD-DISKIO-MIB::diskIONRead.17 = Counter32: 1307632128

redstar:/usr/share/snmp# snmpd -v
NET-SNMP version:  5.1.2

redstar:~# cat /etc/snmp/snmpd.conf
syscontact  "Root <andrew <at> logaan.com>"
syslocation  "DMZ Server"
sysname redstar
sysservices 15
rocommunity  <password>     default
com2sec      readonly   default    <password>
group        RO_Group   usm   readonly
group        RO_Group   v1    readonly
group        RO_Group   v2c   readonly
view         all    included   .1
access  RO_Group   ""       any        noauth     exact  all     none   none

blackstar:~# snmpget -v2c -c<password> redstar diskIONRead.17
UCD-DISKIO-MIB::diskIONRead.17 = No Such Object available on this agent
at this OID

When doing snmpwalk, I could not find the diskIONRead OID anywhere.  I
also checked the enterprise MIBs as well.

I found the diskIONRead and Write OIDs in the UCD-DISKIO-MIB.txt MIB
file in /usr/share/snmp/mibs/ directory on both servers but Redstar does
not repond to it.

Is this simply because this OID is not supported in version 5.1.2 or is
there something I am missing?  If more info is needed, let me know and I
can post it.

TIA,
Andrew

-------------------------------------------------------
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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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

kanakamahesh.anasuri | 2 May 2006 19:42

change key

Hi,
 
Is it possible to change passphrases for USM Users in usmUserTable through snmpset directly? with out using snmpusm.
 
Thanks,
Mahesh
M.Daulat Rai | 2 May 2006 21:17

how to test AES encryption against test.net-snmp.org server?


Hello,

I finally built net-snmp binaries on windows xp with platform SDK and
OpenSSL....

I am able to test the DES encryption with the following command against
test.net-snmp.org server (successfully):

snmpgetnext -v 3 -n "" -u MD5DESUser -a MD5 -A "The Net-SNMP Demo Password"
-x DES -X "The Net-SNMP Demo Password" -l authPriv test.net-snmp.org system

Before I go too far and start writing application, I would like to verify
the AES encryption.

Could some one please send me a command I can use against the
test.net-snmp.org server to verify AES support?

I tried changin MD5DESUser to MD5AESUser with "-x AES" but that only
returned 'Unknown User Name'.

Please help!

Thanks!

--daulat	

-------------------------------------------------------
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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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

Peter Fitzgerald | 3 May 2006 04:40
Picon

How do you get at a mib index?

Hello to all.

This is my first post to the list and hope it is not too dumb.

 

I am running Perl 5.8 and net-SNMP 5.3.0.1 on a windows box with everything running as expected.

What I am having some trouble with is how to return an index.

Why should I want this you may be thinking…

 

CISCO Class based QOS.

The system generates indexes, appends them together and uses them as new indexes to other mib entries.

 

This is not so bad if you know how to get at the index’s, which I don’t!

I thought that NetSNMP::OID may do the trick but the examples are a little sketchy for me and I cannot find anything to help out.

 

Does anyone have some suggestions as to how I may get at these darn index’s, keeping in mind that I have limited experience in Perl to start with.

Any help appreciated.

 

Thanks

 

Peter Fitz.

kanakamahesh.anasuri | 3 May 2006 08:04

RE: change key

Hi All

 

I am just reiterating the question.

 

usm users which are created through snmpusm/createUser directives, the user entries are placed in /var/net-snmp/snmpd.conf and values populated in usmUserTable and usmDHUserKeyTable (augmented values)

 

When snmpset is performed on usmDHUserKeyTable to changes the auth/priv keys. Will the keys remain persistent (in snmpd.conf) when agent restarts?

 

Thanks,

Mahesh

 

From: net-snmp-users-admin <at> lists.sourceforge.net [mailto:net-snmp-users-admin <at> lists.sourceforge.net] On Behalf Of kanakamahesh.anasuri <at> wipro.com
Sent: Tuesday, May 02, 2006 11:13 PM
To: net-snmp-users <at> lists.sourceforge.net
Subject: change key

 

Hi,

 

Is it possible to change passphrases for USM Users in usmUserTable through snmpset directly? with out using snmpusm.

 

Thanks,
Mahesh

Mathew Bielejeski | 3 May 2006 20:29
Favicon

Key instead of password

Hi Everyone;

 

I am working on updating a program I have to work with snmpv3.  I have an snmpv3 capable device that has to be set up by inputting an MD5 key directly instead of creating one from a password.    As a simple test I set the MD5 key as 00112233445566778899aabbccddeeff, however I can’t figure out how to send this key from my program to the device.  No matter what I try I get an Authentication Failure error.

 

Here is what I have tried:

Sending the key as a string

Converting the string into 16 actual bytes and sending that as the key.

 

Does anyone know what form the key is suppose to be in to work correctly?

 

Mathew Bielejeski

http://www.neon.com

 

 

 

 

Xianan s Zhang | 4 May 2006 06:24
Picon
Favicon

monitor & trap


I would like to have snmpd sending traps automatically if one file is larger than a certain size.  So I added a few lines to snmpd.conf file, and the complete snmpd.conf file is attached below.

Then I started snmpd and snmptrapd daemons on localhost. snmptrapd uses a local file as its log by started as
        "/usr/sbin/snmptrapd -u /var/run/snmptrapd.pid -o /home/shannon/trap.log"

However, there was no trap event saved in the log even if the file is larger than 1kB, and fileErrorFlag (.1.3.6.1.4.1.2021.15.1.100) has been set to 1 according to snmpwalk.

I am using net-snmp 5.0.9 since it is included in RedHat distribution, and we may have to stick to this old version.

Could you please help me if you know what is wrong with my configuration? Thank you so much.

Shannon

========================================
snmpd.conf
========================================
rwuser  notConfigUser
rwcommunity  notConfigUser
pass         .1.3.6.1.4.1.4413.4.1         /usr/bin/ucd5820stat
file          /home/shannon/snmptest.txt         0.02

trapsink  localhost
trap2sink localhost
informsink  localhost
trapcommunity notConfigUser
authtrapenable  1

monitor  -r 30  "fileSize"  .1.3.6.1.4.1.2021.15.1.100 = 1
trapsink localhost
trap2sink localhost

syslocation         here
syscontact         Shannon
sysservices 72

com2sec notConfigUser  default       public
group   notConfigGroup v1            notConfigUser
group   notConfigGroup v2c           notConfigUser
view    allview       included   .1.3.6
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1
access  notConfigGroup ""  any   noauth    exact  allview  none  allview

Gmane