Re: linking an external library while extending the agent

2004-07-21 Thread ujjwal
Hi, If you want to use external libraries or external header files, best place to add them is passing them to the configure script. You can use --with-cflags and --with-ld-flags options of the configure for passing them. So it will look like - configure --with-cflags="-I" --with-ld-flags="-L -l"

RE: HP Health Agents for Proliant on Linux

2004-07-21 Thread Rule, Ted
At one time, at least HP/Compaq's src.rpm contained all the MIB trees they used. Have you double checked for such a source RPM package - maybe HP have now got sadly cagier? The other easier option is HP's Management CD that should have come with the Server. That certainly used to have copies of

Re: I've been getting buried in traps since 5.1.1

2004-07-21 Thread Dave Shield
> # snmpd.conf (names changed to protect the guilty) > trapsink foobar1z sandy > trap2sink foobar1z sandy > informsink foobar1z sandy > trapcommunity sandy > Is the above overkill? Yes. >From the FAQ: Where are these traps sent to? - A configuration blo

Re: libwrap

2004-07-21 Thread Dave Shield
> I see USE_LIBWRAP is defined in ucd-snmp, but undefined in > net-snmp. Or at least it's defined in ucd-snmp-config.h, > but not in acconfig.h. Forget about 'acconfig.h' - that's used as part of constructing the configure system. What's relevant are the two xxx-snmp-config.h files - the top-le

Re: PERL problem with mib2c

2004-07-21 Thread Dave Shield
> When performing the following > $ mib2c etherStatsEntry > I then see the following: > > running indent on etherStatsEntry.c [snip error] Well, if it's getting as far as running indent, then it should have generated all of the code first. Failing to indent is cleanly won't make any

Re: snmpd does not send traps

2004-07-21 Thread Dave Shield
> in snmpd.conf i have: > proc rpc.mountd 1 1 > trapsess -Ci -c public -v 2c snmp > rouser trapsender noauth > agentSecName trapsender > monitor -r 10 -o prNames -o prErrMessage "process table" prErrorFlag != 0 > > the snmpd does not send trap then i stop the mountd daemon and check with > snmpwa

Re: HP Health Agents for Proliant on Linux

2004-07-21 Thread Dave Shield
> These SNMP agents from HP have the disadvantegous feature(?) > that their MIBs are not separately supplied, but somehow > hardcoded compiled into the agents binaries. Yes - that's pretty standard for most agents. > So I cannot simply add the MIB files to the mibs directory, > (as written in

Re: 5.1.2.pre2 notes (fwd)

2004-07-21 Thread Dave Shield
> if you look at packet #15 in the 'good' snoop trace, you can see > that what appears on the wire is ".1.3.6.1.4.1.9.5.1.4.1.1.6.1.1" > (portOperStatus.1.1), i.e. the OID which this script wants. > > yet, if you look at packet #15 in the 'bad' snoop trace, you can > see that what appears on the

Re: caching of exec values

2004-07-21 Thread Dave Shield
[ Sorry for the *long* delay in following up on this ] Alan> Does caching of 'exec' values work in either 5.0.9 or 5.1? Wes> It should work fine. Alan> Actually, it is broken in 5.1. Is working in 5.0.9. This has now been addressed in the main development branch (i.e. what will be 5.2). Un

Re: configuration of net-snmp on linux redhat 8.0

2004-07-21 Thread Dave Shield
Sorry for the delay in responding to this request. > Hello, I fell out of order as regards the > configuration of the net - snmp "snmpconf", for it if > you have helps on this subject, do not hesitate of me I'm not sure whether this is still relevant, but it's not particularly clear exactly what

Re: access control and context name problems

2004-07-21 Thread Dave Shield
Apologies for the delay in responding. I've just been looking at some of the outstanding messages on this list, and spotted something odd about this one. It's probably too late now, but just in case it isn't: > createUser r MD5 123456789 > createUser t MD5 123456789 > > com2sec public def

Re: an 'snmptrap' question

2004-07-21 Thread Dave Shield
[ Sorry for the delay in responding to this ] > Does anyone know how to specify an originating agent IP address while > sending a v2c trap by using 'snmptrap' command? You could try appending a varbind snmpTrapAddress.0 = {IP-address} to the v2 trap varbind list. This should be inte

Re: exec cache?

