Re: Sub-id not found error?

2006-03-28 Thread Dave Shield
On Mon, 2006-03-27 at 15:46 -0500, Jean-Sebastien Morisset wrote:

 If I stop cron using the following in my snmpd.conf file:
 
 monitor -S -r 128 -o prNames -o prErrMessage procTable prErrorFlag != 0
 
 Then it work fine,

As expected - good.

  BUT if I use this _instead_:
 
 monitor -S -r 128 -o prNames.2 -o prErrMessage.2 procTable.2 prErrorFlag.2 
 != 0
 
 Then it doesn't work.

Try

  monitor -I -S -r 128 

The -I flag indicates that this monitor entry refers to a specific
instance, rather than a wildcarded object.



I had to split the procTable because the standard
 monitor would return erroneous errors for running processes. For
 example:
 
 mteTriggerFired trap received from gessolx1.dev.me.org:
procTable .1.3.6.1.4.1.2021.2.1.100.2 1 cron
 
 I'd set proc cron 1 1 so a trap shouldn't have been sent.

What does walking the procTable show in such a situation?
It might be worth tweaking the monitor line to report the
prErrorFlag and prCount values as part of the trap, so you
can see what's actually happening.


Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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


trapsess -e Engine-Id

2006-03-28 Thread kanakamahesh.anasuri
Title: trapsess -e Engine-Id






Hi Folks,

Should this usmUserEngine-Id length be 20 bytes always? Less than 20 bytes, I don't see the entries for trapsess in snmpTargetParamsTable.

trapsess -e 0xusmUserEngine-Id 

Thanks,
Mahesh






Re: trapsess -e Engine-Id

2006-03-28 Thread Thomas Anders

[EMAIL PROTECTED] wrote:
Should this usmUserEngine-Id length be 20 bytes always? Less than 20 
bytes, I don't see the entries for trapsess in snmpTargetParamsTable.


trapsess -e 0xusmUserEngine-Id 


RFC 3411 specifies SnmpEngineID as

  SYNTAX   OCTET STRING (SIZE(5..32))

so there shouldn't be a requirement for a 20 byte minimum.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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: trapsess -e Engine-Id

2006-03-28 Thread kanakamahesh.anasuri
Title: RE: trapsess -e Engine-Id






Hi Thomas,

Thanks for the reply.

I tested trapsess directive with EngineId less than 19 bytes, I think you know that snmpTargetParamsTable will have the values popualted with corresponding trapsess directives in snmpd.conf

If I use the length of Engine-Id less than 20 (-e option) then there are no entries for snmpTargetParamsTable.

The following are the details for my environment. I tested this on Linux/Fedora platforms.

snmpd.conf has the following entries.

*
trapsess -e 0x93ddf15414344452 -v 3 -u admin -a SHA -x AES -l noAuthNoPriv 10.201.114.135 -Ci

trapsess -e 0x00a1030020ED0DD2 -v 3 -u myuser -a MD5 -A mypassword -l noAuthNoPriv 10.201.114.137 -Ci
*
Some sample O/P for snmpTargetParamsTable query.

[EMAIL PROTECTED] snmp]# snmptable -v2c -c wimax 10.201.114.135 snmpTargetParamsTable
SNMP table: SNMP-TARGET-MIB::snmpTargetParamsTable

snmpTargetParamsMPModel snmpTargetParamsSecurityModel snmpTargetParamsSecurityName snmpTargetParamsSecurityLevel snmpTargetParamsStorageType snmpTargetParamsRowStatus
 3 3 admin noAuthNoPriv readOnly active
 3 3 myuser noAuthNoPriv readOnly active
*

Thanks in advance,

Mahesh


-Original Message-
From: [EMAIL PROTECTED] on behalf of Thomas Anders
Sent: Tue 3/28/2006 4:08 PM
To: Net-snmp-users@lists.sourceforge.net
Subject: Re: trapsess -e Engine-Id

[EMAIL PROTECTED] wrote:
 Should this usmUserEngine-Id length be 20 bytes always? Less than 20
 bytes, I don't see the entries for trapsess in snmpTargetParamsTable.

 trapsess -e 0xusmUserEngine-Id 

