PERL problem with mib2c

2004-07-20 Thread Gary Clark




Running net-snmp-5.1.2.pre3 release.
 
When performing the following
$ mib2c etherStatsEntry
 
It looks like the two expected templates get 
generated:
 
etherStatsEntry.c and 
etherStatsEntry.h
 
However I then see the following:
 
running indent on etherStatsEntry.c
C:\cygwin\bin\perl.exe (3996): *** unable to remap 
C:\cygwin\lib\perl5\site_perl\5.8.2\cygwin-thread-multi-64int\auto\NetSNMP\default_store\default_store.dll 
to same address as parent (0xEF) != 0xFF
    237 [main] perl 2196 
sync_with_child: child 3996 (0x5fc) died before initialization with status code 
0x1
    734 [main] perl 2196 
sync_with_child: *** child state child loading dlls
 
ok I think there is a conflict between versions of 
perl? However can I still assume the templates generated
are valid?
 
Any answers to this would be 
appreciated?
 
Cheers,
Garyc


PERL problem with mib2c

2004-07-20 Thread Gary Clark



Running net-snmp-5.1.2.pre3 release.
 
When performing the following
$ mib2c etherStatsEntry
 
It looks like the two expected templates get 
generated:
 
etherStatsEntry.c and 
etherStatsEntry.h
 
However I then see the following:
 
running indent on etherStatsEntry.c
C:\cygwin\bin\perl.exe (3996): *** unable to remap 
C:\cygwin\lib\perl5\site_perl\5.8.2\cygwin-thread-multi-64int\auto\NetSNMP\default_store\default_store.dll 
to same address as parent (0xEF) != 0xFF
    237 [main] perl 2196 
sync_with_child: child 3996 (0x5fc) died before initialization with status code 
0x1
    734 [main] perl 2196 
sync_with_child: *** child state child loading dlls
 
ok I think there is a conflict between versions of 
perl? However can I still assume the templates generated
are valid?
 
Any answers to this would be 
appreciated?
 
Cheers,
Garyc


Re: Running mib2c

2004-07-21 Thread Gary Clark

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 21, 2004 7:21 AM
Subject: Running mib2c


>
> Hi!
>
> While running mib2c for generating skeleton code for my MIB, I get
> the following errors. Can anyone help me with this !!
>
> Thanks,
> Haris
>
>  ---
> sh$ mib2c -c ../local/mib2c.create-dataset.conf myNode
>
> Cannot find module (IP-MIB): At line 0 in (none)
> Cannot find module (IF-MIB): At line 0 in (none)
> Cannot find module (TCP-MIB): At line 0 in (none)
> Cannot find module (UDP-MIB): At line 0 in (none)
> Cannot find module (SNMPv2-MIB): At line 0 in (none)
> Cannot find module (SNMPv2-SMI): At line 0 in (none)
> Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
> Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
> Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
> Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
> Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
> Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
> Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
> Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
> Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
> Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
> Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
> Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
> Cannot find module (SNMPv2-TM): At line 0 in (none)
> Couldn't find mib reference: myNode
>  ---

Your path is wrong it doesnt know where you have installed the MIBS.
/usr/local/share/snmp/mibs is where the above can be found. Depending on
what OS
your running you may need to set environment variables such as MIBDIR and
MIBS=ALL etc
to find the above MIBS. You can of course examine the mib2c perl scripts
which are use to discover what you need
or refer to documentation on net-snmp web site.

Thanks,
Garyc

> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: perl(Term::ReadKey) error installing 5.1.1

2004-07-22 Thread Gary Clark



Yeh I had that exact problem yesterday. I am 
ensuring today that my Linux version of RedHat 9 is complete on my 
machine today.
I'm hoping that will resolve the issue and have all 
the .pm module etc. This is painful especially when I'm not sure if 
this is going to resolve
the problem.
 
I tried an earlier version of installation and only 
to "hit the obvious wall" of version mismatches. I will let you know how it 
goes.
 
Cheers,
Garyc

  - Original Message - 
  From: 
  Christina McAghon 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, July 22, 2004 9:45 
  AM
  Subject: perl(Term::ReadKey) error 
  installing 5.1.1
  I am trying to install version 
  5.1.1 on Redhat 9 and I am receiving the following error: # rpm -U net-snmp-5.1.1-1.i386.rpm error: Failed dependencies:         perl(Term::ReadKey) is 
  needed by net-snmp-5.1.1-1 However, the Term::ReadKey is installed on this machine...Any 
  ideas? cpan> install 
  Term::ReadKey Term::ReadKey is up to 
  date. cpan> test 
  Term::ReadKey Running test for module 
  Term::ReadKey Running make for 
  J/JS/JSTOWE/TermReadKey-2.21.tar.gz   Is already unwrapped into directory 
  /root/.cpan/build/TermReadKey-2.21   CPAN.pm: Going to build 
  J/JS/JSTOWE/TermReadKey-2.21.tar.gz Checking if your kit is complete... Looks good Writing Makefile for 
  Term::ReadKey cp ReadKey.pm 
  blib/lib/Term/ReadKey.pm AutoSplitting 
  blib/lib/Term/ReadKey.pm (blib/lib/auto/Term/ReadKey) /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp 
  -noprototypes -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap  ReadKey.xs 
  > ReadKey.xsc && mv ReadKey.xsc ReadKey.c gcc -c   -D_REENTRANT -D_GNU_SOURCE 
  -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe 
  -march=i386 -mcpu=i686   -DVERSION=\"2.21\" -DXS_VERSION=\"2.21\" -fPIC 
  "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   ReadKey.c 
  Running Mkbootstrap for Term::ReadKey 
  () chmod 644 ReadKey.bs 
  rm -f 
  blib/arch/auto/Term/ReadKey/ReadKey.so LD_RUN_PATH="" gcc  -shared -L/usr/local/lib ReadKey.o  -o 
  blib/arch/auto/Term/ReadKey/ReadKey.so chmod 755 blib/arch/auto/Term/ReadKey/ReadKey.so cp ReadKey.bs 
  blib/arch/auto/Term/ReadKey/ReadKey.bs chmod 644 blib/arch/auto/Term/ReadKey/ReadKey.bs Manifying blib/man3/Term::ReadKey.3pm   /usr/bin/make  -- OK Running make test Prepending /root/.cpan/build/TermReadKey-2.21/blib/arch 
  /root/.cpan/build/TermReadKey-2.21/blib/lib to PERL5LIB. PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" 
  "-Iblib/arch" -w test.pl 1 .. 8 
  ok 1 ok 2 ok 3 ok 4 ok 
  5 ok 6 ok 7 ok 
  8   /usr/bin/make test -- 
  OK cpan>


Re: perl(Term::ReadKey) error installing 5.1.1

2004-07-22 Thread Gary Clark
We are doing a complete installation of linux redhat version 9 and will let
you know how the ship goes.

Cheers,
Garyc
- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Christina McAghon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 22, 2004 10:35 AM
Subject: Re: perl(Term::ReadKey) error installing 5.1.1


>
> > # rpm -U net-snmp-5.1.1-1.i386.rpm
> > error: Failed dependencies:
> > perl(Term::ReadKey) is needed by net-snmp-5.1.1-1
> >
> > However, the Term::ReadKey is installed on this machine...Any ideas?
> >
> > cpan> install Term::ReadKey
> > Term::ReadKey is up to date.
>
> But how was this installed?
> In particular, was it installed via an RPM, or manually?
> If it was installed manually, then the RPM database won't
> have any idea that it is available, hence the error message.
>
> If that's the only thing it's complaining about you're probably
> OK to use "-force", but that something of a slippery slope.
> In general, it's preferable to try and use RPMs for all installs.
>
> Dave
>
> PS: Please - no HTML mail.  Thanks
>
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Version 9 and linux red hat installation problem

2004-07-26 Thread Gary Clark
Hello,

Reinstalled linux red hat version 9. Then promptly grabbed the
net-snmp-5.1.1.rh9.i686.rpm.

I then performed the magic:

>rpm -i net-snmp-5.1.1.rh9.i686.rpm

to get the below:

perl (Tk) is needed by net-snmp-5.1.1

I then grabbed the package Tk800-804.027.tar.gz. Performed the necessary
gunzipped and untar. Rebuilt the TK and performed
make install. All went a charm.

Then I tried again:

>rpm -i net-snmp-5.1.1.rh9.i686.rpm

to get the below:

perl (Tk) is needed by net-snmp-5.1.1

Anybody know what I need to do to get past this?

Cheers,
Garyc



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


UnLinked OID

2004-07-27 Thread Gary Clark



Hello,
 
Ok I read the FAQ on UnLinked OID and even though 
its a relevant definition I dont think 
it relates to the problem I am seeing.
 
I am basically building a simple table,populate all 
the object elements etc and then run mib2c.
It goes ahead and constructs the templates and 
kindly asks me to fill the functionality. 
 
When I alter a name of an element in the table and 
make the correct changes to the MIB. It then
throws out the complaint of UnLinked OID. When I 
revert back to the original change it then happily goes
ahead and regenerates the templates.
 
What I'm gathering its already performed some 
storage
and is getting confused when another another 
attempt is made to generate the code.
 
Where can I remove the stale objects?
 
Much apprecaited,
Garyc


Re: UnLinked OID

2004-07-27 Thread Gary Clark

Hi,

The below version will generate the templates i.e the .c and .h files.
However if after generating the templates
I want to change the MIB again i.e change tcpConnState name to
tcpConnNewState then I will see the UnLinked OID.
I think I need to remove some files just dont know where.

Much appreciated,
Garyc
ERLANG-IDS-MIB DEFINITIONS ::= BEGIN

IMPORTS
   MODULE-COMPLIANCE, OBJECT-GROUP  FROM SNMPv2-CONF
   MODULE-IDENTITY, OBJECT-TYPE, IpAddress,Integer32,
   mib-2, experimental  FROM SNMPv2-SMI;

erlangIdsMIB MODULE-IDENTITY
   LAST-UPDATED "20040722Z"
   ORGANIZATION "Erlang Technology"
   CONTACT-INFO
    "   Gary Clark
Email:  garyc.com"
   DESCRIPTION
"The MIB module for entities implementing TCP over IPv6."
   ::= { experimental 90 }

psb OBJECT IDENTIFIER ::= { experimental 6 }
psbInterfaces OBJECT IDENTIFIER ::= { psb 1 }
psbSystem OBJECT IDENTIFIER ::= { psb 14 }

-- objects specific to IDS
psbBoardTable OBJECT-TYPE
   SYNTAX SEQUENCE OF psbBoardEntry
   MAX-ACCESS read-write
   STATUS current
   DESCRIPTION
" A Table containing psbDevice"
   ::= { psbSystem 15}

psbBoardEntry OBJECT-TYPE
   SYNTAX psbBoardDetailsEntry
   MAX-ACCESS read-write
   STATUS current
   DESCRIPTION
  " A conceptual row of tcpTable"
   INDEX { tcpConnState,
   tcpConnLocalPort }

   ::= {psbBoardTable 1}

psbDetEntry ::= SEQUENCE {
tcpConnState INTEGER,
tcpConnLocalPort INTEGER,
tcpConnLocalAddress IpAddress}

tcpConnState OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Board Index identifier"
::= { psbDetEntry 1 }

tcpConnLocalPort OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Local port value"
::= { psbDetEntry 2 }


tcpConnLocalAddress OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Ip Address"
::= { psbDetEntry 3 }


END

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 27, 2004 11:25 AM
Subject: Re: UnLinked OID


>
> > When I alter a name of an element in the table and make the correct
> > changes to the MIB. It then throws out the complaint of UnLinked OID.
> > When I revert back to the original change it then happily goes
> > ahead and regenerates the templates.
>
> What exactly is the change you make to the MIB ?
> Is this the same entry that the "unlinked OID" refers to?
>
> It would probably be easier to help if you provided a
> copy of the (broken) MIB.
>
> Dave
>
> PS: Please - no HTML mail.   Thanks
>
>



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: UnLinked OID

2004-07-27 Thread Gary Clark

Found the problems with the below. It should be:
Ahh time to begin


ERLANG-IDS-MIB DEFINITIONS ::= BEGIN
> 
> IMPORTS
>MODULE-COMPLIANCE, OBJECT-GROUP  FROM SNMPv2-CONF
>MODULE-IDENTITY, OBJECT-TYPE, IpAddress,Integer32,
>mib-2, experimental  FROM SNMPv2-SMI;
> 
> erlangIdsMIB MODULE-IDENTITY
>LAST-UPDATED "20040722Z"
>ORGANIZATION "Erlang Technology"
>CONTACT-INFO
> "   Gary Clark
> Email:  garyc.com"
>DESCRIPTION
> "The MIB module for entities implementing TCP over IPv6."
>::= { experimental 90 }
> 
> psb OBJECT IDENTIFIER ::= { experimental 6 }
> psbInterfaces OBJECT IDENTIFIER ::= { psb 1 }
> psbSystem OBJECT IDENTIFIER ::= { psb 14 }
> 
> -- objects specific to IDS
> psbBoardTable OBJECT-TYPE
>SYNTAX SEQUENCE OF psbBoardEntry
>MAX-ACCESS read-write
>STATUS current
>DESCRIPTION
> " A Table containing psbDevice"
>::= { psbSystem 15}
> 
> psbBoardEntry OBJECT-TYPE
>SYNTAX psbBoardDetailsEntry
>MAX-ACCESS read-write
>STATUS current
>DESCRIPTION
>   " A conceptual row of tcpTable"
>INDEX { tcpConnState,
>tcpConnLocalPort }
> 
>::= {psbBoardTable 1}
> 
> psbBoardDetailsEntry ::= SEQUENCE {
> tcpConnState INTEGER,
> tcpConnLocalPort INTEGER,
> tcpConnLocalAddress IpAddress}
> 
> tcpConnState OBJECT-TYPE
> SYNTAX INTEGER
> MAX-ACCESS read-write
> STATUS current
> DESCRIPTION
> "Board Index identifier"
> ::= { psbBoardEntry 1 }
> 
> tcpConnLocalPort OBJECT-TYPE
> SYNTAX INTEGER
> MAX-ACCESS read-write
> STATUS current
> DESCRIPTION
> "Local port value"
> ::= { psbBoardEntry2 }
> 
> 
> tcpConnLocalAddress OBJECT-TYPE
> SYNTAX IpAddress
> MAX-ACCESS read-write
> STATUS current
> DESCRIPTION
> "Ip Address"
> ::= { psbBoardEntry 3 }
> 
> 
> END

> 
> Hi,
> 
> The below version will generate the templates i.e the .c and .h files.
> However if after generating the templates
> I want to change the MIB again i.e change tcpConnState name to
> tcpConnNewState then I will see the UnLinked OID.
> I think I need to remove some files just dont know where.
> 
> Much appreciated,
> Garyc
> ERLANG-IDS-MIB DEFINITIONS ::= BEGIN
> 
> IMPORTS
>MODULE-COMPLIANCE, OBJECT-GROUP  FROM SNMPv2-CONF
>MODULE-IDENTITY, OBJECT-TYPE, IpAddress,Integer32,
>mib-2, experimental  FROM SNMPv2-SMI;
> 
> erlangIdsMIB MODULE-IDENTITY
>LAST-UPDATED "20040722Z"
>ORGANIZATION "Erlang Technology"
>CONTACT-INFO
> "   Gary Clark
> Email:  garyc.com"
>DESCRIPTION
> "The MIB module for entities implementing TCP over IPv6."
>::= { experimental 90 }
> 
> psb OBJECT IDENTIFIER ::= { experimental 6 }
> psbInterfaces OBJECT IDENTIFIER ::= { psb 1 }
> psbSystem OBJECT IDENTIFIER ::= { psb 14 }
> 
> -- objects specific to IDS
> psbBoardTable OBJECT-TYPE
>SYNTAX SEQUENCE OF psbBoardEntry
>MAX-ACCESS read-write
>STATUS current
>DESCRIPTION
> " A Table containing psbDevice"
>::= { psbSystem 15}
> 
> psbBoardEntry OBJECT-TYPE
>SYNTAX psbBoardDetailsEntry
>MAX-ACCESS read-write
>STATUS current
>DESCRIPTION
>   " A conceptual row of tcpTable"
>INDEX { tcpConnState,
>tcpConnLocalPort }
> 
>::= {psbBoardTable 1}
> 
> psbDetEntry ::= SEQUENCE {
> tcpConnState INTEGER,
> tcpConnLocalPort INTEGER,
> tcpConnLocalAddress IpAddress}
> 
> tcpConnState OBJECT-TYPE
> SYNTAX INTEGER
> MAX-ACCESS read-write
> STATUS current
> DESCRIPTION
> "Board Index identifier"
> ::= { psbDetEntry 1 }
> 
> tcpConnLocalPort OBJECT-TYPE
> SYNTAX INTEGER
> MAX-ACCESS read-write
> STATUS current
> DESCRIPTION
> "Local port value"
> ::= { psbDetEntry 2 }
> 
> 
> tcpConnLocalAddress OBJECT-TYPE
> SYNTAX IpAddress
> MAX-ACCESS read-write
> STATUS current
> DESCRIPTION
> "Ip Address"
> ::= { psbDetEntry 3 }
> 
> 
> END
> 
> - Original Message -
> From: "Dave Shiel

walking snmpd

2004-07-30 Thread Gary Clark
hello,

I am running Linux version 9 with version 5.1.1 of net-snmp.

I have added and built the MIB and included it into the directory
/usr/local/share/snmp directory.
Generated the templates successfully and moved them into mibgroup and
created the top header with
the "config_require(mibfiles.c) etc".

Performed ./configure and performed make.

Ok I am using the snmpd -d to debug whats happenning. When I perform
snmpwalk -v 1 -c erlang local host .1.3.6.1.2.1.6.15

I see the the snmp daemon Receiving a get request and sending a response to
the local machine:

TCP-MIB::tcpOutRsts.0 = counter32: 2

Marvelous. Just what I expected. Ok when I try to do the same with myMib. I
see the snmp daemon receive
and send but I dont see anything on my machine. The snmptranslate for the
given OID works fine though.

Questions do I have to perform a set on an entry within the MIB prior to
performing the "snmpwalk" command?
Is there a stage I have missed?

Cheers,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: walking snmpd

2004-07-30 Thread Gary Clark
Much appreciated Wes. The light bulb has just lit-up.

Thanks for the quick response.

Cheers,
Garyc

- Original Message -
From: "Wes Hardaker" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 30, 2004 3:14 PM
Subject: Re: walking snmpd


> >>>>> On Fri, 30 Jul 2004 11:41:47 -0500, "Gary Clark"
<[EMAIL PROTECTED]> said:
>
> Gary> Questions do I have to perform a set on an entry within the MIB
prior to
> Gary> performing the "snmpwalk" command?
> Gary> Is there a stage I have missed?
>
> Did you actually write code to support that table within snmpd?  If
> you didn't or you just used the template code that mib2c produced, it
> won't actually return any real data until you make it.
>
> --
> Wes Hardaker
> Sparta



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Generated templates

2004-08-02 Thread Gary Clark
Hello,

I have generated the templates using the mib2c command.
I initially chose to use the templates that contained tables which are
contained in internal memory.
When the agent dies...the tables die without any persistence.
Having tried out the get and set routines which work like a charm on the
tables on those tables.

I would like to use persistence for the MIBS and need some advice on this. I
would like to still use the
internal memory table generated code and simply add extensions to this code
so that I can add close a file.
Is there a standard procedure for creating persistence?

Thanks,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Generated templates

2004-08-03 Thread Gary Clark
Hi Dave,

Much appreciated the response.

I will attempt to extend the current usage and preserve what I have.

Thanks,
Garyc
- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 03, 2004 9:01 AM
Subject: Re: Generated templates