2004-07-21 Thread Dave Shield
[Re: exec output not being cached in 5.1.x] > I had same environment. So, I tested. > The OS, configure options, version of net-snmp and results are follows. > It seems that the cache functionality correctly worked in net-snmp 5.0.9 > with SunOS5.8 . Sorry for the *long* delay in followin

Re: Cygwin-based build on Win2k Professional

2004-07-21 Thread Doug McPherson
In case anyone else ever runs into this 'mystifying' problem in getting net-snmp to build in a cygwin environment -- I FOUND THE SOLUTION! ...and will be selling it on E-Bay.. :-)Just kidding! The problem was that the directory I was building from on my Win2k box was in a path with s p a c e

Re: An issue - possibly in teh area of compatability with glibc

2004-07-21 Thread Dave Shield
> I wrote a small program that sends traps using the net snmp api. > > Got a segmentation error when executing this program and on debugging > it pointed to a malloc inside method snmp_varlist_add_variable(). I can't immediately spot any problem with the code fragment you listed. It looks almost

Re: init_agent crash

2004-07-21 Thread Dave Shield
> Calling init_agent() twice on PPC crashes netsnmp. > Just posting here to find out if there is a double- > init issue with init_agent(), I suspect this is something that probably hasn't really been looked at before. In general, we wouldn't normally call this routine twice. And eve

Re: how to configure "snmpd.conf"

2004-07-21 Thread Dave Shield
[ Sorry for the delay in responding to this ] > Could you help me about how to configure "snmpd.conf" (set the file) That's a fairly general sort of question. If you're still interested in this, it would be useful to know what in particular you're wanting to do. Dave ---

Re: bb client vs bb server

2004-07-21 Thread Dave Shield
[ Sorry for the delay in responding ] > My question is; I've read the client and server documentation and am still > unsure why I would need the client. I need to poll PIX's, linux snort boxes, > VPN concentrators, etc. I'm not quite sure what you mean by "bb client", but in terms of SNMP

Re: Building on OSF/1 v4.0

2004-07-21 Thread Dave Shield
Sorry for the long delay in responding to this. > I have some older hardware I'd like to run net-snmp on, but I'm having > build problems. Has anyone built the 5.1 release on an Alpha running > OSF/1 v4.0? Not a system I know anything about, I'm afraid (But it looks as if nobody else doe

Re: --disable-debugging and DEBUGMSG

2004-07-21 Thread Dave Shield
> Is the configure option --disable-debugging supposed to set all the > DEBUGMSG macros to NOP's? It should do, yes. > It seems to work for my the main part of my > agent but my own MIB module prints its debugging messages even if I > start the agent without the -D flag now. I got rid of it by pu

Re: init_agentx_config() function availability

2004-07-21 Thread Dave Shield
> Is the order of the calls that I am making in the init routine are correct? > Am I making necessary and sufficient calls to initialize the subagent? I haven't looked into this very deeply, but it doesn't look right. The 'init_agent' call invokes 'init_subagent', so having this the other way rou

Re: More perl issues.

2004-07-21 Thread Dave Shield
> Here's the code snippet... > > my $snmpGrab = 'sysDescr.0'; > my $snmpCount = 1; > > my $var = $session->bulkwalk(0, $snmpCount, $snmpGrab); > print $$var[0]->val . "\n"; > > Which is simple, straightforward, pretty much grabbed exactly from > example code. I'm not quite sure where that

Re: send Trap

2004-07-21 Thread Dave Shield
[Sorry for the delay in responding to this] > but how could I send a trap with the enterprise OID > so that the snmptrapd can identify the MIB Objekt, send_enterprise_trap_vars() It's probably not documented properly, but see agent/agent_trap.c

Re: snmpv3 error

2004-07-21 Thread Dave Shield
> I added this line in the snmpd.conf file, but know I am receiving the > following reply when I am trying to make a get request: > > snmpget: Unsupported security level What is the exact "snmpget" command you are using? Dave --- This SF.N

Running mib2c

2004-07-21 Thread haris_here
Hi! While running mib2c for generating skeleton code for my MIB, I get the following errors. Can anyone help me with this !! Thanks, Haris --- sh$ mib2c -c ../local/mib2c.create-dataset.conf myNode Cannot find module (IP-MIB): At line

