Compliling MIB with mib2c

2008-02-01 Thread maruthi prasad
Dear sir, I have developed a private mib which contains scalar objects. When I try to compile using mib2c, it is not generating the skelton .c and .h files. Please tell me the procedure. Please help me on this. Thanks in advance -Maruthi

Re: upgrading from 5.2.3 to 5.2.4

2008-02-01 Thread Dave Shield
On 31/01/2008, Bell, Adam [EMAIL PROTECTED] wrote: One more quick question - what is a default build? ./configure ; make ; make install Is there a configure script available for a default build Just run configure with no other options.

Re: Problem with defining custom data type (TEXTUAL-CONVENTION)

2008-02-01 Thread Dave Shield
On 31/01/2008, Manfred Wassmann [EMAIL PROTECTED] wrote: For the error checking I recognized that the set command also returns the value being set. So in case of an error I would set the versionNumber to zeroes and the versionState to invalid and return that value. No - you can't do that. The

RE: upgrading from 5.2.3 to 5.2.4

2008-02-01 Thread Bell, Adam
Dave, One more quick question - what is a default build? Is there a configure script available for a default build or should I just not use --with-mibs and --with-out-mibs for the first try? then add/remove MIBs until it breaks? Thanks, Adam -Original Message- From: [EMAIL PROTECTED]

Can AIX Native SNMPD Daemon Be Used In Conjuntion With a NET-SNMP Built Subagents?

2008-02-01 Thread Smith_Randy
Hello, Thanks again for your previous responses to previous emails. Anyhoo, I noticed that README.solaris documentation indicated that net-snmp subagent built on the net-snmp libraries can be used in conjunction with the Solaris SNMPDX daemon - and that's wonderful since we don't have to

NET-SNMP perl install under windows

2008-02-01 Thread Gordon Rutherford
I have gone for hours over this, I have tried the makefile.pl and it errors out saying I have not installed snmp 1.8. However I installed OPENXTRA Net-SNMP 5.4.1, and ActiveState Active Perl, and then tried even copying the files into the c:\perl\lib directory. I seriously cannot get this

Re: Netsnmp 5.0.7 reporting incorrect interface speed

2008-02-01 Thread Dave Shield
On 31/01/2008, Bharma Ji [EMAIL PROTECTED] wrote: I am running netsnmp 5.0.7 on FreeBSD 4.6.2. First of all, 5.0.7 is a very old release. It is not even the most recent version of the 5.0.x code, and this line is no longer being maintained anyway. The IF-MIB support has had a major re-write

Re: Can AIX Native SNMPD Daemon Be Used In Conjuntion With a NET-SNMP Built Subagents?

2008-02-01 Thread Dave Shield
On 31/01/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: However, we were wondering if the same can be done on AIX platform - that is, can the native snmpd daemon on AIX (whatever it is called) also be used in conjunction with net-snmp subagents? You probably need to ask the AIX people about

Re: Compliling MIB with mib2c

2008-02-01 Thread Dave Shield
On 1 Feb 2008 08:55:24 -, maruthi prasad [EMAIL PROTECTED] wrote: I have developed a private mib which contains scalar objects. When I try to compile using mib2c, it is not generating the skelton .c and .h files. What command are you running? What output does it produce? Dave

Re: mib2c linker errors ifTable

2008-02-01 Thread Dave Shield
On 01/02/2008, Pranesh Kulkarni [EMAIL PROTECTED] wrote: Using mib2c tool , I generated code for the scalar and table and then configured , make and make install . Then I ran snmpd if I issue snmpget it replies, No Such Instance currently exists at this OID You've probably done

net-snmp-5.4.1 compile issue on win32

2008-02-01 Thread Jun Zhang
Following README.win32, the configure line I used is ./configure \ --with-mib-modules=host agentx disman/event-mib examples/example \ --with-out-mib-modules=host/hr_network --with-libs=-lws2_32 \ --disable-embedded-perl --without-perl-modules and got the following

Re: mib2c linker errors ifTable

2008-02-01 Thread Pranesh Kulkarni
Hi , I am going through how to make subagent . I have written mib(xyz) and loaded /usr/local/share/snmp/mibs and tested with snmptranslate. Using mib2c tool , I generated code for the scalar and table and then configured , make and make install . Then I ran snmpd if I issue snmpget it replies ,

Re :Re: Problem with Inform requests

2008-02-01 Thread girish
Hi Dave,Thanks for your quick reply.Yes this is an Agentx subagent trap.When ever some change has occurred in our database which we maintained using the subagent (scalars amp; tables) a trap will be triggered from our subagent, which will call function send_MyNotification_trap(void).On Fri, 1

Problem with Inform requests

2008-02-01 Thread girish
Hi All,nbsp;nbsp;nbsp; nbsp;nbsp; nbsp;nbsp; There is a problem I'm facing with informs. Whenever I try sending a trap message using the function call send_v2trap(var_list), the notify request is not reaching master agent. So I tried with sleep for about 5 seconds before I call this function

Re: Problem with Inform requests

2008-02-01 Thread Dave Shield
On 1 Feb 2008 13:18:11 -, girish [EMAIL PROTECTED] wrote: Whenever I try sending a trap message using the function call send_v2trap(var_list), the notify request is not reaching master agent. This is sending a trap from within an AgentX subagent - yes? How are you triggering this trap?

Re: net-snmp-5.4.1 compile issue on win32

2008-02-01 Thread Dave Shield
On 01/02/2008, Jun Zhang [EMAIL PROTECTED] wrote: Following README.win32, the configure line I used is ./configure \ --with-mib-modules=host . So you're telling configure to include the host group --with-out-mib-modules=host/hr_network but not the hr_network

RE: Can AIX Native SNMPD Daemon Be Used In Conjuntion With a NET-SNMP Built Subagents?

2008-02-01 Thread Smith_Randy
I'm not sure what you mean by shipping snmpd with the subagent. We have a seperate daemon which does various things, but among them sends SNMP (v2) traps using net-snmp libraries and interfaces (such as send_v2trap(), etc.). So, that is what I refer to as a 'subagent'. Then, there's net-snmp's

RE: Can AIX Native SNMPD Daemon Be Used In Conjuntion With a NET-SNMP Built Subagents?

2008-02-01 Thread Smith_Randy
Hee-hee. Thanks Dave, will keep that in mind. Dave, as I re-read the README.solaris doc I realized that maybe I misread and that in fact the net-snmpd 'snmpd' daemon still has to run along side of the Solaris native 'snmpdx' for a net-snmp subagent to run? In other words, in part 7 of

Re: Can AIX Native SNMPD Daemon Be Used In Conjuntion With a NET-SNMP Built Subagents?

2008-02-01 Thread Dave Shield
On 01/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dave, as I re-read the README.solaris doc I realized that maybe I misread and that in fact the net-snmpd 'snmpd' daemon still has to run along side of the Solaris native 'snmpdx' for a net-snmp subagent to run? Well, if you're running

Re: mib2c linker errors ifTable

2008-02-01 Thread Dave Shield
On 01/02/2008, Pranesh Kulkarni [EMAIL PROTECTED] wrote: May be this sounding simple to you , please help me in this regard, It's not a matter of being simple or complex. The problem is that you are not giving us sufficient information to work with. You say that: Using mib2c tool , I

Re: net-snmp-5.4.1 compile issue on win32

2008-02-01 Thread Jun Zhang
Thank you David. I prceeded and compilation seems successful. Please see my next post about the agent error. Jun Dave Shield [EMAIL PROTECTED] wrote: On 01/02/2008, Jun Zhang wrote: Following README.win32, the configure line I used is ./configure \ --with-mib-modules=host . So

snmpd error