> [ 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.   ]
>
>
> > I might have to scrap my original ideas.
>
> No - there's no need to do that.
>
> > I originally thought that I could take the mib2c generated code to use
> > with the agent. When creating the generated code I chose to use internal
> > memory. As mentioned this in its current state has only temporary
storage
> > and when the agent is killed the table contents are removed.
>
> Yes - that's right.
>
> >However I wanted to use
> > external memory to save the MIB entries in persistence. Something that
the
> > generated code did not elude to.
>
> No.
> But you should be able to *extend* the mib2c-generated code to save
> and the internal state when the agent shuts down, and restore it
> when the agent starts up.
>The mib2c-generated code doesn't do this for you, but it's only
> intended as a starting template.  It's perfectly reasonable to add
> this sort of functionality into it.
>
>
> > When I attempted to use the mib2c generated code that would build for
> > external memory it derived a whole new style of code.
> > Which looked alot less empty and needed more implementation. This I
thought
> > may not be the quickest way.
>
>
> OK - it sounds as if there's some confusion of terminology here.
> When mib2c talks about "external" data, it's really meaning a MIB
> implementation where you're modelling something that's being handled
> by some other subsystem (e.g. the kernel, or network drivers, or some
> other process).   The code that's generated is intended to act as an
> interface between this external data, and the SNMP agent.
>
> When it talks about "internal" data, it means that the agent itself
> is responsible for holding that data, which inherently means that the
> agent is also responsible for saving and restoring it, if the state
> of this MIB should persist across agent restarts.
>
> If you've got a MIB that works for a single run, then there's no need
> to throw everything away and start again.
>
>
> > I guess I need to re-examine the examples again and then use an
> > example to build from and then go from there. Its Ok I just needed
> > a place to start.
>
> Have a look at how the 'system_mib.c' file deals with the token
> "psyslocation"  (for "persistent sysLocation").   That uses the config
> files to save and restore the current value of "sysLocation".
> (It's not an ideal example, 'cos there's some unusual behaviour
> w.r.t. "syslocation" vs "psyslocation", but if you ignore this and
> concentrate on "psyslocation" then it's a reasonable starting point).
>
> Dave
>
>
>
> ---
> This SF.Net email is sponsored by OSTG. Have you noticed the changes on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


cool totally cool

2004-08-05 Thread Gary Clark
Hi,

I was advised to stick with the current approach of generating template code
and filling the code out to get persistence to work.
Basically I can save the mib to a persistence file and reload the
persistence into the mib. When set requests are performed the agent updates
the mib and the persistence file.
Thanks for the advice I now have a mib loaded into the trees, matching the
contents of the persistence. Its so cool. I'm having one
of those rare engineering moments that what I'm doing is worthwhile.

Much appreciated,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Merge changes?

2004-08-05 Thread Gary Clark
Hello,

After I have implemented the changes in the template code generated the I
realise that I need to add something to the MIB.
Can I just make the change to the XX-MIB.txt file and then make the changes
to the .c and .h files and rebuild?

Or are there additional bindings needed?

Thanks,
Garyc



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: no response

2004-08-12 Thread Gary Clark
Perform ps -A to see if the agent is running. How did you build the agent
V2,V1?

Thanks,
Garyc

- Original Message -
From: "Marlena Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 12, 2004 2:19 PM
Subject: RE: no response


> Yes, snmpd is running. What should I specifically be looking to check in
the
> .conf file?
>
>
> >From: John Blake <[EMAIL PROTECTED]>
> >To: 'Marlena Miller' <[EMAIL PROTECTED]>
> >Subject: RE: no response
> >Date: Thu, 12 Aug 2004 15:01:50 -0400
> >
> >
> >  And the snmpd is running?
> >  If it is, reverify the .conf
> >
> >
> >-Original Message-
> >From: Marlena Miller [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, August 12, 2004 2:59 PM
> >To: John Blake
> >Cc: [EMAIL PROTECTED]
> >Subject: RE: no response
> >
> >
> >I am doing everything on the local machine.
> >
> >
> > >From: John Blake <[EMAIL PROTECTED]>
> > >To: 'Marlena Miller' <[EMAIL PROTECTED]>
> > >Subject: RE: no response
> > >Date: Thu, 12 Aug 2004 14:57:11 -0400
> > >
> > >
> > >  Can you ping the box you are trying to do snmp to?
> > >
> > >
> > >
> > >-Original Message-
> > >From: Marlena Miller [mailto:[EMAIL PROTECTED]
> > >Sent: Thursday, August 12, 2004 2:54 PM
> > >To: John Blake
> > >Cc: [EMAIL PROTECTED]
> > >Subject: RE: no response
> > >
> > >
> > >That results in the same error.
> > >
> > >
> > > >From: John Blake <[EMAIL PROTECTED]>
> > > >To: 'Marlena Miller' <[EMAIL PROTECTED]>
> > > >Subject: RE: no response
> > > >Date: Thu, 12 Aug 2004 14:50:36 -0400
> > > >
> > > >
> > > >  try  snmpwalk -c public localhost system
> > > >
> > > >
> > > >-Original Message-
> > > >From: Marlena Miller [mailto:[EMAIL PROTECTED]
> > > >Sent: Thursday, August 12, 2004 2:37 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: no response
> > > >
> > > >
> > > >I have built and installed snmp, and have started snmpd. When I
attempt
> > > >anything like:
> > > >
> > > >% snmpwalk localhost public system
> > > >
> > > >I get the following error:
> > > >
> > > >Timeout: no response from localhost.
> > > >
> > > >My config file is very basic (I haven't even changed the community
name
> > >to
> > > >something other then public yet). Can someone please tell me where I
> > >should
> > > >look to debug this problem?
> > > >
> > > >Marlena
> > > >
> > > >_
> > > >Don't just search. Find. Check out the new MSN Search!
> > > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > > >
> > > >
> > > >
> > > >---
> > > >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank
Media
> > > >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> > > >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> > > >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> > > >___
> > > >Net-snmp-users mailing list
> > > >[EMAIL PROTECTED]
> > > >Please see the following page to unsubscribe or change other options:
> > > >https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> > >
> > >_
> > >Don't just search. Find. Check out the new MSN Search!
> > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >_
> >Is your PC infected? Get a FREE online computer virus scan from McAfee(r)
> >Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> _
> On the road to retirement? Check out MSN Life Events for advice on how to
> get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>
>
>
> ---
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Policy for commiting mibs?

2004-08-19 Thread Gary Clark
Hello,

Is there a policy for commiting MIBS to persistence in net-snmp. At the
moment all SET actions are followed by a COMMIT.
I then cycle through the columns of the row and insert them into the
persistence file. Not really what I should be doing.
Only when a selected field is set (i.e FLAG_COMMIT) should I commit the
entries to persistence? I know this could
be a potential solution. However is that what is generally adopted and
accepted?

Much appreciated,
Garyc

P.S

This is so cool.



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: subagent prob

2004-08-20 Thread Gary Clark
Hi,

1) Ensure that you perform a set operation on the oid prior to a get.
2) Double check you mib is correct.
 3) Ensure that the index value is included in you get operation.

Thanks,
Garyc
- Original Message - 
From: "deepa chakkunni" <[EMAIL PROTECTED]>
To: "netsnmpusers" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 20, 2004 12:52 AM
Subject: subagent prob


> hi all,
> i was trying with subagent daemon tutorial. I have
> added the mib'NET-SNMP-TUTORIAL.mib' in
> /usr/local/share/snmp/mibs/ and executed the command
> export MIBS=ALL.  I hav added master agentx in my conf
> file. The example deamon is successfully created.
> Still my snmpget is saying 'no object available at
> this oid'. snmpd is working and example deamon is
> running. Could anybody help me to solve the problem.
> deepa
> 
> 
> =
> "It's not your APTITUDE but your ATTITUDE that decides your
> ALTITUDE!".Take care
> 
> 
> 
> __
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 
> 
> ---
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Being persistent with persistence

2004-08-28 Thread Gary Clark
Hello,

Ok I messed up somewhere. Just dont know where. I think its an environment
variable issue?
I have been using persistence. Extracting tokens and creating oids in my MIB
tree and all is well.
Then I did something which has caused my environment to change. I cannot get
persistence to load again.

Here is what I am doing:

./configure --with-mib-modules=psb_test
make

Everything builds fine and I can perform set and get requests on the oid. I
register the app handler
and create a function that should be called.

snmpd_register_config_handler("myFredToken",parse_func,NULL,NULL);


I manully modify the /var/snmpd.conf to contain:

myfredToken 1

I dont see my parse function being called. I enabled trace and saw that the
token is getting registered however no callback is made.
This is probably going to be blatently obvious to the net-snmp gurus, myself
a humble novice has been stumped.

However I think its my configuration environment. Likely SNMPCONFPATH
environment variable?

I use snmpconf -g basic_setup. This produces the snmpd.conf configuration. I
point the SNMPCONFPATH to /usr/local/share/snmp?

Is this OK.

If anybody can shed some light on this blind fellow much appreciated and
promise to return help if I can.

Cheers,
Garyc





---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Being persistent with persistence

2004-08-28 Thread Gary Clark
Hello,

Ok I was on the right path. Basically I completely forgot the little trick I
did.

This is what confused me. I have two configuration files both called
snmpd.conf.
One is for persistence and one is for general configuration which is
produced using snmpconf -g basic_setup.
My SNMPCONFPATH was set to the point general at /usr/var/local/share. The
persistence configuration resides in /var/net-snmp.

I was manually inserting my token into the persistence file. Thinking that
it would be
read and my callback function would be called. Idiot, total idiot. The
callback function would only be called if the token resided in the
snmpd.conf file pointed to...yes you get it SNMPCONFPATH.
At some point I must of altered this environment variable to point to
/var/net-snmp and pick up the tokens.

The reason why I am doing this. Basically when the agent restarts I want to
pull the tokens from the persistence and re-create the oids.

The question begs. The SNMPCONFPATH points to the general agent
configuration. Should there be two configuration files?
I think there should just be one right?

Thanks,
Garyc

- Original Message -
From: "Gary Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 28, 2004 11:39 AM
Subject: Being persistent with persistence


> Hello,
>
> Ok I messed up somewhere. Just dont know where. I think its an environment
> variable issue?
> I have been using persistence. Extracting tokens and creating oids in my
MIB
> tree and all is well.
> Then I did something which has caused my environment to change. I cannot
get
> persistence to load again.
>
> Here is what I am doing:
>
> ./configure --with-mib-modules=psb_test
> make
>
> Everything builds fine and I can perform set and get requests on the oid.
I
> register the app handler
> and create a function that should be called.
>
> snmpd_register_config_handler("myFredToken",parse_func,NULL,NULL);
>
>
> I manully modify the /var/snmpd.conf to contain:
>
> myfredToken 1
>
> I dont see my parse function being called. I enabled trace and saw that
the
> token is getting registered however no callback is made.
> This is probably going to be blatently obvious to the net-snmp gurus,
myself
> a humble novice has been stumped.
>
> However I think its my configuration environment. Likely SNMPCONFPATH
> environment variable?
>
> I use snmpconf -g basic_setup. This produces the snmpd.conf configuration.
I
> point the SNMPCONFPATH to /usr/local/share/snmp?
>
> Is this OK.
>
> If anybody can shed some light on this blind fellow much appreciated and
> promise to return help if I can.
>
> Cheers,
> Garyc
>
>
>
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Being persistent with persistence

2004-08-29 Thread Gary Clark
Ahh. Much appreciated.

Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: "Gary Clark" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, August 28, 2004 7:49 PM
Subject: Re: Being persistent with persistence


> On Sat, 28 Aug 2004 15:51:36 -0500 Gary wrote:
> GC> This is what confused me. I have two configuration files both called
> GC> snmpd.conf.
> GC> One is for persistence and one is for general configuration which is
> GC> produced using snmpconf -g basic_setup.
> GC> My SNMPCONFPATH was set to the point general at /usr/var/local/share.
The
> GC> persistence configuration resides in /var/net-snmp.
> GC>
> GC> I was manually inserting my token into the persistence file. Thinking
that
> GC> it would be
> GC> read and my callback function would be called. Idiot, total idiot. The
> GC> callback function would only be called if the token resided in the
> GC> snmpd.conf file pointed to...yes you get it SNMPCONFPATH.
> GC> At some point I must of altered this environment variable to point to
> GC> /var/net-snmp and pick up the tokens.
> GC>
> GC> The reason why I am doing this. Basically when the agent restarts I
want to
> GC> pull the tokens from the persistence and re-create the oids.
> GC>
> GC> The question begs. The SNMPCONFPATH points to the general agent
> GC> configuration.
>
> No, SNMPCONFPATH is a path. If there are multipe directories, multiple
files
> can be read. If you unset SNMPCONFPATH, you'll find that both will
magically be
> read. Run with-Dread_config to watch it in action. The default will look
> something like this:
>
> read_config: reading premib configuration tokens
> read_config: config path used:
>
/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/rks/.snm
p:
> /var/net-snmp
>
>
> GC> Should there be two configuration files?
> GC> I think there should just be one right?
>
> Nope. The persistence file is separate because it is re-written by the
agent.
> The main configuration file is usually pretty static.
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Saving persistent values *now*

2004-08-30 Thread Gary Clark


]
>>I've got some persistent values working but it appears that they are only
saved when my sub-agent is shutting down.  If it (or the >>sysetm it's on)
crashes, the values are lost.  This seems to be unusual or undesireable (at
least for me) behavior.  I guess you could >>argue that you don't want to
save on every set as numerous sets might be batched up in one request.  Is
that the rational for the >>default behavior?

Ok what I do is keep a local copy of the set request data in an array. This
could easily be a linked list of objects. When a set request is made I check
a COMMIT flags in my MIB to see if that is set. If it is set when the commit
function gets called (following the set action) I then pack the contents of
the row into a message. This message is then parsed and columns extracted
and pushed into a
linked list/ vector. The store function is called and writes the linked list
into persistence. By doing this updates to persistence are passed to the
user and not when the agent is killed. Make sence?

Cheers,
Garyc

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 30, 2004 11:06 AM
Subject: Saving persistent values *now*


> I've got some persistent values working but it appears that they are only
saved when my sub-agent is shutting down.  If it (or the sysetm it's on)
crashes, the values are lost.  This seems to be unusual or undesireable (at
least for me) behavior.  I guess you could argue that you don't want to save
on every set as numerous sets might be batched up in one request.  Is that
the rational for the default behavior?
>
> I'm guessing I can just call my SNMP_CALLBACK_STORE_DATA callback
explicitly when I feel the need.  Or is there a better idiom?
>
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Saving persistent values *now*

2004-08-31 Thread Gary Clark

>
> > 1) Have you built your genertated template OK using mib2c? yes/no
> >
> > 2) If yes you should see an initialization function being generated. At
> the
> > end of this function you should add the following:
> >
> >   /* Create the token handler */
> >  snmpd_register_config_handler(token,system_parse_config);
> >
> >  /* Register the function to write to persistence */
> >
> >
>
snmp_register_callback(SNMP_CALLBACK_LIBRARY,SNMP_CALLBACK_STORE_DATA,global
> > _store_func,NULL);
> >
> >  global_store_func() is your function that you have created to write
> to
> > persistence.
> >
> > 3)  When global store is called it will write whatever data you want and
> > place the contents in /var/net-snmpd/snmpd.conf
> > 4)   When you perform a set operation the set_action func is called
which
> > adds your set to the mib tree and following that the commit action is
> > called. Within this commit func() is where you will make the decision on
> > whether to commit the set data to persistence hence a COMMIT flag could
be
> > used or maybe the MSB of the field could be used of the oid value you
wish
> > to add into persistence.
> > This is when you will copy the contents of the set request to local data
> > structure which could be used in the global_store_func() to push that
data
> > into persistence.
> > 5) Note the data you write to persistence is in the format:
> >  token value
> > 6) When  you restart your agent again the function system_parse_config
> will
> > be called which will identify the token you have put into persistence.
In
> my
> > example I recreate the oid again from the persistence and rebuild the
mib
> > tree.
> >
> > 7) See the example system_mib.c under the mibgroup/mibII directory that
> > should give you an idea of how to do this.
> >
> > Cheers,
> > Garyc
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: "Gary Clark" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Monday, August 30, 2004 4:12 PM
> > Subject: Re: Saving persistent values *now*
> >
> >
> > > (I've read this 3 times but I guess it's been a long day 'cuz it
doesn't
> > make sense to me.)
> > >
> > > > Ok what I do is keep a local copy
> > >
> > > Local to what function?  Where?
> > >
> > > > of the set request data in an array. This
> > > > could easily be a linked list of objects. When a set request is
> > > > made I check
> > > > a COMMIT flags in my MIB to see if that is set. If it is set when
> > > > the commit
> > > > function gets called (following the set action) I then pack the
> > > > contents of
> > > > the row into a message. This message is then parsed and columns
> > > > extractedand pushed into a
> > > > linked list/ vector. The store function is called and writes the
> > > > linked list
> > > > into persistence. By doing this updates to persistence are passed
> > > > to the
> > > > user and not when the agent is killed. Make sence?
> > >
> > > It sounds like you're talking about adding a row to a table.  I'm
> > updating, not adding, and I'm doing one value on each of several rows.
> But
> > however it's done, my question is how do I force persistent values to be
> > stored when set?  Can I safely and reasonably call the callback I
> registered
> > to save on shutdown?  Since I don't use any of the values it gets
passed,
> > can I call
> > >
> > >mySaveFunc(0, 0, NULL, NULL);
> > >
> > > ?
> > >
> > >  Chris
> > >
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by BEA Weblogic Workshop
> > > FREE Java Enterprise J2EE developer tools!
> > > Get your free copy of BEA WebLogic Workshop 8.1 today.
> > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> > > ___
> > > Net-snmp-users mailing list
> > > [EMAIL PROTECTED]
> > > Please see the following page to unsubscribe or change other options:
> > > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> >
>



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: configuring VLANS or multiple variable sets in one SNMP command

2004-08-31 Thread Gary Clark
Well I designed a VLAN on one of our routers and it worked. But that is not
what this user group is for. The set commands as far as I know access a
single oid within your MIB. But you could create your own SET request which
would use the individual SET requests? A wee' wrapper.
It shouldnt be that difficult to do. The applications provided for
snmptranslate and set etc are pretty cool.

MIB2c just provides the template code which us mere mortals have to conjure
our applications.

Cheers,
Garyc

- Original Message -
From: "MrD" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 31, 2004 5:04 PM
Subject: configuring VLANS or multiple variable sets in one SNMP command


> Hello,
> Sorry if this posts twice :)
>
> I recently found the net-snmp lib and tools and I love
> them:) Thanks all involved. I've built them from the
> source on a linux system very easy just one failure
> for perl doing the test..
> Can't load '../blib/arch/auto/NetSNMP/agent/agent.so'
> for module NetSNMP::agent:
> /usr/lib/libnetsnmpmibs.so.5: undefined symbol:
> rpmdbClose at
> /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm
> line 229.
>  at test.pl line 11
> Compilation failed in require at test.pl line 11.
> BEGIN failed--compilation aborted at test.pl line 11.
>
> But this is not my question. If you know the answer
> great but my real concern right now is...
>
> Can multiple variables be set in differnet modules in
> one snmp set command?
>
> I know that mib2c prototypes a function for each
> variable to be set is this the only way snmp set will
> work, one variable or one module at a time?
>
> I'm not a snmp expert so forgive me if my ignorance is
> showing :)
>
> Has anyone worked on configuring switchs, VLANs
> specifically, via snmp? If so I'd love to here from
> you and pointers to anything you can share...
>
> Thanks in advance :)
> Dave
>
>
>
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: configuring VLANS or multiple variable sets in one SNMP command

2004-09-01 Thread Gary Clark
I didnt know we could pass multiple requests. Thats good.

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "MrD" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 31, 2004 6:37 PM
Subject: Re: configuring VLANS or multiple variable sets in one SNMP command


> On Tue, 31 Aug 2004 15:04:31 -0700 (PDT) MrD wrote:
> M> Can multiple variables be set in differnet modules in
> M> one snmp set command?
>
> Yes.
>
> M> I know that mib2c prototypes a function for each
> M> variable to be set is this the only way snmp set will
> M> work, one variable or one module at a time?
>
> The old style (v4) API did pass in a single request at a time. The new
style
> (v5) passes in a list of requests.
>
> --
> Robert Story; NET-SNMP Junkie 
> 
> Archive:

>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Adding traps

2004-09-10 Thread Gary Clark
Hello,

I cannot at present get the traphandle to call the traphandle script.

At present I can run the snmptrapd and I have configured the snmp.conf to
receive traps.
I can see the coldStart trap being received but my script is not run.

Within the snmptrapd.conf file I added the following line:

traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl /usr/local/share/snmp/cold.pl

The perl script runs fine by itself.

I have placed the snmptrapd.conf within the directory /usr/local/share/snmp.

I cannot see the cold.pl script being ran since no output from the script is
seen.

Have I got to set some environment variable? I am running the trapd using:

./snmptrapd -f -Le

Any ideas? I know this should be obvious? Just missing something

Cheers,
Garyc



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Adding traps

2004-09-10 Thread Gary Clark
Hi Dave,

Yep did that. Its looks like its doing something different.

I see it crashing with a "broken pipe"? Any ideas?

Cheers,
Garyc

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 9:26 AM
Subject: Re: Adding traps


>
> > I can see the coldStart trap being received but my script is not run.
> >
> > Within the snmptrapd.conf file I added the following line:
> >
> > traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl
>
> Try
>   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl
>
>
> Dave
>
>
>
> ---
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Adding traps

2004-09-10 Thread Gary Clark
Hello,

The problem I'm seeing is that the snmptrapd.conf I dont think is being
accessed due to the script not being ran.

The snmptrapd.conf: now contains the following which Dave recommended:

   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl

I then used the following "cold.pl" perl script:

#!/usr/bin/perl -w

print "At last the coldStart handler is alive!!\n";

sub getline()
{
while ()
 {
  my $line =$_;
  chomp ($line);
  print $line;
  }
}
sub main()
{
  getline();
}
main();

Simple. It accepts lines from STDIN and prints them out. This looks ok?
So if I dont see any output line I dont think the configuration is being
accessed.
Can somebody enlighten me on this? Is it an environment issue, if so how can
I determine this?
The snmptrapd.conf is located in /usr/local/share/snmp.

I'm running the trapd and it does receive the coldStart trap I just dont see
my script being ran.

Cheers,
Garyc
- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 9:26 AM
Subject: Re: Adding traps


>
> > I can see the coldStart trap being received but my script is not run.
> >
> > Within the snmptrapd.conf file I added the following line:
> >
> > traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl
>
> Try
>   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
/usr/local/share/snmp/cold.pl
>
>
> Dave



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Adding traps

2004-09-10 Thread Gary Clark
Hello,

I correct the perl script to dump to a text file and everything works fine.

Thanks,
garyc

- Original Message -
From: "Gary Clark" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>; "Dave Shield"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 3:36 PM
Subject: Re: Adding traps


> Hello,
>
> By turning on the debug trace on the trace:
>
> snmptrapd -f -D -Lf dummy
>
> I can capture all the dump.
>
> I could then view the trace and saw that indeed the token "traphandler"
did
> get registered and a call was being made to my
> handler. My perl script was handling the trap handler call incorrectly.
But
> of course.
>
> Thanks,
> Garyc
>
> - Original Message -
> From: "Gary Clark" <[EMAIL PROTECTED]>
> To: "Dave Shield" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, September 10, 2004 12:48 PM
> Subject: Re: Adding traps
>
>
> > Hello,
> >
> > The problem I'm seeing is that the snmptrapd.conf I dont think is being
> > accessed due to the script not being ran.
> >
> > The snmptrapd.conf: now contains the following which Dave recommended:
> >
> >traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
> > /usr/local/share/snmp/cold.pl
> >
> > I then used the following "cold.pl" perl script:
> >
> > #!/usr/bin/perl -w
> >
> > print "At last the coldStart handler is alive!!\n";
> >
> > sub getline()
> > {
> > while ()
> >  {
> >   my $line =$_;
> >   chomp ($line);
> >   print $line;
> >   }
> > }
> > sub main()
> > {
> >   getline();
> > }
> > main();
> >
> > Simple. It accepts lines from STDIN and prints them out. This looks ok?
> > So if I dont see any output line I dont think the configuration is being
> > accessed.
> > Can somebody enlighten me on this? Is it an environment issue, if so how
> can
> > I determine this?
> > The snmptrapd.conf is located in /usr/local/share/snmp.
> >
> > I'm running the trapd and it does receive the coldStart trap I just dont
> see
> > my script being ran.
> >
> > Cheers,
> > Garyc
> > - Original Message -
> > From: "Dave Shield" <[EMAIL PROTECTED]>
> > To: "Gary Clark" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, September 10, 2004 9:26 AM
> > Subject: Re: Adding traps
> >
> >
> > >
> > > > I can see the coldStart trap being received but my script is not
run.
> > > >
> > > > Within the snmptrapd.conf file I added the following line:
> > > >
> > > > traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl
> > /usr/local/share/snmp/cold.pl
> > >
> > > Try
> > >   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
> > /usr/local/share/snmp/cold.pl
> > >
> > >
> > > Dave
> >
> >
> >
> > ---
> > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> > Project Admins to receive an Apple iPod Mini FREE for your judgement on
> > who ports your project to Linux PPC the best. Sponsored by IBM.
> > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
> > ___
> > Net-snmp-users mailing list
> > [EMAIL PROTECTED]
> > Please see the following page to unsubscribe or change other options:
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Newbie : New MIB

2004-09-10 Thread Gary Clark

Hiya,

What I did when trying (still trying) to understand this baby was fill it
with trace. There are examples already in the code.
However run the snmpd agent with -d or -D this will dump allow you to see
some action. See the log file in /var/net-snmp/snmpd.log.

Providing you have built everything correctly you should be able to perform
snmpset and snmpget requests on the oid.
Note you need to fill the template code with your specific needs.
In its present state it will have the capability of allowing get and set
requests but may need embellishing.
But its upto to you to build the persistence and create your own data
structures to manage the contexts.

Thanks,
Garyc

- Original Message -
From: "Preethy Yarlagadda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 2:04 PM
Subject: Newbie : New MIB


> Hi everyone,
>
> I am a student implementing a project for one of my classes. I want to
> add a new MIB and poll the values. I tried to follow all the steps
> given at http://www.net-snmp.org/tutorial-5/toolkit/mib_module/index.html
>
> Immediately after adding the MIB, I can see everything through
> snmptranslate but once I build it into the agent I am getting the
> unknown Object Identifier error. I am listing down the steps I
> followed.
> 1. Defined a new MIB with a simple scalar variable.
> (Extended netSnmpPlaypen)
> 2. Used mib2c to generate .c and .h files
> 3. Moved those files into agent/mibgroup directory
> 4. Ran the configure script with the object variable
> ./configure --with-mib-modules="myModuleObject"
> 5. Build the agent
> make
> 6.Installed everything
> make install
>
> 4,5,6 steps are given at the netsnmp sources directory.
>
> As I told earlier, after following all these steps I am unable to see
> anything from the agent. How can I fix or debug this? I would be
> really glad if somebody can help me out here.
>
> Thank you
> Preethy
>
>
> ---
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Adding traps

2004-09-10 Thread Gary Clark
Hello,

By turning on the debug trace on the trace:

snmptrapd -f -D -Lf dummy

I can capture all the dump.

I could then view the trace and saw that indeed the token "traphandler" did
get registered and a call was being made to my
handler. My perl script was handling the trap handler call incorrectly. But
of course.

Thanks,
Garyc

- Original Message -----
From: "Gary Clark" <[EMAIL PROTECTED]>
To: "Dave Shield" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 12:48 PM
Subject: Re: Adding traps


> Hello,
>
> The problem I'm seeing is that the snmptrapd.conf I dont think is being
> accessed due to the script not being ran.
>
> The snmptrapd.conf: now contains the following which Dave recommended:
>
>traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
> /usr/local/share/snmp/cold.pl
>
> I then used the following "cold.pl" perl script:
>
> #!/usr/bin/perl -w
>
> print "At last the coldStart handler is alive!!\n";
>
> sub getline()
> {
> while ()
>  {
>   my $line =$_;
>   chomp ($line);
>   print $line;
>   }
> }
> sub main()
> {
>   getline();
> }
> main();
>
> Simple. It accepts lines from STDIN and prints them out. This looks ok?
> So if I dont see any output line I dont think the configuration is being
> accessed.
> Can somebody enlighten me on this? Is it an environment issue, if so how
can
> I determine this?
> The snmptrapd.conf is located in /usr/local/share/snmp.
>
> I'm running the trapd and it does receive the coldStart trap I just dont
see
> my script being ran.
>
> Cheers,
> Garyc
> - Original Message -
> From: "Dave Shield" <[EMAIL PROTECTED]>
> To: "Gary Clark" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, September 10, 2004 9:26 AM
> Subject: Re: Adding traps
>
>
> >
> > > I can see the coldStart trap being received but my script is not run.
> > >
> > > Within the snmptrapd.conf file I added the following line:
> > >
> > > traphandle .1.3.6.1.6.3.1.5.1 /usr/bin/perl
> /usr/local/share/snmp/cold.pl
> >
> > Try
> >   traphandle .1.3.6.1.6.3.1.1.5.1 /usr/bin/perl
> /usr/local/share/snmp/cold.pl
> >
> >
> > Dave
>
>
>
> ---
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: squid mib

2004-09-13 Thread Gary Clark
Hello,

Have you tried to perform an snmptranslate on a MIB item that currently
exists? Was it successful.

i.e
snmptranslate -On SNMPv2-MIB::coldStart

Thanks,
Garyc
- Original Message -
From: "Capacci Thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 11, 2004 6:09 PM
Subject: squid mib


> Hi,
>
> i use net-snmp.
> I've downloaded a mib.txt from squid to monitor related squid things.
> I am now reading the snmp tutorial especially the part talking about
> using local mibs.
> as it says i've put the squid mib.txt in the directory where snmp tools
> look for mibs.
> I've tried then snmptranslate -m +mib.txt -IR cacheClient.
> It returns an error (could not find squid.mib module At line 1 in (none)).
> I was wondering what went wrong.
>
> Thanks for replies.
>
>
> ---
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


CLI for net-snmp

2004-09-17 Thread Gary Clark
Hello,

Does anybody know if there is a CLI (command line interface) application
that presents data in a better format than using the snmpget and snmpset
routines for linux?

I dont want to embark on writing an application if there is one that
currently exists. If anyone knows where I can access
an application that would help me alot.

Thanks,
Garyc



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Interprating MIBS

2004-09-17 Thread Gary Clark
Hello,

Just been reading this e-mail. Is there a tool I can use to set individual
MIBS and browse also? Yeh freebie if possible
and on linux platform?

Cheers,
Garyc

- Original Message -
From: "Ted Kaczmarek" <[EMAIL PROTECTED]>
To: "Horst Bajer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 17, 2004 2:45 PM
Subject: Re: Interprating MIBS


> mbrowse is great for that, gtk2 based linux app.
>
> Ted
> On Fri, 2004-09-17 at 14:26, Horst Bajer wrote:
> > Hello ,
> > I'm a newbie to snmp.
> > Is there a tool to look up the MIB-files for certain devices
> > e.g. disc,tapes,cpu
> > running snmpwalk gives me th whole information, but how do I gather
> > just the information pertaining to the devices .
> > Thanks for any offered help, but please give me no RTFM.
> > Regards
> > Horst
> >
> >
> >
> >
> > ---
> > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> > Project Admins to receive an Apple iPod Mini FREE for your judgement on
> > who ports your project to Linux PPC the best. Sponsored by IBM.
> > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> > ___
> > Net-snmp-users mailing list
> > [EMAIL PROTECTED]
> > Please see the following page to unsubscribe or change other options:
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
>
> ---
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Interprating MIBS

2004-09-17 Thread Gary Clark
Thanks Ted. I'm after and application which can browse and set . The mbrowse
is good for examination, but can it also set mib values? Any tools I can get
for free?

Thanks,
Garyc
- Original Message -
From: "Ted Kaczmarek" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: "Horst Bajer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 17, 2004 3:58 PM
Subject: Re: Interprating MIBS


> I guess sure, but by default it reads all the mibs in
> /usr/share/snm/mibs in Redhat/Fedora.
>
> Many mibs depend on other mibs, so if you try to load one that say needs
> SMI, it probably won't display it properly.
>
>
> Ted
> On Fri, 2004-09-17 at 16:38, Gary Clark wrote:
> > Hello,
> >
> > Just been reading this e-mail. Is there a tool I can use to set
individual
> > MIBS and browse also? Yeh freebie if possible
> > and on linux platform?
> >
> > Cheers,
> > Garyc
> >
> > - Original Message -
> > From: "Ted Kaczmarek" <[EMAIL PROTECTED]>
> > To: "Horst Bajer" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, September 17, 2004 2:45 PM
> > Subject: Re: Interprating MIBS
> >
> >
> > > mbrowse is great for that, gtk2 based linux app.
> > >
> > > Ted
> > > On Fri, 2004-09-17 at 14:26, Horst Bajer wrote:
> > > > Hello ,
> > > > I'm a newbie to snmp.
> > > > Is there a tool to look up the MIB-files for certain devices
> > > > e.g. disc,tapes,cpu
> > > > running snmpwalk gives me th whole information, but how do I gather
> > > > just the information pertaining to the devices .
> > > > Thanks for any offered help, but please give me no RTFM.
> > > > Regards
> > > > Horst
> > > >
> > > >
> > > >
> > > >
> > > > ---
> > > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> > > > Project Admins to receive an Apple iPod Mini FREE for your judgement
on
> > > > who ports your project to Linux PPC the best. Sponsored by IBM.
> > > > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> > > > ___
> > > > Net-snmp-users mailing list
> > > > [EMAIL PROTECTED]
> > > > Please see the following page to unsubscribe or change other
options:
> > > > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> > >
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> > > Project Admins to receive an Apple iPod Mini FREE for your judgement
on
> > > who ports your project to Linux PPC the best. Sponsored by IBM.
> > > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> > > ___
> > > Net-snmp-users mailing list
> > > [EMAIL PROTECTED]
> > > Please see the following page to unsubscribe or change other options:
> > > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> >



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: ucd-snmp 4.2.3 dies shortly after restart

2004-09-21 Thread Gary Clark

Robert,

You can add trace to your code. At least I found that invaluable when trying
to debug.
snmp_log is very useful for this. This will dump your trace to
/var/log/snmpd.log.
Have yet to build for debugger.

Thanks,
Garyc

- Original Message -
From: "unoimdman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 9:37 AM
Subject: Re: ucd-snmp 4.2.3 dies shortly after restart


> Robert,
>
> Snmpd will stay running if I schedule an immediate
> check from netsaint.  This has to happen within a few
> seconds or else the process will die.  Looks OK for
> now.  I'll be adding some more probes shortly so I
> will try running snmpd in the foreground.  There were
> no log messages except for stating that snmp process
> was being killed.  How do I run it under gdb?
>
> Thanks Again
>
> --- Robert Story <[EMAIL PROTECTED]> wrote:
>
> > On Tue, 14 Sep 2004 16:05:25 -0700 (PDT) unoimdman
> > wrote:
> > U> I moved the original snmp.conf file, restarted
> > U> snmpd but the process is killed shortly after.
> >
> > Any log messages?
> >
> > Try running in the foreground (snmpd -f -L).
> >
> > Try running it under gdb, and see if it crashes or
> > exits.
> >
> > --
> > Robert Story; NET-SNMP Junkie
> > 
> > 
> > Archive:
> >
> 
> >
> > You are lost in a twisty maze of little standards,
> > all different.
> >
> >
> >
> ---
> > This SF.Net email is sponsored by: YOU BE THE JUDGE.
> > Be one of 170
> > Project Admins to receive an Apple iPod Mini FREE
> > for your judgement on
> > who ports your project to Linux PPC the best.
> > Sponsored by IBM.
> > Deadline: Sept. 24. Go here:
> > http://sf.net/ppc_contest.php
> > ___
> > Net-snmp-users mailing list
> > [EMAIL PROTECTED]
> > Please see the following page to unsubscribe or
> > change other options:
> >
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> ---
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Master Agent Design approach?

2004-10-01 Thread Gary Clark
Hello,

Ok built the agent (very dandy) works like a charm. The question I have is
where do I begin with the master agent?
Whats the approach? Any ideas would be useful?

Thanks,
Garyc




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Master Agent Design approach?

2004-10-01 Thread Gary Clark
My apologies terminology. In my design the snmp agent would be the subagent
on the line card. The master agent would be an NMS. What I would like to
know is the approach needed to design an NMS that can be used with the
agent? I hope that
sounds clearer.

Much appreciated,
Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 10:33 AM
Subject: Re: Master Agent Design approach?


> On Fri, 1 Oct 2004 08:47:36 -0500 Gary wrote:
> GC> Ok built the agent (very dandy) works like a charm. The question I
have is
> GC> where do I begin with the master agent?
> GC> Whats the approach? Any ideas would be useful?
>
> hhh The agent is a master agent, so I'm not sure what you are
trying to
> accomplish.
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Master Agent Design approach?

2004-10-04 Thread Gary Clark

Thanks for tha advise Robert. I guess I need to do some more research on how
to constructy this baby the NMS.

Cheers,
Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, October 02, 2004 12:03 PM
Subject: Re: Master Agent Design approach?


> On Fri, 1 Oct 2004 14:45:39 -0500 Gary wrote:
> GC> > On Fri, 1 Oct 2004 08:47:36 -0500 Gary wrote:
> GC> > GC> Ok built the agent (very dandy) works like a charm. The question
I
> GC> > GC> have is where do I begin with the master agent?
> GC> >
> GC> > hhh The agent is a master agent [...]
> GC> >
> GC> My apologies terminology. In my design the snmp agent would be the
subagent
> GC> on the line card. The master agent would be an NMS.
>
> I'm still not clear here. First, we need to establish what an agent is. An
> responds to requests from a manager. If an agent receives requests and
sends
> them to another process for processing, then that agent is also a master
> agent. (Assuming the two processes communicate via a sub-agent protocol,
> like AgentX or SMUX. If it simply sends a SNMP request to the other
process,
> then it is a proxy agent, not a master agent).
>
> So if you have a device that has line cards, a management station (NMS)
would
> probably send SNMP requests to the device. The agent on the device would
then
> communicate with the line cards, then generate a response to send back to
the
> NMS.
>
> GC> What I would like to know is the approach needed to design an NMS that
can
> GC> be used with the agent? I hope that sounds clearer.
>
> Well, that's a rather broad question. You have a MIB for your device, and
the
> protocol to communicate with the device. The NMS is basically a GUI
wrapper
> around the protocol. You should design it in a way that makes sense for
your
> device.
>
> >From the SNMP perspective, the important thing is that you have a well
thought
> out MIB, so that the device can be monitored and/or managed by any generic
NMS,
> not just yours.
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


trap question

2004-10-19 Thread Gary Clark
Hello,

1) Start snmptrapd
2) Start snmpd
3) Perl script is fired and I dump the coldStart data to a file which is
what I expect to see.
4) Pull a link which has an associated MIB oid type of NOTIFICATION_TYPE
5) The link oid exists in the snmptrapd.conf file

I see that thesnmptrapd does indeed register with the correct callback
function for the link oid.

So if I set a value in the NOTIFICATION object should I see a trap being
sent?
Is there any stage I'm missing here? I gave the link oid the same type as
NOTIFICATION_TYPE.
Is there an example where I see this in action.

Thanks,
Garyc



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Hi Dave,

> What do you mean by "pull a link" ?
My apologies. On our board we have optical fibers referred to as links. When
a link is pulled its state changes from IN-SERVICE
to OUT-OF-SERVICE. The oid associated with this link is of
NOTIFICATION_TYPE.

> Sorry - that doesn't make sense.
> NOTIFICATION-TYPE objects don't have values,
> and you can't SET them.

Ok thats the first thing cleared up. I thought I could just set a value and
a trap would be triggered.
Is there documentation or a code example of how I can generate a trap? How
do I trigger trap generation?

My apologies for the confusion. I misunderstood the usage of the
NOTIFICATION_TYPE.

Much appreciated,
Garyc

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 2004 3:31 AM
Subject: Re: trap question