Problems with oid translation

2004-07-21 Thread evgeni popov
Hi, I've some trouble trying to get some oid translated. Here's a console session (Windows XP, net-snmp V5.1.1): C:\>snmptranslate .1.3.6.1.4.1.9.9.48.1.1.1.2.1 SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 Not translated, because the MIB is not loaded. Then: C:\>set MIBS=ALL C:\>snmptranslate .1.3.

Re: Running mib2c

2004-07-21 Thread Gary Clark
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 21, 2004 7:21 AM Subject: Running mib2c > > Hi! > > While running mib2c for generating skeleton code for my MIB, I get > the following errors. Can anyone help me with this !! > > Thanks, > Haris

Re: HP Health Agents for Proliant on Linux

2004-07-21 Thread Alex Burger
All the current Compaq Proliant mibs are in SP24993 which can be downloaded from the HP site. I think the newer Management CDs no longer contain the MIB files. Alex Rule, Ted wrote: At one time, at least HP/Compaq's src.rpm contained all the MIB trees they used. Have you double checked for such

RE: --disable-debugging and DEBUGMSG

2004-07-21 Thread holger.klaas
> From: Dave Shield Sent: 21 July 2004 12:57 > > > Is the configure option --disable-debugging supposed to set all the > > DEBUGMSG macros to NOP's? > > It should do, yes. > > > It seems to work for my the main part of my > > agent but my own MIB module prints its debugging messages even if I >

Traphandle Broken pipe

2004-07-21 Thread Mitch Raful
I have one trap that gets a broken pipe when handled.  All other traps work fine.  Below is the output: snmptrapd: Trap OID: SNMPv2-MIB::coldStartsnmptrapd: print_handlersnmptrapd: v1 format2004-07-21 11:18:04 10.1.26.254(via 10.1.26.254) TRAP, SNMP v1, community mccsnet    CISCO-PRODU

Re: libwrap

2004-07-21 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. T

Re: Problems with oid translation

2004-07-21 Thread evgeni popov
Some new information: snmptable does work (when oid is a table, of course): C:\>snmptable -v 1 -c public 192.168.1.2 ciscoMemoryPoolTable ciscoMemoryPoolName ciscoMemoryPoolAlternate ciscoMemoryPoolValid ciscoMemoryPo olUsed ciscoMemoryPoolFree ciscoMemoryPoolLargestFree PIX system memory

Re: Traphandle Broken pipe

2004-07-21 Thread Dave Shield
> snmptrapd: token = '/bin/bash/ /usr/local/bin/handle-config2-trap.sh' ^^ There appears to be a trailing slash that shouldn't be there. Dave PS: Please - no HTML mail. Thanks --- This SF.Net email is sponsore

Re: init_agent crash

2004-07-21 Thread Carlos Cantu
> I suspect this is something that probably hasn't really been looked > at before. In general, we wouldn't normally call this routine twice. > And even if we did, the second call should return almost immediately > without actually doing anything. > > It would be extremely useful to know *where* t

Snmp Agent as a thread

2004-07-21 Thread Reitberger, Susan
Title: Snmp Agent as a thread I am trying to start the snmp agent as a thread under another application. Has anyone done this before? What function do I tell the thread to run? Also, I have been using dlmod to add my own mib module into the agent, will this still work when I start the agent

Re: Emanate compatibility

2004-07-21 Thread Yiting Nan
Hi, Do you mean you have multiple subagents(Emanate agents and UCD agents) running on the same machine? I have no problem when running on different machine. If you need, you can use remote access to retrieve the agent on other machine. When perform remote access, how you implement subagent is tr

proxy support question

2004-07-21 Thread 오호일
Hi. I have a question about proxy support question(RFC 3413). Does net-snmp-5.1.1 version support the proxy forwarder? For example, If EMS requests the certaion MIB object, I(certain SNMP Agent) wish to forward to it another Agent using the context Name. Best Regards, Hoil - Oh. --

net-snmp 5.1.1 proxy support question

2004-07-21 Thread 오호일
Title: Samsung Enterprise Portal mySingle Hi. I have a question about proxy support question(RFC 3413). Does net-snmp-5.1.1 version support the proxy forwarder? For example, If EMS requests the certaion MIB object, I(certain SNMP Agent) wish to forward to it another Agent using the contex