Re: snmpwalk not recognizing mibs?

2011-07-08 Thread Dave Shield
On 8 July 2011 19:28, Chris Bartram wrote: > Is there something I'm missing to get snmpwalk results to process the same > mibs as snmptrapd does? One thing to check is whether snmpwalk is reading MIB files from the same location as snmptrapd. If you re-instate the syntax error in the MIB file (

Re: How to not load any MIB files

2011-07-07 Thread Dave Shield
On 7 July 2011 08:41, Giuseppe Modugno wrote: > It seems the only method to avoid loading MIBs is to set MIBDIRS variable to > "" No - that will still try to load the MIB files, but the SNMP library doesn't know where to find them (hence the errors that you are seeing). If you really don't wa

Re: tool to convert snmp mib tree to database

2011-07-07 Thread Dave Shield
On 6 July 2011 11:17, Victor D'Agostino wrote: > I am looking for a tool to convert a mib file oid tree to a sql script which > build a database table. You could use the 'mib2c' tool to do this, by simply crafting a suitable template file. Despite the name, this can be used to generate *any* sty

Re: Inquiry on ucd-snmp build in 64bit

2011-07-04 Thread Dave Shield
On 4 July 2011 09:46, Erwin De Guzman wrote: >> What do you mean by "ucd-snmp functionality" ? > What I mean not to build other functionality of net-snmp, > only the previous ucd-snmp. That doesn't really make sense. The Net-SNMP package is a straightforward development of the earlier UCD code.

Re: Inquiry on ucd-snmp build in 64bit

2011-07-04 Thread Dave Shield
On 4 July 2011 08:54, Erwin De Guzman wrote: > Can it be possible to use the ucd-snmp functionality instead of net-snmp? What do you mean by "ucd-snmp functionality" ? What sort of application are you working with? A client-side query tool, or an SNMP agent? Dave -

Re: Unable to build net-snmp on linux

2011-07-03 Thread Dave Shield
On 3 July 2011 05:40, N. Karthikeyan wrote: > I tried to install 'beecrypt devel' RPM. How? What command did you use? > It also failed with other library dependancies.. If you are using 'yum', then this should detect the other dependencies and install these as well. Try running the command

Re: Snmptrap not forwarding on proper port

2011-07-01 Thread Dave Shield
On 1 July 2011 21:10, George wrote: > Still no go: Ok - rather than trying to guess where the config files should go, it's probably worth checking this properly. Have a look at the /usr/local/etc/rc.d/snmptrapd script First, see if it specifies an explicit config file location. If so, then try

Re: Snmptrap not forwarding on proper port

2011-07-01 Thread Dave Shield
On 1 July 2011 17:07, George wrote: > Here are the results: Hmmm.. I'm really not convinced by these results. Breaking down an example log entry gives > Jul  1 12:03:41 freebsd snmptrapd[7647]: > [UDP: [10.1.1.228]:35113->[0.0.0.0]]: > Trap , DISMAN-EVENT-MIB::sysUpTimeInstance = Timet

Re: Unable to build net-snmp on linux

2011-07-01 Thread Dave Shield
On 30 June 2011 23:57, N. Karthikeyan wrote: >    I am trying to install net-snmp on my linux machine. > I hitting the following linking error: > > /bin/sed: can't read /usr/lib/libbeecrypt.la: No such file or directory > >    I am seeing a shared library in /usr/lib. But, There is no static libr

Re: Unable to build net-snmp on linux

2011-07-01 Thread Dave Shield
On 1 July 2011 06:12, Ashwin Kumar wrote: >>    I have downloaded net-snmp-5.6.1.1.zip from http://www.net-snmp.org. > > Well, *.zip is generally for Windows. > For Linux, you will have to get *.tar.gz from the site and build it. No - that's simply not true. Although ZIP files are typically asso

Re: IPv6 tests fail

2011-06-30 Thread Dave Shield
On 30 June 2011 13:25, Jaap Winius wrote: >> What are your access control settings? > > In /etc/hosts.allow I've got: > >   snmpd:       ALL Probably not relevant. I'm asking about the SNMP access control settings. > Plus, I'm running xinetd, which has IPv6 support, but I'm not sure if that > ma

Re: IPv6 tests fail

2011-06-30 Thread Dave Shield
On 30 June 2011 11:51, Jaap Winius wrote: > So far I've tried configuring /etc/snmp/snmpd.conf with, for example: > >    agentAddress udp:6161,tcp6:161,udp6:1616 What are your access control settings? Dave -- All of the

Re: Snmptrap not forwarding on proper port