>
> > 4) Pull a link which has an associated MIB oid type of NOTIFICATION_TYPE
>
> What do you mean by "pull a link" ?
>
>
> > So if I set a value in the NOTIFICATION object
>
> Sorry - that doesn't make sense.
> NOTIFICATION-TYPE objects don't have values,
> and you can't SET them.
>
> You can specify a NOTIFICATION object when sending a trap
> (to identify which trap you're sending), but this doesn't
> happen automatically.  *Something* has to trigger the trap
> generation.
>   Either you do this yourself, or some application will
> need to do so.
>
>
> > Is there any stage I'm missing here?
> > I gave the link oid the same type as NOTIFICATION_TYPE.
> > Is there an example where I see this in action.
>
> Sorry - it's not particularly clear exactly what you are
> doing.  Maybe if you listed the exact command(s) you're trying?
>
> Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Hi Dave,

I have just found an example.

In /net-snmp/agent/mibgroup/example/notification.c

I will use this code if thats Ok?

Cheers,
Garyc

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 2004 3:31 AM
Subject: Re: trap question


>
> > 4) Pull a link which has an associated MIB oid type of NOTIFICATION_TYPE
>
> What do you mean by "pull a link" ?
>
>
> > So if I set a value in the NOTIFICATION object
>
> Sorry - that doesn't make sense.
> NOTIFICATION-TYPE objects don't have values,
> and you can't SET them.
>
> You can specify a NOTIFICATION object when sending a trap
> (to identify which trap you're sending), but this doesn't
> happen automatically.  *Something* has to trigger the trap
> generation.
>   Either you do this yourself, or some application will
> need to do so.
>
>
> > Is there any stage I'm missing here?
> > I gave the link oid the same type as NOTIFICATION_TYPE.
> > Is there an example where I see this in action.
>
> Sorry - it's not particularly clear exactly what you are
> doing.  Maybe if you listed the exact command(s) you're trying?
>
> Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Ahh ''mib2c -c mib2c.notify.conf' would seem to be the magic charm I'm
seeking.

Much appreciated,
Garyc

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 2004 8:54 AM
Subject: Re: trap question


>
> > I have just found an example.
> >
> > In /net-snmp/agent/mibgroup/example/notification.c
> >
> > I will use this code if thats Ok?
>
> Yup - that's a reasonable place to start.
> Another is to run
> 'mib2c -c mib2c.notify.conf'
> on your MIB.
>
> But both of these are primarily concerned with *how* to generate
> the trap, rather than *when*.   The 'example/notification.c' code
> will generate this trap every 30 seconds, the mib2c output doesn't
> itself generate any trap at all.
>
>   But they both provide a routine that you can invoke whenever
> it's appropriate to send a trap.  But it's up to *you* to work
> out when to call this routine - perhaps in a signal handler,
> or following a regular check if anything has changed.
>
> Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: trap question

2004-10-20 Thread Gary Clark
Just imnplemented the traps into the agent. Works like a charm. I wrote a
perl script which dumps all traps.

Again they should seriously reward the support on this. No question.

Cheers,
Garyc

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 2004 8:54 AM
Subject: Re: trap question


>
> > I have just found an example.
> >
> > In /net-snmp/agent/mibgroup/example/notification.c
> >
> > I will use this code if thats Ok?
>
> Yup - that's a reasonable place to start.
> Another is to run
> 'mib2c -c mib2c.notify.conf'
> on your MIB.
>
> But both of these are primarily concerned with *how* to generate
> the trap, rather than *when*.   The 'example/notification.c' code
> will generate this trap every 30 seconds, the mib2c output doesn't
> itself generate any trap at all.
>
>   But they both provide a routine that you can invoke whenever
> it's appropriate to send a trap.  But it's up to *you* to work
> out when to call this routine - perhaps in a signal handler,
> or following a regular check if anything has changed.
>
> Dave



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Is it possible? I'm sure it can be done

2004-10-22 Thread Gary Clark
My beloved company has asked me to write another agent. Yep no rest for the
wicked.
They want me to write a net-snmp agent(A) that can send set and get requests
to another snmp agent(B) whilst agent(A)
can receive set and get requests from the NMS (which I contructed using
perl).
I went over some of the problems in my head maybe i.e agent configuration
file issues and using the application code examples in
net-snmp/Apps and integrating that into my agent might be the best approach?

Any ideas on this? Has anybody tried to do this?

Much appreciated,
Garyc



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Is it possible? I'm sure it can be done

2004-10-22 Thread Gary Clark
Yeh thats it.

- Original Message - 
From: "Gary Clark" <[EMAIL PROTECTED]>
To: "Dave Shield" <[EMAIL PROTECTED]>
Sent: Friday, October 22, 2004 10:48 AM
Subject: Re: Is it possible? I'm sure it can be done 


> Yeh thats it.
> 
> - Original Message - 
> From: "Dave Shield" <[EMAIL PROTECTED]>
> To: "Gary Clark" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, October 22, 2004 10:48 AM
> Subject: Re: Is it possible? I'm sure it can be done 
> 
> 
> > 
> > > They want me to write a net-snmp agent(A) that can send set and get
> > > requests to another snmp agent(B) whilst agent(A) can receive set
> > > and get requests from the NMS (which I contructed using perl).
> > 
> > You mean something like the "proxy" capability?
> > 
> > Dave
> 



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Packaging of snmpd

2004-10-25 Thread Gary Clark
Hello,

I have a couple of questions:

1) I want the snmpd executable to be self-contained and not dependant on
installation of net-snmp. Is this possible.
The snmpd excutable resides in nets-snmp5.1.2/agent/.libs and when excuted
when net-snmp has been installed
everything is starts correctly. When trying to run the snmpd on a separate
linux machine it crashed with the
underfined symbol "net-snmp daemonize".

Basically I want to make it very simple for the customer to install and use.

2) The snmpd.conf file is situated in /usr/local/share/snmp. If there is no
/usr/local/share/snmp then can the agent
 point to it using an environment variable. I know SNMPCONFPATH is a
way. However this gave me problems
 when trying to use persistence and was advised to not to set the
environment variable. Do I simply ask the user to create
 a directory /usr/local/share/snmp ?


Thanks,
Garyc




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Packaging of snmpd

2004-10-25 Thread Gary Clark
Much appreciated that looks like its doing the job. Very nice.

Cheers,
Garyc
- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 3:12 PM
Subject: Re: Packaging of snmpd


> On Mon, 25 Oct 2004 12:04:27 -0500 Gary wrote:
> GC> 1) I want the snmpd executable to be self-contained and not dependant
on
> GC> installation of net-snmp. Is this possible.
>
> Yes. Try the static linking tips here:
>
> http://www.net-snmp.org/faqs/rstory/#static
>
> GC> 2) The snmpd.conf file is situated in /usr/local/share/snmp. If there
is no
> GC> /usr/local/share/snmp then can the agent
> GC>  point to it using an environment variable. I know SNMPCONFPATH is
a
> GC> way. However this gave me problems
> GC>  when trying to use persistence and was advised to not to set the
> GC> environment variable. Do I simply ask the user to create
> GC>  a directory /usr/local/share/snmp ?
>
> That directory is not used for persistence and dose not need to exist. The
> normal configuration of snmpd can be loaded from anyplace on the
filesystem by
> pointing to it with the -c option.
>
> The persistent directory defaults to /var/net-snmp. See the configure help
for
> options on configuring various paths.
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Packaging of snmpd

2004-10-25 Thread Gary Clark
Hello,

I rebuilt the executable. Yes it does build but it still contains shared
libraries.
'configure --with-ldflags=-Bstatic'.

The static flag does indeed gets added but the dyamic libraries are still
being pulled in and I can see them by performing an
' ldd'.

I looked at the rest of the static explanation.

NETSNMPDIR=/usr/local/build/snmp/full-clean-cvs-V5-1-patches
   NETSNMPCONFIG=$(NETSNMPDIR)/net-snmp-config

   NETSNMPBASECFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
   NETSNMPINCLUDES := $(shell $(NETSNMPCONFIG) --build-includes
$(NETSNMPDIR))
   # base flags after build/src include, in case it has /usr/local/include
   NETSNMPCFLAGS=$(NETSNMPINCLUDES) $(NETSNMPBASECFLAGS)

   NETSNMPBASELIBS := $(shell $(NETSNMPCONFIG) --base-agent-libs)
   NETSNMPEXTLIBS := $(shell $(NETSNMPCONFIG) --external-agent-libs)
   NETSNMPLIBDIRS := $(shell $(NETSNMPCONFIG) --build-lib-dirs
$(NETSNMPDIR))
   NETSNMPLIBDEPS := $(shell $(NETSNMPCONFIG) --build-lib-deps
$(NETSNMPDIR))
   LIB_DEPS=$(NETSNMPLIBDEPS)
   LIBS=$(NETSNMPLIBDIRS) -Wl,-Bstatic $(NETSNMPBASELIBS) -Wl,-Bdynamic
$(NETSNMPEXTLIBS)


   STRICT_FLAGS = -Wall -Wstrict-prototypes
   CFLAGS=-I. $(NETSNMPCFLAGS) $(STRICT_FLAGS)

This replaces the standard Makefile section, which will used installed
libraries:

   NETSNMPCONFIG=net-snmp-config

   # uncomment this if you have GNU make
   #NETSNMPCFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
   #NETSNMPLIBS := $(shell $(NETSNMPCONFIG) --agent-libs)
   NETSNMPCFLAGS=`$(NETSNMPCONFIG) --base-cflags`
   NETSNMPLIBS=`$(NETSNMPCONFIG) --agent-libs`

   LIBS=$(NETSNMPLIBS)

The below section in the Makefile? Which Makefile? The standard Makefile
section does not contains any of the definitions.
Do we have a set of static libraries I can use to replace the share
libaries? I'm using 5.1.2 for linux red-hat.

Much appreciated,
Garyc


I performed
- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 3:12 PM
Subject: Re: Packaging of snmpd


> On Mon, 25 Oct 2004 12:04:27 -0500 Gary wrote:
> GC> 1) I want the snmpd executable to be self-contained and not dependant
on
> GC> installation of net-snmp. Is this possible.
>
> Yes. Try the static linking tips here:
>
> http://www.net-snmp.org/faqs/rstory/#static
>
> GC> 2) The snmpd.conf file is situated in /usr/local/share/snmp. If there
is no
> GC> /usr/local/share/snmp then can the agent
> GC>  point to it using an environment variable. I know SNMPCONFPATH is
a
> GC> way. However this gave me problems
> GC>  when trying to use persistence and was advised to not to set the
> GC> environment variable. Do I simply ask the user to create
> GC>  a directory /usr/local/share/snmp ?
>
> That directory is not used for persistence and dose not need to exist. The
> normal configuration of snmpd can be loaded from anyplace on the
filesystem by
> pointing to it with the -c option.
>
> The persistent directory defaults to /var/net-snmp. See the configure help
for
> options on configuring various paths.
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Packaging of snmpd

2004-10-26 Thread Gary Clark
Hello,

I managed to build my agent and run it. It still dies but I am tracking it
down exactly why.

Use:

./configure --enable-static=yes --enable-dynamic=no --with-mib_modules=psb

It appears to be ok for one of the tables initialisation etc. I will find
out in the next hour whats going on.
No shared libraries are pulled in.

Much appreciated,
Garyc

- Original Message -
From: "Gary Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 5:19 PM
Subject: Re: Packaging of snmpd


> Hello,
>
> I rebuilt the executable. Yes it does build but it still contains shared
> libraries.
> 'configure --with-ldflags=-Bstatic'.
>
> The static flag does indeed gets added but the dyamic libraries are still
> being pulled in and I can see them by performing an
> ' ldd'.
>
> I looked at the rest of the static explanation.
>
> NETSNMPDIR=/usr/local/build/snmp/full-clean-cvs-V5-1-patches
>NETSNMPCONFIG=$(NETSNMPDIR)/net-snmp-config
>
>NETSNMPBASECFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
>NETSNMPINCLUDES := $(shell $(NETSNMPCONFIG) --build-includes
> $(NETSNMPDIR))
># base flags after build/src include, in case it has /usr/local/include
>NETSNMPCFLAGS=$(NETSNMPINCLUDES) $(NETSNMPBASECFLAGS)
>
>NETSNMPBASELIBS := $(shell $(NETSNMPCONFIG) --base-agent-libs)
>NETSNMPEXTLIBS := $(shell $(NETSNMPCONFIG) --external-agent-libs)
>NETSNMPLIBDIRS := $(shell $(NETSNMPCONFIG) --build-lib-dirs
> $(NETSNMPDIR))
>NETSNMPLIBDEPS := $(shell $(NETSNMPCONFIG) --build-lib-deps
> $(NETSNMPDIR))
>LIB_DEPS=$(NETSNMPLIBDEPS)
>LIBS=$(NETSNMPLIBDIRS) -Wl,-Bstatic $(NETSNMPBASELIBS) -Wl,-Bdynamic
> $(NETSNMPEXTLIBS)
>
>
>STRICT_FLAGS = -Wall -Wstrict-prototypes
>CFLAGS=-I. $(NETSNMPCFLAGS) $(STRICT_FLAGS)
>
> This replaces the standard Makefile section, which will used installed
> libraries:
>
>NETSNMPCONFIG=net-snmp-config
>
># uncomment this if you have GNU make
>#NETSNMPCFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
>#NETSNMPLIBS := $(shell $(NETSNMPCONFIG) --agent-libs)
>NETSNMPCFLAGS=`$(NETSNMPCONFIG) --base-cflags`
>NETSNMPLIBS=`$(NETSNMPCONFIG) --agent-libs`
>
>LIBS=$(NETSNMPLIBS)
>
> The below section in the Makefile? Which Makefile? The standard Makefile
> section does not contains any of the definitions.
> Do we have a set of static libraries I can use to replace the share
> libaries? I'm using 5.1.2 for linux red-hat.
>
> Much appreciated,
> Garyc
>
>
> I performed
> - Original Message -
> From: "Robert Story (Users)" <[EMAIL PROTECTED]>
> To: "Gary Clark" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, October 25, 2004 3:12 PM
> Subject: Re: Packaging of snmpd
>
>
> > On Mon, 25 Oct 2004 12:04:27 -0500 Gary wrote:
> > GC> 1) I want the snmpd executable to be self-contained and not
dependant
> on
> > GC> installation of net-snmp. Is this possible.
> >
> > Yes. Try the static linking tips here:
> >
> > http://www.net-snmp.org/faqs/rstory/#static
> >
> > GC> 2) The snmpd.conf file is situated in /usr/local/share/snmp. If
there
> is no
> > GC> /usr/local/share/snmp then can the agent
> > GC>  point to it using an environment variable. I know SNMPCONFPATH
is
> a
> > GC> way. However this gave me problems
> > GC>  when trying to use persistence and was advised to not to set
the
> > GC> environment variable. Do I simply ask the user to create
> > GC>  a directory /usr/local/share/snmp ?
> >
> > That directory is not used for persistence and dose not need to exist.
The
> > normal configuration of snmpd can be loaded from anyplace on the
> filesystem by
> > pointing to it with the -c option.
> >
> > The persistent directory defaults to /var/net-snmp. See the configure
help
> for
> > options on configuring various paths.
> >
> > --
> > Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> > 
> > Archive:
> <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
> >
> > You are lost in a twisty maze of little standards, all different.
> >
> >
> > ---
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give
us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> > http://productguide.itmanagersjourna

Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
Yes,

I have sent traps in using a pthread. No problem. Are you trying to free a
PDU that has not been malloc?
Segmentation faults are usual candidates (using the the political term) for
bad memory accesses.
So your pointer may be invalid? Can you dump out what you allocate and what
you free? Again adding trace
is essential.

Much appreciated,
Garyc
- Original Message -
From: "Vili Germic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 6:08 AM
Subject: Sending traps in another thread


> Hi all,
>
> I'm writting NET-Snmp sub agent.
> Has anybody tried to send traps in other thread that in main thread of
> sub agent?
> I'm having problems when snmp_free_pdu() is called. (segmentation fault).
> Any ideas on this? Has anybody do something like this?
>
> Best regards,
> Vili
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
Hi,

Wow! I'm blessed one of the gurus. Ok no problem.

>What platform are you using?

The OS platform is Redhat 9. Complete installation. If you do a partial
installation your going to hit all sorts of missing
libraries. Quite funny when you only do a regular installationnot.

> - What threading mechanism are you using?

I'm using Linux pthread. I'm not a fan of threads having seen the disasters
of misuse. But this seemed to be
an acceptable solution.

> The number of threads I use in my application. I link a library which I
know uses pthreads which performs alot of the driver
functionality to the hardware.
However the generated code produced using mib2c I wanted to keep pretty much
the same (to avoid additional headaches when changing mibs etc) so I created
global object that the table functionality directed requests to. Its within
this oject that I created threads. I have only two threads in this global
object. One to monitor link up and link downs and to invoke a trap when this
happens. Another to send a trap upon the completion
of a download or upload to and from the hardware. I dont want to block the
main thread so this was a good solution.

> Have you implemented any locking mechanism?

Standard pthread mutexs were used.

> Is your application an agent

Yes my application is an agent. Its controlled either from a perl script
which I wrote which uses Dave M.Towns Net::SNMP perl module. Its going to be
controlled by a browser which one of our guys are working.

>  Do you call init_snmp()/init_agent() in more than one thread?

never.

> - Are you using methods other than those documented in README.threads in a
> thread other than the 'main' snmp thread?

I would have to read the README documentation on threads. I am using the
pthread implementation and including the pthreadlib.


> > And about traps in particular:
> - What method do you use to send the trap? Manual building and
> sending using the single-session API, or something like send_easy_trap?

It was very easy to perform manual building. Using the notification example
you could figure out what was going on.
send_v2trap is what I am using.

Much appreciated,
Garyc


- Original Message -----
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 10:23 AM
Subject: Re: Sending traps in another thread


> On Wed, 27 Oct 2004 08:47:42 -0500 Gary wrote:
> GC> I have sent traps in using a pthread.
>
> Hi Gary,
>
> Do you mind if I ask a few questions about how your app works? We need to
> gather information to help identify what does and doesn't work. Even if
you can
> only answer briefly, like 'yes/no', that helps. If you can expound a bit,
even
> better. If you can't respond publicly, a private message to me would be
great.
>
> - What platform are you using?
> - What threading mechanism are you using?
> - How many threads use functions the snmp or agent libraries?
> - Have you implemented any locking mechanism?
> - Is your application an agent?
> - Do you call init_snmp()/init_agent() in more than one thread?
> - Are you using methods other than those documented in README.threads in a
> thread other than the 'main' snmp thread?
>
> And about traps in particular:
> - What method do you use to send the trap? Manual building and
> sending using the single-session API, or something like send_easy_trap?
>
>
> Thanks!
>
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
> Ok, lets see if I got this right. You have the main agent thread, and two
> worker threads. The worker threads don't do any SNMP other than to call
> send_v2trap. Is that right?

Yep you got it.

> GC> > Have you implemented any locking mechanism?
> GC>
> GC> Standard pthread mutexs were used.
>
> Can you elaborate on that? Where are they used? Who blocks who, and when?

The download to the hardware device or upload can take time and didnt want
another request to be handled
so I use:

pthread_mutex_lock(&operationMutex)
   Download data to hardware device
   Send trap
pthread_mutex_unlock(&operatonMutex)


Thanks,
Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 11:57 AM
Subject: Re: Sending traps in another thread


> On Wed, 27 Oct 2004 10:50:25 -0500 Gary wrote:
> GC> Wow! I'm blessed one of the gurus. Ok no problem.
>
> Really, where? (looking around for my autograph book)
>
> GC> Its within this oject that I created threads. I have only two threads
in
> GC> this global object. One to monitor link up and link downs and to
invoke a
> GC> trap when this happens. Another to send a trap upon the completion
> GC> of a download or upload to and from the hardware. I dont want to block
the
> GC> main thread so this was a good solution.
>
> Ok, lets see if I got this right. You have the main agent thread, and two
> worker threads. The worker threads don't do any SNMP other than to call
> send_v2trap. Is that right?
>
>
> GC> > Have you implemented any locking mechanism?
> GC>
> GC> Standard pthread mutexs were used.
>
> Can you elaborate on that? Where are they used? Who blocks who, and when?
>
>
> Thanks for taking the time to contribute to the shared knowledge..
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problems on running net-snmp

2004-10-27 Thread Gary Clark
You are probably already consuming port 161 with another process.

Thanks,
Garyc

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 1:31 PM
Subject: Problems on running net-snmp


