RE:RE:RE:DISMAN-EVENT-MIB?

2005-05-18 Thread 秦宇伟
Dear Mr. Dave and all: In the snmpd.conf I wrote the row: monitor -u me -r 10 -o sysUpTime.0 "monitor" oaOutputOpticalPower.0 > 1 and when I run the : $ ./snmpd ?f ?Le ?DmteTriggerTable the output is: mteTriggerTable: initializing... mteTriggerTable: created callback session = 08a67bc8 m

DHCP support

2005-05-18 Thread Paul Chen (QD/LJC)
Hi, all Does the DHCPD in Linux support SNMP? If it does, how? How can I get the paramaters of the DHCPD through SNMP. THANKS! BR, Paul --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be th

snmpv3

2005-05-18 Thread noc-ops
Are folks using this version on their devices? What were your challenges in deploying them, if any? Any insight will be appreciated? regards, /virendra --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software

Re: Subagent kills Master AgentX after sending 299 traps

2005-05-18 Thread Fabio \"Salsa\" Durieux Lopes
Some additional info: The number of traps until it freezes my subagent depends on the size of the trap or something like that. Adding a loop on the notification.c example made it act just like my subagent, only with a different number of traps to freeze. If I send just some traps, exit the ca

IANAifType-MIB Bad timestamp format (11 or 13 characters)

