RE: Help on Index ou t of range error ‏

2010-04-07 Thread X Z
Sorry that I used "copy & paste" and some part got omitted by the copy board. Here are the original c & h files. ThanksXuan > Date: Wed, 7 Apr 2010 09:15:56 +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.s

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-07 Thread X Z
Both machines are loaded with same modules, but in different order. ThanksXuan > Date: Wed, 7 Apr 2010 22:10:12 +0100 > Subject: Re: Strange behavior on linkUpDownNotifications‏ > From: d.t.shi...@liverpool.ac.uk > To: b...@live.com > CC: net-snmp-users@lists.sourceforge.net > > 2010/4/7 X Z :

Question on etherlike MIB and if-mib relationship

2010-04-07 Thread Kavita Raghunathan
Hello, I’m unable to use the linux code that the net-snmp-5.5 generates to reach the ethernet drivers because though our system uses linux, the ethernet device isnt accessible through ioctls (and no, I cant change our system to make it so, I’ve checked). So, I’m writing some of my own code. I ha

Re: Strange behavior on linkUpDownNotifications‏

2010-04-07 Thread Dave Shield
2010/4/7 X Z : > The working one (see link up down traps) has the following output: > trap: send_trap -1 -1 NET-SNMP-MIB::netSnmpAgentOIDs.10 > The nonworking one has the following output: > trap: send_trap -1 -1 NET-SNMP-TC::linux These actually both refer to the same OID. > Any ideas why the

RE: Strange behavior on linkUpDownNotifi cations‏

2010-04-07 Thread X Z
I have found the following when using -Dtrap as the option to start snmpd. The working one (see link up down traps) has the following output: trap: send_trap -1 -1 NET-SNMP-MIB::netSnmpAgentOIDs.10trap: sending trap type=167, version=1 The nonworking one has the following output:trap: send_trap -

Re: Engine ID discovery

2010-04-07 Thread Wes Hardaker
> On Tue, 6 Apr 2010 12:29:58 -0700, "Mike Ayers" > said: MA> Awww... time to dig back into the deep stuff... there may be two MA> authoritative entities for these transactions. I'll dig in and see MA> what I get. There is two authoritative engines. I wrote a whole tutorial on the con

Re: Engine ID discovery

2010-04-07 Thread Wes Hardaker
> On Wed, 07 Apr 2010 12:44:07 +0530, sanjaykumar > said: s> So do I conclude my requirement as follow: s> Requirement: As I do the discovery to send the inform request s> Conclusion: s> 1. I will send the inform request for engine ID probeing s> 2. Inform request will be framed as desc

Re: cache load never gets called

2010-04-07 Thread Kathy McLeod
Hi - I replaced the table init code with the call to netsnmp_cache_check_and_reload( cache ) and that seems to be working ok. (When I ran the mib2c with the cache option, it still generated the comment to "initialize the table here", so I assumed I still had to initialize it even with the cache.)

net-snmp-users@lists.sourceforge.net

2010-04-07 Thread Bart Van Assche
2010/4/7 黎明傲子 > 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 additi

net-snmp-users@lists.sourceforge.net

2010-04-07 Thread Fulko Hew
On Wed, Apr 7, 2010 at 8:43 AM, Dave Shield wrote: > 2010/4/7 Fulko Hew : > >> I'm surprised at this output - I'd expect it to display "51" > >> instead of "39" > > > > I'm not. Although I haven't looked at net-snmpd's daemonizing code, > > any application thats going to operate as a (well behav

net-snmp-users@lists.sourceforge.net

2010-04-07 Thread Dave Shield
2010/4/7 Fulko Hew : >> I'm surprised at this output - I'd expect it to display "51" >> instead of "39" > > I'm not.  Although I haven't looked at net-snmpd's daemonizing code, > any application thats going to operate as a  (well behaved) daemon > is supposed to perform (at least) 2 fork() calls to

net-snmp-users@lists.sourceforge.net

2010-04-07 Thread Fulko Hew
2010/4/7 Dave Shield > 2010/4/7 黎明傲子 : > > successful,but if I enter the command line snmpd &,always some date > appears, > > like > > # snmpd -f & > > 36 > > I want to know why this happened, > > The charcter '&' means that you are running this command as a > "background process". The number th

Re: cache load never gets called

2010-04-07 Thread Dave Shield
On 6 April 2010 20:59, Kathy McLeod wrote: > 1)  I thought it would always issue a free before a load. Not quite. The purpose of the "free" hook is to release the information left over from the previous "load" call.This can either be done immediately before the next load, or (possibly) as par

Re: snmpwalk'ing APC Transfer Switch

2010-04-07 Thread Dave Shield
On 7 April 2010 09:18, martin wrote: > mar...@home:~> snmpwalk -c public -v 2c 192.168.1.101 > /tmp/apc1 > > As I understand, there are only network related differences present > like counted packages of different protocols(ICMP, SNMP, etc). Please see the FAQ entry Why can't I see values in

net-snmp-users@lists.sourceforge.net

2010-04-07 Thread Dave Shield
2010/4/7 黎明傲子 : > successful,but if I enter the command line snmpd &,always some date appears, > like > # snmpd -f & > 36 > I want to know why this happened, The charcter '&' means that you are running this command as a "background process". The number that is displayed is the "process ID" of thi

Re: Net-SNMP questions

2010-04-07 Thread Dave Shield
On 7 April 2010 02:39, Piljoo Choi wrote: > -What is agent, master-agnet and subagent and what is the relationship > between those? >From the point of view of the querying application, there is simply a single "SNMP agent" running on a given box. This accepts requests and processes them - retur

snmpwalk'ing APC Transfer Switch

2010-04-07 Thread martin
I have an APC (http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=AP7723&tab=models]AP7723 Transfer Switch). It is a great piece of hardware, which supports monitoring over SNMP as well. However, I'm not able find correct OID's to ask. I know, that it's possible to poll for

Re: Help on Index out of range error ‏

2010-04-07 Thread Dave Shield
2010/4/6 X Z : > Attached please find the code I used. It's from mib2c.iterator -S 1 option. This code cannot possibly work. It registers a routine 'myTable_handler' to process requests, but there is no such routine in the file. (You've also omitted to include the header file 'myTable.h') We can

Re: Engine ID discovery

2010-04-07 Thread sanjaykumar
Hi Dave and Wes,    So do I conclude my requirement as follow: Requirement: As I do the discovery to send the inform  request Conclusion: 1. I will send the inform request for engine ID probeing 2. Inform request will be framed as describe in RFC 3414 "This may be accomplished by generating a