Re: MFD agent : IP-address & user-context in _cache_load() ?

2005-04-15 Thread Christian Jönsson
Robert Story wrote: On Thu, 14 Apr 2005 14:17:39 +0200 Christian wrote: CJ> I am brand new at this (snmp, net-snmp, etc) and I am writing an agent CJ> using the mib2c.mfd.conf generated code-framework (container-cached) CJ> from net-snmp 5.2.1, Great! Stop by the IRC channel if you want more int

Re: problem with table!! used mib2c.create_dataset.conf

2005-04-15 Thread chinmay bhat
You still haven't answered my original question. What is the exact link line run during the build process. I dont get ur question..Anyway i will edxplain you what i do? i have this agent file taken from the site.I have my mib compiled thraough mib2c compiler..I have got 2 .c and 2 .h files.I com

SNMP v3 Testing errors with authPriv mode

2005-04-15 Thread Yeo Siow Vic
dear all, I am testing SNMPv3, and having problem with authPriv mode. The setting of SNMPv3 in agent is: 1) In /var/net-snmp/snmpd.conf, i add in: createUser dave MD5 "Open the door" DES "Open the door" 2) In /usr/local/share/snmp/snmpd.conf, i add in: rouser dave The setting of snmpget is: 3)

Re: snmpd and community issue

2005-04-15 Thread Alex Burger
Sasikumar Bodathula wrote: Hi, What i want to say is when i do get on the sysDescr with the community name empty or wrong name (This name is not present in the snmpd.conf) snmpd is responding for this get request with correct value. Please correct me if i am wrong i thought that if any request co

Re: config file usage

2005-04-15 Thread Robert Story
On Thu, 14 Apr 2005 14:25:00 -0700 George, wrote: GG> I will use iterate.conf for the true dynamic data, such as cpu GG> utilization. In this case will it be stored to container? No, it won't be stored at all. The agent will call functions you provide to iterate over the data every time a request

Re: NET-SNMP 5.2.1 make error.

