Engine ID discovery

2010-04-06 Thread sanjaykumar
Hi All, I am going through the Engine ID discovery code. Could someone explain me about this concept ?? When does it Required ?? How does Engine ID discovery process take place ? Does it is standard or implementation dependent ??? Rgds, Sanjay

Re: how to configure net-snmp on uclinux(fork vfork)

2010-04-06 Thread Bart Van Assche
2010/4/6 黎明傲子 ll_j...@163.com I'm an embedded software engineer,recently I'm porting net-snmp on uclinux,my cross-compilation tools is arm-elf-, the configuration as follows: *./configure --build=i386-linux --host=arm-elf --target=arm-uclinux --disable-manuals --disable-applications

RE: Engine ID discovery

2010-04-06 Thread Mike Ayers
From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com] Sent: Monday, April 05, 2010 11:05 PM I am going through the Engine ID discovery code. Could someone explain me about this concept ?? When does it Required ?? How does Engine ID discovery process take place ? Does it is

Re: Seg fault when querying for the UDP table

2010-04-06 Thread Malathi Panyam
Hi Dave, I am still not able to solve the issue.. I tried to omit the if-mib in the make file and started seeing the errors like ./.libs/libnetsnmpmibs.so: undefined reference to `Interface_Scan_Init' ./.libs/libnetsnmpmibs.so: undefined reference to `Interface_Scan_Next'

hrStorage returns zero size values on all units

2010-04-06 Thread Perzon Berry
Hello I have a problem with getting any size values from snmp. I have other linux servers on other plattforms, and configuration/commands are used in the same way and everything works as designed there. But on this specific server, nothing is returned. I have tried to increase the logging of

Re: Engine ID discovery

2010-04-06 Thread Dave Shield
On 6 April 2010 07:04, sanjaykumar sanjay.ku...@globaledgesoft.com wrote:            I am going through the Engine ID discovery code. Could someone explain me about this concept ?? In order to use SNMPv3, it's necessary to know the engineID of the agent (or strictly speaking, the authoritative

Re: hrStorage returns zero size values on all units

2010-04-06 Thread Dave Shield
On 6 April 2010 07:31, Perzon Berry berry.per...@axfood.se wrote: I have a problem with getting any size values from snmp. I have other linux servers on other plattforms, and configuration/commands are used in the same way and everything works as designed there. But on this specific server,

AW: snmptrapd.conf format1 and format2 tokens not being used?!

2010-04-06 Thread Schaatsbergen, Chris
On Tue, 23 Mar 2010 16:06:19 +0100, Schaatsbergen, Chris chris.schaatsber...@aleo-solar.de said: CS format1 '%y-%m-%l ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n' format2 '%y-%m-%l CS ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n' authCommunity log Cisco logOption f CS /var/run/snmp-traps CS But I tried loads of

RE: hrStorage returns zero size values on all units

2010-04-06 Thread Perzon Berry
I have a problem with getting any size values from snmp. I have other linux servers on other plattforms, and configuration/commands are used in the same way and everything works as designed there. But on this specific server, nothing is returned. Is this the only PPC64 system you're

Re: hrStorage returns zero size values on all units

2010-04-06 Thread Dave Shield
On 6 April 2010 08:51, Perzon Berry berry.per...@axfood.se wrote: How exactly did you increase the logging? What have you tried, and what did it report? Basicly, I just started snmpd without forking to background and made sure that all output came on stdout. Nothing more fancy than that

SV: hrStorage returns zero size values on all units

