Re: date

2007-09-06 Thread Nikolett C
Hi All, especially Dave! Sorry, I was already very tired yesterday, and I also forgot to read again what I've written... I wanted to say: -I have an own MIB, there's a node sysDate in it, it's like hrSystemDate in HOST-RESOURCES-MIB. -I've got the right value from it with snmpwalk. The proble

Re: Help with mib2c

2007-09-06 Thread Dave Shield
On 06/09/07, Salai, Sivakkani Thirunavukkarasu <[EMAIL PROTECTED]> wrote: > Whenever I want to add a new MIB to the agent, according to the > documentation I re-run the configure and specify the new MIB. Is that > the only way to add MIBS to the agent? Are there any other way to add > the MIB t

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Dave Shield
On 06/09/07, Mike Ayers <[EMAIL PROTECTED]> wrote: > What's the algorithm for routing requests? Builtins first? > Registration order? Most specific? Most specific. Dave - This SF.net email is sponsored by: Splunk Inc. St

RE: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Milan_Tvarozek
Hello Mike, the reason for the fact that 1.3.6.1.4.x requests were not passed from the master agent to the subagent was default (=incorrect in this case) access configuration of snmpd.conf. After replacing default with rocommunity public default .1 things started to work fine. Previously, I wa

RE: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Mike Ayers
This thread has made me curious. The OP indicated that (s)he is registering for .1.3.6. Unless the master agent has been built with no MIBs, such a registratrion would not service all requests, correct? Specifically, requests within MIBs that were built into the agent will handle the

Re: date

2007-09-06 Thread Dave Shield
On 06/09/07, Nikolett C <[EMAIL PROTECTED]> wrote: > I read the the from an own MIB with an own agent. Eh? That doesn't make sense. > My problem is, that date isn't changing automatically, Which date? > What shall I do? Slow down, take a deep breath, and explain the problem clearly. Dave

date

2007-09-06 Thread Nikolett C
Hi! I read the the from an own MIB with an own agent. My problem is, that date isn't changing automatically, just after killing and starting snmpd. What shall I do? Many thanks. Nikolett - This SF.net email is sponsored by

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Dave Shield
On 06/09/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello Dave, > > thanks for your prompt reply. > > I will use rocommunity public > > but what about view and access ? Please read the documentation. (man page and FAQ entries) Dave --

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Milan_Tvarozek
Hello Dave, thanks for your prompt reply. I will use rocommunity public but what about view and access ? MIlan On Thu, September 6, 2007 12:08 pm, Dave Shield wrote: > On 06/09/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> I am desperately trying different settings in snmpd.conf but w

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Dave Shield
On 06/09/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am desperately trying different settings in snmpd.conf but w/o any success. > > The current settings are: > > com2sec paranoid default public > com2sec readonly default public > com2sec readwrite default private

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Milan_Tvarozek
Hello Dave, thanks for replying. For some odd reason I did not get your mail on Tuesday. I am desperately trying different settings in snmpd.conf but w/o any success. The current settings are: com2sec paranoid default public com2sec readonly default public com2sec readwrite de

RE: Multiple traps in a session

2007-09-06 Thread Edison C.
Thanks for that important pointer. It works now. Edison -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Thursday, September 06, 2007 2:34 PM To: Edison C. Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Multiple traps in a session

min.edition

2007-09-06 Thread Nikolett C
Hello! I'd like to know which files I need at least on a managed device (pc with Linux) to be able to build an SNMP connection with it, to be able to query with an own agent an own MIB. I can't install the whole Net-SNMP on it, so what are those files which are minimum and enough? Could I rep

Re: Multiple traps in a session

2007-09-06 Thread Dave Shield
On 06/09/07, Edison C. <[EMAIL PROTECTED]> wrote: > ss = snmp_open (&session); > pdu = snmp_pdu_create (SNMP_MSG_TRAP); > /* First trap*/ > status = snmp_send (ss, pdu) == 0; > /* Second trap*/ > status = snmp_send (ss, pdu) == 0; $ man snmp_send Error return status from snmp

RE: Multiple traps in a session

2007-09-06 Thread Edison C.
Thanks for the info. I am using code partially taken from snmptrap.c & snmpdemoapp.c to send traps. Here is the code. I have made comments "/* First trap*/" and "/* second trap*/" at the code where send 2 traps. Please let me know if there is anything wrong. Thanks, Edison putenv (strdup ("POS

Re: Multiple traps in a session

2007-09-06 Thread Dave Shield
On 05/09/07, Edison C. <[EMAIL PROTECTED]> wrote: > Is there a way to send multiple traps in a session? > Can some one give some pointers? It's certainly possible - that's exactly what the current agent trap sessions do. > If I opened a session & tried sending multiple traps I get a " *** glibc

Re: 5.4.1 core dumps on Solaris 9/SPARC

2007-09-06 Thread Dave Shield
On 05/09/07, Joe Gainey <[EMAIL PROTECTED]> wrote: > #5 0x000ff8b8 in netsnmp_view_subtree_check (head=0x152c00, > viewName=0x152c00 "d: %s\n",.. That doesn't look right. The viewName should be something like "public" or "_internal1", not "d: %s\n" What are the access control settings fo

Re: Help with mib2c

2007-09-06 Thread Dave Shield
On 05/09/07, Salai, Sivakkani Thirunavukkarasu <[EMAIL PROTECTED]> wrote: > I get the following error when I run mib2c program: > (I issued the command as: "mib2c WMAN-DEV-MIB") You must give mib2c the name of a MIB *object*, not a MIB module/file. Please see the FAQ entry: Mib2c complain

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Dave Shield
On 05/09/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Do I need to do something special or enable something in conf files to be > able to use 1.3.6.1.4.x.y range? I will repeat the same question that I asked when you posted the same query on Tuesday: What are the access control settings for