Snmptrapd crashes when forwarding SNMPv3 notifications

2011-08-23 Thread Boris Zweimueller
Dear all I like to forward SNMPv3 traps from one notification receiver (snmptrapd) to another. I have the following simple config: receiver1: createUser boris SHA borisboris AES borisboris authUser log,execute,net boris noauth forward default localhost:3000 snmpTrapdAddr 0.0.0.0:2000 receiv

Forward v2 informs as v3 informs with snmptrapd

2011-07-21 Thread Boris Zweimueller
Dear all I'm looking for a way to receive v2 informs with snmptrapd and forward them as v3 informs to another trap receiver. I did not find a way to do this with netsnmp, as the forward directive does not support any snmpoptions. Can this be done somehow? A solution might be, to pass the v2

Sending trap/inform to the sender of an snmp request

2011-06-29 Thread Boris Zweimueller
Hi In our setup, we have multiple devices which are managed by two NMS, where only one is active (second is for standby). I'm looking for a possibility to send traps automatically to back to the current 'client' of the agent (instead of hardcoded trap receivers in snmpd.conf). Is this supported b

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-27 Thread Boris Zweimueller
specified in the env variable SNMP_PERSISTENT_FILE? (I also tried SNMP_PERSISTENT_DIR and persistentDir in snmpd.con and it did not work either) Thanks Boris Am 26.06.2011 um 12:18 schrieb Boris Zweimueller: > Thanks for your advice! > > > Am 24.06.2011 um 01:32 schrieb

Re: Snmp proxy: how to react to 'default' context.