2008-02-01 Thread Jun Zhang
I compiled 5.4.1 on win32 with cygwin, have the error messages running the agent. With the error messages, I can locate the module files (ended with .txt) under c:/snmp54/share/snmp/mibs. I guess the agent should know the mibs location but I'm not sure. There are 57 module files under

RE: Couple of Issues with 5.4.1

2008-02-01 Thread Larry Low
Thanks. I will just monitor the shorter name or rename the process all together for now while I figure out the reasoning behind the limitation.. I'm still unable to figure out why it is sporadically not detecting the other processes. Any ideas where to look on this issue? Its only one server

Re: snmpd error

2008-02-01 Thread Jun Zhang
I examined further under c:/snmp54/share/snmp/mibs, some of them may not be considered as a mib file, like RFC-1215.txt. May be I can conclude that the agent simply doesn't know where the mibs are. My question will be, how can I make the agent (the snmpd daemon) know where the mibs are? Jun

RE: snmpd error

2008-02-01 Thread Landry Caroline
Hi Jun, From my personal experience on win32/Cygwin your snmpd.exe did not find the directory where the MIB files are located. You can specify this directory in a snmp.conf file that should contain: mibdirs /usr/local/share/snmp/mibs Note: this path is correct if you installed your

RE: snmpd error

2008-02-01 Thread Jun Zhang
Landry, I put it as c:/snmp54/share/snmp/snmp.conf, and it worked. The daemon spit out only those regisgration != duplicate (are they significant?) lines. Thank you! Jun Landry Caroline [EMAIL PROTECTED] wrote:v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:*

RE: SNMP v3 - Authentication - Report PDU/Trap

