netsnmp_inject_handler

2004-12-30 Thread Muralidhar Ganga
Hi, Running 5.1.1 on Linux. Generated code using mib2c, everything is fine, but on first attempt I get no data for snmpwalk, returns immediately. It works from the next iteration. The source for the table data is in the form of a linked list, obviously for the first get_data_point, head is nu

Re: Cannot Process SNMP Traps

2004-12-30 Thread Dave Shield
> Thanks for the update. However, using the options to snmptrapd below, > it would appear that snmptrapd is in fact receiving the packets. OK - so that probably rules out firewall issues. What about /etc/hosts.{allow,deny} filtering? Do you have either of these files - and if so, what do they c

Re: Snmpwalk of HOST-RESOURCES-MIB empty

2004-12-30 Thread Dave Shield
> On the remote host ... the snmpd.conf file is configured this way: > > com2sec com default public > group grp v1 com > group grp v2c com > view vw included .1.3.6.1.4.1.8072 > view vw included .1.3.6.1.4.1.19312 > view vw included mib-2 > vi

Re: No results returned from snmpwalk

2004-12-30 Thread Dave Shield
> I get this > > parse-mibs: Scanning directory /usr/local/share/snmp/mibs/ > parse-mibs: The index is good Are those the *only* debug messages you see? I'd expect to see a large amount of debug output, as the library reads in each MIB file in turn. If you're only getting those two lines, then I

Re: Config file name

2004-12-30 Thread Dave Shield
> > What exactly are you trying to do? > > While shutting down the agent I am reading SNMP configurations from the > database and generating SNMP configuration file (snmpd.conf), that can > be read by the agent during the next start-up. Currently I am harding > coding the SNMP configuraiton filena

Question about TimeTicks

2004-12-30 Thread Ming Yang
Hi, It seems the TimeTicks or TimeStamp textual convention all indicates the elapsed time (measured in milliseconds) since the management system last startup. Question is how the manager can use the returned TimeTicks value to accurately determine the absolute time to display to the user?      Than

Snmp V5.2 - trap source address is 127.0.0.1 - how to fix ?

2004-12-30 Thread Nancy S
Using Net-SNMP v5.2 and sending V 1 traps from Solaris 2.8 agent to localhost -- and -- management station (Windows PC) without any issues. Solaris snmp agent hosts table is configured with localhost as 127.0.0.1 for performance issues. On the SNMP management station, the trap messages shows t

Re: Repost: Sending authenticationFailure trap