> I just started using net-snmp, a lot questions needs answers.
>
> 1)
> After run ./configure, make , make install, snmpconf and copy snmpd.conf
to
> /usr/local/share/snmp, i ran snmpd -f -L -d. It gave me: Error opening
specified
> endpoint "udp:161". My snmpd.conf is listed:
>
> syslocation  x.x.x (my pc's host name)
> syscontact @ (My address)
> sysservices 13
>
> rocommunity  public
> rwcommunity  public
>
> trap2sink *.*.*.* (My pc's IP)
> informsink *.*.*.* (My pc's IP)
> trapcommunity public
>
>
> and other options. Is there anything wrong with my conf file?
> i am running net-snmp-5.2-rc1, SNMPv2
>
> 2) Can I load the MIB files under directory /usr/local/share/snmp/mib
directly
> and then issue commands like snmpget or snmpwalk to get responce?
>
> 3) If i want to do built my own MIB, do i need to apply a IANA enterprise
number?
>
> Any help is highly appreciated!
>
>
> Dan
>
> -
> This mail sent through IMP: http://horde.org/imp/
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-27 Thread Gary Clark
> I assume that the same mutex used in the main agent thread and the other
worker
> thread? Where is the mutex set-up/locked in the agent?

The same type of mutex is used in other worker threads that is correct.
I am initializing the mutex in the main thread in my global object.

Download of Image to hardware

When a set request is received by the agent to download an image to hardware
a function call is made to download.
Within this download function I have the mutex to lock to prevent multiple
requests to download and then I spawn a thread that downloads the image to
the hardware device. Once complete the lock is disabled. The thread
resources are removed once the thread exits.


Thanks,
Garyc


- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 1:28 PM
Subject: Re: Sending traps in another thread


> On Wed, 27 Oct 2004 12:24:17 -0500 Gary wrote:
> GC> > GC> > Have you implemented any locking mechanism?
> GC> > GC>
> GC> > GC> Standard pthread mutexs were used.
> GC> >
> GC> > Can you elaborate on that? Where are they used? Who blocks who, and
when?
> GC>
> GC> The download to the hardware device or upload can take time and didnt
want
> GC> another request to be handled
> GC> so I use:
> GC>
>> I assume that the same mutex used in the main agent thread and the other
worker
> thread? Where is the mutex set-up/locked in the agent?
>
> I assume that the same mutex used in the main agent thread and the other
worker
> thread? Where is the mutex set-up/locked in the agent?
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-28 Thread Gary Clark
>>Download of Image to hardware

>>When a set request is received by the agent to download an image to
hardware
>>a function call is made to download.
>>Within this download function I have the mutex to lock to prevent multiple
>>requests to download and then I spawn a thread that downloads the image to
>>the hardware device. Once complete the lock is disabled. The thread
>>resources are removed once the thread exits.

This is what I sent out yesterday. Yes your both correct. The main thread
however is blocked as stated in the above text.

Thanks,
Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
Cc: "Gary Clark" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 8:06 AM
Subject: Re: Sending traps in another thread


> On Thu, 28 Oct 2004 09:39:43 +0100 Dave wrote:
> DS> Robert> Ok, lets see if I got this right. You have the main agent
thread,
> DS> Robert> and two worker threads. The worker threads don't do any SNMP
other
> DS> Robert> than to call send_v2trap. Is that right?
> DS>
> DS> Gary> Yep you got it.
> DS>
> DS> Urk!  I'm not sure that's safe.
> DS>
> DS> As far as I remember, doesn't the 'send_trap_vars' mechanism use the
> DS> same (non-thread-safe) set of APIs as the incoming request handling?
> DS> I'd expect this to suffer from problems between generating traps
> DS> and receiving incoming requests.
> DS>
> DS> In order for that to work safely, wouldn't it be necessary to rework
> DS> the 'send_trap_vars' code to use the SSI approach instead?
> DS>
> DS> All of the locking that you talk about sounds to be aimed at a
different
> DS> area of potential conflict.  I'm not at all sure that you're protected
> DS> against races within the SNMP library itself.
>
> Dave's right. If you were using the mutexes such that only one thread at a
time
> was doing SNMP, you'd probably be ok. But if the main thread isn't blocked
> while the worker thread is doing it's trap thing, and you get an incoming
> request to the main thread, you've got two threads accessing the same
data.
>
> The odds of getting a request while sending/processing traps may be low,
but
> when it does happen, it could cause problems.
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-28 Thread Gary Clark
Well I've got running and I'm seeing no problems of conflict. No downloads
requests are handled whilst the mutex is locked hence
only a single trap is sent and only any one download requests is handled at
any one time.

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 3:39 AM
Subject: Re: Sending traps in another thread


> Robert> Ok, lets see if I got this right. You have the main agent thread,
> Robert> and two worker threads. The worker threads don't do any SNMP other
> Robert> than to call send_v2trap. Is that right?
>
> Gary> Yep you got it.
>
> Urk!  I'm not sure that's safe.
>
> As far as I remember, doesn't the 'send_trap_vars' mechanism use the
> same (non-thread-safe) set of APIs as the incoming request handling?
> I'd expect this to suffer from problems between generating traps
> and receiving incoming requests.
>
> In order for that to work safely, wouldn't it be necessary to rework
> the 'send_trap_vars' code to use the SSI approach instead?
>
> All of the locking that you talk about sounds to be aimed at a different
> area of potential conflict.  I'm not at all sure that you're protected
> against races within the SNMP library itself.
>
>
> Dave
>
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps in another thread

2004-10-28 Thread Gary Clark
The main thread spawns a thread. So there could be many threads. Each thread
calls a download function. But this downloadfunction has a mutex hence only
one thread at any one time can have access. I was going to have some
consumer-producer queueing but I got idle. Its ok. Produces threads but they
are all independant and are "serialised" when downloading.
Oh well cheap and ugly but less complex.

Cheers,
Garyc
- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 2:06 PM
Subject: Re: Sending traps in another thread


> On Thu, 28 Oct 2004 08:20:09 -0500 Gary wrote:
> GC> >>When a set request is received by the agent to download an image to
> GC> hardware
> GC> >>a function call is made to download.
> GC> >>Within this download function I have the mutex to lock to prevent
> GC> >multiple>requests to download and then I spawn a thread that
downloads the
> GC> >image to>the hardware device. Once complete the lock is disabled. The
> GC> >thread>resources are removed once the thread exits.
> GC>
> GC> This is what I sent out yesterday. Yes your both correct. The main
thread
> GC> however is blocked as stated in the above text.
>
> Ah, ok. Then you should be ok, but I have to ask why you have a thread at
all,
> if the main agent is blocked anyways?
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This Newsletter Sponsored by: Macrovision
> For reliable Linux application installations, use the industry's leading
> setup authoring tool, InstallShield X. Learn more and evaluate
> today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Packaging of snmpd

2004-10-29 Thread Gary Clark
Yeh thats true. Some OS linux share libraries are still pulled in
absolutely. But no share libraries from SNMP. I dont mind running
the agent on a linux platform. I just dont want to have to install Net-SNMP
in order run my agent.

Thanks,
Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Jim Su" <[EMAIL PROTECTED]>
Cc: "Gary Clark" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 5:52 PM
Subject: Re: Packaging of snmpd


> On Wed, 27 Oct 2004 12:15:21 +0800 Jim wrote:
> JS> So, to summarize Gary's work.
> JS>
> JS> - The result of 'configure --with-ldflags=-Bstatic' still contains
shared
> JS> libraries.- The result of './configure --enable-static=yes
> JS> --enable-dynamic=no' contains no shared libraries.
>
> I don't think that's right. In both cases, some OS libraries will likely
be
> linked in as shared libraries. When I compiled using the two flag version,
I
> still get share libraries:
>
> $ ldd agent/snmpd
> linux-gate.so.1 =>  (0x00635000)
> libdl.so.2 => /lib/libdl.so.2 (0x4e24b000)
> libcrypto.so.4 => /lib/libcrypto.so.4 (0x4f24)
> libm.so.6 => /lib/tls/libm.so.6 (0x4e226000)
> libc.so.6 => /lib/tls/libc.so.6 (0x4e109000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4e0f)
> libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x4f229000)
> libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x4f156000)
> libcom_err.so.2 => /lib/libcom_err.so.2 (0x4ea38000)
> libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x4f205000)
> libresolv.so.2 => /lib/libresolv.so.2 (0x4e449000)
> libz.so.1 => /usr/lib/libz.so.1 (0x4e31b000)
>
>
> --
> Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This Newsletter Sponsored by: Macrovision
> For reliable Linux application installations, use the industry's leading
> setup authoring tool, InstallShield X. Learn more and evaluate
> today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Install on Redhat ES with RPM

2004-10-29 Thread Gary Clark

rpm -i net-snmp-5.1.2-1.rh9.i386.rpm --nodeps

Cheers,
Garyc

- Original Message -
From: "Jon Hoover" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 29, 2004 11:11 AM
Subject: Install on Redhat ES with RPM


> How can I tell the rpm not to install SNMP with perl modules?
>
> When I run:
>
> rpm -i net-snmp-5.1.2-1.rh9.i386.rpm
>
> I get dependency erros:
>
> error: Failed dependencies:
> perl(Term::ReadKey) is needed by net-snmp-5.1.2-1.rh9
> perl(Tk) is needed by net-snmp-5.1.2-1.rh9
>
> My thought is, I don't need the perl modules, so how I can install without
> them?
>
> Thanks,
> Jon
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: perl / multiple agents on same host, for same OID

2004-11-01 Thread Gary Clark
Robert is correct. I could forward an example of how I used the perl module
so you can gain an insight. Of course you need
some perl background to make head n tails of whats going on. But you should
get the gist of my sample code.
However I'm not going to support someone else agent driver. Absolutely not.
I try to keep it simple stupid if you get the gist.

Cheers,
Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Toni Willberg" <[EMAIL PROTECTED]>
Cc: "Net-Snmp-Users" <[EMAIL PROTECTED]>
Sent: Monday, November 01, 2004 9:47 AM
Subject: Re: perl / multiple agents on same host, for same OID


> On Mon, 01 Nov 2004 10:47:47 +0200 Toni wrote:
> TW> On Mon, 2004-10-18 at 15:07, Toni Willberg wrote:
> TW> > I have developed a little device emulator using NetSNMP Perl module.
>
> First, there is a difference between the Net::SNMP perl module and the
Net-SNMP
> perl module(s). If you are using Net::SNMP, that (despite the unforunately
> simliarity in the name), is not from us, and thus we can't help you.
>
> Second, I haven't really used the Net-SNMP perl stuff either, but looking
at
> the examples, this looks like a likely candidate:
>
> $sess = new SNMP::Session( 'DestHost'   => "10.0.0.1" );
>
>
>
> --
> Robert Story; NET-SNMP Junkie 
> 
> Archive:

>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Linking to static Net-SNMP libraries

2004-11-01 Thread Gary Clark
Are you attempting to build this on Linux? If so you need to have a complete
installation. Not partial when installing on linux.
You will get missing libraries if you only partially installing and yes
lcrypto is one of those missing libs. I also hit this problem.

Cheers,
Garyc
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 01, 2004 12:51 PM
Subject: Linking to static Net-SNMP libraries


> I'm trying to confirm that a problem I'm having with 5.2rc1 is in my use
of dynamic libraries leading to some conflict but when I try to link against
static libraries, I get an error.  I've modified the Makefile link line for
my client to:
>
> $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) \
>  -static -lnetsnmp -dynamic -ldl -lcrypto -lm
>
> But I get:
>
>   ld: cannot find -lcrypto
>   collect2: ld returned 1 exit status
>
> I know I'm a little dim this week but shouldn't surrounding "-lnetsnmp" by
"-static" and "-dynmaic" leave everything else unchanged?
>
> TIA
>
>
>
>
> ---
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Using persistent file as config file

2004-11-16 Thread Gary Clark
Hello,

To append what Robert stated. Yes of course you can do this. Basically ( I
hate using that word but at this time
it seems appropriate) you will register a callback function which is
associated to a token. The token eg a unique string pattern
will exist in the persistence file i.e snmpd.conf  in
/var/net-snmp/snmpd.conf. You need to register a callback function.
An example of how to do this can be seen /agent/mibgroup/mibII/system_mib.c.

This was my starting point.
The function of interest is:

snmpd_register_config_handler(token,CallbackFunction,NULL,NULL);

This callback function is called when the agent identifies the presence of
the token. Of course the callback function is something you will create and
not something provided from mib template generation.

Cheers,
Garyc

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Sridhar S" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 15, 2004 9:47 PM
Subject: Re: Using persistent file as config file


> On Mon, 15 Nov 2004 19:20:57 +0530 Sridhar wrote:
> SS> I am using net-snmp 5.1. My question is can I use persistent file as
> SS> configuration file ? As I observed, the configuration entries
> SS> (rwcommunity for example) being not written in the persitent file (as
> SS> warning says). How can I retain these configuration entries in the
> SS> persistent file ?
>
> You would have to make some modifications to the code, to add a save
routine
> for the variables in question. It would not be a supported configuration,
but
> it may very well work without problems.
>
> --
> Robert Story; NET-SNMP Junkie 
> 
> Archive:

>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: WRB - mib2c anomaly.

2004-11-19 Thread Gary Clark
hee,hee.

- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Dave Shield" <[EMAIL PROTECTED]>
Cc: "NetSNMPUsers" <[EMAIL PROTECTED]>
Sent: Friday, November 19, 2004 8:57 AM
Subject: Re: WRB - mib2c anomaly.


> On Fri, 19 Nov 2004 10:24:09 + Dave wrote:
> DS> Yes - this is the difference between the old (v4) and new (v5) MIB
APIs.
>
> All right now young man. What are you doing out of your room? Have you
finished
> your homewor - err, book, yet? No? Ok then, march right back into your
room.
> And no feeding the newbies until you're done!  :-P
>
> --
> Robert Story; NET-SNMP Junkie
> Support:  
> Archive:

>
> You are lost in a twisty maze of little standards, all different.
>
>
> ---
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: heartbeats

2004-11-30 Thread Gary Clark
Bonjour Monseur,

Je n'ce pas. Seriously have a wee' browse at the file:

/agent/mibgroup/examples/notification.c

This was my starting point and I kinda figured out what was going on. I
think this should help.

Cheers,
Garyc




- Original Message -
From: "Raphaël 'SurcouF' Bordet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 30, 2004 8:37 AM
Subject: Re: heartbeats


> Robert Story (Users) wrote:
>
> >On Thu, 25 Nov 2004 09:33:12 +0100 Raphaël wrote:
> >R>   How can I make snmpd to send regulary traps as "heart beats"
?
> >
> >Edit the code to add an alarm that runs periodically to send the trap.
Some
> >grepping through the code should reveal examples of both alarms and
sending
> >traps.
> >
> >
>
> I've read a pdf document written in french only[1] where authors explain
> how to make a trapTask
> (object of a custom MIB described at the bottom of this document and
> named FDAgentMib.mib) to do "meta-heartbeat".
> I don't know if it's possible to implement this with net-snmp...
>
> [1]: http://lsewww.epfl.ch/Documents/acrobat/Rei02.pdf
> --
> Raphaël 'SurcouF' Bordet
> http://debianfr.net/ | surcouf at debianfr dot net
>
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: What is a SNMP session?

2004-12-01 Thread Gary Clark
oh boy!!!

- Original Message -
From: "Gemma Sánchez" <[EMAIL PROTECTED]>
To: "Users" <[EMAIL PROTECTED]>
Sent: Wednesday, December 01, 2004 6:36 AM
Subject: What is a SNMP session?


> Hello 
>
> I am finishing my tasks with NET-SNMP. These tasks are a part of my
thesis.
> In this state, a doubt arises. It is almost a philosophical one.
>
> Knowing SNMP is not oriented to conexion, what is exactly a SNMP session?
>
> Perhaps you could think it is a silly quiestion, and perhaps it is, but I
> can't find the answer and it is important for the documentation of my
> project.
>
> Could somebody clarify this concept (SNMP session) to me? Could you tell
me
> what does the opening and closing of a SNMP session involve exactly?
>
> Thanks a lot to all.
>
> Gemma S. Anton
>
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Mib row deletion

2004-12-08 Thread Gary Clark
Hello,

A quick question on deleting mibs. I'm using mib2c to generate the c code.
All very dandy except I'm not on exactly how
to remove rows from the table. I thought I could use

CONTAINER_REMOVE(sig.container,row_ctx);

This does indeed remove the row from the mib table however I'm seeing an
error in the snmpd log:

error on subcontainer remove (-1)

Now I take it I'm doing something wrong. Whats the procedure for removing a
row_entry?

Much appreciated,
Garyc




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-14 Thread Gary Clark
Hello,

Only the first line of the snmptrapd.conf is relevant. Its the coldstart
trap. You need to remove the rest.
I'm too idle. The trap.pl is the script which trapd will call when it
receives the coldStart trap after
you initialised your agent correctly. The trap.pl will dump the trap
information to a text file correctly.

Thanks,
Garyc


- Original Message -
From: "Russ Woodman" <[EMAIL PROTECTED]>
To: "Alex Burger" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, December 14, 2004 2:46 PM
Subject: Re: Cannot Process SNMP Traps


> Alex,
>
> I've attempted to test the traps as shown in the tutorial.  When I send
> a manufactured trap, the debug output from snmptrapd shows this:
>
> trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
> netsnmp_udp: recvfrom fd 9 got 96 bytes (from 127.0.0.1)
> trace: _sess_process_packet(): snmp_api.c, 4892:
> sess_process_packet: session 0x808ba90 fd 9 pkt 0x808f4b8 length 96
> trace: _sess_process_packet(): snmp_api.c, 4916:
> sess_process_packet: pre-parse fail
> trace: _sess_read(): snmp_api.c, 5210:
> sess_read: not reading 6 (fdset 0xbc70 set 0)
> trace: _sess_read(): snmp_api.c, 5210:
> sess_read: not reading 5 (fdset 0xbc70 set 0)
> trace: _sess_read(): snmp_api.c, 5210:
> sess_read: not reading 3 (fdset 0xbc70 set 0)
> trace: snmp_sess_select_info(): snmp_api.c, 5622:
> sess_select: for all sessions: 9 6 5 3
>
> And nothing is recorded in the /tmp/snmptrapd.log file.  I'm cutting and
> pasting things directly from the tutorial and using the traphandle.sh
> you outlined below.
>
> Any ideas?
>
> Russ
>
> Alex Burger wrote:
> >
> > Hi Russ.
> >
> > Russ Woodman wrote:
> >
> >> Hi,
> >>
> >> I am attempting to receive traps from various devices on my network
> >> (Copper Mountain DSLAMs, Cisco routers, etc.) so that I can then
> >> funnel the traps into Nagios for network monitoring.  However, nothing
> >> I have tried for the last three or more months has allowed me to
> >> receive/handle any traps sent by any devices.  Below are some relevant
> >> files and configuration.
> >
> >
> > It looks like your script is not processing the output of snmptrapd
> > correctly.  Snmptrapd will output multiple lines to the handler.  If you
> > try the following snmptrapd.conf and traphandle.sh, it should work.  The
> > script is a slightly modified version of the snmptrap tutorial at:
> >
> > http://www.net-snmp.org/tutorial-5/commands/snmptrap.html
> >
> > snmptrapd.conf:
> > traphandle default /usr/local/bin/traphandle.sh
> >
> > traphandle.sh:
> > #!/bin/bash
> > LOGFILE="/tmp/snmptrapd.log"
> > read host
> > read ip
> > vars=
> > while read oid val
> > do
> >   if [ "$vars" = "" ]
> >   then
> > vars="$oid = $val"
> >   else
> > vars="$vars, $oid = $val"
> >   fi
> > done
> > echo trap: $1 $host $ip $vars >> ${LOGFILE}
> > exit 0
>
> --
> Russ Woodman
> Systems Administrator
> Northern Arkansas Telephone Co.
> PO Box 209
> Flippin AR 72634
> +1-870-453-8811 (Tel)
> +1-870-453-9286 (Fax)
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users


trap.pl
Description: Perl program


snmptrapd.conf
Description: Binary data


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Ok can you add the line:

trap2sink ipaddress comunityname
trapcommunity communityname

to your snmpd.conf file.


The ipaddress is the ip address of your local machine and community name is
the community name you specified
whilst building.

Much appreciated,
Garyc

