Re: Problem with proxy the entire tree

2020-09-20 Thread Jenny Yao
Hi Wes, The option -l works for us. Thanks a lot for your help. Jenny On Fri, Sep 18, 2020 at 3:31 PM Wes Hardaker wrote: > Jenny Yao writes: > > > It works fine. However, we would like to have this proxy transparent to > the > > user, and wonder if there is a way to achieve this without

Re: Problem with proxy the entire tree

2020-09-18 Thread Wes Hardaker via Net-snmp-coders
Jenny Yao writes: > It works fine. However, we would like to have this proxy transparent to the > user, and wonder if there is a way to achieve this without using > context. There is no way to do exactly what you want without removing the registrations that the agent itself is implementing. You

Re: Problem with Crypto - OpenSSL 1.1.0f - Linux 9.4 (stretch)

2018-05-03 Thread Keith Mendoza
Dave, On Thu, May 3, 2018, at 2:02 PM, Dave C wrote: > Thanks, you solved my problem but with the path as /usr/local where I had > installed openssl to. Glad I could help. Since you said you were running Raspbian I assumed that you used the OpenSSL Debian packages which usually installs in /usr.

Re: Problem with Crypto - OpenSSL 1.1.0f - Linux 9.4 (stretch)

2018-05-03 Thread Dave C
Thanks, you solved my problem but with the path as /usr/local where I had installed openssl to. I'll probably have to stick with 5.7.3 for production for now (on Pi Compute Module) but seeing as you did me a favour I thought I would give 5.8 pre3 a spin for you. Perhaps I'm the first as I just g

Re: Problem with Crypto - OpenSSL 1.1.0f - Linux 9.4 (stretch)

2018-05-03 Thread Keith Mendoza
Dave, Try adding --with-openssl=/usr in the call to configure on your raspberry pi. If you're brave you can also try 5.8pre3 from https://sourceforge.net/projects/net-snmp/files/net-snmp/5.8-pre-releases/ -- Thanks, Keith (pantherse) On Wed, May 2, 2018, at 7:04 PM, Dave C wrote: > I'm trying

RE: Problem whit SNMPv3

2016-10-20 Thread Edgar Serrano Kanemoto
Hi Xinyilong! Yes, SNMP work very well The Capture package is as follows I resolved it of follow form: Add permission in the file: “snmpd : ALL” Thanks for you attention De: 陇昕翼 [mailto:[email protected]] Enviado el: sábado, 08 de octubre de 2016 02:23 a.m.

Re: Problem whit SNMPv3

2016-10-13 Thread Robert Story
On Wed, 5 Oct 2016 18:24:23 -0500 Edgar wrote: ESK> Hi!! Hola! ESK> I have a problem in SNMPv3. ESK> ESK> When I execute snmpwalk command, I resive timeout like answer Does SNMPv2c work? How are you configuring SNMPv3? How are you calling snmpwalk? -- Robert

Re: problem in SNMPSET on table with string data type columns

2014-10-03 Thread Bill Fenner
Sarath, My example was in my original reply: https://sourceforge.net/p/net-snmp/mailman/message/32792067/ It's an additional two lines per table registration, or one line if you don't want to check the return value. Bill On Fri, Oct 3, 2014 at 8:19 AM, sarath azad wrote: > Hi Bill, > > Cou

Re: problem in SNMPSET on table with string data type columns

2014-10-03 Thread sarath azad
Hi Bill, Could you please provide a sample outline or example of how to create, register and use a serialize handler?Here do we need to use the function "netsnmp_register_instance" for each of the column in the table to have separate handler for each column to be called for each of them separate

Re: problem in SNMPSET on table with string data type columns

2014-09-04 Thread Bill Fenner
The only advice I have is to try the serialize handler. Bill On Thu, Sep 4, 2014 at 3:33 AM, sarath azad wrote: > Hi Bill, > > Thanks for the reply. > Here for registration of the table we are using below functions: > netsnmp_create_handler_registration > netsnmp_create_tabl

Re: problem in SNMPSET on table with string data type columns

2014-09-04 Thread sarath azad
Hi Bill, Thanks for the reply. Here for registration of the table we are using below functions: netsnmp_create_handler_registration netsnmp_create_table_data netsnmp_table_helper_add_indexes netsnmp_register_table The problem we are facing is that

Re: problem in SNMPSET on table with string data type columns

2014-09-03 Thread Bill Fenner
I've had trouble with multiple requests in ordered table_iterator tables. I have no idea if that's what you're using, since you didn't give much info about your use case. I just worked around it by injecting the serialize handler: int result = netsnmp_register_table_iterator( reg, iinfo );

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-21 Thread Niels Baggesen
Den 19-11-2013 11:03, Jean-Paul VILLETTE skrev: > The tarballs don't seem to be online. Problems ? Sorry 'bout that :-( A filesystem had filled up, but they should be back now /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight,

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-19 Thread Jean-Paul VILLETTE
Hello Niels, The tarballs don't seem to be online. Problems ? Regards, Jean-Paul VILLETTE Le 14/11/2013 11:28, Niels Baggesen a écrit : > On Thu, Nov 14, 2013 at 10:55:35AM +0100, Jean-Paul VILLETTE wrote: >> Excuse me for this question (so basic) but are those the last version of >> the sourc

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-14 Thread Niels Baggesen
On Thu, Nov 14, 2013 at 10:55:35AM +0100, Jean-Paul VILLETTE wrote: > Excuse me for this question (so basic) but are those the last version of > the source code with applied patches ? That is what will be 5.7.3, hopefully before too long. > What are the rules between this code and the normal rel

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-14 Thread Jean-Paul VILLETTE
Hello, No. Mea culpa. I haven't yet. Excuse me for this question (so basic) but are those the last version of the source code with applied patches ? What are the rules between this code and the normal release 5.7.2 (for example) ? Regards, Jean-Paul VILLETTE Le 13/11/2013 15:14, Niels Bagges

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Niels Baggesen
On Wed, Nov 13, 2013 at 01:19:30PM +0100, Jean-Paul VILLETTE wrote: > I think the "configure" does not test if IP_RECVDSTADDR is present and > usable. This means for hpux, the IP_RECVDSTADDR is enabled due to its > definition in /usr/include/sys/socket.h but nothing enables the rest of > the cod

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Jean-Paul VILLETTE
Hello Niels, OK. Understood. I think the "configure" does not test if IP_RECVDSTADDR is present and usable. This means for hpux, the IP_RECVDSTADDR is enabled due to its definition in /usr/include/sys/socket.h but nothing enables the rest of the code to use this particular format. As i said

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Niels Baggesen
On Wed, Nov 13, 2013 at 12:26:33PM +0100, Jean-Paul VILLETTE wrote: > Thanks for your mail. I don't understand what your point is exactly. > What's your idea ? Do you mean the configure has been changed > (or patched) to better handle this option ? Configure tries to determine whether the option

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-13 Thread Jean-Paul VILLETTE
Hello, Thanks for your mail. I don't understand what your point is exactly. What's your idea ? Do you mean the configure has been changed (or patched) to better handle this option ? Regards, Jean-Paul VILLETTE HP Den 07-11-2013 12:54, Jean-Paul VILLETTE skrev: > Due to the many uses of this

Re: Problem using IP_RECVDSTADDR on HPUX.

2013-11-12 Thread Niels Baggesen
Den 07-11-2013 12:54, Jean-Paul VILLETTE skrev: > Due to the many uses of this option in the source code, the best way for me > is to "#undef" this > option globally for now. But the question stays : how ? I have tried the -U > CFLAGS without any success. Any ideas ? You might want to try

Re: Problem in snmpget

2013-09-11 Thread Anish
well to check the sematics before coming to an conclusion. -- Anish From: Geet Bhatia To: Anish Cc: Net-snmp-coders Sent: Tuesday, 10 September 2013 2:38 PM Subject: Re: Problem in snmpget Hi Anish, Thanks for responding. The output of print_variable

Re: Problem in snmpget

2013-09-10 Thread Geet Bhatia
Hi, I am not using any str* functions. Its only memcpy. Please check the code below: for(vars=response->variables;vars;vars=vars->next_variable) { if(vars->type == ASN_OCTET_STR) { char *sp = (char*)malloc(1+vars->val_len); memcpy(sp,vars->val.string,vars->v

Re: Problem in snmpget

2013-09-10 Thread Geet Bhatia
Hi Anish, Thanks for responding. The output of print_variable is: 00 02 04 08 10 20 40 7E 0C 1E 3B 00 00 0B 0B 0D 09 01 01 16 FF FF FF 00 09 01 01 03 FF FF FF 00 00 00 00 00 00 00 00 00 The ouput of snmpget command is: SNMPv2-SMI::enterprises.29665.101.1.0 = Hex-STRING: 00 02 04 08 10 20 40 7E 0

Re: Problem in snmpget

2013-09-09 Thread Anish
Hi Geet, Please send the value of the following, for(vars = response->variables; vars; vars = vars->next_variable) print_variable(vars->name, vars->name_length, vars);   From: Geet Bhatia To: [email protected] Sent: Monday, 9 September 20

Re: Problem in snmpget

2013-09-09 Thread Niels Baggesen
Den 09-09-2013 10:52, Geet Bhatia skrev: > The value sent by agent is correct. I have checked it on wireshark. Even > the print_variable is printing correct value on console. But I am not > able to get this value copied in buffer. This does not make sense. If print_variable can print it, then the

Re: Problem in receiving traps

2013-01-22 Thread Dave Shield
On 22 January 2013 10:23, Geet Bhatia wrote: > I am trying to build a simple C trap receiver. Is there any reason why you don't wish to use the standard 'snmptrapd' application? > Here I am calling function netsnmp_transport_open_server with application > name and udp:162 as parameters. But thi

Re: Problem with C APIs

2012-10-03 Thread Wes Hardaker
Geet Bhatia writes: > Hi, > > I am trying to make small manager application in qt (for GUI) with Net-SNMP > C APIs. > > 1. I am able to parse MIB file through read_mib. But when I traverse the > tree struct, return value of read_mib, to get information it shows zero > content in that but pointer

Re: Problem with compiling mib objects with subagent

2012-05-15 Thread Robert Story
On Tue, 15 May 2012 11:33:13 +0530 Jasti wrote: JD> Whenever I restart or shutdown my system all my configurations like JD> compiling mib objects with subagent are erased...am not getting where the JD> problem occurred pls can anyone help regarding this? This doesn't seem to make sense to me. Can

Re: problem with snmpset

2012-05-03 Thread Dave Shield
On 3 May 2012 05:01, Durga Sree wrote: > Am able to solve that problem if i run with sysName am getting the correct > result > but when i use other objects am getting the following error > > root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost > sysName.0 s "office" > SNMPv2-MI

RE: problem with snmpset

2012-05-03 Thread Durga Sree
day, May 02, 2012 6:59 PM To: Durga Sree Cc: [email protected] Subject: Re: problem with snmpset On Wed, 2 May 2012 09:35:31 + Durga wrote: DS> Hi, DS> I am facing problem with snmpset. DS> after alkl settings in access control still am not able to solve the DS> pro

Re: problem with snmpset

2012-05-02 Thread Robert Story
On Wed, 2 May 2012 09:35:31 + Durga wrote: DS> Hi, DS> I am facing problem with snmpset. DS> after alkl settings in access control still am not able to solve the DS> problem I am getting the following error DS> DS> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost DS> sysL

Re: problem with snmpset

2012-05-01 Thread Dave Shield
On 1 May 2012 13:15, Jasti Durgashree wrote: >   I am facing a problem with snmpset, even though i have defined my mib > object to be read-write am getting the following problem >  so can anyone please help? Check the access control settings for your agent. >From the FAQ: Why can't I set any va

Re: Problem with cross-compiling net-snmp package 5.6.1.1

2011-12-13 Thread Bill Fenner
Prashant, There is a whole web site dedicated to making it easier to build embedded Linux systems: http://buildroot.net/ . Their system includes net-snmp 5.7.1. Maybe you can find a way to leverage their tools to accomplish your goal. Bill (I don't know anything specific about buildroot, just

Re: Problem with cross-compiling net-snmp package 5.6.1.1

2011-12-09 Thread Bill Fenner
Prashant, There is a whole web site dedicated to making it easier to build embedded Linux systems: http://buildroot.net/ . Their system includes net-snmp 5.7.1. Maybe you can find a way to leverage their tools to accomplish your goal. Bill (I don't know anything specific about buildroot, jus

Re: Problem with running sub-agent: AgentX

2011-11-23 Thread Dave Shield
On 23 November 2011 11:00, prashant n wrote: > 1)  If  i want to handle other objects with types such as table, float, > string etc.. then what changes  i need to do in source file example-demon.c ? >From the FAQ entry Which mib2c configuration file should I use? For implementing a group

RE: Problem with running sub-agent: AgentX

2011-11-23 Thread Eirik Nordbrøden
Hello Just a thought. Did you run the ./examples-daemon with sudo? Eirik Nordbrøden (+47) 90174789 > -Original Message- > From: Dave Shield [mailto:[email protected]] > Sent: 23. november 2011 09:54 > To: prashant n > Cc: [email protected]

Re: Problem with running sub-agent: AgentX

2011-11-23 Thread Dave Shield
On 23 November 2011 06:33, prashant n wrote: > Following lines shows the output of the command: >  sudo /usr/local/sbin/snmpd -f -L -d -p > Turning on AgentX master support. > NET-SNMP version 5.6.1.1 OK - so there's no sign of any warning messages. So opening the AgentX socket should ha

Re: Problem with running sub-agent: AgentX

2011-11-22 Thread Dave Shield
On 22 November 2011 14:43, prashant n wrote: > my snmpd.conf looks like this > > rwcommunity  private > master agentx > >  and i run the master agent using command: > sudo /usr/local/sbin/snmpd -f -L -d -p What is the output of this command? What does it log? Dave --

Re: Problem with running sub-agent: AgentX

2011-11-22 Thread Dave Shield
On 22 November 2011 14:43, prashant n wrote: >     Before i move to  the problem with running sub-agent, i wanted to know > what is the main advantage of using sub-agent in comparison with compiling > MIB modules with the SNMP agent snmpd The main advantage is with regard to deployment. If you h

Re: Problem with running SNMP agent

2011-11-15 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 14 N

Re: Problem with running SNMP agent

2011-11-14 Thread Dave Shield
On 11 November 2011 09:40, prashant n wrote: > When i run the command: /usr/local/sbin/snmpd -f -L -d -p I don't think the -p option does what you expect it to. It's used to specify the PID file, not the port to listen on The error you're getting implies that the new agent is probably tryi

Re: Problem in triggering callback function when a response is received

2011-11-12 Thread Niels Baggesen
Den 12-11-2011 13:58, [email protected] skrev: > So I filled the callback variable as > > session.callback = response_callback; > session.callback_magic = session_handle; > > And after filling the data I will send like this. > > snmp_send(session_handle, my_pdu); > snmp_free_pdu(my_pdu); > >

Re: Problem with creating snmpd.conf file using perl script snmpconf

2011-11-10 Thread Dave Shield
On 10 November 2011 10:13, prashant nirni wrote: >     Actually i wanted to create snmpd.conf file. So i used following command > to create it >     snmpconf -g basic_setup > >    PROBLEM: But the perl script snmpconf keep on asked questions , i > followed instructions but its just like a loop. Th

Re: Problem with running SNMP agent

2011-11-10 Thread Dave Shield
On 10 November 2011 09:30, prashant n wrote: > I compiled SNMP agent with MIB module > When i run command: /usr/local/sbin/snmpd -f -L -d -p > it was giving follwing  error > /usr/local/sbin/snmpd: error while loading shared libraries: > libnetsnmpagent.so.25: cannot open

Re: Problem with Compiling SNMP agent with MIB module

2011-11-08 Thread devendra.aaru
On Tue, Nov 8, 2011 at 9:55 AM, prashant nirni wrote: > Hi, > I already installed net-snmp package with version:5.6.1.1 > And i started compiling snmp agent with nstAgentModuleObject MIB > module , referring net-snmp tutorial section. > > Steps I followed: > Run following commnds on unix

Re: Problem with installing net-snmp package 5.6.1.1 on UBUNTU version: 11.04

2011-11-04 Thread Bill Fenner
Rename the "SNMP_ Related" directory to not contain a space. Bill On Fri, Nov 4, 2011 at 11:02 AM, prashant n wrote: > Hi, > > The problem is that when we trying to install net-snmp package  5.6.1.1 on > UBUNTU version: 11.04,we are getting an error message as below, > > Installation steps: Ru

Re: Problem with installing net-snmp package 5.6.1.1 on UBUNTU version:11.04

2011-11-04 Thread Niels Baggesen
Den 04-11-2011 14:34, prashant nirni skrev: When installing version 5.6.1.1 how did it get to read something from 5.4.1? > /bin/sed: can't read > Related/SNMP_Downloads/net-snmp/net-snmp-5.4.1/snmplib/_libnetsnmp.la /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected]

Re: problem with AgentX getNext and multiple regions?

2011-02-18 Thread Fulko Hew
On Fri, Feb 18, 2011 at 3:58 PM, Dave Shield wrote: > On 18 February 2011 20:28, Fulko Hew wrote: > > I have two regions registered, and I perform a getnext to the master... > > > > The master sends an AgentX getNext PDU on the first region looking for a > > positive response. Unfortunately, the

Re: problem with AgentX getNext and multiple regions?

2011-02-18 Thread Dave Shield
On 18 February 2011 20:28, Fulko Hew wrote: > I have two regions registered, and I perform a getnext to the master... > > The master sends an AgentX getNext PDU on the first region looking for a > positive response.  Unfortunately, the 'next' variable isn't within that range > so my sub-agent retu

Re: problem with InetAddress

2011-01-20 Thread Robert Story
On Thu, 13 Jan 2011 20:14:34 + Dave wrote: DS> I'm also not totally convinced that escaping the quotes around the IP DS> address will work correctly. My suspicion is that this might well be DS> interpreted as a printable string (that happened to contain a sequence DS> of digits and period cha

Re: problem with InetAddress

2011-01-20 Thread Dave Shield
On 20 January 2011 13:22, Jacek Poplawski wrote: >> Try >>   >> TCP-MIB::tcpConnectionState.ipv4.4.192.168.85.92.52219.ipv4.4.192.168.85.53.22 > > Thanks! It works. > What about ipv6? Do I need to pass decimal values too? Probably, yes. I don't believe the OID parser is clever enough to recogni

Re: problem with InetAddress

2011-01-20 Thread Jacek Poplawski
On Thu, Jan 20, 2011 at 1:58 PM, Dave Shield wrote: > On 20 January 2011 12:20, Jacek Poplawski wrote: >>> Both Wes and I responded to your post (on the same day), >>> explaining what we thought was happening. >> >> But the reply was that escaped address should work and as I wrote >> before it do

Re: problem with InetAddress

2011-01-20 Thread Dave Shield
On 20 January 2011 12:20, Jacek Poplawski wrote: >> Both Wes and I responded to your post (on the same day), >> explaining what we thought was happening. > > But the reply was that escaped address should work and as I wrote > before it doesn't. Actually, I expressed a belief that it probably woul

Re: problem with InetAddress

2011-01-20 Thread Jacek Poplawski
On Thu, Jan 20, 2011 at 1:11 PM, Dave Shield wrote: > On 20 January 2011 11:49, Jacek Poplawski wrote: >> There was no reply to my issue for 7 days so I will try to explain it >> once again. > > Both Wes and I responded to your post (on the same day), > explaining what we thought was happening.  

Re: problem with InetAddress

2011-01-20 Thread Dave Shield
On 20 January 2011 11:49, Jacek Poplawski wrote: > There was no reply to my issue for 7 days so I will try to explain it > once again. Both Wes and I responded to your post (on the same day), explaining what we thought was happening. So it's a little unfair to say that "there was no reply". >

Re: problem with InetAddress

2011-01-20 Thread Jacek Poplawski
There was no reply to my issue for 7 days so I will try to explain it once again. Please repeat these steps yourself if you think I am wrong. And if I am wrong please explain at which point I am doing mistake. I use Net-SNMP as a reference. I started snmpd and I use snmpwalk/snmpget to communicat

Re: problem with InetAddress

2011-01-13 Thread Dave Shield
On 13 January 2011 16:58, Wes Hardaker wrote: JP> Could you explain should "4" (between "1" and IP) be in the OID or JP> not? WH> Yes.  It gives the length of address following it so that it can be WH> properly decoded.  Although you could determine the length from the IP WH> address type Note t

Re: problem with InetAddress

2011-01-13 Thread Wes Hardaker
> On Thu, 13 Jan 2011 16:57:19 +0100, Jacek Poplawski > said: JP> TCP-MIB::tcpConnectionState.ipv4.\"192.168.85.92\".56470.ipv4.\"192.168.85.53\".22 JP> Error in packet JP> Reason: (noSuchName) There is no such variable name in this MIB. JP> Failed object: TCP-MIB::tcpConnectionState.i

Re: problem with InetAddress

2011-01-13 Thread Jacek Poplawski
On Thu, Jan 13, 2011 at 4:42 PM, Robert Story wrote: > On Thu, 13 Jan 2011 13:42:32 +0100 Jacek wrote: > JP> 3) I try to get OID I received in step 1, it fails > JP> snmpget -v 1 -c public localhost > JP> > TCP-MIB::tcpConnectionState.ipv4."192.168.85.92".49207.ipv4."192.168.85.53".22 > JP> > JP>

Re: problem with InetAddress

2011-01-13 Thread Robert Story
On Thu, 13 Jan 2011 13:42:32 +0100 Jacek wrote: JP> 3) I try to get OID I received in step 1, it fails JP> snmpget -v 1 -c public localhost JP> TCP-MIB::tcpConnectionState.ipv4."192.168.85.92".49207.ipv4."192.168.85.53".22 JP> JP> TCP-MIB::tcpConnectionState.ipv4.192.168.85.92.49207.ipv4.192.168.

Re: Problem with TimeTicks object

2010-10-31 Thread Magnus Fromreide
On Thu, 2010-10-21 at 11:07 +0200, Andrea Agosti wrote: > Hello everybody, > I have a problem with a TimeTicks object. I define a read-write > TimeTicks obj in my MIB and then I put the code for handle it in my > subagent. But the problem is, when I read the new value I have to set in > this obj, i

Re: problem with 64 bits: "Error building ASN.1 representation"

2010-07-21 Thread John Gregg
Looking at the most current net-snmp code, it sure looks like upgrading will not help me. It looks like net-snmp demands that values defined as INTEGER in the MIB must be handed into net-snmp (i.e. with snmp_set_var_value() or snmp_set_var_typed_value()) using a long, i.e. 64 bits in a 64-bit

Re: problem with 64 bits: "Error building ASN.1 representation"

2010-07-21 Thread Robert Story
On Mon, 19 Jul 2010 18:04:06 -0400 John wrote: JG> Thanks. But are you suggesting that I change the longs to int32_t JG> throughout the baseline net-snmp code, the very exercise that the good JG> folks at net-snmp thought was too onerous to take on? No, just in that one place to fix the error yo

Re: problem with 64 bits: "Error building ASN.1 representation"

2010-07-19 Thread John Gregg
Thanks. But are you suggesting that I change the longs to int32_t throughout the baseline net-snmp code, the very exercise that the good folks at net-snmp thought was too onerous to take on? I'm hesitant to change that so far untouched code, although I did look into that very possibility. Probl

Re: problem with 64 bits: "Error building ASN.1 representation"

2010-07-19 Thread Robert Story
On Mon, 19 Jul 2010 12:03:00 -0400 John wrote: JG> But later, deep in the net-snmp code, at the top of the routine JG> asn_build_int(), we fail this sanity test: JG> JG> if (intsize != sizeof(long)) { JG> _asn_size_err(errpre, intsize, sizeof(long)); JG> return NULL; JG>

Re: problem with snmpd

2010-06-04 Thread Wes Hardaker
> On Fri, 4 Jun 2010 14:34:56 +0530, Vinod Nanjaiah > said: VN> Is such a problem known to exist with snmpd? VN> Or, does this indicate that something is wrong with the sub-agents? Well, it's likely the connection between the master and the sub-agent has failed. It actually could be ei

Re: Problem with compiling simple application on FreeBSD 7.2

2010-05-12 Thread Tomas Macek
You don't have problems with snmp-lib, but with basic codings: you don't have main() defined at all (certainly if this is all your code!). Or if you have this as a module, you have to compile it with "-c" option, see gcc manual for details on options. Tomas On Wed, 12 May 2010, Alexander Shiko

Re: Problem with AgentX subagent and send_v2trap()

2010-02-23 Thread Robert Story
On Mon, 28 Dec 2009 15:37:08 -0500 Muhammad wrote: MAM> I'm having issues with sending traps using send_v2trap() from an AgentX MAM> subagent on Solaris 9. MAM> MAM> When the subagent sends series of traps, the subagent and master agent MAM> both get blocked on the sendto() call. It does not m

Re: Problem with engineBoots and reconfigure (patch)

2010-02-22 Thread Robert Story
On Fri, 02 Oct 2009 14:15:51 +1000 Mark wrote: MW> When a reconfig occurs (ie kill -HUP), the engineBoots value used by the agent is incremented internally but the new value is not written back to the persistent conf. engineTime is not reset to zero. If the agent is then killed and restarted,

Re: problem with mib2c

2010-01-11 Thread Bill Fenner
On Fri, Jan 8, 2010 at 12:20 PM, Hemant Soundankar wrote: >  I am implementing RFC 1697 for postgres. > While generating the code template for rdbmsSrvParamTable via mib2c , no > code/ functions for inserting proper value for rdbmsSrvParamName is > generated. That's because it's not-accessible, s

Re: problem with mib2c

2010-01-08 Thread Hemant Soundankar
I found a crude solution for this. I removed rdbmsSrvParamName from the INDEX list of rdbmsSrvParamTable and then i modified the accessibility of this object from not-accessible to read-only. Now the template is generated as i wanted. On Fri, Jan 8, 2010 at 10:50 PM, Hemant Soundankar < hemant

Re: Problem with AgentX subagent and send_v2trap()

2009-12-29 Thread Bart Van Assche
On Mon, Dec 28, 2009 at 9:37 PM, Muhammad A Muquit < [email protected]> wrote: > I'm having issues with sending traps using send_v2trap() from an AgentX > subagent on Solaris 9. > > When the subagent sends series of traps, the subagent and master agent > both get blocked on the se

Re: problem with net-snmp-5.5

2009-11-17 Thread diogo vargas marcos
When a flag D (line below, in red) appears in ps -aux command you can´t stop the process ... *root 2387 0.0 0.3 13444 3060 ?DNov13 1:04 /usr/local/sbin/snmpd -c /etc/snmp/snmpd.conf -p /var/run/snmpd.pid* Doens´t happen anything if you execute /etc/init.d/snmpd stop ... the

Re: problem with net-snmp-5.5

2009-11-17 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. ] 2009/11

Re: problem with net-snmp-5.5

2009-11-17 Thread Dave Shield
2009/11/17 diogo vargas marcos : > I'm having problem with stability of net-snmp-5.5 What exactly is the problem., It's not clear from your attachments. If you mean snmpd.log: Error opening specified endpoint "" Server Exiting with code 1 Then this typically means that either y

Re: Problem with snmpd daemon

2009-09-08 Thread shakeb ainul
Thanks for ur help. Sorry for not copying mailing list in previous email. On Wed, Sep 2, 2009 at 11:08 PM, Dave Shield wrote: >[ 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, un

Re: Problem with snmpd daemon

2009-09-02 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. ] 2009/8/2

Re: Problem with mib2c.notify.conf

2009-09-02 Thread Dave Shield
2009/9/2 Suresh, Rahul (NSN - IN/Bangalore) : > i've implemented a snmp trap and notification mib . First of all - don't bother with defining a TRAP-TYPE object. SMIv1 is obsolete. Concentrate on SMIv2 - i.e. NOTIFICATIONS. Secondly, I'd strongly suggest that you define an intermediate OBJECT-ID

Re: Problem with snmpd daemon

2009-08-22 Thread Dave Shield
2009/8/21 shakeb ainul : > I have a problem with snmpd daemon running on FreeBSD and Suse Linux > servers. Ideally snmpd daemon should open just 1 port i.e 161 for udp but it > is opening multiple ports on my machine. I have not configured it or used > options to open multiple ports but still it is

Re: problem with the counter counter64 and gauge values

2009-06-16 Thread Dave Shield
2009/6/16 Anthony Barre : > I'm trying to do a snmpset command on counter values,counter64 values Not possible. Counter syntax object are inherently read-only. You can't SET them. > and gauge values in my mib. Gauge is the same things as Unsigned. >From snmpset(1): Most of these will

Re: problem having the snmpd and commands find the mib files

2008-12-23 Thread Thomas Anders
Bernadette Eyre wrote: > I built the net-snmp 5.4.2.1 binaries from source on one machine and ran > the install to install the files in build dir on the same machine. I > then manually copied files to the target machine. I copied the supplied > MIB files to /usr/local/share/snmp/mibs directory, the

Re: problem having the snmpd and commands find the mib files

2008-12-23 Thread Bernadette Eyre
On Tue, 2008-12-23 at 23:54 +0100, Thomas Anders wrote: > Bernadette Eyre wrote: > > I built the net-snmp 5.4.2.1 binaries from source on one machine and ran > > the install to install the files in build dir on the same machine. I > > then manually copied files to the target machine. I copied the s

Re: Problem with compiling Net-SNMP

2008-07-29 Thread Matjaz Vrecko
Thank you, Dave! Best regards, Matjaz Dave Shield wrote: > 2008/7/28 Matjaz Vrecko <[EMAIL PROTECTED]>: >> I am compiling Net-SNMP package without v1 and v2c support > >> Afterwards, when running make, compiler fails in >> apps/snmptrapd_log.c >> in line 1091, on undefined constants: >> >>

Re: Problem with compiling Net-SNMP

2008-07-28 Thread Matjaz Vrecko
Hello Thomas, >> apps/snmptrapd_log.c >> >> in line 1091, on undefined constants: >> >> SNMP_VERSION_1 and SNMP_VERSION_2c > > What net-snmp version are you using? I can't find this problem in current SVN. > Can you please retest with 5.4.2.pre2? I am using NET-SNMP version: 5.4.1.2 The same p

Re: Problem with compiling Net-SNMP

2008-07-28 Thread Dave Shield
2008/7/28 Matjaz Vrecko <[EMAIL PROTECTED]>: > I am compiling Net-SNMP package without v1 and v2c support > > Afterwards, when running make, compiler fails in > apps/snmptrapd_log.c > in line 1091, on undefined constants: > > SNMP_VERSION_1 and SNMP_VERSION_2c This problem was fixed last Dec

Re: Problem with compiling Net-SNMP

2008-07-28 Thread Thomas Anders
Matjaz Vrecko wrote: > apps/snmptrapd_log.c > > in line 1091, on undefined constants: > > SNMP_VERSION_1 and SNMP_VERSION_2c What net-snmp version are you using? I can't find this problem in current SVN. Can you please retest with 5.4.2.pre2? +Thomas -- Thomas Anders (thomas.anders at blue

Re: problem using snmptrap with a DateAndTime object

2008-06-19 Thread Dave Shield
2008/6/19 Zack Little <[EMAIL PROTECTED]>: > I'm not sure why my listener isn't translating it properly since it handles > standard DateAndTime objects (such as hrSystemDate) just fine. Does your listener load and use the MIB definitions for this object? Remember that DateAndTime is not a distinc

RE: problem using snmptrap with a DateAndTime object

2008-06-18 Thread Zack Little
2:58 +0100> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Subject: Re: problem using snmptrap with a DateAndTime object> CC: [email protected]> > 2008/6/17 Zack Little <[EMAIL PROTECTED]>:> > The child calls snmptrap via an execvp call a

Re: problem using snmptrap with a DateAndTime object

2008-06-18 Thread Dave Shield
2008/6/17 Zack Little <[EMAIL PROTECTED]>: > The child calls snmptrap via an execvp call and then the child exits. > > This is working great for standard data types (integer, ip address, string, > etc.). I can't seem to get this to work with my DateAndTime object. I suspect Magnus is right,

Re: problem using snmptrap with a DateAndTime object

2008-06-17 Thread Magnus Fromreide
On Tue, 2008-06-17 at 14:54 -0400, Zack Little wrote: > I have defined a custom MIB for queries and that is working fine. I > now want to have my device send some traps that I have created in my > custom MIB file. Right now what I'm doing is having an application > that runs on my device fork off

Re: Problem in Porting net-snmp to uClinux

2008-04-07 Thread Dave Shield
On 18/03/2008, <[EMAIL PROTECTED]> wrote: > Net-snmp 5.0.8 is working fine on Blackfin uClinux. > In linux, all the MIB files are stored under /usr/local/share/snmp/mibs > folder. The snmpd demon gets the mib files from there. > > Similarly, Where exactly we have to put the mib files in uCli

RE: Problem in Porting net-snmp to uClinux

2008-03-18 Thread manu.asm
: Re: Problem in Porting net-snmp to uClinux On 11/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Anyway thanks for your help. I have ported net-snmp agent to uClinux and > it is working fine. Is there any chance you could summarise what you had to do to get this working?

RE: Problem in Porting net-snmp to uClinux

2008-03-11 Thread manu.asm
[email protected] Subject: Re: Problem in Porting net-snmp to uClinux On 11/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Anyway thanks for your help. I have ported net-snmp agent to uClinux and > it is working fine. Is there any chance you could summarise what y

Re: Problem in Porting net-snmp to uClinux

2008-03-11 Thread Dave Shield
On 11/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Anyway thanks for your help. I have ported net-snmp agent to uClinux and > it is working fine. Is there any chance you could summarise what you had to do to get this working? We're often asked for advice on running this software on

RE: Problem in Porting net-snmp to uClinux

2008-03-11 Thread manu.asm
Electronics) Cc: Net-SNMP Coders Subject: Re: Problem in Porting net-snmp to uClinux [ 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 disc

Re: Problem in Porting net-snmp to uClinux

2008-03-11 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 07/03

Re: Problem in Porting net-snmp to uClinux

2008-03-06 Thread Dave Shield
On 06/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > When I try with this command, I am getting the following response on my > target and snmpd is not running: > > root:/bin> snmpd -f -Le -d -c /etc/snmpd.conf > Usage: snmpd [-h lhost] [-p lport] [-c community] In which case, this snm

RE: Problem in Porting net-snmp to uClinux

2008-03-06 Thread manu.asm
ve, Thanks for your immediate response. Best Regards, Manu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Thursday, March 06, 2008 4:49 PM To: Manu Asm (WT01 - MCE-Consumer Electronics) Cc: [email protected] Subject: Re: P

Re: Problem in Porting net-snmp to uClinux

2008-03-06 Thread Dave Shield
On 06/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > As you suggested, I have tried to give the path of snmpd.conf in my > run-time environment. The exact command I gave is (snmpd.conf file is > stored under /etc/ at run-time environment): > root:/bin> snmpd -c /etc/snmpd.conf & You s

  1   2   3   4   >