2010-04-06 Thread Perzon Berry
Please try running snmpd using the debug options-Dhost,mem and query the hrStorageTable again. What does the agent report? Starting snmpd with the following command: /usr/sbin/snmpd -f -Lo -Dhost,mem Running the query with snmpget to minimize a long debug output. (let me know if you want

Re: hrStorage returns zero size values on all units

2010-04-06 Thread Dave Shield
On 6 April 2010 09:17, Perzon Berry berry.per...@axfood.se wrote: Another intressing thing is that I just downloaded the latests src and compiled it. No errors during the compile. Copied the original snmpd.conf file and started the fresh-compiled version of net-snmp. All entired returned

SV: hrStorage returns zero size values on all units

2010-04-06 Thread Perzon Berry
That's good to hear. (Well, good for us - less so for you). It might be worth trying with the 5.3.3 sources, to see whether this is an issue with the 5.3.x line, which has been solved in later releases. I downloaded and compiled the 5.3.3 version, and it works aswell. Everything is

Re:Re: how to configure net-snmp on uclinux(fork vfork)

2010-04-06 Thread 黎明傲子
在2010-04-06 14:12:20,Bart Van Assche bvanass...@acm.org 写道: 2010/4/6 黎明傲子 ll_j...@163.com I'm an embedded software engineer,recently I'm porting net-snmp on uclinux,my cross-compilation tools is arm-elf-, the configuration as follows: ./configure --build=i386-linux --host=arm-elf

Re: Engine ID discovery

2010-04-06 Thread sanjaykumar
Dave Shield wrote: On 6 April 2010 07:04, sanjaykumar sanjay.ku...@globaledgesoft.com wrote: I am going through the "Engine ID discovery" code. Could someone explain me about this concept ?? In order to use SNMPv3, it's necessary to know the "engineID" of the agent

Re: Engine ID discovery

2010-04-06 Thread Dave Shield
On 6 April 2010 10:09, sanjaykumar sanjay.ku...@globaledgesoft.com wrote: So we are sending the inform with WRONG engine ID, once we receive the REPORT then we update the required data-structure then RESENT the inform request and it is working fine.  Does it correct approach ??? That's

Re: cache load never gets called

2010-04-06 Thread Dave Shield
On 30 March 2010 21:12, Kathy McLeod kmcl...@us.ibm.com wrote: I ran the mib2c to generate a cache handler for a file created using mib2c.table_data.conf.  The main function still works ok, but even tho I set the cache timeout value to -1, it never seems to expire.  I also tested with a

Re: Engine ID discovery

2010-04-06 Thread sanjaykumar
Hi, I have a real time situation. Suppose I have to send inform to an ip addr. On that ip addr, snmptrapd is not running. Approach 1. If we send get request with engine id NULL(engine id discovery process) , then no response will come. Lets assume our retry is 3, then we will send 3 get

Re: Engine ID discovery

2010-04-06 Thread Dave Shield
On 6 April 2010 11:04, sanjaykumar sanjay.ku...@globaledgesoft.com wrote: Suppose I have to send inform to an ip addr. On that ip addr, snmptrapd is not running. Then there's nothing to accept the notification. Approach 1. If we send get request with engine id NULL(engine id discovery

Re: monitor -S option doesn't work

2010-04-06 Thread Dave Shield
On 1 April 2010 23:13, X Z b...@live.com wrote: I am using 5.3.2.2, for RHEL5 x86_64. I tried download the newer source (5.5) but it didn't compile on my machine. Hmmm... it might be worth trying to identify and fix that problem. What exactly were the errors?

Re: Open ssl support.

2010-04-06 Thread Dave Shield
On 12 March 2010 14:04, sudheer mygapula mygapula.sudh...@gmail.com wrote: I need to have binaries with inbuild OpenSSL support . What architecture are you talking about? We provide binaries for Linux (Fedora 11) and Windows. Which of these are you referring to? The Linux binaries should link

Re: implement mib with python

2010-04-06 Thread Dave Shield
On 3 April 2010 00:09, Wes Hardaker harda...@users.sourceforge.net wrote: TC in the faq, i read this ..the agent can also support MIB modules TC implemented in perl or (from 5.4) python. Yes, that's an error.  I don't believe anyone has done agent side work for python yet.  Just perl. My

Re: building 32-bit net-snmp on x86_64-bit kernel Linux

2010-04-06 Thread Dave Shield
On 5 April 2010 16:42, prakash.mi...@bnymellon.com wrote: configure still picking 64 bit perl library. my configure command: ./configure --with-cflags=-m32 --with-ldflags=-m32 --with-libs=-L/usr/lib/perl5/5.8.8/i686-linux-thread-multi-64int/CORE/libperl.a Well, yes - if you

Re: Strange behavior on linkUpDownNotifications‏

2010-04-06 Thread Dave Shield
2010/3/29 X Z b...@live.com: I finally can receive link up/down traps. But here is the strange behavior: 1. link up/down traps only sent after the snmpd is restarted.  If I don't restart snmpd, there were no link up/down traps sent. 2. There were too many link up/down traps after snmpd is

Re: Help on Index out of range error ‏

2010-04-06 Thread Dave Shield
2010/4/5 X Z b...@live.com: Sorry for the typo. I modified the MIB text so that the index and table name are easy to read, but I forgot to change this Index name, it should be MyIndex. No - it should be myIndex. MIB object names must start with a lower-case letter. I got rid of the index

Re: Seg fault when querying for the UDP table

2010-04-06 Thread Dave Shield
On 2 April 2010 22:58, Malathi Panyam malathipan...@yahoo.com wrote: I would like to know, when I exclude the ifTable from the agent, why it has to ask the agent code for the ifTable details? it should be asking my subagent code right? No idea. Let's try and get to the bottom of the -I-ifTable

Re: snmptrapd.conf format1 and format2 tokens not being used?!

2010-04-06 Thread Dave Shield
On 23 March 2010 15:06, Schaatsbergen, Chris chris.schaatsber...@aleo-solar.de wrote: We am running Debian server, net-snmp version 5.4.1. The snmptrapd.conf file currently: format1 '%y-%m-%l ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n' format2 '%y-%m-%l ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n' The problem

Re: snmpget error?

2010-04-06 Thread Dave Shield
On 2 April 2010 17:24, PEOPLES, MICHAEL P (ATTSI) mp4...@att.com wrote: When you walk that branch of the MIB, get the OID that is pointing to value you are trying to get.  You might then have to add “.0” or “.1.0” to the snmpget. Adding .0 is typically only relevant for scalar objects (i.e. a

Re: Engine ID discovery

2010-04-06 Thread Wes Hardaker
On Tue, 6 Apr 2010 11:17:21 +0100, Dave Shield d.t.shi...@liverpool.ac.uk said: Approach 1. If we send get request with engine id NULL(engine id discovery process) , then no response will come. Lets assume our retry is 3, then we will send 3 get request for engine id discovery. As response

Re: SNMPWALK works for the table, but SNMPGET doesn't work

2010-04-06 Thread Wes Hardaker
On Mon, 5 Apr 2010 16:37:22 -0400, X Z b...@live.com said: XZ Yes, I did use snmpget for individual entry in the table. E.g. XZ I did snmpwalk to get the following: XZ MY-MIB::myTableEntry1.1=1 XZ MY-MIB::myTableEntry2.1=xxx XZ ... XZ MY-MIB::myTableEntry1.2=2 XZ MY-MIB::myTableEntry2.2=yyy

Re: net-snmpd v5.5 build fails with undefined reference to `pthread_create'

2010-04-06 Thread Howarth, James
I do not quite follow your response. Are you suggesting that this is bug and config_os_libs should be modified? If so should I create a bug for this? Or are you suggesting that I have not configured the build correctly via the configure command? Sorry for the naive questions but I am sure how

syntax for fixed size tables within SNMP MIBS

2010-04-06 Thread Lewis Adam-VNQM87
recently checking a proprietary MIB with a MIB validator used by an SNMP Manager, I got the following error: ERR-166 For newly-defined conceptual rows which allow the creation of new object instances and/or the deletion of existing object instances, there should be one columnar object with

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-06 Thread X Z
Yes. I only got them when agent starts up or restarts, not other times. ThanksXuan Subject: RE: Strange behavior on linkUpDownNotifications‏ Date: Mon, 5 Apr 2010 15:30:58 -0700 From: mike_ay...@tva.tvworks.com To: b...@live.com; d.t.shi...@liverpool.ac.uk CC:

RE: Help on Index ou t of range error ‏

2010-04-06 Thread X Z
Attached please find the code I used. It's from mib2c.iterator -S 1 option. ThanksXuan Date: Tue, 6 Apr 2010 12:31:46 +0100 Subject: Re: Help on Index out of range error ‏ From: d.t.shi...@liverpool.ac.uk To: b...@live.com CC: net-snmp-users@lists.sourceforge.net 2010/4/5 X Z

Re: net-snmpd v5.5 build fails with undefined reference to `pthread_create'

2010-04-06 Thread Bart Van Assche
On Tue, Apr 6, 2010 at 5:54 PM, Howarth, James jhowa...@arbor.net wrote: I do not quite follow your response. Are you suggesting that this is bug and config_os_libs should be modified? If so should I create a bug for this? Or are you suggesting that I have not configured the build correctly

Re: syntax for fixed size tables within SNMP MIBS

2010-04-06 Thread Dave Shield
On 6 April 2010 17:22, Lewis Adam-VNQM87 vnq...@motorola.com wrote: 1. Is the error message correct if we want to support the latest SNMP standards? RowStatus is certainly the standard mechanism for controlling the creation/deletion of rows in SNMP tables. But I'm not sure I'd describe

Re: Engine ID discovery

2010-04-06 Thread Dave Shield
On 6 April 2010 20:02, Mike Ayers mike_ay...@tva.tvworks.com wrote: The authoritative engine for an inform is the sending engine Is it? I believe that the authoritative engine for an Inform was the notification receiver (just like any other acknowledged request). The authoritative engine for a

RE: Engine ID discovery

2010-04-06 Thread Mike Ayers
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Tuesday, April 06, 2010 3:17 AM Mike - do you wish to comment further? I just think the OP should quit screwing around in the dark. RFC3414, section 4 explains how to get an

RE: Engine ID discovery

2010-04-06 Thread Mike Ayers
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Tuesday, April 06, 2010 12:06 PM On 6 April 2010 20:02, Mike Ayers mike_ay...@tva.tvworks.com wrote: The authoritative engine for an inform is the sending engine Is it? I believe that the

Re: cache load never gets called

2010-04-06 Thread Kathy McLeod
Thanks. That worked and it now does cache loads/frees. But it is not working as I expected. 1) I thought it would always issue a free before a load. However, the first time I issue a command (this happens whether I issue it right away after the table init routine or if I wait more than 60

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-06 Thread X Z
I just tried snmp 5.3.3 and couldn't get the link traps working. Same behavior observed. A bunch of link up/down traps when the agent started up or restarted. After that, even I change the interface to be down by ifdown eth2, no traps were sent out. ThanksXuan Date: Tue, 6 Apr 2010 12:19:16

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-06 Thread X Z
I tried snmp 5.3.3 on both 64 bits and 32 bits servers, and the link traps only partially worked for 32 bits server. By partially, I mean that the agent didn't take the frequency and -S option, it just simply used the default one (one minute) and didn't suppress the traps at the agent startup.

Net-SNMP questions

2010-04-06 Thread Piljoo Choi
Hello All members, I am new to net-snmp and I have questions. -What is agent, master-agnet and subagent and what is the relationship between those? how does master-agent and sub-agent work? A request(GET or SET) commands hits the master-agent first and passes it to subagent? And the

what reason causes echo some date after command line snmpd

2010-04-06 Thread 黎明傲子
Dear All: When I port net-snmp to my board(uClinux),the compile process is successful,but if I enter the command line snmpd ,always some date appears, like # snmpd -f 36 I want to know why this happened, Is there anything I can do for it? what “36 “ is stand for ? In addition,if I enter the