How to display the data in a row of a table
Hi, i can use snmptable to display the whole table, but how to disply a row of table? The type of table index is IpAddress and i set the index via snmp_set_var_value() as the following: _get_first[next]_data_point() { ... vptr = put_index_data; snmp_set_var_value(vptr, (u_char *)&addr_ip, sizeof(in_addr_t)); ... } When i tried the following command for instance with index 230.0.0.1, "snmpget -v 2c -c private recMCAddressTable.230.0.0.1" i got: "...::recMCAddressTable.230.0.0.1 = No Such Object available on this agent at this OID" What is the correct usage of snmp command to dispaly a row of table? thanks. Li-Juen --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Encryption support not enabled.
> On Tue, 21 Feb 2006 18:25:52 +0100, Vincenzo <[EMAIL PROTECTED]> said: Vincenzo> everytime i try to run it, the following error shows me on the output: Vincenzo> Encryption support not enabled. Vincenzo> snmptrap: USM encryption error (Sub-id not found: iso -> sysContact) You need openssl installed. If you have it installed, make sure the output of configure actually found it. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Displaced c++-style comments in net-snmp-5.3.0.1-sourcecode
> On Wed, 22 Feb 2006 11:15:05 +, Dave Shield <[EMAIL PROTECTED]> said: >> I noticed some c++-style comments ("// code") in some >> files in ./agent/mibgroup/disman/event/mte*. Dave> Yes - those look like temporary removals of code that Dave> should have worked but had been causing problems. Dave> I tend to use C++-style comments for those, to distinguish Dave> them from "real" comments, and remind me that the problem Dave> still needs to be addressed. To prevent this we shouldn't ever check in code with // comments in it. Period. If you need a reminder, use an XXX or even better a /** @todo */ doxygen tag. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: snmpv3 "USM unknown security name"
> On Wed, 22 Feb 2006 17:57:23 +0100, "talpun talp" <[EMAIL PROTECTED]> > said: talpun> we are tryng to configure net-snmp for snmpv3. talpun> We have some problem with usm user. Into snmpd.conf I inserted the talpun> statement: talpun> createUser -e 0x1234567890 maurizio MD5 1234567890 DES 0987654321 talpun> into snmpd.conf, and I try to run an snmpget like this: talpun> snmpget -v 3 -n "" -e 0x1234567890 -u maurizio -a MD5 -A 1234567890 -l talpun> authNoPriv 10.17.252.27 sysName.0 It's illegal to use users in the user database that don't map to the exact same engineid of the agent. Thus, that user even though created isn't legal for the agent to respond to (note the VACM settings don't let you specify a engineID when mapping a user to a group) -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: SNMP V3 key change
> On Sat, 25 Feb 2006 17:06:23 -0500, "Soni Manish-E3988C" <[EMAIL > PROTECTED]> said: Soni> Wanted to know when snmp key change is triggered by setting Soni> usmauthkeychange does the net-snmp agent wait to update the keys Soni> until all the ongoing operations (Sets) are completed or the Soni> keys are updated immediately and the new keys will be used for Soni> responsding to ongoing sets. The keys are updated immediately and only the outgoing response message is encoded using the older key. Though having said that, our internal architecture doesn't allow for multiple SETs to be processed at once for exactly reasons like this: dependencies. Thus you're actually safe to fire a bunch of SETs at the agent where a middle one is a key change. *but* you can still run into problems: 1) networks don't guarantee order delivery of packets. Thus, they could arrive out of order if fired off quickly. 2) there is no assurance that the keychange SET itself will fail if it is messed up or fails for some reason and every SET after it would fail because it would be using the newer key. The net-policy project on sourceforge is a side-project of mine that has a robust configuration engine that accounts for issues like this and one of the things we do there is make sure that SETs that go out are sent one at a time to the host. We do allow, though, for multiple SETs to different hosts to the same time... We queue outstanding requests to a single host and stop on an error until an operator clears the error... -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Can parse_oid_indexes() parse fixed-length string indexes?
> On Wed, 1 Mar 2006 19:40:58 +0200, "Makavy, Erez (Erez)" <[EMAIL > PROTECTED]> said: Erez> I don't see in the table registration any information about the indexes' Erez> length (in case of fixed-length string) Erez> And there is also no information about the length in the parameters of Erez> parse_oid_indexes() Using a var of type ASN_PRIV_IMPLIED_OCTET_STR will force it to be a fixed length string. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: 5.1.4.rc1 available for testing.
> On Mon, 06 Mar 2006 11:36:04 +, Dave Shield <[EMAIL PROTECTED]> said: >> we're going to be releasing 5.1.4 in the near future and this will >> likely be the last release in the 5.1.X series. Dave> I gave this release a quick whirl over the weekend, Dave> and it seemed fine. But it needed one minor tweak to report Dave> memory/CPU statistics on the latest NetBSD and OpenBSD systems. Dave> I've applied that patch to the 5.[23].x lines, but wasn't sure Dave> whether to apply it to 5.1.4 as well. It should be safe enough Dave> but would require another spin at RC2 Um, your call. This is the end of the line for the 5.1.x series so maybe it's a good thing to apply one last bug fix. However, we could be doing that for years if we don't stop at some point! I was going to release today, but I'll hold off till tomorrow tilly ou have a chance to answer. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Missing OID?
> On Mon, 6 Mar 2006 09:53:08 -0500, Jean-Sebastien Morisset <[EMAIL > PROTECTED]> said: Jean-Sebastien> I'm using Net-SNMP v5.3.0.1 on several versions of Jean-Sebastien> Solaris (2.6->10) and trying to build a CPU graph with Jean-Sebastien> rrd (in OpenNMS), but Net-SNMP isn't returning one of Jean-Sebastien> the required IODs: Then it's not supported on that system. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Hi i want the documentation details for snmptrapd- version 5.1
> On Sat, 04 Mar 2006 15:15:06 +0600 (IST), [EMAIL PROTECTED] said: krishnakumar> I need the documentation details for snmptrapd section krishnakumar> in net-snmp 5.1 . i need the usage details for snmptrapd krishnakumar> . please send the same. Please read the snmptrapd and snmptrapd.conf manual pages. -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: exec problem with 5.1
Mikester wrote: I've got an exec configuration that runs a simple ping script to a few hosts. I have tested the 5.3 version extend config and don't have this problem but upgrading hundreds of machine's version of snmp is a task that won't happen quickly and I do still have some problems that are similar. The problem that I have is that after a few returns the agent stops responding entirely and requires a shutdown and a restart to get responding again. We'd need to know the exact details of your setup (including the ping script itself) to be able to help. If the agent hangs, what are the last couple of lines of "snmpd -f -Le -DALL" output? In case this turns out to be a problem with your existing net-snmp 5.1 installation, however, upgrading is likely to be the suggested option. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Net-SNMP w/ Solaris 10 libseaProxy/Extensions.so doesn't work!
On Tue, Mar 07, 2006 at 11:38:50AM -0500, Jean-Sebastien Morisset wrote: > Thanks Keith! Attached is the core file. The command used to generate it The problem here is that 5.3.0.1's definition of netsnmp_session is incompatible with the one in 5.0.9, against which the seaProxy module was built. Specifically, the community name is being overwritten with the maximum SNMP packet length by the seaProxy code (which intends instead to set rcvMsgMaxSize), then the _sess_copy function attempts to memmove from this bogus pointer. The changes that caused this appear to have been made in the 5.2 timeframe (5.1.3.1 looks like it's ok) with the addition of a few new fields to the session. It's not clear to me whether seaProxy's behaviour is allowed here (that is, whether netsnmp_session is intended to be an opaque type). The general Net-SNMP answer seems to be that it's allowed, but the Solaris answer might be different. If it's not allowed, the bug is in Sun's SEA code and we might fix it - I say might because the code has been Obsolete for a long time. If the behaviour is allowed, you just won't be able to use the old SEA stuff unless you rebuild it (once it's available) against newer Net-SNMP headers. This would also mean that Solaris SEA will never (term used loosely) be upgraded past 5.1.x, because the SDK interfaces are classified either Stable or Evolving - which is effectively the same as Stable - and thus we can't allow them to be broken in a minor release of Solaris. I'm investigating this right now, but the answer isn't going to help you much immediately anyway. In general I recommend that you not use SEA anyway, as it's EOF and has been for some time. I'd be curious to know what you're getting from it that you can't get from the standard and add-on Net-SNMP MIBs. -- Keith M Wesolowski "Sir, we're surrounded!" Solaris Kernel Team "Excellent; we can attack in any direction!" --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: system: Unknown Object Identifier (Sub-id not found: (top) ->system)
Thanks Dave, The agent was looking for the mib files in "/usr/share/snmp/mibs/". while the mibs were stored in different directory. I moved the file to to "/usr/share/snmp/mibs" and it worked fine. From: Dave Shield <[EMAIL PROTECTED]> To: Hassan Noureddine <[EMAIL PROTECTED]> CC: net-snmp-users@lists.sourceforge.net Subject: Re: system: Unknown Object Identifier (Sub-id not found: (top) ->system) Date: Thu, 02 Mar 2006 17:20:30 + On Wed, 2006-01-25 at 08:45 -0800, Hassan Noureddine wrote: > I am getting a "system: Unknown Object Identifier" in response to the > snmpwalk command: > > #snmpwalk -v 1 -c private 127.0.0.1 system. > system: Unknown Object Identifier (Sub-id not found: (top) -> system) That looks as if the command isn't finding the MIB files. Are they installed? Where? Try running snmpwalk -Dparse-mibs -v 1 -c private 127.0.0.1 system and see where it's looking for these files. Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
exec problem with 5.1
I've got an exec configuration that runs a simple ping script to a few hosts. I have tested the 5.3 version extend config and don't have this problem but upgrading hundreds of machine's version of snmp is a task that won't happen quickly and I do still have some problems that are similar. The problem that I have is that after a few returns the agent stops responding entirely and requires a shutdown and a restart to get responding again. Thanks for any help.
Re: How can one acknowledge informs in snmptrapd
On Tue, Mar 07, 2006 at 09:56:21AM -0800, shahram amini-didani wrote: > Hi Thomas, > > There is the following case that the agent should > continue sending the given inform until it is > acknowledged by the manager. > > In a normal situation, the manager will acknowledge > the inform but in order to verify that the agent will > continue sending the given inform, it would not useful > to have a way to control inform acknowledgement. For testing purposes, you could use iptables on linux to block the inform response. Alternatively on the manager system create an incorrect host route (route via loopback perhaps) to the device sending the inform. This will send the inform response to a black hole. Then again you can take the easy way out and shut off the trap receiver. That will stop an inform from being sent and you watch the inform packet arrive via tcpdump or other means of sniffing the wire. -- -- rouilj John Rouillard System Administrator Renesys Corporation 603-643-9300 x 111 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: How can one acknowledge informs in snmptrapd
Hi Thomas, There is the following case that the agent should continue sending the given inform until it is acknowledged by the manager. In a normal situation, the manager will acknowledge the inform but in order to verify that the agent will continue sending the given inform, it would not useful to have a way to control inform acknowledgement. Regards Shahram --- Thomas Anders <[EMAIL PROTECTED]> wrote: > shahram amini-didani wrote: > > Is there a way to acknowledge informs in > snmptrapd? > > This should be done by default. > > > Can one disable/enable inform acknowledgment? > > Why? Not sending INFORM ACKs would violate RFC > requirements. > > > +Thomas > > -- > Thomas Anders (thomas.anders at blue-cable.de) > > > --- > This SF.Net email is sponsored by xPML, a > groundbreaking scripting language > that extends applications into web and mobile media. > Attend the live webcast > and join the prime developer group breaking into > this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > ___ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or > change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: How can one acknowledge informs in snmptrapd
shahram amini-didani wrote: Is there a way to acknowledge informs in snmptrapd? This should be done by default. Can one disable/enable inform acknowledgment? Why? Not sending INFORM ACKs would violate RFC requirements. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: linkup linkdown monitoring impacts the performance
Hi I read this mail and tried to run with the notification.c you mentioned .It is generating the trap .But how to use netlink for this .We have to write some code for opening the socket and what you mean by subscribe to link change messages.I am not much familiar with this topic .Can you please put some more light on this exactly how to implement this netlink concept in net-snmp. Thanks in advance . regards Vishakha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peder Chr. Norgaard Sent: Friday, February 24, 2006 3:00 PM To: Dave Shield Cc: [EMAIL PROTECTED]; net-snmp-coders@lists.sourceforge.net Subject: Re: linkup linkdown monitoring impacts the performance On Fri, 24 Feb 2006, Dave Shield wrote: > On Fri, 2006-02-24 at 13:59 +0530, [EMAIL PROTECTED] wrote: > > > monitor -r 5 -e linkUpTrap "Generate linkUp" ifOperStatus != 2 > > monitor -r 5 -e linkDownTrap "Generate linkDown" ifOperStatus == 2 > > > Since this set-up makes frequently so many system calls... > > it affects the devices thruput rate. > > This is not too surprising, since you have instructed the agent > to monitor the interfaces every 5 seconds. This is significantly > more frequently than the default configuration (every 10 minutes). > > Try increasing the delay between monitor probes to something more > reasonable, or omit the "-r 5" options altogether. > The monitoring solution is inherently a terrible inefficient way of generating data for what is basically an alarm: you face an unholy choice between heavy load even when everything is OK, and large delay in being told that something is wrong. If you work on a system with "netlink" support (a linux system, for instance) and don't shrink from a bit of C coding you can make a solution that gives the alarms immediately, and costs absolutely nothing on run-time. The trick is to open a netlink socket and subscribe to link change messages. Then generate the alarms using the net-snmp C API interface. There is an example in one of the tutorials, and it works, I have tried it. 100-200 lines of code. You can either put this code into the master SNMP agent or tack it on from a separate process using the AGENT-X interface. best regards -- Peder Chr. Nørgaard Senior System Developer, M. Sc. Ericsson Denmark A/S, Telebit Division Skanderborgvej 232 tel: +45 30 91 84 31 DK-8260 Viby J, Denmark fax: +45 89 38 51 01 e-mail: [EMAIL PROTECTED] (old e-mail 2000-2003: [EMAIL PROTECTED]) (old e-mail 1992-2000: [EMAIL PROTECTED]) This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or [EMAIL PROTECTED] --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users