2011-06-30 Thread Dave Shield
On 29 June 2011 17:45, George wrote: > but note that ./snmptrapd -f -Le did not keep the screen up on freebsd to > view the data live Strange What version of snmptrapd is this? > Jun 29 12:43:46 freebsd snmptrapd[93523]: [UDP: > [10.1.1.228]:50079->[0.0.0.0]]: Trap , >DISMAN-EVENT-M

Re: Snmptrap not forwarding on proper port

2011-06-29 Thread Dave Shield
On 29 June 2011 16:08, George wrote: >how do I look at the output? Well, it's probably being logged to the default log file (typically something like /var/log/messages). I'm afraid I can't be more specific, as you've not given any indication as to what O/S you are working with. The simplest

Re: Need Info abt the SNMP SET.

2011-06-29 Thread Dave Shield
On 29 June 2011 13:28, venkatgiri wrote: > Now i have got one more question, the rule of encoding the bits is > applicable for both SNMP manager(during SNMP SET) and SNMP client(during > SNMPGET/SNMPWALK operation). The encoding rules are applied to *ALL* SNMP requests, when preparing them for pu

Re: snmptrapd - unable to receive informs

2011-06-29 Thread Dave Shield
apd.conf) That way, you know that they're in agreement, so things should work Dave > > > > -Original Message- > From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On > Behalf Of Dave Shield > Sent: Wednesday, June 29, 2011 3:39 AM > To: Joan L

Re: Snmptrap not forwarding on proper port

2011-06-29 Thread Dave Shield
On 28 June 2011 21:26, George wrote: > This didn't work: > > [root@freebsd /usr/local/etc/rc.d]# vi /usr/local/share/snmp/snmptrapd.conf > disableAuthorization yes > format2 '%B [%b]: Trap %#v\n' > authCommunity log,execute,net public > forward default udp:10.1.1.227:162 Let's simplify things for

Re: How to send trap or notification from sub-agent?

2011-06-29 Thread Dave Shield
On 28 June 2011 22:23, wrote: > How to send trap or notification from sub-agent code? Please see the FAQ entry How can I get an AgentX sub-agent to generate a trap (or inform)? Dave -- All of the data generated

Re: snmptrapd - unable to receive informs

2011-06-29 Thread Dave Shield
On 28 June 2011 20:28, Joan Landry wrote: > It fails if (ISENGINEKNOWN(secEngineID, *secEngineIDLen) == FALSE) > > Even though the engine id is correct (it is the engine id of the snmpd > server). Ah! That might start to explain things If you are working with unacknowledged SNMPv3 traps, then

Re: sending informs from sub-agent to Master agent ( agentx )

2011-06-29 Thread Dave Shield
On 28 June 2011 17:43, anand anand wrote: > our OSPF module uses some third-party lib to connect to a CLI. > > So if we use the code from example-demon.c  then the CLI commands are not > reaching our module., but snmpgets and sets work fine. > > Can anyone help us on this integration issue. You

Re: Snmptrap not forwarding on proper port

2011-06-28 Thread Dave Shield
On 28 June 2011 15:33, George wrote: > How do I use the format 2 option properly? Same way as "format1". Something like $ cat snmptrapd.conf disableAuthorization yes format2 '%B [%b]: Trap %#v\n' Dave --

Re: snmptrapd - unable to receive informs

2011-06-28 Thread Dave Shield
On 28 June 2011 14:02, Joan Landry wrote: > I have a setup where I am running snmptrapd - and I am not able to get > informs. > Traps work fine. > my setup where traps are being sent from is embedded net-snmp where > snmpd.conf is: > trapsess -r 3 -t 1500 -Ci -e 0x80001f888089d4a911f37e044

Re: Snmptrap not forwarding on proper port

2011-06-28 Thread Dave Shield
On 28 June 2011 13:13, George wrote: > Why just a v1 trap? Doesn't this work on other types? Of course it does. It's just that you'd need to use the "format2" directive for SNMPv2/3 notifications. So given that I'd suggested using a format1 directive for testing, then you'd need to send a v1 t

Re: Solarwinds/Hp-Ux/snmp/CPU&Memory/ issue from East Africa

2011-06-28 Thread Dave Shield
On 2 June 2011 15:18, Sunil Galam wrote: > Step 5: ran “make Install”…….after few seconds stopped with an error as > below. (details attached in “make install.txt”) It looks as if the HP-UX environment is getting confused by the empty MAN3 group Try editing the file 'man/Makefile', look for the

Re: Need Info abt the SNMP SET.

