problem in creating the table

2007-01-30 Thread sathyanarayanan Thangavelu
hi friends What are the neccesary steps to create a table? is it need an Rowstatus as a field for creating it ? I tried to create a table by setting some value in it but is showing some error ? during mib2c myfilename i given options like 1> 2 2> 1 then It generated two file name with myfi

Re: Monitoring CPU Load and Disk on Windows

2007-01-30 Thread Raphaël 'SurcouF' Bordet
Le mercredi 31 janvier 2007 à 12:30 +0800, jiang jilin a écrit : > Hi, > according to what you said,the snmpd looks working well,so,I suspect > you didn't building the host module,you know,it's included in > Unix-like System by default,but I don't know whether it's included in > Windows .the first

Re: SNMP error code capture ??

2007-01-30 Thread jiang jilin
Hi, Have you ever run snmpget,snmpgetnext etc. to get a non-exist OID ? just look at the output carefully and maybe you would get what you want. Jiang On 1/31/07, sarathy <[EMAIL PROTECTED]> wrote: Hi all, Is there a way to capture SNMP v2 error codes [ noAccess (6) , wrongType(7)

SNMP error code capture ??

2007-01-30 Thread sarathy
Hi all, Is there a way to capture SNMP v2 error codes [ noAccess (6) , wrongType(7), notWritable (17) ... ], through net-snmp commands ( snmpget, snmpgetnext ... ) ??? Please do clarify, Sarathy -- Mob: +91 99001 97505 Off: 080 - 4184 7134 --

Re: Monitoring CPU Load and Disk on Windows

2007-01-30 Thread jiang jilin
Hi, according to what you said,the snmpd looks working well,so,I suspect you didn't building the host module,you know,it's included in Unix-like System by default,but I don't know whether it's included in Windows .the first thing you should do is to essure the snmpd has included the host module.

Monitoring CPU Load and Disk on Windows

2007-01-30 Thread Fahmy Ahmad
Hi. Sorry if this is a newbie question. I've recently installed net-snmp 5.4.0-1 on a Windows server. I am able to do a snmpwalk and get results, but I dont see any HOST-RESOURCES-MIB::. I have included disk C: and load in the snmpd.conf. Could somebody give me a push in the right direction. Thanks

Re: Configuring snmp to not use syslog as it's log file

2007-01-30 Thread jiang jilin
Hi, what's the version of net-snmp you're using?and what's the infomation output to /var/log/syslog ? I use net-snmp 5.3.1,and it works well,also,i just start & stop the snmpd to have a test. Jiang On 1/31/07, Mike McQ <[EMAIL PROTECTED]> wrote: I took your advice and I started the snmpd proc

Re: Configuring snmp to not use syslog as it's log file

2007-01-30 Thread Mike McQ
I took your advice and I started the snmpd process using a different log file. THe following command was used to start the snmpd process: /opt/net-snmp/sbin/snmpd -c /opt/net-snmp/etc/snmpd.conf -Lf /var/log/snmpd.log The new log file is created and snmpd places entries in it but still continues

Problem sending Informs when Firewall active

2007-01-30 Thread Makavy, Erez (Erez)
System info net-snmp-5.3.1, Linux, PPC Problem v3 informs are not sent when firewall (iptables on Linux) is active. Problem Analysis -- Net-snmp sends an engineID probe when creating an Inform PDU. Because of the firewall, the probe resp

Re: Windows Compilation Error

2007-01-30 Thread Thomas Anders
Nuñez Correas wrote: > Hello. Im evaluating NET-SNMP v5.4 in Windows XP with Eclipse IDEv3.2.1 and > MinGWv5.1.3. Now I'm getting some errors with binaries files of net-snmp and > I want compile the net-snmp sources. > > I've got installed MSYS and all works ok, but when I want compile NET-SNMP

Re: non contiguous column index

2007-01-30 Thread Renaud Barbier
my mistake I indeed forgot to keep track properly of the pointers. Renaud Barbier wrote: > I must be doing something incorreclty.Based on an example I found in the > mailing list > > I have tried the following: > #if 0 > table_info->min_column = 1; > table_info->max_column = 13; > #else >

Re: non contiguous column index

2007-01-30 Thread Renaud Barbier
I must be doing something incorreclty.Based on an example I found in the mailing list I have tried the following: #if 0 table_info->min_column = 1; table_info->max_column = 13; #else col_info = SNMP_MALLOC_TYPEDEF(netsnmp_column_info); col_info->isRange = 1; col_info->details.

Windows Compilation Error

2007-01-30 Thread Nuñez Correas , Fernando
Hello. Im evaluating NET-SNMP v5.4 in Windows XP with Eclipse IDEv3.2.1 and MinGWv5.1.3. Now I'm getting some errors with binaries files of net-snmp and I want compile the net-snmp sources. I've got installed MSYS and all works ok, but when I want compile NET-SNMP Source, I get this error:

RE: mib2c query

2007-01-30 Thread vijaya.dlakshmi
Check ur LD_LIBRARY_PATH properly... source ur .bashrc once again -Original Message- From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Tue 1/30/2007 4:49 PM To: Net-snmp-users@lists.sourceforge.net Subject: mib2c query i want to generete c and h file for my WMAN-IF-MIB.txt f

Re: non contiguous column index

2007-01-30 Thread jiang jilin
what about the book you're writing?is it published? you know,there are few books on snmp in China.so,It's hard to learn snmp,especially because of our bad english. I wish you can sell your book on snmp to China. Best wishes! Jiang On 1/30/07, Dave Shield <[EMAIL PROTECTED]> wrote: On 30/01/07

Re: doubts

2007-01-30 Thread jiang jilin
Thanks,Dave. practice makes perfect! (maybe i'm too lazy...) Jiang On 1/30/07, Dave Shield <[EMAIL PROTECTED]> wrote: On 30/01/07, jiang jilin <[EMAIL PROTECTED]> wrote: > I doubt that is it ok just to ./configure & make install,without make? Wrong. "make install" will ensure that everything

Re: non contiguous column index

2007-01-30 Thread Renaud Barbier
Thanks. Unhappily I cannot upgrade net-snmp for this release of our software. I will add columns specification then. jiang jilin wrote: > I just recommend you upgrade the net-snmp to the latest version(5.3.1 > or 5.4). > > And,I suspet that the agent can work well if the indexs are not > contin

Re: non contiguous column index

2007-01-30 Thread Dave Shield
On 30/01/07, jiang jilin <[EMAIL PROTECTED]> wrote: > I just recommend you upgrade the net-snmp to the latest version > (5.3.1 or 5.4). That would have absolutely no effect on Renaud's problem. The handling of valid columns basically hasn't changed since the v5 line first came out. > what's your

mib2c query

2007-01-30 Thread [EMAIL PROTECTED]
i want to generete c and h file for my WMAN-IF-MIB.txt file..i already installed nert-snmp 5.3.0.1 and already put one copy my mib file in to usr/local/share/snmp/mibs..also EXPORT=Mibs and MIBS=ALL done...already SNMP/perl also installed..using perl MAKEFILE.PL,make,make install.. but still it sh

Re: doubts

2007-01-30 Thread Dave Shield
On 30/01/07, jiang jilin <[EMAIL PROTECTED]> wrote: > I doubt that is it ok just to ./configure & make install,without make? Wrong. "make install" will ensure that everything is compiled before it is installed. It's generally good practise to run "make" separately first, for two reasons: a) Y

Re: non contiguous column index

2007-01-30 Thread jiang jilin
I just recommend you upgrade the net-snmp to the latest version(5.3.1 or 5.4 ). And,I suspet that the agent can work well if the indexs are not continuous what's your view? Dave Thanks! Jiang On 1/30/07, Renaud Barbier <[EMAIL PROTECTED]> wrote: Here is the initialization code from one of t

Re: non contiguous column index

2007-01-30 Thread Dave Shield
On 30/01/07, Renaud Barbier <[EMAIL PROTECTED]> wrote: > Here is the initialization code from one of the table in XXX_tables.c > as generated by mib2c. > /** Define the minimum and maximum accessible columns. This > optimizes retrival. */ > table_info->min_column = 1; > table

Re: doubts

2007-01-30 Thread jiang jilin
I doubt that is it ok just to ./configure & make install,without make? if ok,you can run snmpd,and use tools to set or get something ,however you can install a tool named tkmib to do these things better for new guys. but,why not read the manuals ,FAQ & documents on Web(like www.net-snmp.org) bef

Re: non contiguous column index

2007-01-30 Thread Renaud Barbier
Here is the initialization code from one of the table in XXX_tables.c as generated by mib2c. If that does not anwser all three parts of your question, let me know. /** Initialize the ThisTable table by defining its contents and how it'sctured */ void initialize_table_ThisTable(void) { sta

doubts

2007-01-30 Thread Daphna Chacko
I am new to the SNMP environment I have downloaded net-snmp I have configured and installed it using the ./configure and make install commands Can anybody help me out to proceed further (start and use the agent) with regards Daphna *** Aricent-Private *

Re: non contiguous column index

2007-01-30 Thread Dave Shield
On 30/01/07, Renaud Barbier <[EMAIL PROTECTED]> wrote: > I have a MIB where the column index are not contiguous (i.e 1,2,3,4,., 6) How are you registering the table? What helper are you using, and what does your initialisation code look like? Dave

Re: Why I can not install rpm packet correctl y?

2007-01-30 Thread Dave Shield
On 30/01/07, bahamute <[EMAIL PROTECTED]> wrote: > When I install the RPM packet (2 packet : net-snmp-5.4-1.fc5.i386.rpm \ > net-snmp-5.4-1.src.rpm ). You probably don't need the source RPM. But if you are working with a subagent, then you probably *do* need the 'net-snmp-devel' RPM. Though if

Re: Question about MIBS and explanations

2007-01-30 Thread Dave Shield
On 30/01/07, Achim Stumpf <[EMAIL PROTECTED]> wrote: > $ snmpwalk 192.168.222.71 -c test -v1 1.3.6.1.4.1.9.9.106.1.2.1.1.11 > SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.11.1.1 = IpAddress: 192.168.222.70 > SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.11.1.2 = IpAddress: 192.168.222.80 As you've already di

non contiguous column index

2007-01-30 Thread Renaud Barbier
Hello, I am quite new at SNMP. I have currently net-snmp 5.2.3 and run an AgentX I have a MIB where the column index are not contiguous (i.e 1,2,3,4,., 6) When doing a snmpwalk, I only get the data for column 1,2,3,4 and then data from the next table I know during execution there is an attemp

Why I can not install rpm packet correctl y?

2007-01-30 Thread bahamute
Hello : Because my computer could not install a C compiler. So I download a RPM packet to install. When I install the RPM packet (2 packet : net-snmp-5.4-1.fc5.i386.rpm \ net-snmp-5.4-1.src.rpm ). when intall net-snmp-5.4-1.src.rpmthe display like below: [EMAIL PROTECTED] pr

Re: Question about MIBS and explanations

2007-01-30 Thread Achim Stumpf
jiang jilin wrote: > Hi, > Maybe you can find the answer from the source MIB file.I guess they're > indexs. > What do you mean with that. Where do I find that "source MIB file"? Achim > On 1/30/07, *Achim Stumpf* < [EMAIL PROTECTED] > > wrote: > > Hi List, > >

Re: agent not generating linkup/down traps

2007-01-30 Thread Rasanth A.K.
Thank you very much Dave. It works. Regards, Rasanth On 1/29/07, Dave Shield <[EMAIL PROTECTED]> wrote: On 29/01/07, Rasanth A.K. <[EMAIL PROTECTED]> wrote: > I compiled net-snmp-5.3.1 by enabling disman/event-mib support. > when i run snmpd ( snmpd -f -Le -d -Ddisman ), i am always getting

Re: Question about MIBS and explanations

2007-01-30 Thread jiang jilin
Hi, Maybe you can find the answer from the source MIB file.I guess they're indexs. Jiang On 1/30/07, Achim Stumpf <[EMAIL PROTECTED]> wrote: Hi List, I am doing: $ snmpwalk 192.168.222.71 -c test -v1 1.3.6.1.4.1.9.9.106.1.2.1.1.11 SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.11.1.1 = IpAddress: 1

Question about MIBS and explanations

2007-01-30 Thread Achim Stumpf
Hi List, I am doing: $ snmpwalk 192.168.222.71 -c test -v1 1.3.6.1.4.1.9.9.106.1.2.1.1.11 SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.11.1.1 = IpAddress: 192.168.222.70 SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.11.1.2 = IpAddress: 192.168.222.80 Here I get two different HSRP IP-Adresses of that router

Re: about tcpmib.so

2007-01-30 Thread Dave Shield
On 30/01/07, Clement Hsu <[EMAIL PROTECTED]> wrote: > Does there exist tcp-mib Yes. See 'agent/mibgroup/mibII/tcpTable.c' or 'agent/mibgroup/tcp-mib' for two different implementations. > or wi-fi mib No. There is a (somewhat old) implementation of the 802.11 MIB in the Patches tracker, but it's

Re: I've met some troubles really headachy,pls help me!

2007-01-30 Thread Dave Shield
On 30/01/07, 洲 金 <[EMAIL PROTECTED]> wrote: I have a scalar variable in my mib.When it is being GET,it will return the source ip of this GET request(the soruce ip of the UDP packet). How do you know that the incoming request is running over IP? What should this object return if the request

Re: snmpset is not working.

2007-01-30 Thread Dave Shield
On 30/01/07, Dinesh GH <[EMAIL PROTECTED]> wrote: > ./snmpset -c private -v 1 localhost system.sysContact.0 s [EMAIL PROTECTED] > Timeout: No Response from localhost... Please see the FAQ entries: Why can't I set any variables in the MIB? (http://www.net-snmp.org/wiki/index.php/FAQ:Ap

Re:

2007-01-30 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 30/01

Re: about tcpmib.so

2007-01-30 Thread jiang jilin
I'm sorry I'm NOT very familiar with net-snmp,so,I don't know whether the net-snmp package contains any MIB file associated with bridege & wifi.However,it's no need to find tcp-mib.c,you should find the MIB file what you want first,if there is no MIB file related to bridge & wifi,you have to write

Re: I've met some troubles really headachy,pls help me!

2007-01-30 Thread jiang jilin
3.About general net-snmp apps' executing I've downloaded all the source files of NET-SNMP-TUTORAIL 5,including the makefile.When making,it succeed.But when executing,1 error occurs:"error while loading shared libraries: libnetsnmp.so.9: cannot open shared object file: No such file or direc