- Original Message -
From: "Russ Woodman" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Sent: Thursday, December 16, 2004 9:22 AM
Subject: Re: Cannot Process SNMP Traps


> Hi,
>
> You are correct in your assessment.  I'm running snmpd and snmptrapd on
> the same machine in this instance.  My Ethernet ports are set up
> correctly and receiving trap packets (snmptrapd -d and tcpdump both show
> them).  When I start up snmptrapd thusly:
>
> snmptrapd -d -Lo -f -Dsnmptrapd,read_config:traphandle
>
> I get this:
>
> read_config:traphandle: registering handler for: SNMPv2-MIB::coldStart
> read_config:traphandle: registering handler for: default
> 2004-12-16 09:15:17 NET-SNMP version 5.1.2 Started.
>
> And then when I start up snmpd, I get nothing.  No packet, no log entry,
> no log to standard out, nothing.  I can see other traps coming in from
> remote hosts.  For example:
>
> Received 226 bytes from 205.167.142.15
> : 30 81 DF 02  01 00 04 05  4E 61 74 63  6F A4 81 D2
0...Natco...
> 0016: 06 06 2B 06  01 04 01 09  40 04 CD A7  8E 0F 02 01
[EMAIL PROTECTED]
> 0032: 06 02 01 01  43 04 07 D3  4E 5A 30 81  B5 30 12 06
C...NZ0..0..
> 0048: 0D 2B 06 01  04 01 09 02  09 03 01 01  02 01 02 01
.+..
> 0064: 05 30 20 06  1B 2B 06 01  02 01 06 0D  01 01 81 4D.0
..+.M
> 0080: 81 27 81 0E  0F 17 81 4D  81 27 81 0E  1E 82 B1 7D
.'.M.'.}
> 0096: 02 01 00 30  23 06 1D 2B  06 01 04 01  09 02 06 01
...0#..+
> 0112: 01 05 81 4D  81 27 81 0E  0F 17 81 4D  81 27 81 0E
...M.'.M.'..
> 0128: 1E 82 B1 7D  02 02 00 C8  30 22 06 1D  2B 06 01 04
...}0"..+...
> 0144: 01 09 02 06  01 01 01 81  4D 81 27 81  0E 0F 17 81
M.'.
> 0160: 4D 81 27 81  0E 1E 82 B1  7D 02 01 00  30 22 06 1D
M.'.}...0"..
> 0176: 2B 06 01 04  01 09 02 06  01 01 02 81  4D 81 27 81
+...M.'.
> 0192: 0E 0F 17 81  4D 81 27 81  0E 1E 82 B1  7D 02 01 0C
M.'.}...
> 0208: 30 10 06 0C  2B 06 01 04  01 09 02 09  02 01 12 02
0...+...
> 0224: 04 00 ..
>
> But nothing is logged by the trap handlers.  My snmpd.conf and
> snmptrapd.conf files are attached.  I don't have /var/snmpd logs.  I'm
> running net-snmp from Debian packages.
>
> Thanks,
> Russ
>
> Gary Clark wrote:
> > Ok let me get this right:
> >
> > 1) You start the snmptrapd
> > 2) You start the snmpd
> > 3) You dont see a coldStart trap when you use the perl script and trapd
> > configuration file I sent you.
> >
> >
> > Are you running the snmpd and snmptrapd locally or remotely?
> >
> > Can you also send the output from the /var/snmpd log?
> >
> > Can you also send the snmpd configuration file?
> >
> > I know this might sound dumb but I'm assuming your ethernet ports are
set
> > correctly.
> >
> > Thanks,
> > Garyc
> >
> >
> > - Original Message -
> > From: "Russ Woodman" <[EMAIL PROTECTED]>
> > To: "Gary Clark" <[EMAIL PROTECTED]>
> > Cc: "Alex Burger" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, December 16, 2004 8:14 AM
> > Subject: Re: Cannot Process SNMP Traps
> >
> >
> >
> >>Hi,
> >>
> >>Yes, I tried those scripts and configs as you sent them.  The results
> >>are the same.  No traps are ever logged.
> >>
> >>Russ
> >>
> >>Gary Clark wrote:
> >>
> >>>Hi,
> >>>
> >>>snmptrapd -c /home/garyc/snmptrapd.conf
> >>>
> >>>I sent the snmptrapd.conf I use for coldstart trap out yesterday and
> >
> > also a
> >
> >>>perl script you can use
> >>>inconjunction with the snmptrapd.conf.
> >>>
> >>>Have you tried doing that?
> >>>
> >>>Thanks,
> >>>Garyc
> >>
> >>
> >>---
> >>SF email is sponsored by - The IT Product Guide
> >>Read honest & candid reviews on hundreds of IT Products from real users.
> >>Discover which products truly live up to the hype. Start reading now.
> >>http://productguide.itmanagersjournal.com/
> >>___

Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark



My apologies what I wanted to say was "I'm guessing snmptrapd doesnt know
about snmptrapd.conf".

> Thanks,
> Garyc
>
> - Original Message -
> From: "Gary Clark" <[EMAIL PROTECTED]>
> To: "Russ Woodman" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, December 16, 2004 9:47 AM
> Subject: Re: Cannot Process SNMP Traps
>
>
> > Hi Russ,
> >
> > Can you tell me what lines you exactly put into the snmpd.conf
> > and also exactly how you run snmptrapd. I'm guessing snmptrapd doesnt
know
> > about snmpd.conf.
> >
> > Also what the path on perl?
> >
> > i.e which perl.
> >
> > Thanks,
> > Garyc
> > - Original Message -
> > From: "Russ Woodman" <[EMAIL PROTECTED]>
> > To: "Gary Clark" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Thursday, December 16, 2004 9:47 AM
> > Subject: Re: Cannot Process SNMP Traps
> >
> >
> > > Gary,
> > >
> > > I didn't built snmp, I installed it from debs, so I don't know what
the
> > > trap community would be.  However, I did put these lines in snmpd.conf
> > > and then checked snmptrapd.  The packets were received then, but still
> > > not logged.  In each case, I got this output from snmptrapd's debug:
> > >
> > > trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
> > > netsnmp_udp: recvfrom fd 7 got 97 bytes (from 127.0.0.1)
> > > trace: _sess_process_packet(): snmp_api.c, 4892:
> > > sess_process_packet: session 0x808b860 fd 7 pkt 0x808d118 length 97
> > > trace: _sess_process_packet(): snmp_api.c, 4916:
> > > sess_process_packet: pre-parse fail
> > > trace: _sess_read(): snmp_api.c, 5210:
> > > sess_read: not reading 5 (fdset 0xbc60 set 0)
> > > trace: _sess_read(): snmp_api.c, 5210:
> > > sess_read: not reading 3 (fdset 0xbc60 set 0)
> > > trace: snmp_sess_select_info(): snmp_api.c, 5622:
> > > sess_select: for all sessions: 7 5 3
> > >
> > > I don't know what "pre-parse fail" means, but it seems like it must be
> > > the root of my problem.
> > >
> > > Regards,
> > > Russ
> > >
> > > Gary Clark wrote:
> > > > Ok can you add the line:
> > > >
> > > > trap2sink ipaddress comunityname
> > > > trapcommunity communityname
> > > >
> > > > to your snmpd.conf file.
> > > >
> > > >
> > > > The ipaddress is the ip address of your local machine and community
> name
> > is
> > > > the community name you specified
> > > > whilst building.
> > > >
> > > > Much appreciated,
> > > > Garyc
> >
> >
> >
> > ---
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > ___
> > Net-snmp-users mailing list
> > [EMAIL PROTECTED]
> > Please see the following page to unsubscribe or change other options:
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Hi Russ,

Can you tell me what lines you exactly put into the snmpd.conf
and also exactly how you run snmptrapd. I'm guessing snmptrapd doesnt know
about snmpd.conf.

Also what the path on perl?

i.e which perl.

Thanks,
Garyc
- Original Message -
From: "Russ Woodman" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 16, 2004 9:47 AM
Subject: Re: Cannot Process SNMP Traps


> Gary,
>
> I didn't built snmp, I installed it from debs, so I don't know what the
> trap community would be.  However, I did put these lines in snmpd.conf
> and then checked snmptrapd.  The packets were received then, but still
> not logged.  In each case, I got this output from snmptrapd's debug:
>
> trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
> netsnmp_udp: recvfrom fd 7 got 97 bytes (from 127.0.0.1)
> trace: _sess_process_packet(): snmp_api.c, 4892:
> sess_process_packet: session 0x808b860 fd 7 pkt 0x808d118 length 97
> trace: _sess_process_packet(): snmp_api.c, 4916:
> sess_process_packet: pre-parse fail
> trace: _sess_read(): snmp_api.c, 5210:
> sess_read: not reading 5 (fdset 0xbc60 set 0)
> trace: _sess_read(): snmp_api.c, 5210:
> sess_read: not reading 3 (fdset 0xbc60 set 0)
> trace: snmp_sess_select_info(): snmp_api.c, 5622:
> sess_select: for all sessions: 7 5 3
>
> I don't know what "pre-parse fail" means, but it seems like it must be
> the root of my problem.
>
> Regards,
> Russ
>
> Gary Clark wrote:
> > Ok can you add the line:
> >
> > trap2sink ipaddress comunityname
> > trapcommunity communityname
> >
> > to your snmpd.conf file.
> >
> >
> > The ipaddress is the ip address of your local machine and community name
is
> > the community name you specified
> > whilst building.
> >
> > Much appreciated,
> > Garyc



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark

Hi Russ,

Can you please run:

snmptrapd -c /home/snmptrapd.conf

with the configuration file I sent you. The perl script I also provided
should be in the same directory that you have the snmptrapd.conf.

Thanks,
Garyc
- Original Message -
From: "Gary Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 16, 2004 9:54 AM
Subject: Cannot Process SNMP Traps


>
>
>
> My apologies what I wanted to say was "I'm guessing snmptrapd doesnt know
> about snmptrapd.conf".
>
> > Thanks,
> > Garyc
> >
> > - Original Message -
> > From: "Gary Clark" <[EMAIL PROTECTED]>
> > To: "Russ Woodman" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Thursday, December 16, 2004 9:47 AM
> > Subject: Re: Cannot Process SNMP Traps
> >
> >
> > > Hi Russ,
> > >
> > > Can you tell me what lines you exactly put into the snmpd.conf
> > > and also exactly how you run snmptrapd. I'm guessing snmptrapd doesnt
> know
> > > about snmpd.conf.
> > >
> > > Also what the path on perl?
> > >
> > > i.e which perl.
> > >
> > > Thanks,
> > > Garyc
> > > - Original Message -
> > > From: "Russ Woodman" <[EMAIL PROTECTED]>
> > > To: "Gary Clark" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Thursday, December 16, 2004 9:47 AM
> > > Subject: Re: Cannot Process SNMP Traps
> > >
> > >
> > > > Gary,
> > > >
> > > > I didn't built snmp, I installed it from debs, so I don't know what
> the
> > > > trap community would be.  However, I did put these lines in
snmpd.conf
> > > > and then checked snmptrapd.  The packets were received then, but
still
> > > > not logged.  In each case, I got this output from snmptrapd's debug:
> > > >
> > > > trace: netsnmp_udp_recv(): snmpUDPDomain.c, 133:
> > > > netsnmp_udp: recvfrom fd 7 got 97 bytes (from 127.0.0.1)
> > > > trace: _sess_process_packet(): snmp_api.c, 4892:
> > > > sess_process_packet: session 0x808b860 fd 7 pkt 0x808d118 length 97
> > > > trace: _sess_process_packet(): snmp_api.c, 4916:
> > > > sess_process_packet: pre-parse fail
> > > > trace: _sess_read(): snmp_api.c, 5210:
> > > > sess_read: not reading 5 (fdset 0xbc60 set 0)
> > > > trace: _sess_read(): snmp_api.c, 5210:
> > > > sess_read: not reading 3 (fdset 0xbc60 set 0)
> > > > trace: snmp_sess_select_info(): snmp_api.c, 5622:
> > > > sess_select: for all sessions: 7 5 3
> > > >
> > > > I don't know what "pre-parse fail" means, but it seems like it must
be
> > > > the root of my problem.
> > > >
> > > > Regards,
> > > > Russ
> > > >
> > > > Gary Clark wrote:
> > > > > Ok can you add the line:
> > > > >
> > > > > trap2sink ipaddress comunityname
> > > > > trapcommunity communityname
> > > > >
> > > > > to your snmpd.conf file.
> > > > >
> > > > >
> > > > > The ipaddress is the ip address of your local machine and
community
> > name
> > > is
> > > > > the community name you specified
> > > > > whilst building.
> > > > >
> > > > > Much appreciated,
> > > > > Garyc
> > >
> > >
> > >
> > > ---
> > > SF email is sponsored by - The IT Product Guide
> > > Read honest & candid reviews on hundreds of IT Products from real
users.
> > > Discover which products truly live up to the hype. Start reading now.
> > > http://productguide.itmanagersjournal.com/
> > > ___
> > > Net-snmp-users mailing list
> > > [EMAIL PROTECTED]
> > > Please see the following page to unsubscribe or change other options:
> > > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Traps creation

2004-12-16 Thread Gary Clark
Have a wee' brouse at the notification.c in the examples directory of you
net-snmp installation.

Cheers,
Garyc

- Original Message -
From: "Mike Mohamet" <[EMAIL PROTECTED]>
To: "Net-Snmp" <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 2004 3:57 AM
Subject: Traps creation


> Hi all,
>
> I am using ucd-snmp-4.2.6 in my workstation PC. I read the tutorial about
the
> UCD-SNMP traps. In this tutorial I have to send the trap in order for the
> trap handler to dislpay it.
> I was wondering if there is a way (and documentation about it ) for the
agent
> to automatically send the trap when a specific event occur (e.g. when a
> counter reach a specific value).
>
> Regards,
> Mike
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Hi,

snmptrapd -c /home/garyc/snmptrapd.conf

I sent the snmptrapd.conf I use for coldstart trap out yesterday and also a
perl script you can use
inconjunction with the snmptrapd.conf.

Have you tried doing that?

Thanks,
Garyc

- Original Message -
From: "Russ Woodman" <[EMAIL PROTECTED]>
To: "Alex Burger" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 2004 1:25 PM
Subject: Re: Cannot Process SNMP Traps


> Hi,
>
> When I run snmptrapd with the options specified below, I get:
>
> read_config:traphandle: registering handler for: default
> 2004-12-15 13:20:19 NET-SNMP version 5.1.2 Started.
>
> When I send a trap, either from a Cisco device or by using the following
> command:
>
> snmptrap -v 1 - c public localhost TRAP-TEST-MIB::demotraps localhost 6 17
> '' SNMPv2-MIB::sysLocation.0 s "Just here"
>
> There is no debugging output at all.  I know the packets are being
> received because tcpdump shows them, but they seem to be summarily ignored
> by snmpd/snmptrapd.
>
> As you can see from the debug output, I am running version 5.1.2.
>
> Any clue what's wrong?
>
> Russ
>
> >
> > Try running snmptrapd in the foreground with debugging for
> > read_config:traphandle and snmptrapd.
> >
> > snmptrapd -f -Lo -Dsnmptrapd,read_config:traphandle
> >
> > When I send a test trap, I get:
> >
> > read_config:traphandle: registering handler for: default
> > 2004-12-14 21:41:49 NET-SNMP version 5.2.pre1 Started.
> > snmptrapd: input: a7
> > snmptrapd: Trap OID: SNMPv2-SMI::enterprises.534.1.11.4.1.0.22
> > snmptrapd: print_handler
> > snmptrapd: v2/3 format
> > 2004-12-14 21:41:55 localhost [127.0.0.1]:
> > SNMPv2-MIB::sysUpTime.0 = Timeticks: (12345) 0:02:03.45
> > SNMPv2-MIB::snmpTrapOID.0 = OID:
> > SNMPv2-SMI::enterprises.534.1.11.4.1.0.22
> > SNMPv2-SMI::enterprises.534.1.7.2.1.1.52 = INTEGER: 52
> > SNMPv2-SMI::enterprises.534.1.7.2.1.2.52 = OID:
> > SNMPv2-SMI::enterprises.534.1.7.15
> > SNMPv2-SMI::enterprises.534.1.11.3.0 = STRING: "Alex"
> > snmptrapd: get_traphandler default (80704d8)
> > snmptrapd: command_handler
> > snmptrapd: token = '/root/traphandle-help default'
> > snmptrapd: execute format
> > snmptrapd: notification_handler
> >
> > What do you get?
> >
> > What version of Net-SNMP are you using?
> >
> > Alex
>
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Hi Russ,

Yeh it would be good to start with getting your basic coldstart trap to work
and then go from there.

Cheers,
Garyc

- Original Message -
From: "Russ Woodman" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, December 14, 2004 10:50 AM
Subject: Re: Cannot Process SNMP Traps


> Gary,
>
> Forgive me if anything I say after this sentence is naive or misinformed.
>
> Gary Clark wrote:
> > Hi,
> >
> > Ok three monthsGood one.
>
> That's probably an understatement.  So much for trying to figure it out
> on my own.
>
> > 1) When running your agent have you configured your snmpd.conf to send
> > traps?
>
> As stated below, I'm trying to receive traps from external devices
> (Cisco routers, etc.) so I'm not sure why this is relevant.
>
> > 2) When running the snmptrapd it also has an associated configuration
file
> > this
> >  should contain an oid value and a perl script which is called when
the
> > trap is received.
>
> My snmptrapd.conf is shown below in the original message.  It contains a
> traphandle line with a default entry for processing any trap (I would
> think).
>
> > 3)  Examine the FAQ. This has more information.
>
> I've read the man pages and FAQs a hundred times if I've read them once.
>
> > 4)  The most obvious trap to look for is the coldStart trap which is
sent
> > when your agent
> >   has completed initialisation.
>
> I'll attempt to get my local agent to send a trap to the local host.
> This is something I hadn't tried previously because I'm not interested
> in Linux server snmp traps on the local host.
>
> > 5)  If you get stuck I will help you more so dont panic ok.
>
> I appreciate that.
>
> > Cheers,
> > Garyc
> >
> >
> >
> > - Original Message -
> > From: "Russ Woodman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 14, 2004 9:48 AM
> > Subject: Cannot Process SNMP Traps
> >
> >
> >
> >>Hi,
> >>
> >>I am attempting to receive traps from various devices on my network
> >>(Copper Mountain DSLAMs, Cisco routers, etc.) so that I can then funnel
> >>the traps into Nagios for network monitoring.  However, nothing I have
> >>tried for the last three or more months has allowed me to receive/handle
> >>any traps sent by any devices.  Below are some relevant files and
> >>configuration.
> >>
> >>10782 ?S  0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -p
> >>/var/run/snmpd.pid
> >>10784 ?Ss 0:00 /usr/sbin/snmptrapd -Lsd -p
> >>/var/run/snmptrapd.pid
> >>
> >>snmptrapd.conf:
> >>traphandle default /usr/local/bin/traphandle.sh default
> >>
> >>traphandle.sh:
> >>#!/bin/bash
> >>
> >>LOGFILE="/tmp/snmptrapd.log"
> >>
> >>case ${1} in
> >>   default)
> >> echo -e "Found default trap:" >> ${LOGFILE}
> >> echo -e "${*}\n" >> ${LOGFILE}
> >> ;;
> >>   *)
> >> echo -e "Found unhandled trap:" >> ${LOGFILE}
> >> echo -e "${*}\n" >> ${LOGFILE}
> >> ;;
> >>esac
> >>
> >>exit 0
> >>
> >>snmp.conf
> >>mibs ALL
> >>
> >>I have the Copper Mountain MIB located in /usr/share/snmp/mibs, where
> >>all of the other default MIBs are located.  When run in debug mode, the
> >>snmptrapd output shows the Copper Mountain MIB is processed.  When I
> >>bring up and drop an interfaces on a Copper Mountain DSLAM, tcpdump on
> >>the receiving host running snmptrapd shows:
> >>
> >>09:36:35.926828 IP 172.20.7.2.1966 >
> >>ldhl-sentry.natcotech.com.snmp-trap:  C=Natco Trap(36)  E:1996
> >>172.20.7.2 enterpriseSpecific s=12 132246500 .iso.org=[|snmp]
> >>09:37:14.772609 IP 172.20.7.2.1967 >
> >>ldhl-sentry.natcotech.com.snmp-trap:  C=Natco Trap(36)  E:1996
> >>172.20.7.2 enterpriseSpecific s=12 132246890 .iso.org=[|snmp]
> >>
> >>So I know the trap packet is being received.  But the file
> >>/tmp/snmptrapd.log referenced in the traphandle.sh script never has
> >>anything in it.
> >>
> >>Can someone please help me figure out why I have never been able to
> >>receive or process SNMP traps using net-snmp--before I go stark raving
> >>mad?  If someone is able to work with me via phone or IM in an
> >>interactive way, that would be greatly appreciated.
> >>
> >>Regards,
> >>Russ



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Cannot Process SNMP Traps