2004-12-30 Thread Sridhar S
Hi, > While working with Net-SNMP. I observed that agent is sending > 'authenticationFailure' trap, even though 'snmpEnableAuthenTraps' is > set to 'disabled(2)'. I observed this behaviour with NET-SNMP version: 5.2 too. Sridhar On Tue, 28 Dec 2004 14:20:52 -0500, "Robert Story" <[EMAIL PROTEC

Re: Config file name

2004-12-30 Thread Sridhar S
Dave, Thanks for the reply > What exactly are you trying to do? While shutting down the agent I am reading SNMP configurations from the database and generating SNMP configuration file (snmpd.conf), that can be read by the agent during the next start-up. Currently I am harding coding the SNMP con

Re: Returning error from wrapper funtions

2004-12-30 Thread Sridhar S
Dave, Thanks for the reply. > It would be useful if you specified *which* Net-SNMP style you're using. > There are at least half a dozen of them! I am using mib2c of Net-SNMP version 5.1.2. In my code I am setting ret_len to zero and returning NULL. Sridhar On Wed, 29 Dec 2004 20:26:00 +,

SNMPD Problem

2004-12-30 Thread 伍华�
Thanks for your imformation. And now i can start the 'Agent', but i do not know what files i must have if i want to get some imformation from my computer,sush as :system.0 . Could you please sent me a simple example to me, and what are these files directories.Thank very much.

Re: Repost: Sending authenticationFailure trap

2004-12-30 Thread Sridhar S
I am using Net-SNMP 5.1. Thanks Sridhar On Tue, 28 Dec 2004 14:20:52 -0500, "Robert Story" <[EMAIL PROTECTED]> said: > On Thu, 23 Dec 2004 11:20:32 +0530 Sridhar wrote: > SS> While working with Net-SNMP. I observed that agent is sending > SS> 'authenticationFailure' trap, even though 'snmpEnableA

Problem with string indexes

2004-12-30 Thread Struminski, Przemek
Title: Problem with string indexes After I generated agent code using mib2c I am able to walk the entire table however, trying to access indexes, snmpwalk application tells me that the value provided is out of range.  This only happens when my indexes are of type OCTET STRING.  Modifying the M

Re: Snmpwalk of HOST-RESOURCES-MIB empty

2004-12-30 Thread Michael Dupuis
snmpwalk -v 1 -c public localhost nsModuleName | grep host This returns nothing for me. snmpwalk -v 1 -c public localhost version nor does this. Also, check your snmpd.conf to make sure it isn't configured to restrict access to the host branch.. on the querying machine (I'm actually query

Re: Snmpwalk of HOST-RESOURCES-MIB empty

2004-12-30 Thread Users
On Thu, 30 Dec 2004 11:34:35 -0500 Michael wrote: MD> Yes, I do get quite a bit of information when I use that command: MD> MD> A subset of the output looks like the following: MD> MD> NET-SNMP-AGENT-MIB::nsModuleName."".1.0.0 = STRING: Try this: snmpwalk -v 1 -c public localhost nsModuleNa

Re: Snmpwalk of HOST-RESOURCES-MIB empty

2004-12-30 Thread Michael Dupuis
Hi Robert, Yes, I do get quite a bit of information when I use that command: A subset of the output looks like the following: NET-SNMP-AGENT-MIB::nsModuleName."".1.0.0 = STRING: NET-SNMP-AGENT-MIB::nsModuleName."".1.1.0 = STRING: NET-SNMP-AGENT-MIB::nsModuleName."".1.2.0 = STRING: NET-SNMP-AGENT-MI

Agents, AgentX, and SubAgents

2004-12-30 Thread Gutemberg Santos de Medeiros
Hello everyone I´m newbie in Net-SNMP world and I have some questions about agents : What do you mean by AgentX and SubAgent ? What are the difference between them ? and for what each one servers ? Thanks so much Gutemberg --- The

Re: Snmpwalk of HOST-RESOURCES-MIB empty

2004-12-30 Thread Users
On Wed, 29 Dec 2004 16:32:33 -0500 Michael wrote: MD> agent works fine for the defaults, but I can't seem to do anything to MD> get it to return the host information. Does it get anything from the enterprises tree? eg, do you get anything for snmpwalk -v1 -c public localhost enterprises

Re: problems in writing handlers for scalars of type string

2004-12-30 Thread Users
On Thu, 30 Dec 2004 04:57:30 -0800 (PST) sharath wrote: SR> Reason: resourceUnavailable (This is likely a SR> out-of-memory failure within the agent) SR> SR> Can anyone please tell me where i have gone wrong??? SR> also to the best of my knowledge, unlike for scalar SR> inetgers, there are no pre

Re: undefined symbol: snmp_log_syslogname

2004-12-30 Thread Users
On Tue, 30 Nov 2004 17:02:05 +0100 Radek wrote: RV> I've moved from net-snmp-5.1.2 to 5.2 using same configuration options RV> and install steps. Anyway now I can't start snmp daemon and dunno why! RV> RV> # service snmpd start RV> Starting snmpd: /usr/sbin/snmpd: symbol lookup error: /usr/sbin/

Re: net-snmp 5.2 vs. 5.1.1 and earlier

2004-12-30 Thread Users
On Sun, 12 Dec 2004 04:46:36 -0500 Mordechai wrote: MTA> > Mordechai> I have a net-snmp agentx subagent I started developing for MTA> > Mordechai> 5.1.0. I recently took it up again, and found it didn't MTA> > Mordechai> work under 5.2. MTA> > MTA> > That is certainly bad. I'm not sure what's wr

Re: why I cannot get the value

2004-12-30 Thread Users
On Mon, 29 Nov 2004 10:45:57 +0800 C wrote: CY> I compiled a net-snmp agent programe.But when use CY> "snmpget -m ALL -v1 -c public localhost 6SipUSERMIB.1".There is always an CY> error CY> "Error in packet CY> Reason: (noSuchName) There is no such variable name in this MIB. CY>

Re: Mib row deletion

2004-12-30 Thread Gary Clark
Hi Robert, Yeh thats true that would work. Thanks, Garyc - Original Message - From: "Robert Story (Users)" <[EMAIL PROTECTED]> To: "Gary Clark" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, December 29, 2004 5:49 PM Subject: Re: Mib row deletion > On Wed, 8 Dec 2004 11:19:18 -0600 Gary w

problems in writing handlers for scalars of type string

2004-12-30 Thread sharath ramegowda
hi .. i am a fresher, both to netsnmp as well as this mailing list. the problem i face is as follows: i am trying to write a handler for a scalar of type OCTET STRING. i created the template code from the mib compiler as follows: mib2c -c scalar.conf netSnmpfilename then i made changes as sugge

problems in writing handlers for scalars of type string

2004-12-30 Thread sharath ramegowda
hi .. i am a fresher, both to netsnmp as well as this mailing list. the problem i face is as follows: i am trying to write a handler for a scalar of type OCTET STRING. i created the template code from the mib compiler as follows: mib2c -c scalar.conf netSnmpfilename then i made changes as sugge

RE: Net-snmp windows version building help

2004-12-30 Thread Sasikumar Bodathula
Hi Alex, The file which I downloaded (source file) from the net-snmp site 1. net-snmp-5.1.2.tar.gz (extracted to e:\net-snmp-5.1.2 ) 2. VC++ 6.0(installed). 3. Platform SDK installed. 4. ActivePerl-5.8.6.811 (installed) path c:\Perl. 5. tar.exe & gzip.exe are available. 6. gnu_regex.exe (ins

RE: Problem with net-snmp binary installation

2004-12-30 Thread Sasikumar Bodathula
Thank you Robert. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Story (Users) Sent: Thursday, December 30, 2004 3:52 AM To: Sasikumar Bodathula Cc: 'Wes Hardaker'; 'Net-SNMP' Subject: Re: Problem with net-snmp binary installation On Wed, 29 Dec 2

RE: No results returned from snmpwalk

2004-12-30 Thread Yiannis Mavroukakis
I get this parse-mibs: Scanning directory /usr/local/share/snmp/mibs/ parse-mibs: The index is good iso.3.6.1.2.1.1.1.0 = STRING: "Linux firewall 2.6.10-rc3-mm1 #6 Wed Dec 29 13:10:47 GMT 2004 i686" iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10 iso.3.6.1.2.1.1.3.0 = Timeticks: (6561423) 18: