RE: NET-SNMP V3 question.

2009-12-01 Thread Mike Ayers
> From: Pil Choi [mailto:cpil...@hotmail.com] > Sent: Tuesday, December 01, 2009 10:06 AM > This is how I did in subagent code to talk to master agent. Now how > will the client(snmp manager) call the master/subagent remotely? What > should be in snmpd.conf file? > > netsnmp_ds_set_string(NETSNM

RE: mib file is tables, use mib2c.table_data.conf template generate .c .h files, ./configure --with-mib-modules=

2009-12-01 Thread Mike Ayers
> From: chenyapu1...@qq.com [mailto:chenyapu1...@qq.com] > Sent: Tuesday, December 01, 2009 4:37 AM > My mib file is a table(just for experimental prototype testing),I use > mib2c.table_data.conf generate .c .h files, > > I use the > ./configure --with-mib-modules="uit" ;make; make install > >

Re: compiling under x86_64

2009-12-01 Thread Stuart Kendrick
Hi Thomas, net-snmp-5.5 gnat> perl -V Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=linux, osvers=2.6.18-164.6.1.el5, archname=x86_64-linux-thread-multi uname='linux vishnu 2.6.18-164.6.1.el5 #1 smp tue nov 3 16:12:36 est 2009 x8 6_64 x86_

Re: compiling under x86_64

2009-12-01 Thread Thomas Anders
Stuart Kendrick wrote: > I'm trying to compile net-snmp on a 64-bit box What exact version of net-snmp are you trying to compile? What's the output of "perl -V" for your local Perl build? +Thomas -- Join us December 9,

How to add and compile additional c files into mib module?

2009-12-01 Thread Chi . Guan
Hi all, 1. I have a MIB file converted to a mib module testAgentModule.c and testAgentModule.h 2. In testAgentModule.c, I want call a function in my own c file called dataProcess.c 3. Where do I add this dataProcess.c file in the Makefile and How do compile and link it to the testAg

Re: snmptrap (V1) checksum errors

2009-12-01 Thread Shaiton
Ok thank you very much. I am sending traps on a linux computer (where I am logged as root), and spy packets there (using an Eth HUB of course, because the STB replies to an external server (should be hard coded)). I'll see where the authentication error comes from, (2 monthes ago it was on snmp v

RE: snmptrap (V1) checksum errors

2009-12-01 Thread Mike Ayers
> From: Shaiton [mailto:shaito...@gmail.com] > Sent: Friday, November 27, 2009 5:42 AM > It has been 1 weeks that I tried to speak snmp with my Set Top Box, but > I can't. > I got the MIB, so I tried to sand many traps but sometimes I got > "Authentification failed" (CAS authentification with an

RE: Duplicated SNMP syslogs

2009-12-01 Thread X Z
I have found out where the problem is. The older version of net-snmp (5.3) doesn't have the function "shutdown_snmp_logging". Xuan From: b...@live.com To: d.t.shi...@liverpool.ac.uk CC: net-snmp-users@lists.sourceforge.net Subject: RE: Duplicated SNMP syslogs Date: Tue, 1 Dec 2009 11:22:52 -050

RE: NET-SNMP V3 question.

2009-12-01 Thread Pil Choi
This is how I did in subagent code to talk to master agent. Now how will the client(snmp manager) call the master/subagent remotely? What should be in snmpd.conf file? netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, "tcp:127.0.0.1.705"

Re: DISMAN Event MIB configuration: monitor

2009-12-01 Thread Dave Shield
2009/12/1 Sam V : > Is there another patch for existence triggers? > startup condition would be present, absence, or both. Hmmm... that's going to be harder. The parsing of the "monitor" directive currently treats the existence tests as an enumeration, rather than as three independent bits. And

RE: Duplicated SNMP syslogs

2009-12-01 Thread X Z
I couldn't figure it out how to call this function in my main program. When I compile, I got the following error: warning: implicit declaration of function shutdown_snmp_logging Warnings are treated as errors in my make. I added the header file: #include , it didn't work either. Thanks Xuan

Re: NET-SNMP V3 question.

2009-12-01 Thread Dave Shield
2009/12/1 Pil Choi : > I need to > figure out how to configure SNMP so that SNMP manager communicate with its > master/subagent via network remotely with local host between subagent and > master agent, but SNMP manager should use sub

RE: DISMAN Event MIB configuration: monitor

2009-12-01 Thread Sam V
Thanks Dave for your reply. I'll try to see if this would work. Now, is there another patch for existence triggers? startup condition would be present, absence, or both. > Date: Tue, 1 Dec 2009 08:51:41 + > Subject: Re: DISMAN Event MIB configuration: monitor > From: d.t.shi...@liverpo

RE: NET-SNMP V3 question.

2009-12-01 Thread Pil Choi
I am sorry...correction in red below. From: cpil...@hotmail.com To: d.t.shi...@liverpool.ac.uk CC: net-snmp-users@lists.sourceforge.net Subject: RE: NET-SNMP V3 question. Date: Tue, 1 Dec 2009 10:41:06 -0500 Hi Dave, subagent is running on a dev board. And its itable looks empty. The thi

RE: NET-SNMP V3 question.

2009-12-01 Thread Pil Choi
Hi Dave, subagent is running on a dev board. And its itable looks empty. The thing is ... when I specified the real ip address of the board in my subagent like 123.45.67.910 instead of localhost(127.0.0.1), the SNMP manager found the subagent remotely. However, when I used localhost in subagen

query regarding udpHCInDatagrams and udpHCOutDatagrams

2009-12-01 Thread sanjaykumar
  Hi All,    I have a doubt regaring udp mib w r t MIBII and rfc4113 As net-snmp5.4.2.1 does not support the following object: udpHCInDatagrams and  udpHCOutDatagrams but it is supporting  udpInDatagrams and  udpOutDatagrams I found that in above object interpret set data but differe

Re: NET-SNMP V3 question.

2009-12-01 Thread Dave Shield
2009/12/1 Pil Choi : > My SNMP manger fails to send a message to a > remote Master agnet and sub-agent that I created via net-work > . It is fine when they are running on the same machines. Check whether the remote machine has a firewall configured. (eg. iptables on a Linux box

NET-SNMP V3 question.

2009-12-01 Thread Pil Choi
Hi, I have a question about configuring SNMP Manager and master agent- they are running on a separate machine. My SNMP manger fails to send a message to a remote Master agnet and sub-agent that I created via net-work. Does anyone know how to configure SNMP so that Manager and Master agent(or s

Re: mib file is tables, use mib2c.table_data.conf template generate .c .h files, ./configure --with-mib-modules=

2009-12-01 Thread Dave Shield
2009/12/1 飞飞 : > But I cannot get the right result use snmpwalk -v1 -c public localhost Please see the FAQ entry Why can't I see values in the tree? Dave -- Join us December 9, 2009 for the Red Hat Virtual Experien

Re: IPAddress like index for MIB table

2009-12-01 Thread Dejan Bojic
Thanks for response, but I found the problem and fix it. The problem was in the "_get_first_data_point" (and "_get_next_data_point") functions. For function "snmp_set_var_value", prevoiusly I use a string variable (all project is written in the C++) to setting index which is ASN_IPADDRESS type

Re: SNMP Perl module and MIB navigation

2009-12-01 Thread Dave Shield
2009/9/9 Wes Hardaker : >> On Fri, 4 Sep 2009 16:53:07 -0400, Daniel Savard >> said: > DS> For example, I want to output a line like: > > DS> ATTR(=,$ENTERPRISE),VALUE(=,"$var"); > > DS> where $var is actually replaced by the value of the variable and > $ENTERPRISE > DS> must be output a

Re: Please help me to get sub agents working.

2009-12-01 Thread Dave Shield
2009/11/30 Duo Maxwell : > I am having trouble getting a subagent to work. > I hope this is not one of thoes cases where the answer is > obvious and I have complete overlooked it. Probably not - getting new MIB modules to work can often be tricky. The best starting point is probably the FAQ entry

Re: How do I modify the init_XXX(void) function get OIDs use mib2c.table_data.conf template???

2009-12-01 Thread Dave Shield
2009/12/1 飞飞 : > when my mib is a simple table,I > use mib2c.table_data.conf,I cannot get oids in init_uit() function. > void > init_uit(void) > { > > /* here we initialize all the tables we're planning on supporting */ >     initialize_table_diskSystemTable(); > } The 'init_uit' routine calls

How do I modify the init_XXX(void) function get OIDs use mib2c.table_data.conf template???

2009-12-01 Thread 飞飞
Hi all: when I use template mib2c.scalar.conf I get OIDs in init_uit() rightly(My mib data entries are all simply scalars);but when my mib is a simple table,I use mib2c.table_data.conf,I cannot get oids in init_uit() function. I want to some one tell me where I am wrong and how to fix it. TIA

Please help me to get sub agents working.

2009-12-01 Thread Duo Maxwell
I am having trouble getting a subagent to work. I have attempted to follow the rules of support and first check alternative sources. I have been through the wiki and tutorials many times. I hope this is not one of thoes cases where the answer is obvious and I have complete overlooked it. If that is

Re: Duplicated SNMP syslogs

2009-12-01 Thread Dave Shield
2009/11/30 X Z : > Does anyone know how to reset the syslog level to avoid the duplicated > syslogs? Call 'shutdown_snmp_logging()' before configuring your new log settings. Dave -- Join us December 9, 2009 for the Red

Re: DISMAN Event MIB configuration: monitor

2009-12-01 Thread Dave Shield
2009/11/30 Sam V : > Now, in case of a threshold > trigger > which have multiple startup cases, Raising, Falling, RisingAndFalling. How > can specify that I want a startup condition to be true on for the rising case > and not all cases? In term of conf