2004-12-16 Thread Gary Clark
Hi,

Ok three monthsGood one.

1) When running your agent have you configured your snmpd.conf to send
traps?
2) When running the snmptrapd it also has an associated configuration file
this
 should contain an oid value and a perl script which is called when the
trap is received.
3)  Examine the FAQ. This has more information.
4)  The most obvious trap to look for is the coldStart trap which is sent
when your agent
  has completed initialisation.
5)  If you get stuck I will help you more so dont panic ok.

Cheers,
Garyc



- Original Message -
From: "Russ Woodman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 14, 2004 9:48 AM
Subject: Cannot Process SNMP Traps


> Hi,
>
> I am attempting to receive traps from various devices on my network
> (Copper Mountain DSLAMs, Cisco routers, etc.) so that I can then funnel
> the traps into Nagios for network monitoring.  However, nothing I have
> tried for the last three or more months has allowed me to receive/handle
> any traps sent by any devices.  Below are some relevant files and
> configuration.
>
> 10782 ?S  0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -p
> /var/run/snmpd.pid
> 10784 ?Ss 0:00 /usr/sbin/snmptrapd -Lsd -p
> /var/run/snmptrapd.pid
>
> snmptrapd.conf:
> traphandle default /usr/local/bin/traphandle.sh default
>
> traphandle.sh:
> #!/bin/bash
>
> LOGFILE="/tmp/snmptrapd.log"
>
> case ${1} in
>default)
>  echo -e "Found default trap:" >> ${LOGFILE}
>  echo -e "${*}\n" >> ${LOGFILE}
>  ;;
>*)
>  echo -e "Found unhandled trap:" >> ${LOGFILE}
>  echo -e "${*}\n" >> ${LOGFILE}
>  ;;
> esac
>
> exit 0
>
> snmp.conf
> mibs ALL
>
> I have the Copper Mountain MIB located in /usr/share/snmp/mibs, where
> all of the other default MIBs are located.  When run in debug mode, the
> snmptrapd output shows the Copper Mountain MIB is processed.  When I
> bring up and drop an interfaces on a Copper Mountain DSLAM, tcpdump on
> the receiving host running snmptrapd shows:
>
> 09:36:35.926828 IP 172.20.7.2.1966 >
> ldhl-sentry.natcotech.com.snmp-trap:  C=Natco Trap(36)  E:1996
> 172.20.7.2 enterpriseSpecific s=12 132246500 .iso.org=[|snmp]
> 09:37:14.772609 IP 172.20.7.2.1967 >
> ldhl-sentry.natcotech.com.snmp-trap:  C=Natco Trap(36)  E:1996
> 172.20.7.2 enterpriseSpecific s=12 132246890 .iso.org=[|snmp]
>
> So I know the trap packet is being received.  But the file
> /tmp/snmptrapd.log referenced in the traphandle.sh script never has
> anything in it.
>
> Can someone please help me figure out why I have never been able to
> receive or process SNMP traps using net-snmp--before I go stark raving
> mad?  If someone is able to work with me via phone or IM in an
> interactive way, that would be greatly appreciated.
>
> Regards,
> Russ
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Repost: Unable to send v2 coldstart traps under 5.2

2004-12-15 Thread Gary Clark
Have you configured your ip machine correctly?
> ipconfig

Thanks,
Garyc

- Original Message -
From: "Darren Gamble" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 2004 3:55 PM
Subject: Repost: Unable to send v2 coldstart traps under 5.2


> Good day,
>
> I sent this message to the list last week, but no one replied.
>
> I'd really like to get this problem resolved so that I can upgrade to 5.2,
> so I'm just trying once more...  Any help would be really appreciated.
>
> Thanks in advance!
>
> 
> Darren Gamble
> Planner, Regional Services
> Shaw Cablesystems GP
> 630 - 3rd Avenue SW
> Calgary, Alberta, Canada
> T2P 4L4
> (403) 781-4948
>
>
> -Original Message-
> From: Darren Gamble
> Sent: December 8, 2004 3:35 PM
> To: [EMAIL PROTECTED]
> Subject: Unable to send v2 coldstart traps under 5.2
>
>
> Good day,
>
> I've just installed net-snmp-5.2, and am doing some testing on it before
we
> roll it out.  This is on Fedora Core 2, 2.6.9 smp kernel.  I grabbed the
5.2
> tarball, put it into the FC2 rpm and took out the Fedora rpm patches.
>
> It mostly works, but, now the v2 cold start and cold stop traps don't get
> sent.  The server logs:
>
>
> snmpd: send_trap: Failure in sendto (Invalid argument)
>
>
> The config file entry is simply:
>
>
> trap2sink x.x.x.x public
>
>
> Searching came up with one person with a similar problem, who noted that
the
> agent was trying to send his v3 traps from the localhost address (his
> problem didn't get resolved).  I noticed that if I change the trap host to
> 127.0.0.1, then the trap is successfully sent via loopback.  Any
> non-localhost address appears to fail.
>
> Am I missing something here?  I also tried putting the Fedora rpm patches
> back in; no luck.
>
> Thanks in advance!
>
> 
> Darren Gamble
> Planner, Regional Services
> Shaw Cablesystems GP
> 630 - 3rd Avenue SW
> Calgary, Alberta, Canada
> T2P 4L4
> (403) 781-4948
>
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> ___
> Net-snmp-users mailing list
> [EMAIL PROTECTED]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Deletion of rows from tables

2004-12-23 Thread Gary Clark
Hello,

I have recently spent some time looking at a problem I was seeing and am
asking anyone else if they
have seen this problem also.

Using RedHat 9.0 and net-snmp 5.1.2.

mib2c was used tocreate a template from the MIB.Everything was fine until I
wanted to delete an entry from the MIB.
I was seeing an error to delete a row from the container.
I examined the container.h and displayed what is inserted into the MIB and
what is removed. Within the container.h
there are two inline functions...ugh! one is called CONTAINER_REMOVE and one
is called CONTAINER_INSERT
.Within the insert function inserts the row of the table into a linked list
and then gets the next ptr of the table. This
is what is bothering me. Its inserting the value of the next container and
row into the list. I dont think this should be
doing this.
When I delete a row there are of course multiple containers within the list
when I only added one entry hence the failed
error message. The MIB row does get removed, but why is the next value of
the container also going into the list?

Any ideas?

Much appreciated,
Garyc




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Deletion of rows from tables

2004-12-28 Thread Gary Clark
Robert,

The point is that I was trying to understand where and how I can delete a
row from a MIB entry since there
is no documentation on this issue. I simply tried to trace how rows get
inserted and how they get removed.

> GC> When I delete a row there are of course multiple containers within the
list
> GC> when I only added one entry hence the failed error message.
>
> I don't follow your logic here. If there are multiple containers, insert
would
> have added the row to all of them, and thus it needs to be removed from
all of
> them.

Yes its a little fuzzy. The row index gets added to multiple containers when
I insert a row.

> If you are not using the secondary container, I suggest you undefine the
macro
> controlling its use (eg myTable_IDX2, defined in the header file).

Ahh thats the answer.Would really like to of known that.


Much appreciated,
Garyc




- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, December 27, 2004 8:59 AM
Subject: Re: Deletion of rows from tables


> On Thu, 23 Dec 2004 11:20:58 -0600 Gary wrote:
> GC> mib2c was used tocreate a template from the MIB.Everything was fine
until I
> GC> wanted to delete an entry from the MIB.
>
> I assume you used the array-user mib2c conf file?
>
> GC> I was seeing an error to delete a row from the container.
>
> How were you deleting the row, and what was the error?
>
> GC> one is called CONTAINER_REMOVE and one is called CONTAINER_INSERT
> GC> .Within the insert function inserts the row of the table into a linked
list
> GC> and then gets the next ptr of the table.
>
> This is to allow a container to have multiple sort orders. For example,
being
> sorted by the MIB index (maybe an integer) and a string (like a name).
There is
> still only a single row, shared by two containers.
>
> GC> When I delete a row there are of course multiple containers within the
list
> GC> when I only added one entry hence the failed error message.
>
> I don't follow your logic here. If there are multiple containers, insert
would
> have added the row to all of them, and thus it needs to be removed from
all of
> them.
>
> If you are not using the secondary container, I suggest you undefine the
macro
> controlling its use (eg myTable_IDX2, defined in the header file).
>
> --
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Mib row deletion

2004-12-30 Thread Gary Clark
Hi Robert,

Yeh thats true that would work.

Thanks,
Garyc



- Original Message -
From: "Robert Story (Users)" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, December 29, 2004 5:49 PM
Subject: Re: Mib row deletion


> On Wed, 8 Dec 2004 11:19:18 -0600 Gary wrote:
> GC> A quick question on deleting mibs. I'm using mib2c to generate the c
code.
> GC> All very dandy except I'm not on exactly how
> GC> to remove rows from the table. I thought I could use
> GC>
> GC> CONTAINER_REMOVE(sig.container,row_ctx);
> GC>
> GC> This does indeed remove the row from the mib table however I'm seeing
an
> GC> error in the snmpd log:
> GC>
> GC> error on subcontainer remove (-1)
> GC>
> GC> Now I take it I'm doing something wrong. Whats the procedure for
removing a
> GC> row_entry?
>
> I'm assuming this is the array-use code, in which case you can simply set
> 'rg->row_deleted = 1;' and the helper code will delete it for you.
>
> --
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Net-SNMP 5.1.2 Memory leaks

2005-04-19 Thread Gary Clark
hello,

Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
I'm using the function CONTAINER_REMOVE to remove the context but its looks
like
it does not free memory? Eek? Has anybodyelse seen this? The context does
appear to be free from the list but no memory deallocation?

Thanks,
Garyc




---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Fw: Net-SNMP 5.1.2 Memory leaks on RH9

2005-04-20 Thread Gary Clark
Hello,

Ok I'm a little puzzled what I'm seeing:

I call CONTAINER_REMOVE (container,row);

This does indeed appear to remove the row. But the size of snmpd does not
reduce in size. After I have made the call the container does appear to be
purged of the row, but the memory size is still the same? Has anybody an
answer to this or seen this? its like row is marked as deleted but not
removed?

Thanks,
Garyc

- Original Message -----
From: "Gary Clark" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 19, 2005 6:03 PM
Subject: Net-SNMP 5.1.2 Memory leaks


> hello,
>
> Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
> I'm using the function CONTAINER_REMOVE to remove the context but its
looks
> like
> it does not free memory? Eek? Has anybodyelse seen this? The context does
> appear to be free from the list but no memory deallocation?
>
> Thanks,
> Garyc
>
>



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Fw: Net-SNMP 5.1.2 Memory leaks on RH9

2005-04-20 Thread Gary Clark
At the moment I cycle through all the rows in the container and call
CONTAINER_REMOVE. Is there a function I can use
to clear the contents of the container? I may be misusing this
CONTAINER_REMOVE although the entry does appear to get removed just not
freed from memory?

Thanks,
Garyc

- Original Message -
From: "Gary Clark" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 20, 2005 1:58 PM
Subject: Fw: Net-SNMP 5.1.2 Memory leaks on RH9


> Hello,
>
> Ok I'm a little puzzled what I'm seeing:
>
> I call CONTAINER_REMOVE (container,row);
>
> This does indeed appear to remove the row. But the size of snmpd does not
> reduce in size. After I have made the call the container does appear to be
> purged of the row, but the memory size is still the same? Has anybody an
> answer to this or seen this? its like row is marked as deleted but not
> removed?
>
> Thanks,
> Garyc
>
> - Original Message -
> From: "Gary Clark" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, April 19, 2005 6:03 PM
> Subject: Net-SNMP 5.1.2 Memory leaks
>
>
> > hello,
> >
> > Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
> > I'm using the function CONTAINER_REMOVE to remove the context but its
> looks
> > like
> > it does not free memory? Eek? Has anybodyelse seen this? The context
does
> > appear to be free from the list but no memory deallocation?
> >
> > Thanks,
> > Garyc
> >
> >
>
>
>
> ---
> This SF.Net email is sponsored by: New Crystal Reports XI.
> Version 11 adds new functionality designed to reduce time involved in
> creating, integrating, and deploying reporting solutions. Free runtime
info,
> new features, or free trial, at: http://www.businessobjects.com/devxi/728
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Are there any examples of SNMP::TrapSession - I'll be darnedIf I can get it to work!

2005-04-21 Thread Gary Clark
Has anybody ran purify on this ?

Cheers,
Garyc
- Original Message -
From: "Wes Hardaker" <[EMAIL PROTECTED]>
To: "Andy Ford" <[EMAIL PROTECTED]>
Cc: "Wes Hardaker" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; "Net-Snmp (E-mail)"

Sent: Wednesday, April 20, 2005 1:43 PM
Subject: Re: Are there any examples of SNMP::TrapSession - I'll be darnedIf
I can get it to work!


> > On Wed, 20 Apr 2005 10:03:10 +0100, "Andy Ford"
<[EMAIL PROTECTED]> said:
>
> Andy> I have taken a look at the embedded Perl approach and written a
script
> Andy> to do exactly what I want. Unfortunately, there is a huge memory
leak in
> Andy> the Perl side. I have already spoken to Robert Story ref this
problem
> Andy> and we have agreed it is the embedded Perl implementation rather
than
> Andy> snmptrapd itself.
>
> I actually have been planning on working on that issue, so maybe we
> can solve the problem in the first place.
>
> Andy> I don't believe it's a memory leak per-say rather the embedded
> Andy> perl is holding on to every processed trap.
>
> The c-code binding between perl and snmptrapd is probably not properly
> counting and releasing references.
>
> --
> Wes Hardaker
> Sparta, Inc.
>
>
> ---
> This SF.Net email is sponsored by: New Crystal Reports XI.
> Version 11 adds new functionality designed to reduce time involved in
> creating, integrating, and deploying reporting solutions. Free runtime
info,
> new features, or free trial, at: http://www.businessobjects.com/devxi/728
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Net-SNMP 5.1.2 Memory leaks

2005-04-21 Thread Gary Clark
Robert thanks for the response. I'm using the RH9 "top" command and I should
see a drop in memory allocation when I call CONTAINER_REMOVE.
I dont, I definetly see it when a container row is created but not when I
call CONTAINER_REMOVE hence my concern.
When I perform a get operation it does look like its getting removed from
the container, but I dont see any memory size change which I should. The
reason I know that the row is still present is that I can still use the
pointer to the row object after CONTAINER_REMOVE. Hence the object still
exists.
Thats why I think its "marked" and not deallocated.

When I add new rows to the container the snmpd grows in size despite it
assuming previous deletion.

I'm trying to get purify to run on this beast but its crashing. Yet to
debug.

Cheers,
Garyc

- Original Message -
From: "Robert Story" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, April 21, 2005 10:45 AM
Subject: Re: Net-SNMP 5.1.2 Memory leaks


> On Tue, 19 Apr 2005 18:03:13 -0500 Gary wrote:
> GC> Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
> GC> I'm using the function CONTAINER_REMOVE to remove the context but its
looks
> GC> like it does not free memory?
>
> Correct. It simply removes the item from the container. The container is
dumb,
> and doesn't know how the thing it is holding was allocated (or if it was
> allocated at all).
>
> CC> Eek? Has anybodyelse seen this? The context does
> GC> appear to be free from the list but no memory deallocation?
>
> Which conf file/helper are you using?
>
> --
> NOTE: messages sent directly to me, instead of the lists, will be deleted
>   unless they are requests for paid consulting services.
>
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> 
> Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards, all different.



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Net-SNMP 5.1.2 Memory leaks

2005-04-21 Thread Gary Clark
Ahh! I have just put the donkey outfit on and am now sitting in a corner
pretending I dont exist. Basically in my history with net-snmp project I
assumed better. Now much wiser, but still as stupid as a donkeys ass and
shining with pride I realized that I modified code in the table_array.c
which of course would not call the delete existing row. Now I have come to
my senses
and realize that I should chew on a carrot and lean towards sanity on this
issue. There is no leak.

Thank you.

- Original Message -
From: "Gary Clark" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, April 21, 2005 2:18 PM
Subject: Re: Net-SNMP 5.1.2 Memory leaks


> Robert thanks for the response. I'm using the RH9 "top" command and I
should
> see a drop in memory allocation when I call CONTAINER_REMOVE.
> I dont, I definetly see it when a container row is created but not when I
> call CONTAINER_REMOVE hence my concern.
> When I perform a get operation it does look like its getting removed from
> the container, but I dont see any memory size change which I should. The
> reason I know that the row is still present is that I can still use the
> pointer to the row object after CONTAINER_REMOVE. Hence the object still
> exists.
> Thats why I think its "marked" and not deallocated.
>
> When I add new rows to the container the snmpd grows in size despite it
> assuming previous deletion.
>
> I'm trying to get purify to run on this beast but its crashing. Yet to
> debug.
>
> Cheers,
> Garyc
>
> - Original Message -
> From: "Robert Story" <[EMAIL PROTECTED]>
> To: "Gary Clark" <[EMAIL PROTECTED]>
> Cc: 
> Sent: Thursday, April 21, 2005 10:45 AM
> Subject: Re: Net-SNMP 5.1.2 Memory leaks
>
>
> > On Tue, 19 Apr 2005 18:03:13 -0500 Gary wrote:
> > GC> Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
> > GC> I'm using the function CONTAINER_REMOVE to remove the context but
its
> looks
> > GC> like it does not free memory?
> >
> > Correct. It simply removes the item from the container. The container is
> dumb,
> > and doesn't know how the thing it is holding was allocated (or if it was
> > allocated at all).
> >
> > CC> Eek? Has anybodyelse seen this? The context does
> > GC> appear to be free from the list but no memory deallocation?
> >
> > Which conf file/helper are you using?
> >
> > --
> > NOTE: messages sent directly to me, instead of the lists, will be
deleted
> >   unless they are requests for paid consulting services.
> >
> > Robert Story; NET-SNMP Junkie
> > Support: <http://www.net-snmp.org/> 
> > Archive:
> <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
> >
> > You are lost in a twisty maze of little standards, all different.
>



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: help please

2005-04-29 Thread Gary Clark
Hi,

What is this fusiv_linux? Do we have a net-snmp installation for this? I
know for sure that net-snmp-5.1.2 works for RH9 and is
fairly simple to install and build...or is my memory that blow.

Thanks,
Garyc
- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "M. Vivek" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, April 29, 2005 4:15 AM
Subject: Re: help please


> On Fri, 2005-04-29 at 10:27, M. Vivek wrote:
> > Actually i was doing a cross compiling for
> > fusiv_linux. But i am facing the following problem now,
> > linux_kernal.c
> > is not included in Makefiles and there were some linker
> > errors happening.
>
> Pass - I have *no* experience of cross-compiling,
> which is probably where the problems are arising.
>
> Dave
>
>
>
> ---
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net
> Plus IDC's 2005 look-ahead and a copy of this survey
> Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Fw: How to get data in table through C code?

2005-05-02 Thread Gary Clark

- Original Message -
From: "Gary Clark" <[EMAIL PROTECTED]>
To: "秦宇伟" <[EMAIL PROTECTED]>
Sent: Monday, May 02, 2005 8:23 AM
Subject: Re: How to get data in table through C code?