RFC 3411 specifies SnmpEngineID as

 SYNTAX OCTET STRING (SIZE(5..32))

so there shouldn't be a requirement for a 20 byte minimum.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk=110944=241720=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







Agent Ext Sit on Nails

2006-03-28 Thread Parthiban Naliiamudali

 
Dear Robert,David

I am using NET-SNMP on linux platform... and trying to implement a WMANIF-MIB (IEEE 802.16f) and in this trying to integrate this agent with an application for the mib values... for the same each time when I write a piece of code.. I need to do follow configure, compile and install .. Instead I am trying to write a makefile.. which will hold the object files seperately and will compile directly...
What are should be there in the makefile body???

Then I am also trying to send notifications through this agent.. 
What is the default MIB implemented with net-snmp agent having notification object ???

and also I am interested to know how many traps/notifications will our net-snmp process per sec.???

kindly help me sir

with Regards,
n.parthiban.





help:how can I install perl modules

2006-03-28 Thread 郭艳丽
hello!
  I am developing a snmp angent with net-snmp package.the platform is Linux,I 
have downloaded  many packages,including ucd-snmp.I also install this package 
many times,
but the installing of perl modules is always failed.
  what's wrong with it?  I am confused.  I hope to receive your 
reply.Thank��you!
[EMAIL PROTECTED]
  2006-03-28


net-snmp5.3.0.1 crash

2006-03-28 Thread Sachin Mishra
net-snmp 5.3.0.1 crashes on power-pc. Linux ppc-301-1 2.4.22-2f #1 Sun
Nov 9 16:49:49 EST 2003 ppc ppc ppc GNU/Linux

Here is the stack trace information of the core dump:


#0  __libc_free (mem=0x11) at malloc.c:3337
3337malloc.c: No such file or directory.
in malloc.c
(gdb) bt
#0  __libc_free (mem=0x11) at malloc.c:3337
#1  0x0f82f858 in __DTOR_END__ () from /lib/libc.so.6
#2  0x0ff20018 in init_hr_proc () at host/hr_proc.c:104
#3  0x0ff7c350 in init_mib_modules () at mib_modules.c:91
#4  0x10003508 in main (argc=2, argv=0x1001) at snmpd.c:901
#5  0x0f70104c in __libc_start_main (argc=2, ubp_av=0x7ab4,
ubp_ev=0x3435352c, auxvec=0x7b28, rtld_fini=Cannot access memory at
address 0x9
)
at ../sysdeps/powerpc/elf/libc-start.c:178

Has anyone else faced this problem?

Thanks,
Sachin



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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


OID 2021

2006-03-28 Thread Fernando Jose



hi,

O.S.: HP-UX 11.23 

I installed net-snmp 5.2.1 
and i need the OID .1.3.6.1.4.1.2021.11.9.0 and how can i configure the snmp to get this OID?

Wait




Re: Sub-id not found error?

2006-03-28 Thread Jean-Sebastien Morisset
On Tue, Mar 28, 2006 at 09:08:34AM +0100, Dave Shield wrote:
 On Mon, 2006-03-27 at 15:46 -0500, Jean-Sebastien Morisset wrote:
 
 If I stop cron using the following in my snmpd.conf file:
 
 monitor -S -r 128 -o prNames -o prErrMessage procTable prErrorFlag != 0
 
 Then it work fine,
 
 As expected - good.
 
  BUT if I use this _instead_:
 
 monitor -S -r 128 -o prNames.2 -o prErrMessage.2 procTable.2 prErrorFlag.2 
 != 0
 
 Then it doesn't work.
 
 Try
 
   monitor -I -S -r 128 
 
 The -I flag indicates that this monitor entry refers to a specific
 instance, rather than a wildcarded object.

Aha! That was the bit I was missing! :-) I'm a happy camper now! All my
lmSensor traps are working. Woohoo! :-)
 