2005-05-18 Thread King, John (Greg) (LMIT-HOU)
I get the message below when trying to load it with snmptrapd (-M /usr/share/snmp/mibs:/usr/share/snmp/mibs/Standard). So I went to mibdepot.com and obtained a new one. Same message. Anyone know how to fix this? Did not find 'IANAifType' in module IANAifType-MIB (/usr/share/snmp/mibs/Standard/rfc1

Re: timeout except with mibbrowser

2005-05-18 Thread muzzol
here goes: snmpget -d -c public 192.168.123.254 system.sysDescr.0 Sending 64 bytes to 192.168.123.254 : 30 3E 02 01 03 30 11 02 04 39 12 22 00 02 03 00 0>...0...9." 0016: FF E3 04 01 04 02 01 03 04 10 30 0E 04 00 02 01 ÿã0. 0032: 00 02 01 00 04 00 04 00 04 00 30 14

Subagent kills Master AgentX after sending 299 traps

2005-05-18 Thread Fabio \"Salsa\" Durieux Lopes
I'm running one subagent sending a lot of traps and when it sends 299 traps it stops, the "snmpd" process is killed and so is Master AgentX. My subagent remais frozen forever. Looks like it is waiting for something (possibly the now dead Master AgentX). Any ideas on this?

Re: SNMP Trap API required

2005-05-18 Thread Hugo Caçote
Hi, look at the CVS in: http://cvs.sourceforge.net/viewcvs.py/net-snmp/net-snmp/perl/TrapReceiver/ and for the example look at the man page of TrapReceiver (after installing net-snnp configured with embedded_perl support ): man 3 NetSNMP::TrapReceiver Hope this helps Hugo CaÃote mobby lin wro

Re: SNMP Trap API required

2005-05-18 Thread mobby lin
Would you point me which example files I can refer, and how to compiler/use it? thanks,.   How to use handler perl module in C program or perl program?   Thanks.   MobbyHugo Ca蔞te <[EMAIL PROTECTED]> wrote: Hi,Why don't try to use the TrapReceiver perl module?? If you compile the net-snmp package w

Re: SNMP Agent configuration

2005-05-18 Thread Budyanto Himawan
Thanks. That helps clarify things. --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Thu, 2005-05-12 at 17:41, Budyanto Himawan wrote: > > It seems that only v1 and v2c can be configured to > > only allow access from a set of ip addresses. > > Correct. > > > com2sec does not really make sense f

Re: Ghost trap sent with sysTime sent when I send my v2Trap

2005-05-18 Thread Fabio \"Salsa\" Durieux Lopes
You're right! It only one packet. Now it time to subscribe to opennms and ask them what's up. Thanks for the help! Ps: It was never my intention to send private emails. I just hit the reply button but didn't notice it was NOT going to the list. Once again, thanks for your time! --- Dave Shield

Re: NETSNMP newbies,Library Problem.

2005-05-18 Thread Dave Shield
On Tue, 2005-05-17 at 14:57, chinmay bhat wrote: > Hello friends, > > I have a mib table copiled using mib2c -c mib2c.create-dataset.conf MIBNODE. > the auto generated code uses the function > > netsnmp_table_set_add_indexes(); I presume there are some parameters within that call? > and the g+

Re: Trap Fail??

2005-05-18 Thread Dave Shield
On Sat, 2005-05-14 at 08:09, çåä wrote: > In the snmpd.log file I found the error message: >âCan not create trap2sink : ***.***.**.* Are you still getting this error message? That would explain why you're not see any traps! Dave --- This

Re: timeout except with mibbrowser

2005-05-18 Thread Dave Shield
On Fri, 2005-05-13 at 14:22, muzzol wrote: > im having a weird behaviour with some snmp checks with my debian box to a > broadband router (USR # 8000-02). > > when i perform any snmp* command i always get a timeout error. i've tried > with several cli commands and with several mib browsers. If yo

Re: Agentx: Duplicate registrations errocode is not sent back to the caller

2005-05-18 Thread Dave Shield
On Thu, 2005-05-12 at 09:30, Kurapati M-G19456 wrote: > If two different subagent processes (not part of the agents), registers the > same MIBs > with the Agent, Agent returns AGENTX_ERR_DUPLICATE_REGISTRATION error code in > the PDU. > But this error code is not sent back to the caller. That's

Re: trapforwarding and NNM (network node manager)

2005-05-18 Thread Dave Shield
On Wed, 2005-05-11 at 17:42, King, John (Greg) (LMIT-HOU) wrote: > PROBLEM: My OV SNMP program forwards traps but the forwarded traps do not > have the correct AGENT-ADDR. > > RESOLUTION: The AGENT-ADDR field was defined for SNMPv1 PDUs, but was > removed for SNMPv2 (I suppose the IETF thought it

Re: register two table handers, only one invoked

2005-05-18 Thread Dave Shield
On Tue, 2005-05-10 at 18:43, Steve S. Law wrote: > > Try walking the NET-SNMP-AGENT-MIB::nsModuleTable. > > Check that the mtaTable *is* registered (and this > > looks sensible). > After I run my subagent, I did snmpwalk: > nsModuleName."".8.1.3.6.1.2.1.27.1.127 = STRING: > AgentX subagent 6...

Re: Defunct Processes from net-snmp

2005-05-18 Thread Dave Shield
On Mon, 2005-05-02 at 18:41, [EMAIL PROTECTED] wrote: > I've been using Aprisma's Spectrum NMS to poll the agents and all was > well for about 2 weeks. > After running this new Patch level in Spectrum for about a week, I > started seeing the net-snmp process spawn "defunct" processes. > Anybody se

Re: Win32 simple Net-SNMP C program fails execution

2005-05-18 Thread Dave Shield
On Tue, 2005-04-19 at 18:27, Mike Bragg wrote: > I'm having issues executing a simple > snmpget for sysDescr.0 of a device. The program compiles without > errors, but when I run it I get the Error "snmpget: Too long". Checking the library code, that seems to be relate

Re: SnmpDemoApp problem

2005-05-18 Thread Dave Shield
On Thu, 2005-04-28 at 00:57, Paul Dowdy wrote: > I’m running v5.2.1 on LinuxES3.0 and trying to get the tutorial demo > running. But as you can see by the output at the end of this email, > I’m getting an error. > creating and filling PDU with get sysDescr.0 > sending request, waiting fo

Re: Problem with snmp_read()

2005-05-18 Thread Dave Shield
On Sun, 2005-04-17 at 21:05, Susanne Goldammer wrote: > Now i have a little app which shoul receive traps on port udp:162. > > When a trap is received, my callback function should be called. > But this doesn't happen. Sorry for the delay in responding this. I've now had a closer look at the dump

Re: Re: Re: DISMAN-EVENT-MIB ?

2005-05-18 Thread Dave Shield
On Wed, 2005-05-18 at 11:31, çåä wrote: > After I have used the âOutOpticalPower.0 > 1â, the error message was > disappear. > However, I still can not receive the trap message when I run the following: > $ ./snmptrapd -P Is the agent monitor actually triggering the trap? Try running

Re: Re: handle set requests with pass_persist

2005-05-18 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On Wed,

Re: Re: Re: DISMAN-EVENT-MIB ?

2005-05-18 Thread 秦宇伟
Dear Dave and all: Before I substitute “OutOpticalPower.0 > 1” for “oaValueTable[0] > 1”, when I run the “./snmpd”, there is the error message in the “snmpd.log”: Can not parse the oid oaValueTable[0]. After I have used the “OutOpticalPower.0 > 1”, the error message was disa

Re: Help for an SNMP virgin.

2005-05-18 Thread Dave Shield
On Wed, 2005-05-11 at 17:23, Martin Goodrich wrote: > As the title suggests I am an SNMP newbie and have encountered some > serious problems using mib2c. > mib2c -c mib2c.mfd.conf callRouteMeasurements > > Which produces the following: > > This module can only be used with tables, not branches o

Re: Ghost trap sent with sysTime sent when I send my v2Trap

2005-05-18 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On Tue, 2005-05-

Re: Ghost trap sent with sysTime sent when I send my v2Trap

2005-05-18 Thread Dave Shield
[ Always Cc: to the mailing list, please ] On Tue, 2005-05-17 at 17:35, Fabio "Salsa" Durieux Lopes wrote: > And also about SNMPv1. Do you think it would be > better if I'd send out SNMPv1 traps? There's no real functional difference between an SNMPv1 trap and an SNMPv2c trap. The format of

Re: handle set requests with pass_persist

2005-05-18 Thread Thomas Anders
Dave Shield wrote: You might do better looking at developing this as a "normal" MIB handler (i.e. written in C) - either compiled into the main agent, or as an AgentX subagent. That will receive all the relevant varbinds from a single request, and allow you to work with all three values at once.

Re: handle set requests with pass_persist

2005-05-18 Thread Dave Shield
On Wed, 2005-05-18 at 09:01, quhp wrote: >I use a perl script as pass_persist EXEC to handle some OIDs. >I find the perl script only handler the one field a time, Correct. The pass mechanism is designed to process an individual varbind. It doesn't group related varbinds from a single reque

Re: Re: DISMAN-EVENT-MIB ?

2005-05-18 Thread Dave Shield
On Wed, 2005-05-18 at 04:07, çåä wrote: > Dear Mr.Dave and all: > > In the snmpd.conf I wrote the following rows: > AgentSecName me > Rouser me > Monitor -u me Cr 12 Co sysUpTime.0 âtest the monitorâ > oaValueTable[0]>1 [I presume that "Cr" and "Co" should be "-r" and

handle set requests with pass_persist

2005-05-18 Thread quhp
Hello, I use a perl script as pass_persist EXEC to handle some OIDs. snmpget and snmpgetnext requests work fine but I am not sure about set requests. The OID is about lvm (logic volume management) , i want to create a new lv through snmp. then the command is : snmpset -m all -v 2c -c pr