2005-04-15 Thread Robert Story
On Thu, 14 Apr 2005 18:39:10 -0400 Andrews, wrote: AGJ> cc: default_store.o: No such file or directory AGJ> *** Error code 1 AGJ> make: Fatal error: Command failed for target AGJ> `../blib/arch/auto/NetSNMP/default_store/default_store.so' Current working AGJ> directory /tmp/net-snmp-5.2.1/perl/defa

Re: MFD agent : IP-address & user-context in _cache_load() ?

2005-04-15 Thread Robert Story
On Fri, 15 Apr 2005 10:41:18 +0200 Christian wrote: CJ> >Trying to figure out where a packet came from is strongly discouraged. CJ> >Once a PDU has been authenticated and accepted, it shouldn't matter where CJ> >it came from. If you need different data from different hosts, SNMP CJ> >contexts is th

Re: snmpd and community issue

2005-04-15 Thread Robert Story
On 15 Apr 2005 09:40:42 +0530 Sasikumar wrote: SB> What i want to say is when i do get on the sysDescr with the community SB> name empty or wrong name (This name is not present in the snmpd.conf) SB> snmpd is responding for this get request with correct value. That sounds like (a) you are runnin

RE: Application monitor MIB (implements RFC 2564)

2005-04-15 Thread Dave Anderson
DS> > The program is implemented in Python, consisting of several DS> > classes and PyUnit test cases. DS> DS> That's immediately enough to make me very wary of including DS> this as part of the Net-SNMP project directly. DS> This is a very different approach to anything else we DS> supply, and i

Re: Repost: Net-snmp doubt

2005-04-15 Thread Robert Story
On Thu, 14 Apr 2005 18:35:08 -0700 (PDT) Mauricio wrote: MR> > Yeah, that's what he tried. I do remember seeing a MR> > patch go by that delayed MR> > engineID discovery until it was needed. I'll see if MR> > I can dig it up... MR> > MR> I'd appreciate that. The patch was for 5.0.9, and I changed

Re: Repost: Net-snmp doubt

2005-04-15 Thread Robert Story
On Fri, 15 Apr 2005 10:09:58 -0400 Robert wrote: RS> The patch was for 5.0.9, and I changed it a bit, so this is untested. Give RS> it a whirl and let me know if: RS> RS> a) there is no error message at startup if the peer is down RS> b) after bringing up the peer, informs are received... forgot

Re: weird error

2005-04-15 Thread Robert Story
On Fri, 15 Apr 2005 10:38:47 +0800 Jim wrote: JS> I guess since there are two identical DEFINITION in two different MIB JS> files. So the snmpd was confused and returned the error message said JS> "cannot find the module". Is this a correct assumption? This is especially JS> true if I set MIBS=ALL,

Re: MFD agent : IP-address & user-context in _cache_load() ?

2005-04-15 Thread Robert Story
On Fri, 15 Apr 2005 10:41:18 +0200 Christian wrote: CJ> I know it's not really something that one usually wants, but I really CJ> need to get ahold of the (local) IP-adress/interface on which the CJ> snmp-request was received, where it came from (who requested) is not at CJ> all important. The i

Re: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread John Pfaff
It could be that you actually have the .tar.gz file.  Try gzip -cd net-snmp-5.2.1.tar | tar xvf - and see if that does the trick.  If I remember right, Solaris 8 has gzip installed by default.  If not, get it.On 4/15/05, DeBekker, Alan < [EMAIL PROTECTED]> wrote: Hello, I am trying to un-

AGENT EXT SIT ON NAILS -6

2005-04-15 Thread Parthiban Naliiamudali
Dear sir, sir,Mr.DAVE it works for "SNMPWALK"  also, i just recompiled once again then i found it working.. i didnot know what was the problem in the previous state? anyway now it works.sir, the new PROBLEM is i couldnot make a SNMPSET as the mib variables in the table has max-access as READ-ONL

Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread DeBekker, Alan
Title: Problems un-taring net-snmp-5.2.1.tar Hello, I am trying to un-tar the net-snmp-5.2.1.tar file on a Solaris 8 server and I get the following message: “tar: directory checksum error” . Is anyone having this same problem? If so what did you do to fix it? Thanks in advance, Alan DeBek

RE: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread DeBekker, Alan
Thanks John!   I had already gunzipped the file and was left with the .tar file to untar.  I re-downloaded the tar.gz file and executed the following command: gzip -cd net-snmp-5.2.1.tar.gz | tar xvf –  and still receieved an error.  Here is the error: tar: directory checksum error Brok

RE: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread Andrews, Glenn J (Glenn)
Title: Problems un-taring net-snmp-5.2.1.tar You need to use gnu tar.. You can get it here...  as a package   http://sunfreeware.mirrors.tds.net/   Glenn AndrewsPremise Operations / Lucent Technologies From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DeBekker, AlanSent: Frid

Re: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread John Pfaff
You shouldn't really need to use gnu tar, but it might help. tar xvfz net-snmp-5.2.1.tar.gz I didn't have any problems with the file.  You may want to check the checksums to make sure you got a good file.On 4/15/05, Andrews, Glenn J (Glenn) < [EMAIL PROTECTED]> wrote: You need to use gnu tar.

RE: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread Bruce Shaw
download gnu tar from www.sunfreeware.com and invoke it as /usr/local/bin/tar. It's a known solaris bug. >I am trying to un-tar the net-snmp-5.2.1.tar file on a Solaris 8 server and I get the following message: "tar: directory checksum error " .Is anyone having this same problem? If so what did

Re: NET-SNMP 5.2.1 make error.

2005-04-15 Thread Alex Burger
Hi Glenn. Andrews, Glenn J (Glenn) wrote: After quite awhile... At the very end.. cc: default_store.o: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `../blib/arch/auto/NetSNMP/default_store/default_store.so' Current working directory /tmp/net-snmp-5.2.1/pe

RE: NET-SNMP 5.2.1 make error.

2005-04-15 Thread Andrews, Glenn J (Glenn)
I hope this helps...$nova:/tmp/net-snmp-5.2.1> cd perl $nova:/tmp/net-snmp-5.2.1/perl> ls agentASN make-perl-makefiles Makefile.PL manager SNMP AnyData_SNMP default_storeMakefile.makefiles Makefile.subs.pl OID

Single session