> Hello All,
>
> Ha-hum! please read the FAQ this is an excellent starting point to
> understand what the hell is
> going on. The simplest approach at least I found, was to your construct
MIB
> table entries using ASN.1 notation and then use the magical mib2c to
> construct your tables into c template code. This is also explained in the
> FAQ.
>
> Thanks,
> Garyc
>
> PS
>
> Try to make your life simple.
>
> - Original Message -
> From: "秦宇伟" <[EMAIL PROTECTED]>
> To: "net-snmp-users" 
> Sent: Saturday, April 30, 2005 5:19 AM
> Subject: How to get data in table through C code?
>
>
> > dear all:
> >In the example: data_set.c, it showed how to set some row of a table
> through c code. Now I want to know how to get  some column value in the
> table throught c code. For example, in the data_set.c, I want to get the
> value of column 2: IETFWGChair1 in “snmpv3” row through C code.  What
can
> I do? And what function should I use ?
> >Thank you very much!!
> >
> >
>
[EMAIL PROTECTED]

> ㈥
> > ?庄z{l??砗x(?(!z?r??禳?!1?f?舷???sD ??&i噩?昌X
?
> ??? 0???索
> (???^符'
?
> 畋觎??x%?Mz哽??谦躇b槽??q玷Yh?啷??Р骒r?z???
?
> z??'厨m???槽??q玷-躇b藏??z哽???>



Re: [Bulk] Re: What am I missing (traps/notifications)

2005-08-11 Thread Gary Clark
Can you run snmpd -D? This should dump the /var/snmpd.log. Have you modified
snmpd.conf?

Thanks,
Garyc


- Original Message -
From: "Ben Z" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Sent: Thursday, August 11, 2005 1:32 PM
Subject: Re: [Bulk] Re: What am I missing (traps/notifications)


> Great! Thank you for the quick response.
>
> I am only really interested in coldStart traps for now, but they don't
> seem to be getting sent. I've used Ethereal and logging to verify.
> Would there be a good first place to start debugging?
>
> Regards,
>
>
> Ben Z
>
> On Thu, 2005-08-11 at 14:06, Gary Clark wrote:
> > yes it can send traps but you need to add code to the agent to send your
> > traps. By default when you start
> > your agent a coldStart trap is sent.
> >
> > Thanks,
> > Garyc
> >
> > - Original Message -
> > From: "Ben Z" <[EMAIL PROTECTED]>
> > To: "Ben Z" <[EMAIL PROTECTED]>;

> > Sent: Thursday, August 11, 2005 11:03 AM
> > Subject: Re: What am I missing (traps/notifications)
> >
> >
> > > Anyone?
> > >
> > > Can the agent be compiled to send traps??
> > >
> > > Thx,
> > >
> > > BZ
> > > --- Ben Z <[EMAIL PROTECTED]> wrote:
> > >
> > > > Whoops sorry, let me try that again... i guess i
> > > > copy-paste twice :S
> > > >
> > > > ./configure \
> > > >  --build=i386-unkown-freebsd4.9 \
> > > >  --disable-applications \
> > > > --enable-notification \
> > > >  --disable-manuals \
> > > > --with-mib-modules="notification disman/event-mib"\
> > > > --with-out-mib-modules="agentx snmpv3mibs" \
> > > >  --disable-scripts \
> > > >  --enable-mini-agent \
> > > > --without-kmem-usage \
> > > > --without-rpm \
> > > > --with-logfile=/var/log \
> > > > --with-sys-location=RadialinkNetwork \
> > > > [EMAIL PROTECTED] \
> > > > --with-default-snmp-version=2 \
> > > >   --with-persistent-directory=/var/ucd-snmp \
> > > > --enable-ucd-snmp-compatibility \
> > > > --with-transports="UDP" \
> > > > --with-out-transports="TCP Unix Callback" \
> > > > --enable-static \
> > > > --disable-shared \
> > > > LDFLAGS=-lm
> > > > --- Ben Z <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi all;
> > > > >
> > > > > I am trying to compile a minimal agent for an
> > > > > embedded
> > > > > system, and I would like for it to send basic
> > > > > notifications for now (coldStart, etc).
> > > > >
> > > > > I have read and read through the documentation,
> > > > and
> > > > > from the bits and pieces I picked up, I have
> > > > > gathered
> > > > > (maybe mistakenly) that sending these traps from
> > > > the
> > > > > agent is possible
> > > > >
> > > > > Can someone tell me what I am doing wrong?? Here's
> > > > > the
> > > > > configuration directives I am using:
> > > > >
> > > > > ./configure \
> > > > >  --build=i386-unkown-freebsd4.9 \
> > > > >  --disable-applications \
> > > > > --enable-notification \
> > > > >  --disable-manuals \
> > > > > --with-mib-modules="notification
> > > > disman/event-mib"\
> > > > > --with-out-mib-modules="agentx snmpv3mibs" \
> > > > >  --disable-scripts \
> > > > >  --enable-mini-agent \
> > > > > --without-kmem-usage \
> > > > > --without-rpm \
> > > > > --with-logfile=/var/log \
> > > > > --with-sys-location=RadialinkNetwork \
> > > > > [EMAIL PROTECTED] \
> > > > > --with-default-snmp-version=2 \./configure
> > > > \
> > > > >  --build=i386-unkown-freebsd4.9 \
> > > > >  --disable-applications \
> > > > > --enable-notification \
> > > > >  --disable-manuals \
> > > > > --with-mib-modules="notification
> > > > disman/event-mib"\
> > > > > --with-out-mib-modules="agentx snmpv3mibs" \
> > > > >  --disable-

Re: Threading and Net-SNMP

2005-08-12 Thread Gary Clark
what I was told is that Net-SNMP is not thread safe. So be careful. Is this
a Red-Hat 9 system?

Cheers,
Garyc

- Original Message -
From: <[EMAIL PROTECTED]>
To: 
Sent: Thursday, August 11, 2005 3:47 PM
Subject: Threading and Net-SNMP


> I'm still having trouble finding my illegal instruction error and I've
> gotten to thinking about threads.  I have a multi-threaded program that
> sends traps from one thread and acts as a sub-agent in another thread.
> Traps are asychronous and don't require any kind of session or state so
> this is all safe, right?
>
>Chris
>
>
> ---
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: What am I missing (traps/notifications)

2005-08-12 Thread Gary Clark
Ben Mate,

Try and read the FAQ its excellent to get started on this.

MIBS=all
MIBDIRS=/usr/local/share/snmp/mibs

Have a wee' browse at the file
/net-snmp-5.1.2/agent/mibgroup/examples/notification.c
it was useful to me.

cheers,
Garyc

- Original Message -
From: "Ben Z" <[EMAIL PROTECTED]>
To: 
Sent: Friday, August 12, 2005 2:00 PM
Subject: Re: What am I missing (traps/notifications)


> I guess I'm narrowing down the problem (seems as though the agent can't
> find these MIBS) but are they needed for notifcations? And why can't it
> use the 192.168.0.x IP address to send traps?
>
> Thanks,
>
> Ben Z
>
> On Fri, 2005-08-12 at 13:55, Ben Z wrote:
> > My mistake...
> >
> > I rewrote that snmpd.conf from memory, so don't compare the error
> > messages from the log to what's acutally there :D (I also have an
> > "informsink" line in the conf file too apparently)
> >
> > BZ
> >
> > On Fri, 2005-08-12 at 13:44, Ben Z wrote:
> > > Hi all;
> > >
> > >
> > > Sorry about that. Its net-snmp 5.2.1. My snmpd.conf is very simple:
> > >
> > > sysdescription "Example description"
> > > syscontact "[EMAIL PROTECTED]"
> > > syslocation "exampleNetwork"
> > > rocommunity "public"
> > > trapcommunity "public"
> > > trapsink "192.168.0.x public"
> > > trap2sink "192.168.0.x public"
> > > authtrapenable 1
> > >
> > > These are the errors I'm trying to figure out. (Thx for the "-d" tip
> > > btw)... apparently I missing something when I'm trying to compile.
> > >
> > >
> > > # cat /var/log/snmpd.log
> > > mteTriggerTable has been disabled because the callback transport is
not
> > > available.
> > > Cannot find module (SNMPv2-MIB): At line 0 in (none)
> > > Cannot find module (SNMPv2-SMI): At line 0 in (none)
> > > Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
> > > Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
> > > Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
> > > Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
> > > Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
> > > Cannot find module (SNMPv2-TM): At line 0 in (none)
> > > snmpd: create_trap_session: Unknown host (Operation timed out)
> > > /var/etc/snmpd.conf: line 7: Error: cannot create trap2sink:
> > > "192.168.0.x
> > > snmpd: create_trap_session: Unknown host (Operation timed out)
> > > /var/etc/snmpd.conf: line 8: Error: cannot create informsink:
> > > "192.168.0.x
> > > NET-SNMP version 5.2.1
> > >
> > > What I'm trying to do (and apparently missing the point) is to have as
> > > small an agent as possible that will allow only basic traps and
"system"
> > > information (location, contact).
> > >
> > > Thanks again guys,
> > >
> > > Ben Z
> > >
> > > Any help would be awesome!
> > >
> > > On Thu, 2005-08-11 at 17:19, Thomas Anders wrote:
> > > > Ben Z wrote:
> > > > > Anyone?
> > > > > Can the agent be compiled to send traps??
> > > >
> > > > You missed to supply the necessary details (to the list, not me):
what
> > > > net-snmp version? What's your snmpd.conf? What errors do you
actually
> > > > get? What's the packet dump (snmpd -d)? ...
> > > >
> > > >
> > > > +Thomas
> > >
> > >
> > >
> > > ---
> > > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
> > > Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> > > ___
> > > Net-snmp-users mailing list
> > > Net-snmp-users@lists.sourceforge.net
> > > Please see the following page to unsubscribe or change other options:
> > > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> >
> >
> >
> > ---
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
> > Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> > ___
> > Net-snmp-users mailing list
> > Net-snmp-users@lists.sourceforge.net
> > Please see the following page to unsubscribe or change other options:
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
>
> ---
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or ch

Windows Net-SNMP

2005-09-24 Thread Gary Clark
Hello,

Quick question. I managed to use linux redhat 9 and NET-SNMP 5.1.2 and it
worked like a charm. Well the mantra was indeed long but eventually I got
it. They now want me to use Windows XP? Any advise on this would be helpful.
I thought I could download cygwin and just use windows like a unix platform
and use the provided version for cygwin for NET-SNMP?
Is that a good approach?

Cheers,
Garyc



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows Net-SNMP

2005-09-27 Thread Gary Clark
I will have to check it out. How do you add you own mibs in Windows when you
have the executable?
I thought you would have to recompile hence wouldnt I need the source code?

Cheers,
Garyc

- Original Message -
From: "PAUL WILLIAMSON" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, September 24, 2005 4:56 PM
Subject: Re: Windows Net-SNMP


> Why not just use the net-snmp for windows?
>
> It's a 32-bit exe, listed un der 5.2.1.2 binaries, about
> 1/3 down the page.  Works like a charm too...
>
> Paul
>
> >>> "Gary Clark" <[EMAIL PROTECTED]> 09/24/05 4:57 PM >>>
> Hello,
>
> Quick question. I managed to use linux redhat 9 and NET-SNMP 5.1.2 and
> it
> worked like a charm. Well the mantra was indeed long but eventually I
> got
> it. They now want me to use Windows XP? Any advise on this would be
> helpful.
> I thought I could download cygwin and just use windows like a unix
> platform
> and use the provided version for cygwin for NET-SNMP?
> Is that a good approach?
>
> Cheers,
> Garyc
>
>
>
> ---
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your
> very
> own Sony(tm)PSP.  Click here to play:
> http://sourceforge.net/geronimo.php
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>
>
>
> ---
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows Net-SNMP

2005-09-29 Thread Gary Clark
I meant to say "I already set up the cygwin on windows. Marvellous".

- Original Message -----
From: "Gary Clark" <[EMAIL PROTECTED]>
To: "Dave Shield" <[EMAIL PROTECTED]>
Cc: "PAUL WILLIAMSON" <[EMAIL PROTECTED]>;

Sent: Thursday, September 29, 2005 2:01 PM
Subject: Re: Windows Net-SNMP


> Excellent. Yeh I already set up the windows on cygwin. Marvellous.
>
> Thanks,
> Garyc
>
> ----- Original Message -
> From: "Dave Shield" <[EMAIL PROTECTED]>
> To: "Gary Clark" <[EMAIL PROTECTED]>
> Cc: "PAUL WILLIAMSON" <[EMAIL PROTECTED]>;
> 
> Sent: Wednesday, September 28, 2005 3:20 AM
> Subject: Re: Windows Net-SNMP
>
>
> > On Tue, 2005-09-27 at 14:42 -0500, Gary Clark wrote:
> > > How do you add you own mibs in Windows when you have the executable?
> > > I thought you would have to recompile hence wouldnt I need the source
> code?
> >
> > Correct.
> > If you are looking to *extend* the agent (which wasn't clear from
> > your original message), then you'll need to work with a source
> > distribution.
> >
> > You can either use cygwin (or MinGW) and run "configure" to add
> > the new MIBs - just as you would under Linux.
> > Or you can use Visual C++, and add the new MIB modules to the
> > relevant project.  There's instructions as to how to do this
> > in the file README.win32.
> >
> >
> > Dave
> >
> >
> > ---
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads,
discussions,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > ___
> > Net-snmp-users mailing list
> > Net-snmp-users@lists.sourceforge.net
> > Please see the following page to unsubscribe or change other options:
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows Net-SNMP

2005-09-29 Thread Gary Clark
Excellent. Yeh I already set up the windows on cygwin. Marvellous.

Thanks,
Garyc

- Original Message -
From: "Dave Shield" <[EMAIL PROTECTED]>
To: "Gary Clark" <[EMAIL PROTECTED]>
Cc: "PAUL WILLIAMSON" <[EMAIL PROTECTED]>;

Sent: Wednesday, September 28, 2005 3:20 AM
Subject: Re: Windows Net-SNMP


> On Tue, 2005-09-27 at 14:42 -0500, Gary Clark wrote:
> > How do you add you own mibs in Windows when you have the executable?
> > I thought you would have to recompile hence wouldnt I need the source
code?
>
> Correct.
> If you are looking to *extend* the agent (which wasn't clear from
> your original message), then you'll need to work with a source
> distribution.
>
> You can either use cygwin (or MinGW) and run "configure" to add
> the new MIBs - just as you would under Linux.
> Or you can use Visual C++, and add the new MIB modules to the
> relevant project.  There's instructions as to how to do this
> in the file README.win32.
>
>
> Dave
>
>
> ---
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Windows and Net-SNMP

2006-08-16 Thread gary clark
Hey,

I have a quick question regarding Net-SNMP on windows:

Just installed Net-SNMP 5.1.3.
Built snmpd and setup the snmpd.conf file.
Ran the command:
snmpd -a -d -Lf tempfile

I then perform the command:
  snmpget -v 2c -c public localhost sysUpTime

on the same machine:

When examining the tempfile, I can see that the agent
received the SNMP GET request:

Received SNMP packet(s) from UDP: [127.0.0.1]:1443
GET message
-- SNMPv2-MIB::sysUpTime

Sending 94 Bytes to UDP:[127.0.0.1]:162

Ok I get a timeout on the snmpget and dont see any
sysUpTime?

Any ideas?

Thanks,
Garyc

  -- SNMPv2-MIB::sysUpTime

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Windows and Net-SNMP

2006-08-16 Thread gary clark
Much appreciated everyone. Changing the snmpd.conf
helped and also using sysUpTime.0 cracked it for me.

Thanks now for the real work on this.

Cheers,
garyc


--- Juan Silva <[EMAIL PROTECTED]> wrote:

> Hello Gary !
>
>   My first suggestion will be to test the command
> using the actual OID number, 
>   and sysUpTime.0 (instead of sysUpTime), just in
> case. 
>   The tutorial uses system.sysUpTime.0 for your
> command.
>   (
>
http://www.net-snmp.org/tutorial/tutorial-5/commands/snmpget.html
> )
>
>   The "Retrieving a Single MIB Value" and
> "Retrieving Multiple MIB Values" sections in Chapter
> 7 of O'reilly's "Essential SNMP" book, second
> edition, include sample commands and perl scripts
> that I found the most useful to test Net-SNMP. You
> probably have seen those already.
>
>   My second suggestion would be to restart the
> NetSNMP agent to make sure your 
>   changes to config are implemented. Not sure if
> this will fix your problem, but double check just in
> case.  It is a simple fix but can save you time if
> this is it. If the restart does not work for you, I
> would recommend you double check the code in your
> config files and file locations. 
>
>   Regarding the restart of the SNMP agent, I was
> also getting errors after 
>   making configuration changes because I had not
> restarted the SNMP 
>   agent (I describe below how to restart it, so you
> can give it a try). 
>   Note: I believe it was not needed to reboot
> Windows.
>
>   After installation you need to go to the Windows
> Control Panel --> 
>   Administrative Tools --> Services. 
>   There scroll down until you find the NetSNMP
> Agent.
>   If it reads "Started", right-click on it and
> select "Stop". It will take just a 
>   few seconds. After is has been stopped,
> right-click again and 
>   select "Start".
>   Else, if it does not read "Started", right-click
> and select "Start".
>   Then try your command again.
> 
>   Hope this helps...
>
>   Juan
>   
> gary clark <[EMAIL PROTECTED]> wrote:
>   Hey,
> 
> I have a quick question regarding Net-SNMP on
> windows:
> 
> Just installed Net-SNMP 5.1.3.
> Built snmpd and setup the snmpd.conf file.
> Ran the command:
> snmpd -a -d -Lf tempfile
> 
> I then perform the command:
> snmpget -v 2c -c public localhost sysUpTime
> 
> on the same machine:
> 
> When examining the tempfile, I can see that the
> agent
> received the SNMP GET request:
> 
> Received SNMP packet(s) from UDP: [127.0.0.1]:1443
> GET message
> -- SNMPv2-MIB::sysUpTime
> 
> Sending 94 Bytes to UDP:[127.0.0.1]:162
> 
> Ok I get a timeout on the snmpget and dont see any
> sysUpTime?
> 
> Any ideas?
> 
> Thanks,
> Garyc
> 
> -- SNMPv2-MIB::sysUpTime
> 
>
-
> Using Tomcat but need to do more? Need to support
> web services, security?
> Get stuff done quickly with pre-integrated
> technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or
> change other options:
>
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> 
> 
>   
> -
> Want to be your own boss? Learn how on  Yahoo! Small
> Business. 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Windows Perl on Net-SNMP?

2006-08-17 Thread gary clark
Hiya,

Been trying to build this windows Net-SNMP perl
version.
I downloaded ActivePerl which was fine for performing
get and set operations.

However I wanted to use the mib2c command to generate
the templates however this requires the Net-SNMP perl
installation.

Can somebody point to or offer some simple instruction
on how to build this blighter. I keep on hitting
problems whilst building and thought this has to be
simpler

Thanks,
Garyc

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Building for windows Microsoft VC7 and VC8

2006-08-18 Thread gary clark
Hello,

I had problems with attempting to build and install
on Windows using 5.1.3 net-snmp package.

On one machine I built the package in its entirety
without failure using the intructions given in the
readme.win32 file. I never saw any problem except when
testing the perl module, some tests did fail, but not
all. I was able however to build the mib2c.

Ok on another development machine I attempted to use
Microsoft Visual Studio 8.
Using the readme.win32 I attempted to go through the
same instructions again.
The very first problem I encountered was the
vcvars32.bat is requested to be ran, but the build.pl
when executed will always fail due to requiring a
specific environment variable MSVCDir. This is not
being set in version 8.

Do later net-snmp packages handle changes in Microsoft
Visual Studio 8.


Thanks,
Garyc




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Building for windows Microsoft VC7 and VC8

2006-08-18 Thread gary clark
Hello,

I had problems with attempting to build and install
on Windows using 5.1.3 net-snmp package.

On one machine I built the package in its entirety
without failure using the intructions given in the
readme.win32 file. I never saw any problem except when
testing the perl module, some tests did fail, but not
all. I was able however to build the mib2c.

Ok on another development machine I attempted to use
Microsoft Visual Studio 8.
Using the readme.win32 I attempted to go through the
same instructions again.
The very first problem I encountered was the
vcvars32.bat is requested to be ran, but the build.pl
when executed will always fail due to requiring a
specific environment variable MSVCDir. This is not
being set in version 8.

Do later net-snmp packages handle changes in Microsoft
Visual Studio 8.


Thanks,
Garyc



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


  1   2   >