Re: DD: snmptrapd port

2004-10-27 Thread Thomas Anders
[EMAIL PROTECTED] wrote: is it possible to change port for snmptrad to listen not on 162 by default Sure. # man snmptrapd [...] SYNOPSIS snmptrapd [OPTIONS] [LISTENING ADDRESSES] [...] LISTENING ADDRESSES By default, snmptrapd listens for incoming SNMP TRAP and INFORM

Re: snmptrapd traphandle problem please help

2004-10-27 Thread Dave Shield
I am having a problem I just can not figure out with snmptrapd. I simply wrote traphandler script to echo Hello World out to the screen when a certain trap is detected. Is that *all* that the trap handler does? Does it try to read the list of trap varbinds which 'snmptrapd' will pass to it?

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread Dave Shield
RS ... [turn on packet dump and] you should be able to RS see if a packet goes out, if the agent receives it, RS if the agent sends a response and if the app receives it. CN Sending 93 bytes to UDP: [127.0.0.1]:161 CN : 30 5B 02 01 01 04 00 A0 54 02 04 77 0B 12 D2 02 RS Note that

Re: Size increased 10 times bigger in an older version of net-snmp

2004-10-27 Thread Dave Shield
The file snmpbulkwalk (created in 5.0.6) is - snmpbulkwalk: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped The file snmpbulkwalk (created in 5.1.1) is - snmpbulkwalk: Bourne shell script text executable

Re: Packaging of snmpd

2004-10-27 Thread Dave Shield
Will the size of installation smaller if the shared libraries is not included? No - the size of the installation will be *larger* if shared libraries are not used. That's because every application will need to include a separate copy of the library - statically linked in. With shared

Re: net-snmp win32

2004-10-27 Thread Dave Shield
Which MIB object are you referring to? I'm really sorry. I forgot to specify which MIB object I'm interested in. I'm refering to one I have created to do some testing. But I don't know where the handler for that object would be located. If this is a MIB object that you created to do some

Re: A quesiton about ucdDiskIOTable

2004-10-27 Thread Dave Shield
%snmpget localhost diskIOTable.diskIOEntry.diskIODevice.1 #UCD-DISKIO-MIB::diskIODevice.1 = No such Object available on this agent at this OID My question: What should I do to make this command work? Add a 'disk' entry into your snmpd.conf file. See the FAQ entry: Why can't I see

RE: Packaging of snmpd

2004-10-27 Thread Jim Su
Thanks a lot! -Jm -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 5:11 PM To: Jim Su Cc: [EMAIL PROTECTED] Subject: Re: Packaging of snmpd Will the size of installation smaller if the shared libraries is not included? No - the size

Avy Book on Net-SNMP

2004-10-27 Thread Subodh Bansal
Is there any book published (or going to publish)on UCD-SNMP/Net-SNMP API toolkit?? Best Regards, Subodh Bansal

snmp authentication..

2004-10-27 Thread John, Jaiber J
Hello, This may be a naïve question.. but is the v3 user's password transmitted from the client (like snmpget) to the NetSNMP Agent in plain-text across the network? If so, is it possible to retrieve the v3 user's username/password within a (scalar) MIB handler from one of the structures like

Re: snmp authentication..

2004-10-27 Thread Dave Shield
This may be a naïve question.. but is the v3 user's password transmitted from the client (like snmpget) to the NetSNMP Agent in plain-text across the network? No. The user's password is not transmitted across the network at all. Instead it's used to generate a digital signature for the

Sending traps in another thread

2004-10-27 Thread Vili Germic
Hi all, I'm writting NET-Snmp sub agent. Has anybody tried to send traps in other thread that in main thread of sub agent? I'm having problems when snmp_free_pdu() is called. (segmentation fault). Any ideas on this? Has anybody do something like this? Best regards, Vili

mib handlers..

2004-10-27 Thread John, Jaiber J
Hello, I'd like to know which is the best way to implement MIBs. Is it by writing them as modules and loading through 'dlmod' approach or having them separated in a subagent. Through 'dlmod' approach, is it possible to initiate a 'event listener' thread that listens for external events send