2011-06-28 Thread Dave Shield
On 28 June 2011 11:04, venkatgiri wrote: > As per RFC 1212 section 5.1.1. Mapping to the SYNTAX clause > > (3) An object with BIT STRING syntax containing no more than >32 bits becomes an INTEGER defined as a sum; otherwise if >more than 32 bits are present, the ob

Re: 答复: Help for Net-SNMP Tutorial -- Toolkit

2011-06-28 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] 2011/6/

Re: Inquiry on ucd-snmp build in 64bit

2011-06-28 Thread Dave Shield
On 28 June 2011 08:07, Erwin De Guzman wrote: > One of the library used in the application is the ucd-snmp version 4.2.5. > It's quite old. I was able to compile and build in 64bit but as expected crash > when the app runs. I was wondering what version of ucd-snmp that can be > use that is close t

Re: Snmptrap not forwarding on proper port

2011-06-28 Thread Dave Shield
On 27 June 2011 19:02, George wrote: > how do I preserve the original IP address that sent the trap? The IP address is reported using '%a' The hostname is reported using '%A' > Not sure of the syntax to use in the snmptrapd.conf file since ./snmptradd > start -%a or -%A did not work. Tr

Re: Windows 7 and net-snmp configuration

2011-06-28 Thread Dave Shield
2011/6/6 "Oliver Schaumüller" : > I have downloaded ucd-snmp-4.2.3-win32 and unpacked it. > I found in the subdirectory ucd-snmp-4.2.3-win32\usr\bin > the *.exe files and in ucd-snmp-4.2.3-win32\usr\mibs the mib files. > > What I can't find are the snmpd.conf, the snmp.conf and the snmp.local.conf.

Re: Snmp proxy: how to react to 'default' context.