2005-04-15 Thread Patrick Welche
What are the pros and cons of using snmp_open over snmp_sess_open? (I see that snmp_open calls snmp_sess_open and seems to maintain a linked list of sessions, but how does that affect the humble libnetsnmp user?) Cheers, Patrick --- SF email i

accounting traffic by ports

2005-04-15 Thread Andrey Brokanov
Hello,   We need to account network traffic dividing by ports and hosts using SNMP. Is that possible and how can we do this with net-snmp agent?   Thanks in advance, Andrey Brokanov Profinfotech.com  

RE: accounting traffic by ports

2005-04-15 Thread Andrews, Glenn J (Glenn)
You may want to try cacti, http://www.cacti.net/   http://sourceforge.net/projects/cacti/   It uses RRDTOOL, PHP, and uses the net-snmp library.   Glenn AndrewsPremise Operations / Lucent Technologies1 Robbins Road, Westford, MA 01886Tel (978)952-7728Fax (978)952-7785 From: [EMAIL PROTECTE

RE: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread DeBekker, Alan
Thanks for all of the responses everybody! I Dl'ed the newest version of tar from sunfreeware.com and installed the package on my server (along with the libiconv package it says it requires). Now I am having tar problems. This is what I get: Bash-2.03# /usr/local/bin/tar /usr/local/bin/tar: synt

RE: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread Andrews, Glenn J (Glenn)
What do you get when you 'tar --version' ? I get 'tar (GNU tar) 1.15.1' If you get.. tar: s: unknown option Usage: tar {txruc}[vfbFXhiBEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files .. Wrong tar :( You can do this... With the gnu tar.. tar xvzf

RE: Problems un-taring net-snmp-5.2.1.tar

2005-04-15 Thread DeBekker, Alan
Hi, I am using the correct version of tar, I am executing it using /usr/local/bin/tar . Seems to be a problem with tar itself. I will try and locate an older version and see if that does the trick. Thanks again! Alan DeBekker Platts Technology 212-904-3028 -Original Message- From: An

Re: AGENT EXT SIT ON NAILS -6

2005-04-15 Thread Robert Story
On 15 Apr 2005 15:23:17 - Parthiban wrote: PN> sir, i used PN> "mib2c -c mib2c-create-dataset.conf wmanIfBsControllerActionsTable" to PN> create a C template PN> and added my code for adding data to the variables. PN> PN> here the PROBLEM is there is NO INDEX in the table Then it is

Re: accounting traffic by ports

2005-04-15 Thread Robert Story
On Thu, 14 Apr 2005 18:28:55 +0400 Andrey wrote: AB> We need to account network traffic dividing by ports and hosts using SNMP. AB> Is that possible and how can we do this with net-snmp agent? Not by default. The ifTable only reports traffic by interface. So first you'd need someplace to get the s

Re: Single session

2005-04-15 Thread Robert Story
On Wed, 13 Apr 2005 18:07:45 +0100 Patrick wrote: PW> What are the pros and cons of using snmp_open over snmp_sess_open? PW> (I see that snmp_open calls snmp_sess_open and seems to maintain a linked PW> list of sessions, but how does that affect the humble libnetsnmp user?) The single-session API

Re: NET-SNMP 5.2.1 make error.

2005-04-15 Thread Thomas Anders
Andrews, Glenn J (Glenn) wrote: /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 /usr/perl5/5.00503/ExtUtils/xsubpp -prototypes -typemap /usr/perl5/5.00503/ExtUtils/typemap -typemap typemap default_store.xs >xstmp.c && mv xstmp.c default_store.c cc -c -g -O2 -Dsolaris2 -I/us

Compiling subagents

2005-04-15 Thread Budyanto Himawan
Hi, Is there any way to compile subagents using net-snmp-config --compile-subagent such that the subagent can talk to the master using TCP port instead of unix domain socket? Thanks === Budyanto Himawan [EMAIL PROTECTED] === ___

Agent not executing perl init script

2005-04-15 Thread [EMAIL PROTECTED]
I am using Net-SNMP 5.1.1 on Red Hat Linux 9 with embedded perl turned on; However, I am unable to get the agent to invoke the perl initialization script '/usr/local/share/snmp/snmp_perl.pl'. 1) net-snmp-config --configure-options comes back with all the correct settings: '--prefix=/usr/local' '