Re: Avy Book on Net-SNMP

2004-10-27 Thread Dave Shield
Is there any book published (or going to publish) on UCD-SNMP/Net-SNMP API toolkit?? It's a fairly open secret now that I've been working on something of the sort for some time. It's making good progress, so I'm reasonably optimistic that it will eventually see the light of day (even if I have

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread cnelson
... More particularly, the dump begins: 30 5B // request sequence 02 01 01// version = SNMPv2c 04 00 // community = A0 54 // GET PDU etc So the request is being sent with an empty community string (hence it's not suprising that the agent is

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread cnelson
... So, snmp_open() appears to not be copying the community string. How come? I'll look into it a bit shortly. I think I found the problem. Around line 998 of snmplib/snmp_api.c, there is a recent addition of: #if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) which DeMorgan

Re: snmptrapd traphandle problem please help

2004-10-27 Thread stephanos . kotsakis
Hello Dave, I think we are making progress here. Thomas had suggested that I replace my traphandler script with /bin/cat to see if this would change the behavior of snmptrapd when a trap comes in that is specified in the snmptrapd.conf file. I'm happy to say that this did work the traps came

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread Dave Shield
I think I found the problem. Around line 998 of snmplib/snmp_api.c, there is a recent addition of: #if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) which DeMorgan tells us is really: #if defined(DISABLE_SNMPV1) defined(DISABLE_SNMPV2C) Err no. Surely DeMorgan

Re: snmptrapd traphandle problem please help

2004-10-27 Thread Dave Shield
My confusion is now on how to utilize the var binds that snmptrapd is passing to my trpahandler in my script? Do I have to use all of them? You don't need to actually use any of them. The trap daemon doesn't care what happens *inside* your handler. is it enough to just read them in and echo

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread Users
On Wed, 27 Oct 2004 08:43:10 -0400 [EMAIL PROTECTED] wrote: CRC#if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) CRC CRC which DeMorgan tells us is really: CRC CRC#if defined(DISABLE_SNMPV1) defined(DISABLE_SNMPV2C) CRC CRC and if I read the code around it properly, this says

Re: Sending traps in another thread

2004-10-27 Thread Users
On Wed, 27 Oct 2004 13:08:30 +0200 Vili wrote: VG Has anybody tried to send traps in other thread that in main thread of VG sub agent? VG I'm having problems when snmp_free_pdu() is called. (segmentation fault). VG Any ideas on this? Has anybody do something like this? Using any SNMP calls other

Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
Yes, I have sent traps in using a pthread. No problem. Are you trying to free a PDU that has not been malloc? Segmentation faults are usual candidates (using the the political term) for bad memory accesses. So your pointer may be invalid? Can you dump out what you allocate and what you free?

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread cnelson
I think I found the problem. Around line 998 of snmplib/snmp_api.c, there is a recent addition of: #if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) which DeMorgan tells us is really: #if defined(DISABLE_SNMPV1) defined(DISABLE_SNMPV2C) Err no. Surely

Mapping between OID and name

2004-10-27 Thread Marlena Miller
I have extended the net-snmp agent with my own module. It contains scalars, including one which is of type ASN_OBJECT_ID. In my handler function, when this scalar is set, the only value I see is the OID for the object, not the name. This is the case even when the object is specified by name in

a question about files generated by mib2c..

2004-10-27 Thread CindyQin
Title: a question about files generated by mib2c.. Dear all: I use mib2c tool to generate one C code with ucd-snmp old api ,the smi file as follow: {ABC-SMI DEFINITIONS ::= BEGIN IMPORTS enterprises FROM RFC1155-SMI; abc OBJECT IDENTIFIER ::= { enterprises1234 } abcSamplesOBJECT

RE: A quesiton about ucdDiskIOTable

2004-10-27 Thread Rob Jackson
From what I can see, I don't see anything about diskIO. I see disk usage, but nothing about IO. I have disk entries, but whenever I try to get IO, the search returns nothing. Does not return No such Object, just returns nothing. -Rob -Original Message- From: [EMAIL PROTECTED]

Re: Sending traps in another thread

2004-10-27 Thread Users
On Wed, 27 Oct 2004 08:47:42 -0500 Gary wrote: GC I have sent traps in using a pthread. Hi Gary, Do you mind if I ask a few questions about how your app works? We need to gather information to help identify what does and doesn't work. Even if you can only answer briefly, like 'yes/no', that

Snmptrap syntax

2004-10-27 Thread Harris Frank (FGG8FJH)
Title: Snmptrap syntax I am attempting to send an snmptrap to a server we use to send beep notifications. I have tried serveral times with slightly different syntax and received some errors. I was hoping someone could help me correct the syntax. Below are some of the examples I have tried

Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
Hi, Wow! I'm blessed one of the gurus. Ok no problem. What platform are you using? The OS platform is Redhat 9. Complete installation. If you do a partial installation your going to hit all sorts of missing libraries. Quite funny when you only do a regular installationnot. - What

Re: net-snmp win32

2004-10-27 Thread Andres C
Hello, I have generated an object like this: avVersion OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION avVersion. DEFVAL { 10 } ::= { test 1 } I generated the

same problems with extend as with exec

2004-10-27 Thread atonns
Title: same problems with extend as with exec In trying out the new NET-SNMP-EXTEND-MIB (ie: the extend config option in snmpd.conf), I'm having similar problems to those I had with exec in version 5.1.x. Using the following command: snmpwalk localhost NET-SNMP-EXTEND-MIB::nsExtendOutputFull

RE: same problems with extend as with exec

2004-10-27 Thread atonns
Title: RE: same problems with extend as with exec I've run a few quick tests, and it looks like this patch works great. I'll leave it running and see how it does. Will it make it into the 5.2 final release? Thanks, Tony -- Replicants are like any other machine, they're either a benefit or

hi

2004-10-27 Thread dzhou
Would you please put my name in the mailing list. Thanks. Dan - This mail sent through IMP: http://horde.org/imp/ --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition -

Re: same problems with extend as with exec

2004-10-27 Thread Users
On Wed, 27 Oct 2004 13:33:10 -0400 [EMAIL PROTECTED] wrote: AIC I've run a few quick tests, and it looks like this patch works great. I'll AIC leave it running and see how it does. AIC Will it make it into the 5.2 final release? It appears that it will not since I didn't get the patch ready until

Re: Sending traps in another thread

2004-10-27 Thread Users
On Wed, 27 Oct 2004 12:24:17 -0500 Gary wrote: GC GC Have you implemented any locking mechanism? GC GC GC GC Standard pthread mutexs were used. GC GC Can you elaborate on that? Where are they used? Who blocks who, and when? GC GC The download to the hardware device or upload can take time

Re: Problems on running net-snmp

2004-10-27 Thread Users
On Wed, 27 Oct 2004 13:31:31 -0500 [EMAIL PROTECTED] wrote: DC After run ./configure, make , make install, snmpconf and copy snmpd.conf to DC /usr/local/share/snmp, i ran snmpd -f -L -d. It gave me: Error opening DC specified endpoint udp:161. My snmpd.conf is listed: Either the port is in use,

Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
I assume that the same mutex used in the main agent thread and the other worker thread? Where is the mutex set-up/locked in the agent? The same type of mutex is used in other worker threads that is correct. I am initializing the mutex in the main thread in my global object. Download of Image

FW: RE: Net-SNMP v 5.1.2 - Spurious traps for trap directives - Solaris 2.8

2004-10-27 Thread Nancy S
Authentication support: MD5 Encryption support: Thanks for your assistance. Nancy S Here is an example of a trap received at the SNMP management station from the SNMP agent which reports an IP of 127.0.0.1. Also, 4 traps instead of the expected 1 trap (with identical time stamp). 20041027 155511

net-snmp-5.1.1 is support IPv6?

2004-10-27 Thread
Hi! Our system is below. |---| ||---| | EMS |--SNMP |smux | | | Agent | | | || |application| | |