2008-02-01 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Thursday, January 31, 2008 1:40 AM On 30/01/2008, Mike Ayers [EMAIL PROTECTED] wrote: This much I can tell you - communities were never (OK - the SNMPv3 specs talk in terms of entities rather than

regarding traps

2008-02-01 Thread Devvrat Tripathi
Hi all I have an snmp agent on one system and i want all the traps being received by that agent to be forwarded to some other agent on some other machine. Is there any way of doing this using the configuration file. Can you suggest possible ways of doing this. regards Devvrat

RE: overwrite standard mib2/interfaces

2008-02-01 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Masoud Fatollahy Sent: Thursday, January 31, 2008 7:24 AM We are planning to find the best possible way to register our ports as interface in mib2/interfaces(if-mib/ifTable) table on net-snmp-5.4.1. since these ports are

RE: Couple of Issues with 5.4.1

2008-02-01 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Low Sent: Friday, February 01, 2008 8:51 AM Thanks. I will just monitor the shorter name or rename the process all together for now while I figure out the reasoning behind the limitation.. I'm still unable to

RE: snmpbulkget mismatch??

2008-02-01 Thread Mike Ayers
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yuchen lu Sent: Thursday, January 31, 2008 5:32 PM again, the index 6,7,8 seems to be jump over. The hrIndex description reads: A unique value for each logical storage area contained by the

Re: snmpd error

2008-02-01 Thread Dave Shield
On 01/02/2008, Jun Zhang [EMAIL PROTECTED] wrote: The daemon spit out only those regisgration != duplicate (are they significant?) lines. See Official Patch #1805971 (http://sourceforge.net/tracker/index.php?func=detailaid=1805971group_id=12694atid=456380) Dave

net-snmp-config output questions

2008-02-01 Thread Jun Zhang
Q1: Does this output suppose to include user added Mibs? (through export MIBS=+AnotherMIB) If not, what ways can I use to test whether AnotherMIB is loaded or not? Q2: Why each MIB has Command not found at the end? If each MIB has some commands not recognized by the agent, will the agent be

Octet string index problem in net-snmp

2008-02-01 Thread Alamelu Ramadurai
Hi, I am using net-snmp version 5.4.1 from Linux. I am using octet string as index into the table. When sending SNMP request during walk or Get, why net-snmp is sending the octet-string index with integer tag 02 instead of octetstring tag 04? if the index is of size Octet String(6) and it is

Re: overwrite standard mib2/interfaces

2008-02-01 Thread Dave Shield
On 01/02/2008, Mike Ayers [EMAIL PROTECTED] wrote: Hopefully, the ifTable implementation has a way to cooperatively add your own rows, but I've never examined it. Anyone? Unfortunately not. See Feature Request #1693095 Dave

Re: Octet string index problem in net-snmp

2008-02-01 Thread Dave Shield
On 01/02/2008, Alamelu Ramadurai [EMAIL PROTECTED] wrote: if the index is of size Octet String(6) and it is some system-id say:22 22 33 33 44 44. The index part in reuqest is sent as 02 22 22 33 33 44 44 and not as 04 06 22 22 33 33 44 44. Well, if the index is indeed OctetString(6) - i.e. a

Re: snmpbulkget mismatch??

2008-02-01 Thread Dave Shield
On 01/02/2008, yuchen lu [EMAIL PROTECTED] wrote: snmpgetnext -v2c -c amail 4.4.4.3 hrStorageUsed.3 HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 93208 again, the index 6,7,8 seems to be jump over. That's correct. The used value is not available for these three storage areas.

Re: regarding traps

2008-02-01 Thread Dave Shield
On 01/02/2008, Devvrat Tripathi [EMAIL PROTECTED] wrote: I have an snmp agent on one system and i want all the traps being received by that agent to be forwarded to some other agent on some other machine. SNMP agents don't typically receive traps. That's the job of the snmptrapd command. See

Re: net-snmp-config output questions

2008-02-01 Thread Dave Shield
On 01/02/2008, Jun Zhang [EMAIL PROTECTED] wrote: $ net-snmp-config --default-mibs [snip] Q1: Does this output suppose to include user added Mibs? (through export MIBS=+AnotherMIB) No. net-snmp-config --default-mibs will tell you which MIBs will be loaded by default, i.e. if you

Re: net-snmp-config output questions

2008-02-01 Thread Jun Zhang
Dave, I would think it is the agent, snmpd, who got the mibs loaded. If I executed export MIBS=+AnotherMIB and then start the agent, AnotherMIB should be loaded on top of the default set, but correct me if I'm wrong. So how to check if AnotherMIB is loaded or not, using either net-snmp-config

check_snmp_win.pl doesn't run for me

2008-02-01 Thread Jun Zhang
I tried, check_snmp_win.pl -v -H localhost -C public -n Server and got ERROR: Process name table : Requested table is empty or does not exist. I located it is the printf line (within check_snmp_win.pl, listed bellow) generated the error message, so it is that $resultat is not defined. I can

Re: net-snmp-config output questions

2008-02-01 Thread Dave Shield
On 01/02/2008, Jun Zhang [EMAIL PROTECTED] wrote: I would think it is the agent, snmpd, who got the mibs loaded. If I executed export MIBS=+AnotherMIB and then start the agent, AnotherMIB should be loaded on top of the default set, but correct me if I'm wrong. Sorry - you are wrong. The MIBS

Re: check_snmp_win.pl doesn't run for me

2008-02-01 Thread Dave Shield
On 01/02/2008, Jun Zhang [EMAIL PROTECTED] wrote: I tried, check_snmp_win.pl -v -H localhost -C public -n Server I haven't heard of that script To my understanding, in order for $resultat to be defined, Net::SNMP version need to be 4. And that's why. That is nothing to do

Re: snmpbulkget mismatch??

2008-02-01 Thread yuchen lu
Thanks for the detailed explaination Dave. I am now much more clear about the problem. Seems that I've got to add some extra code to handle such cases. But I am still curious to know is there any chances to solve the problem by tuning netsnmp configuration file? What exactly I meant is that,