I had to split the procTable because the standard
 monitor would return erroneous errors for running processes. For
 example:
 
 mteTriggerFired trap received from gessolx1.dev.me.org:
procTable .1.3.6.1.4.1.2021.2.1.100.2 1 cron
 
 I'd set proc cron 1 1 so a trap shouldn't have been sent.
 
 What does walking the procTable show in such a situation?
 It might be worth tweaking the monitor line to report the
 prErrorFlag and prCount values as part of the trap, so you
 can see what's actually happening.

I haven't spotted a pattern yet. It happens at all hours on just about
any process, although cron keeps on coming up more often. Hopefully
switching from monitor -S -r 128 -o prNames ... to monitor -S -I -r
128 -o prNames.1 ... will fix my problem.

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED]
Personal Home Page http://jsmoriss.mvlan.net/
Underwater and Travel Photographs http://www.mvpix.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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


net-snmp v5.3.0.1 filltering problem

2006-03-28 Thread stan buyanov
Hi everybody,  I would greatly appreciate if you could help me with the   following problem.1) net-snmp v5.3.0.1 and the RMON2 subagent   (auto-generated by mib2c   using mib2c.table_data.conf) are running on Linux. 2) in
 order to get alMatrixSDOctets objects from   alMatrixSDTable I use the following command:snmpgetnext -v 2c -c public localhost   1.3.6.1.2.1.16.17.1.1.3.1.0.3where the 0 represents a timestamp, and got the   following response:SNMPv2-SMI::mib-2.16.17.1.1.3.1.1766.3.4.10.16.77.8.4.10.16.76.8.10 =   Gauge32: 1842, where 1766 represents timestamp of the selected record   in the alMatrixS
 DTable
 table.3) my goal is that this respond looks like   thisSNMPv2-SMI::mib-2.16.17.1.1.3.1.0.3.4.10.16.77.8.4.10.16.76.8.10 = Gauge32:   1842, Where 1766 is replaced by 0 that we have in the original   request.4) I checked the request-requestvb-name   in the 
 alMatrixSDTable_handler(netsnmp_mib_handler   *handler,  netsnmp_handler_registration *reginfo,  netsnmp_agent_request_info *reqinfo,  netsnmp_request_info *requests)and discovered that   request-requestvb-name is not equal to the original request oid; it has   a value that in the alMatrixSDTable.5) my questions are: a) how could I get the original request oid   ? b)does the time   filltering work in this case?  Thanks a   lot,  Stan  
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

5.3.0.1 ./configure creates empty Makefiles on HP-UX

2006-03-28 Thread Ford, Andy
./configure is creating empty makefiles for me.

Did this:
./configure --with-defaults 

Got this:

./configure[1855]: ==: A test command parameter is not valid.

[...lots of good-looking configure output...]

-
Net-SNMP configuration summary:
-

  SNMP Versions Supported:1 2c 3
  Net-SNMP Version:   5.3.0.1
  Building for:   hpux11
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules:usm
  Agent MIB code: mibII ucd_snmp snmpv3mibs notification 
notification-log-mib target agent_mibs agentx disman/event-mib disman/schedule 
utilities host
  SNMP Perl modules:  disabled
  Embedded perl support:  disabled
  Authentication support: MD5 SHA1
  Encryption support: DES AES
  WARNING:  New version of the Event MIB which may be subtly different from the 
original implementation - configure with 'disman/old-event-mib' for the 
previous version

Nice, eh?

But then,
[EMAIL PROTECTED] $ make
make: *** No targets.  Stop.
[EMAIL PROTECTED] $ cat Makefile
[EMAIL PROTECTED] $ 

Empty! Drats. Looks like all the Makefiles in the relevant subdirectories are 
empty too.

Andy Ford
A.G. Edwards Technology Group, Inc.
314-955-6647
 


-
A.G. Edwards  Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other 
than the recipient.

-



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
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


Traps duplicated

2006-03-28 Thread Pedro Henrique Morsch Mazzoni
Hi,

My agents always sends duplicated traps. Is this OK? Can I change it?

Thanks,
Pedro Mazzoni