2011-06-27 Thread Dave Shield
On 24 June 2011 00:40, Wes Hardaker wrote: > it'd be more efficient to get snmptrapd to > register under a different context.  Really, we should make this > configurable instead of hard coding it Let's play Good news, Bad news. Good news: attached is a patch that attempts to ha

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-26 Thread Dave Shield
On 26 June 2011 11:18, Boris Zweimueller wrote: > When I change the user configuration (with snmpusm) and stop the agent > I can see the newly created user is appended to the persistence file. So that much looks as if it is working. > But after restarting the agent my default configuration (fro

Re: Snmptrap not forwarding on proper port

2011-06-24 Thread Dave Shield
On 23 June 2011 20:13, George wrote: > [root@xxx /usr/local/etc/rc.d]# vi /etc/snmptrapd.conf > disableAuthorization yes > authCommunity net public forward default udp:10.1.1.227:162 public I presume this last entry should be split over two lines? > [root@xxx /usr/local/etc/rc.d]# cat /etc/snm

Re: Trouble with custom MIBs

2011-06-23 Thread Dave Shield
On 22 June 2011 20:15, Scott McLane Gardner wrote: > Hello list. I am trying incorporate Avaya's proprietary MIBs in my cacti > server > If I specify the MIB file exactly, I get the errors > sgardne@cacti:~$ snmpwalk -v2c -c A1rB0rn3 -m ~/.snmp/mibs/p80a7002.mib ... Two things: Firstly, the

Re: Help for Net-SNMP Tutorial -- Toolkit

2011-06-22 Thread Dave Shield
2011/6/22 郭秀岩 : > I cp *.c and *.h to agent/mibgroup/ > > Then ./configure --with-mib-modules="nstAgentModuleObject" > > Make;make install Did you actually start this agent? Or are you still using the vendor supplied one? Dave

Re: How to disable MIB trees on the agent

2011-06-22 Thread Dave Shield
On 22 June 2011 08:57, Giuseppe Modugno wrote: > Is there a way to disable one or more MIBs so the user won't be able to read > associated variables during walks? Yes - see the section on Action Control in the snmpd.conf man page. In particular, look at using the 'view" directive Dave -

Re: sending informs from sub-agent to Master agent ( agentx )

2011-06-20 Thread Dave Shield
On 20 June 2011 08:46, anand anand wrote: > How do we send traps from sub-agent to Master agent. ? Please see the FAQ entry How can I get an AgentX sub-agent to generate a trap (or inform)? > Can the API be used directly or are there any registration functions which > needs to be called befo

Re: where is the snmptrapd.conf and where is the sample of snmptrapd.conf?

2011-06-20 Thread Dave Shield
On 18 June 2011 22:16, Wei Ding wrote: >> where is the snmptrapd.conf and where is the sample of snmptrapd.conf? There is no snmptrapd.conf (or example) shipped with the Net-SNMP distribution. See the man page for what should go in this file. Dave --

Re: Help : Get list of registered subagents on net snmp master agent

2011-06-20 Thread Dave Shield
On 16 June 2011 10:46, manaswini sugatoor wrote: > I have a requirement for my application , where I need to list down > all registered agentxs on net-snmp. > I did try to find out on the net and in net-snmp documentation but no help. > Could you please let me know how to get the list of registere

Re: SNMP Informs sent from snmpd do not work if firewall is enabled on the machine

2011-06-20 Thread Dave Shield
On 20 June 2011 08:36, Dattaram Porob wrote: > > But, does the SNMP standard specify that the reply should be sent from > port 162 (which MG-Soft is not following) ? No. It just recommends (rather than requiring) that the trap receiver should *listen* on port 162. [RFC 3417, section 3.2] It does

Re: SNMP Informs sent from snmpd do not work if firewall is enabled on the machine

2011-06-16 Thread Dave Shield
On 16 June 2011 13:05, Jordi Lopez wrote: > When you send your trap you do it from a random port to port 162 in the > receiver. > And the receiver sends back the ack from port 162 to the same random port The receiver *should* use port 162 as the source for the response - yes. That's why I s

Re: SNMP Informs sent from snmpd do not work if firewall is enabled on the machine

2011-06-15 Thread Dave Shield
On 15 June 2011 15:05, Dattaram Porob wrote: > Even if we do assume that the receivers are listening on 162, the > rules about specifying source port as 162 will not work because the > ack for the Inform request is sent by the receiver from a random port > again (and not 162) :(. What software ar

Re: raw dump of received traps from just one MIB?

2011-06-14 Thread Dave Shield
On 14 June 2011 03:38, Chris Bartram wrote: >   I have a buggy MIB that's generating malformed traps and the vendor wants > me to provide them a raw dump of some of the received traps for their > developers to demonstrate the problem. > >   The system is a live prod system handling traps from a va

Re: SNMP Informs sent from snmpd do not work if firewall is enabled on the machine

2011-06-06 Thread Dave Shield
On 6 June 2011 14:07, Dattaram Porob wrote: > Good suggestion, but then our application supports dynamic addition of > trap receivers. Do the receivers all listen on the standard port? (i.e. 162) Are they all on particular subnets?(e.g 10.x.y.z) >So, we would have to modfy ipta

Re: SNMP Informs sent from snmpd do not work if firewall is enabled on the machine

2011-06-06 Thread Dave Shield
On 6 June 2011 11:48, Dattaram Porob wrote: > "iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT" is > already present in the firewall configuration but still it does not > work :( Sorry - I'm not thinking straight. SNMP traffic is typically UDP-based, rather than TCP, so no, that

Re: SNMP Informs sent from snmpd do not work if firewall is enabled on the machine

2011-06-06 Thread Dave Shield
On 2 June 2011 04:58, Dattaram Porob wrote: > In case of a v2 inform, the Inform message is sent by the agent > (net-snmp 5.6.1) and received by the receiver but the ACK sent by the > receiver does not reach the agent since it is blocked by the firewall. > In case of a v3 Inform, before sending t

Re: persistent storage of sysContact, sysName, sysLocation

2011-05-31 Thread Dave Shield
On 24 May 2011 13:29, wrote: > Is there a possibility in order to store the parameter of the OID's > if the snmpset command is called. UCD-SNMP-MIB::versionSavePersistentData OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION "Set

Re: overwrite sysContact, sysName, sysLocation

2011-05-23 Thread Dave Shield
On 23 May 2011 11:24, Jaime Lozano wrote: > Hi Dave, > Will those values be remembered after a reboot? Yes Dave -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended t

Re: overwrite sysContact, sysName, sysLocation

2011-05-23 Thread Dave Shield
On 23 May 2011 10:14, wrote: >If i set these OID's within the snmpd.conf the OID'S only can read > How it is possible to overwrite the systemGroup OID's sysContact, sysName > sysLocation in usual way. The simplest way is to not specify anything in the snmpd.conf file, and use "snmpset"

Re: Command option -Ih

2011-05-23 Thread Dave Shield
On 23 May 2011 08:34, Giuseppe Modugno wrote: > Does the DISPLAY-HINT is taken into account only for OCTET-STRING variables > and not for INTEGER No - display hints will be used for both string and integer-based objects. > with snmpset command? I haven't looked in detail, but I strongly suspec

Re: SNMPv3 on embedded system

2011-05-19 Thread Dave Shield
On 19 May 2011 20:49, Adrian Bica wrote: > In my snmpd.conf file I have the lines: > > createUser user1 $ man snmpd.conf createUser username (MD5|SHA) authpassphrase [DES|AES] [privpassphrase] Try adding the missing parameters Dave

net-snmp-users@lists.sourceforge.net

2011-05-16 Thread Dave Shield
On 17 May 2011 04:21, William wrote: >> OK - so you are using the old v4 UCD coding, >>  rather than the newer v5 handler-based approach > > I develop my program according to the example.c( the old v4 UCD coding). > Are there some examples using the newer v5 handler-based approach? > > If yes,can

Re: FreeBSD, zfs and dskTable

2011-05-16 Thread Dave Shield
On 16 May 2011 05:44, Eugene M. Zheganin wrote: > I'm using net-snmp 5.5 from ports on FreeBSD 8.x with zfs. > On each of my FreeBSD zfs resources are missing from dskTable. This support was added in release 5.5.1, and is present in the upcoming 5.7 release. Note that it is *not* present in 5.6.

net-snmp-users@lists.sourceforge.net

2011-05-16 Thread Dave Shield
2011/5/15 王文桢 : > u_char *var_sgcc (struct variable *vp, >oid * name, >size_t * length, >int exact, size_t * var_len, WriteMethod ** > write_method) OK - so you are using the old v4 UCD

Re: which variable type to use when extending a unsigned32 or gauge32

2011-05-10 Thread Dave Shield
On 10 May 2011 03:08, Leo Lin wrote: > I have a scalar OID of unsigned32.  On my mib module, I declare a variable > that hold an unsigned int, like so, > > unsigned int my_oid; Such variables are typically declared as 'long' rather than 'int'. But I doubt that's the cause of the problems you are

Re: How to interpret cisco nexus snmpwalk output

2011-05-05 Thread Dave Shield
On 5 May 2011 07:17, Muddappa K wrote: > Could you please let me know how to interpret this snmpwalk output for port > channels mib (LACP protocol)? > > SNMP Walk command: > $snmpwalk -v2c -O Qen -c   1.2.840.10006.300.43.1.1.2 Well, the first thing would be to drop the "-On" flag, so that you

Re: release date of net-snmp-5.3.0.1

2011-05-04 Thread Dave Shield
On 4 May 2011 10:21, Kumar Sanjay-XJD784 wrote: > Can someone update me what is the actual release date of "net-snmp-5.3.0.1"? 13th January, 2006 You can always tell the exact release date by looking at the entries in the 'ChangeLog' file. Dave -

Re: problem about sending V2 trap

2011-05-03 Thread Dave Shield
On 3 May 2011 01:27, liuying wrote: >     In the main.c,Iuse: > >    write_exampletrap2(COMMIT,NULL,0,0,NULL,NULL,0) > >    to send trap. And what is the (full) code of this routine? What is the MIB definition of the trap that you are trying to send? Dave ---

Re: fail to access first row in the table

2011-04-30 Thread Dave Shield
2011/4/29 Boris Zweimüller : > Integer Indices start always at 1 in snmp. That's not strictly true. The *convention* is for arbitrary integer indexes to start at 1, but there's nothing inherent within SNMP that enforces this. It is perfectly possible to have an integer index of 0, if a particular

Re: problem about gcc using *.so

2011-04-28 Thread Dave Shield
On 28 April 2011 14:01, Xiang Li wrote: > Those symbols should be in one of the following libs so > you  need to link with one or more of them: > > -lnetsnmptrapd -lnetsnmpagent -lnetsnmpmibs \ > -lnetsnmphelpers If you need to know which libraries to use (and the other in which they should

Re: no entries in agentxConnectionTable and nlmLogTable

2011-04-28 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 28 Ap

Re: no entries in agentxConnectionTable and nlmLogTable

2011-04-28 Thread Dave Shield
On 28 April 2011 12:57, Graf, Pascal wrote: > in my opinion this received trap should be logged in the table nlmLogTable!? > but with the command: snmptable -v 2c -c rwtest 127.0.0.1:2000 > NOTIFICATION-LOG-MIB::nlmLogTable >   it returns no entries! snmptrapd will log entries into the nlmLogTa

Re: exec directive support confusion

2011-04-27 Thread Dave Shield
On 26 April 2011 20:24, Kelsey Cummings wrote: > We are in the process of getting RHEL6 ready for use and have run into a > problem with exec support.  However they've got 5.5 configured, exec > directives are not actually used. Are you using entries of the form exec namecommand or

Re: how to gracefuly exit snmpd process?

2011-04-25 Thread Dave Shield
On 22 April 2011 01:14, sunaina mangla wrote: > Do I > need to handle the SIGINT ? or net-snmp automaticlly handles it The agent handles this signal, and will automatically shut down. Any MIB modules with a 'shutdown_xxx' routine will invoke this as part of the closedown. Otherwise, al

Re: snmpd stops responding after some time

2011-04-25 Thread Dave Shield
On 22 April 2011 00:42, sunaina mangla wrote > I am running net-snmp 5.6.1.  I have my properietary MIB which I load > as a dynamic module > But if I leave snmpd for some time (1 hour) and then go for accessing > the mib objects(standard as well as proprietary), the snmpget or walk > request

Re: Net-snmp in Windows: SNMPV3 Encryption Support Not Enabled

2011-04-25 Thread Dave Shield
On 25 April 2011 17:25, Bart Van Assche wrote: >> V3 commands, can work well with authNoPriv. If use -authPriv, error is >> displayed: >> Encryption support not enabled. >> snmpget: USM encryption error > Which OpenSSL version have you installed ? Actually, Bart - I've just run into exactly th

Re: Snmpgetnext on Table with "holes"

2011-04-25 Thread Dave Shield
On 25 April 2011 12:28, Boris Zweimueller wrote: > Sorry, I did not provide the 'implemented' x_access.c/h files because I > thought get_first_data and get_next_data are only responsible to find the > correct row and have nothing to do with columns. Yes - but they are needed to compile and query

Re: Snmpgetnext on Table with "holes"

2011-04-24 Thread Dave Shield
On 21 April 2011 08:44, Boris Zweimueller wrote: >> Could you please post the rest of the header files   (ttfCfgTable.h and >> ttfCfgTable_checkfns.h).    I can't really attempt to reproduce the >> problem without the full code that you are using. > Sure, here they are! Sorry - that code doesn't

Re: Is it possible to enable IPv6 support without the pthread library?

2011-04-23 Thread Dave Shield
On 21 April 2011 21:49, Zack Little wrote: > The only thing I don't understand now is why IPV6-ICMP-MIB isn't being > returned.  I enabled it and IPV6-MIB on the "--with-mibs" line, but snmpd is > only returning IPV6-MIB. The '--with-mibs' configure option is used to control which MIB files a

Re: Compiling NetSNMP for x64 Windows

2011-04-21 Thread Dave Shield
On 21 April 2011 14:17, Markus Gaugusch wrote: > * Finally, how do you build your installers? The Windows binary releases use the Nullsoft Scriptable Install System (http://nsis.sourceforge.net/home/) driven by a .nsi script (in win32/dist). I'm currently in the process of constructing windows b

Re: net-snmp problem when i make

2011-04-21 Thread Dave Shield
On 21 April 2011 08:56, 高川 wrote: > And i want to know which part of the net-snmp need perl module. The main one would be 'mib2c' Neither the agent, not trap receiver, nor any of the command-line tools require perl. Dave

Re: net-snmp problem when i make

2011-04-21 Thread Dave Shield
2010/4/21 高川 : > I change the version to 5.5.1 and i still got the problem, > there is the log OK - that's useful. The log shows that building the main applications (snmpd, snmptrapd, and the command line tools) is working. The problem only arises when compiling the perl modules. The simplest way

Re: Snmpgetnext on Table with "holes"

2011-04-21 Thread Dave Shield
On 21 April 2011 05:47, Boris Zweimueller wrote: > Attached are the relevant excerpt of the MIB (Descriptions removed for size) > and the generated files ttfCfgTable.c and ttfCfgTable_columns.h Could you please post the rest of the header files (ttfCfgTable.h and ttfCfgTable_checkfns.h).I c

Re: 答复: net-snmp problem when i make

2011-04-20 Thread Dave Shield
2011/4/20 高川 : > # ./configure --disable-embedded-perl > > - > Net-SNMP configuration summary: > - > > SNMP Versions Supported:1 2c 3 > Building for: hpux11

Re: problem loading MIB

2011-04-20 Thread Dave Shield
On 20 April 2011 00:40, Max Levine wrote: > I am using Net::SNMP v 6.0.1 Sorry - we can't help with that. >From the Net-SNMP FAQ: I've got a problem with the Net-SNMP module. Can you help? Despite the similar-sounding name, the Net-SNMP (or Net::SNMP) module is nothing to do with th

Re: MIB Handler routine for an user defined MIB

2011-04-20 Thread Dave Shield
On 20 April 2011 07:26, Anil Murala wrote: > can some one please point me, where will my MIB handler routine gets created > in the code? so that i can tweak the code to GET/SET the values from my data > store. This is normally handled by running 'mib2c', which will generate a code framework for

Re: How does net-snmp forward traps using the targetAddr config directive?

2011-04-20 Thread Dave Shield
On 18 April 2011 18:18, Brice Fernandes wrote: > Trap sinks set using the 'trap2sink' directive work as expected, but > destinations set using 'snmpNotifyTable/targetAddr/targetParams' don't > seem to be receiving any traps. What is the full sequence of SET command(s) that you are using to set th

Re: Synchronize access to agent from multiple management consoles

2011-04-20 Thread Dave Shield
On 19 April 2011 09:22, Boris Zweimueller wrote: > In my setup, a specific configuration of my agent is done with sequences of > consecutive SNMP set commands. It is important, that they come all together. The simplest way to ensure this would be to require that the assignments are all included w

Re: Snmpgetnext on Table with "holes"

2011-04-20 Thread Dave Shield
2011/4/19 Boris Zweimüller : > When i issue a getnext or Walk on this table it only returns the first > consecutive columns > and then jumps to the next table when the "hole" is reached. No - that behaviour is not correct. Can you post the full code for this table (preferably as an attachment)

Re: can not find snmpconf-data after make install

2011-04-20 Thread Dave Shield
On 19 April 2011 17:21, wrote: > I installed perl and I can run snmpconf , but  I got error. > > no such directory /usr/local/share/snmp/snmpconf-data, > did you run make install? > > I am sure I have run make install. Does this directory (/usr/local/share/snmp/snmpconf-data) exist? If n

Re: csnmpconf, command not found

2011-04-20 Thread Dave Shield
On 18 April 2011 17:59, wrote: > I try to snmpconf in /usr/local/bin, I got error: >“zsh: command not found: snmpconf”. > > But the file is in fact in that dir. Things to check: - is /usr/local/bin on the PATH for your shell ? (echo $PATH) - what happens if you give the full path

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Dave Shield
On 18 April 2011 14:10, Leo Lin wrote: >  I make use of text file to exchange the value of OID between my main program > and snmpd.  when snmp manager issue a get, snmpd reads the contents from > this text file, and write to it with 'sets'. In which case, it would make more sense to trigger the I

Re: SNMP Tutorials not working

2011-04-18 Thread Dave Shield
On 18 April 2011 11:03, Umesh Kumar L.R wrote: > Thanks for your Advice. > I am trying out the examples given in Writing a MIB Module section. > 1) A simple scalar attached to a variable > 2) compiling a new MIB module > but it gives error > NO such Object available at this OID You still haven't

Re: mibII/sysName

2011-04-18 Thread Dave Shield
On 17 April 2011 13:57, Samuel Monderer wrote: > I would like to run my own implementation of mibII/sysName using shared > library implementation. > > So I did the following: > > Compiled snmpd with: --with-out-mib-modules="agent_mibs host agentx utilities > mibII/system" >  so that mibII/system

Re: makeisntall error

2011-04-18 Thread Dave Shield
On 15 April 2011 23:04, wrote: > I am trying to build a agent file. when I do makeintall, I got errors: > > ./.libs/libnetsnmpmibs.so: undefined reference to `atan' > ./.libs/libnetsnmpmibs.so: undefined reference to `_Sin' What is the full command that triggers this error? >  My configure file

Re: sending an IPC for incoming snmpset commands

2011-04-18 Thread Dave Shield
On 17 April 2011 03:02, Leo Lin wrote: > I would like to send an interprocess communicatio message whenever > an snmpset command is received by the snmpd. Regardless of the OID that is being set? Why? What are you trying to do here? >  I checked the snmpd source code, and seems that my custom

Re: SNMP Tutorials not working

2011-04-18 Thread Dave Shield
On 13 April 2011 08:04, Umesh Kumar L.R wrote: > I have installed the Net-SNMP 5.6.1 from source code and I tried Tutorial > examples given in Net-snmp website but i am getting error > NET-SNMP-EXAMPLES-MIB::netSnmpExampleInteger.0 = No Such Object available on > this agent at this OID As Tsolako

Re: 答复: net-snmp problem when i make

2011-04-18 Thread Dave Shield
2011/4/16 Simon Gao : > Hi,Dave >Thanks for your reply,the first problem was sloved It would be useful to the wider community if you could report back *how* you solved this problem. If others run into a similar situation, they can then check the archives to look for how you fixed

Re: ASN_PRIV_IMPLIED_OCTET_STR

2011-04-18 Thread Dave Shield
On 2 December 2010 11:30, Dejan Bojic wrote: > I am having a problem with a table with fixed octet sting indexes, where > this fixed indexes are not last index. What sort of problem? That description is a little vague! > I only ask to be sure, is this bug still exists? > In the SourceForge bug d

Re: Net-snmp trap destination setting

2011-04-15 Thread Dave Shield
On 14 April 2011 02:59, 謝朝任 wrote: > Ryota, Thank your help. In my observation, SNMP traps can be sent out when > the destination port is 161 or 162. I can not choose other destination ports > to send SNMP traps. What can I do to solve this problem? You should be able to send traps to another por

Re: FW: Running mutiple snmpd daemons on Windows

2011-04-15 Thread Dave Shield
On 15 April 2011 05:38, Priya Raghavendra wrote: > So now my next issue is that both the applications have subagents, scalar and > tabular running. Do these subagents implement the same set of MIB objects? If the two subagents provide different information (with no overlap), then you don't actu

Re: net-snmp problem when i make

2011-04-15 Thread Dave Shield
2011/4/15 Simon Gao : > I would install net-snmp v5.5. on hp-ux 11.31 > But when use make to make the codes,it said ; > *** Warning: Trying to link with static lib archive > /opt/perl_64/lib/5.8.3/IA64.ARCHREV_0-thread-multi-LP64/auto/DynaLoader/DynaLoader.a. > Anyone can help me? Try building

Re: Running mutiple snmpd daemons on Windows

2011-04-14 Thread Dave Shield
On 14 April 2011 09:44, Priya Raghavendra wrote: > But my requirement is to run two SNMP Agents, one on Port 161 and another on > Port 171. > > How do I  do this? You start the first one normally,(snmpd . ) then start the second one specifying the non-standard port to use (snmpd 171

Re: Running mutiple snmpd daemons on Windows

2011-04-14 Thread Dave Shield
On 14 April 2011 09:34, Priya Raghavendra wrote: > My requirement is to run two snmpd daemons on the same windows machine. > > i.e. the first instance can use the default port addresss of 161 and 162. The SNMP agent only uses one port (161 by default). Port 162 is used for receiving SNMP traps.

Re: how do I search the archives of net-snmp-users

2011-04-14 Thread Dave Shield
> I'm trying to discover if a bug has been reported. If you go to the project home page (http://www.net-snmp.org/) there is a search box underneath the left navigation menu. This can be used to search the individual mailing lists (users, coders or announce), or the project bug and patches trac

Re: problem about snmpset

2011-04-13 Thread Dave Shield
On 13 April 2011 02:05, liuying wrote: >     I have a problem about snmpset,when I set only one variable,all the > values of variables are changed . That's because you only have one underlying variable (example_int). All three scalar MIB objects are reporting this same value. When it change

Re: Limiting ip addresses which have access to SNMP agent

2011-04-12 Thread Dave Shield
On 12 April 2011 16:57, Lewis Adam-VNQM87 wrote: >  does anyone know if there is a standard MIB which allows you to configure > the list of IP addresses which have access to an agent? No. That's probably the major difference between the Net-SNMP "com2sec" token, and the official COMMUNITY-MIB f

Re: --disable-des

2011-04-11 Thread Dave Shield
On 11 April 2011 10:46, Kumar Sanjay-XJD784 wrote: >         I need to support "AES", but disable "DES" You'll probably have to tweak the code yourself. I don't believe that's a supported option. Dave -- Xperia(TM) PLAY

Re: --disable-des

2011-04-11 Thread Dave Shield
On 11 April 2011 10:13, Kumar Sanjay-XJD784 wrote: >    I want to disable DES at time of compiling the NET-SNMP > But even I have included "CONFIGURE_ARGS += --disable-des" in my makefike > "net-snmp-config.h" file still have the below statememt. > #define HAVE_OPENSSL_DES_H 1 I believe --di

Re: DLINK MIB

2011-04-07 Thread Dave Shield
On 7 April 2011 14:45, Alexandre Chapellon wrote: > I guess this question has been asked thousands of times... > How to add a mib to the net-snmp clients? Yes - this is a common question, and is covered in the FAQ entry "How do I add a MIB to the clients?" However, looking at the rest of your

Re: snmp_set_var_value code

2011-04-07 Thread Dave Shield
On 7 April 2011 16:19, Leo Cacciari wrote: > Thus my question is... How does it work (and work it does) when largeval as > been set to 0, len being less than 40? In other words, where does it points > vars->val.objid? to vars->buf? At the start of the routine: /* * use built-in storage

<    2   3   4   5   6   7   8   9   10   11   >