2011-06-26 Thread Boris Zweimueller
rtfm :-) snmpd -I-notification_log ... did it (FAQ agent 04..) Boris 2011/6/27 Boris Zweimueller > Thanks for the idea! > > But, when I register snmptrapd under the default context as suggested, the > agent gives the following errors: > > > duplicate registration (nlmC

Re: Snmp proxy: how to react to 'default' context.

2011-06-26 Thread Boris Zweimueller
' the notification log tables on the agent x master? Thanks Boris 2011/6/24 Wes Hardaker > >>>>> On Wed, 22 Jun 2011 17:01:02 +0200, Boris Zweimueller < > bo...@zweimueller.ch> said: > > BZ> Can I do this with the proxy ? > > I think you could, yes, but i

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-26 Thread Boris Zweimueller
> SNMPv3 users are intended to be set up in the persistent file, so that > the initial configuration > can be replaced by the current setup. If you are creating the > initial user in the static file, > then this will mask the settings read in later from the persistent file. > Thanks for the hin

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-26 Thread Boris Zweimueller
Thanks for your advice! Am 24.06.2011 um 01:32 schrieb Wes Hardaker: >>>>>> On Thu, 23 Jun 2011 10:34:41 +0200, Boris Zweimueller >>>>>> said: > > BZ> Is there a way that users which have been configured with the > BZ> *snmpusm *comman

Looking for a way to persist SNMPv3 user configuration

2011-06-23 Thread Boris Zweimueller
Hi all Is there a way that users which have been configured with the *snmpusm *command dynamically still exist after restarting the agent? Can the content of these tables be saved somehow? What I need to do ist the following: - The device is initially shipped with a default user/password. - T

Snmp proxy: how to react to 'default' context.

2011-06-22 Thread Boris Zweimueller
Hi all How can I define the 'default' context in a proxy-rule? I do the following: I have an agent A with agentx enabled. An instance of snmptrapd connects to this agent. Traps received by snmptrapd are logged perfectly into the nlmLogTable of the Agent A under the context 'snmptrapd', such th

Re: Snmpgetnext on Table with "holes"

2011-04-25 Thread Boris Zweimueller
Many thanks Boris 2011/4/24 Dave Shield > On 21 April 2011 08:44, Boris Zweimueller wrote: > >> Could you please post the rest of the header files (ttfCfgTable.h and > >> ttfCfgTable_checkfns.h).I can't really attempt to reproduce the > >> problem wit

Re: Snmpgetnext on Table with "holes"

2011-04-23 Thread Boris Zweimueller
ual Convention: RowStatus Values: active(1), notInService(2), notReady(3), createAndGo(4), createAndWait(5), destroy(6) 2011/4/21 Boris Zweimueller > Sure, here they are! > > Thanks > > Boris > > > 2011/4/21 Dave Shield > >> On 21 April 2011 05:47,

Re: Snmpgetnext on Table with "holes"

2011-04-21 Thread Boris Zweimueller
Sure, here they are! Thanks Boris 2011/4/21 Dave Shield > On 21 April 2011 05:47, Boris Zweimueller wrote: > > Attached are the relevant excerpt of the MIB (Descriptions removed for > size) > > and the generated files ttfCfgTable.c and ttfCfgTable_columns.h > > Could

Synchronize access to agent from multiple management consoles

2011-04-19 Thread Boris Zweimueller
Hi all In my setup, a specific configuration of my agent is done with sequences of consecutive SNMP set commands. It is important, that they come all together. It must not be possible, that another management console can configure something in between. How can this be realized? I thought of som

Re: snmp proxy to multiple devices with same oid using contextEngineId

2011-04-13 Thread Boris Zweimueller
It finally worked! Thanks a lot for your help. Boris Am 01.04.2011 um 14:31 schrieb Dave Shield: > On 31 March 2011 14:40, Boris Zweimueller wrote: >> As I have an agent which only understands v2 with a specific community >> string I tried the following: >> (Just for tes

Re: snmp proxy to multiple devices with same oid using contextEngineId

2011-03-31 Thread Boris Zweimueller
alling the remotehost directly with snmpget -v2c -c public remotehost sysContact.0 works. Anybody nows what I do wrong? Thanks a lot Boris 2011/3/28 Dave Shield > On 27 March 2011 13:29, Boris Zweimueller > wrote: > > Instead of using an snmp v2 context (-c) > > The 

snmp proxy to multiple devices with same oid using contextEngineId

2011-03-27 Thread Boris Zweimueller
Hi all In the netsnmp wiki there is an example of how to configure the proxy if proxying is used with multiple devices with the same oid. Instead of using an snmp v2 context (-c) I want to use the snmp v3 contextName/contextEngineId (-n). Does this work accordingly? E.G. having the folloginw

Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
perfect, thank you! Boris 2010/10/11 Dave Shield > On 11 October 2010 13:51, Boris Zweimueller > wrote: > > the generated c code for this object ist: > > > > /** Check the ranges of the passed value for legality */ > > if ( !(*val >= 54 &&

mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
Hi all, in our MIB we have the following definitions (only the important parts are shown): UsnFunctionGroup ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "xxx" SYNTAX INTEGE

insert/delete traps into/from nlmLogTable from outside proccess

2010-07-04 Thread Boris Zweimueller
Hi all I have an agent inserting all created traps into the nlmLogTable (NOTIFICATION-LOG-MIB). These traps are not directly sent to the NMS but catched locally by an snmptrapd instance, which filters some of the traps out, and forwards the remaining ones to the NMS. If the NMS looks up the nlmL

Re: How to get the sender address out of a pdu

2010-06-29 Thread Boris Zweimueller
agent where it originally came from. Thats why I'd like to compare 'sender' addresses. So, assume I have a really really good reason:-) to do this, where exactly is the information in the transport array? thanks 2010/6/29 Wes Hardaker > >>>>> On Tue, 29 Jun

How to get the sender address out of a pdu

2010-06-28 Thread Boris Zweimueller
Hi all, how can I find out the sender of a pdu? I noticed that in the pdu->transport_data array at positions 4-7 and 16-19 ip addresses are stored. It seams that the positions 4-7 store the senders ip, but is this really correct? Is there a better way to find out the senders address out of a pdu?

Re: Convert a BITS datatypes string representation back to bit (e.g. int)

2010-06-18 Thread Boris Zweimueller
I've had a look at the snmptrapd code... I gues the easiest way to go would anyhow be to extend snmptrapd with a new handler and let this handler do the additional work. 2010/6/18 Boris Zweimueller > Thanks for your help. I do not need it as commandline argument but as code. > I ma

Re: Convert a BITS datatypes string representation back to bit (e.g. int)

2010-06-18 Thread Boris Zweimueller
it must be a solution for all traps. Any ideas on how to solve this are greatly appreciated! Thanks Boris 2010/6/18 Dave Shield > On 18 June 2010 09:25, Boris Zweimueller > wrote: > > I'm looking for a way to convert the BITS datatypes string representation > > b

Convert a BITS datatypes string representation back to bit (e.g. int)

2010-06-18 Thread Boris Zweimueller
Hi all I'm looking for a way to convert the BITS datatypes string representation back to an int e.g. BITS value = 0, its string value = "80 00 " BITS value = 2, its string value = "20 00 " BITS value = 11, its string value = "00 10 " BITS value = 15, its string value = "00 01 " BITS value =

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-10 Thread Boris Zweimueller
TARGET-MIB::snmpTargetAddrRowStatus.'mytrap2' Strangely it works for the snmpTargetParamsTable. this snmpset -v 3 -u boris localhost SNMP-TARGET-MIB::snmpTargetParamsRowStatus.\'mytrap2\' i 5 works perfectly. I really don't know that to do.. Boris 2010/6/10 Dave Shield > On 10 June

Re: Problem modifying trap destination etc. dynamically with snmpset

2010-06-10 Thread Boris Zweimueller
ength from what the agent expects) Failed object: SNMP-TARGET-MIB::snmpTargetAddrRowStatus.'index' I think there must be something wrong with the SnmpAdminString type index. How do I have to do this? Thanks a lot Boris 2010/6/10 Dave Shield > On 10 June 2010 10:29, Boris Zweim

Problem modifying trap destination etc. dynamically with snmpset

2010-06-10 Thread Boris Zweimueller
Hi all I'm looking for a possibility to configure trap targets dynamically. As suggested in another Thread I try setting the appropriate values in the corresponding tables. Because I have defined one traptarget in my snmpd.conf file, which appears correctly in the snmpTargetAddrTable as shown bel

Proxy Module does not work after restart of the remote agents

2010-05-27 Thread Boris Zweimueller
ore? Did I miss something? Interestingly, on the first start, it does not matter, if I start the proxy or the agent as first program... Thanks for any help Boris 2010/5/20 Dave Shield > On 20 May 2010 11:10, Boris Zweimueller wrote: > > If you don't mind I have just one more quetsion re

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Boris Zweimueller
> Well, a router would typically also report information such as traffic > statistics, > and maybe environmental information (such as operating temperature or > fan speed). If you've got two physical boxes, then the sensor information > could easily be different. And traffic statistics could eas

Re: Howto setup netsnmp for proxying and failover

2010-05-20 Thread Boris Zweimueller
Thanks for your answers! 2010/5/20 Dave Shield > On 19 May 2010 22:01, Boris Zweimueller > wrote: > >> - I don't know how you'd want to handle receiving different answers from > >> - the parralel proxied agents, but the above should be a workable > ar

Re: Howto setup netsnmp for proxying and failover

2010-05-19 Thread Boris Zweimueller
the > proxy_handler. I have not been able to figure out how exactly this doublicate > entries are removed from the processing list in the agent_registry. Could you > give me a hint? Thanks a lot! > > Boris > > > Am 19.05.2010 um 09:37 schrieb Dave Shield: > >>

Howto setup netsnmp for proxying and failover

2010-05-18 Thread Boris Zweimueller
Hi all I have the following scenario: One master agent with several subagents running on one device. The master acts solely as a proxy, forwarding snmp requests to the subagents. I now have a new requirement: For failover reasons, the hardwares device is doubled. Failure of one device should