Re: Authoritative Engine Boots configuration in net-snmp 5.4.1

2008-03-19 Thread Roger Longhi
Sorry, but there was a misunderstanding with people unsing SNMP manager, so my question about Authoritative Engine Boots is useless. Forget my question and forgive me. Best regards Roger Roger Longhi wrote: > Hi all. > > I'm using an agent generated by net-snmp 5.4.1 on linux (and QNX). > I'd lik

Re: Regarding Table data Create and Fill

2008-03-19 Thread Stéphane Champeau
kumar undurthi a écrit : > Hi Dave, > As u said to generate the code with " mib2c -S cache=1 -c > mib2c.table_data.conf ocStbHostAVInterfaceTable " > I generated , u can check the code below. > 1) while compiling it i faced few errors ,which i modified :: now > i able to compile . >

Sending trap from source code

2008-03-19 Thread Pranesh Kulkarni
Hi All, I have the sample MIB , with four tables and three types of trap. I am able to do snmpget, snmpwalk operation using Agentx Support. My next task is to send the traps from the agent. I have generated the source code using mib2c -c mib2c.notify.conf the two file gen

Re: Net-SNMP (ASAP)

2008-03-19 Thread Umesh Kamath
Hi Dave, We have Installed Net-SNMP 5.4.1. After running snmpget command i got below error. This seems to be we need to Install IPV6 patch in our machine. usr/lib/dld.sl: Can't find path for shared library: libipv6.sl /usr/lib/dld.sl: No such file or directory If we install IPV6 patch , it w

RE: overwrite standard mib2/interfaces

2008-03-19 Thread Masoud Fatollahy
Hi Dave, Thanks for the response. We have used "my_context" and registered new nodes for interface/iftable rmon and bridge on standard mibs. what should vi change in our configuration below to allow cust1_grp and cust2_grp see our added mibs with context "my_context"? we created the users: c

Re: Net-SNMP (ASAP)

2008-03-19 Thread Dave Shield
On 18/03/2008, Umesh Kamath <[EMAIL PROTECTED]> wrote: > Could you please let us know do we need IPV6 patches eventhough after > disabling IPV6 while configuring (as below) > > /configure > --disable-debugging --with-defaults \ > --disable-embedded-perl \ > --with-opens

Re: overwrite standard mib2/interfaces

2008-03-19 Thread Dave Shield
On 18/03/2008, Masoud Fatollahy <[EMAIL PROTECTED]> wrote: > what should vi change in our configuration below to allow cust1_grp and > cust2_grp see our added mibs with context "my_context"? > com2sec cust1_sec 192.168.55.0/24 public > com2sec cust2_sec 192.168.56.0/24 public Firstly, you nee

Re: snmptrap on Win32 platform

2008-03-19 Thread Dave Shield
On 18/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm having problems running snmptrap on the Win32 platform. > snmptrap -v 2c -c comunity_removed dest_ip_removed > 0 .1.3.6.1.4.1.3224.0.100.19 > > produces no output on the screen, and my sniff shows no packets on port 162. Th

Re: overwrite standard mib2/interfaces

2008-03-19 Thread Masoud Fatollahy
Thanks Dave, so if i used different cummonity name I will give read access to both default context "" and "my_context" to v1 and v2c clients. Regards and thanks again for your time, /Masoud -Original Message- From: "Dave Shield" <[EMAIL PROTECTED]> To: "Masoud Fatollahy" <[EMAIL PRO

Re: overwrite standard mib2/interfaces

2008-03-19 Thread Dave Shield
On 19/03/2008, Masoud Fatollahy <[EMAIL PROTECTED]> wrote: > so if i used different cummonity name I will give read access to both > default context "" and "my_context" to v1 and v2c clients. If you want to grant access to both the default context ("") and your new "my_context", then you will need

Monitoring logs file with Net-SNMP

2008-03-19 Thread Nikolay Fomichev
Hi, all, Is it possible to monitor errors in logs with "logmatch" ? For example in my config i have logmatch testError /var/log/test.log 60 jopa monitor -o logMatchName -o logMatchErrorFlag "logMatchTable" logMatchErrorFlag != 0 But logMatchErrorFlag is always 0! If i try snmpset with logMatchErr

Re: overwrite standard mib2/interfaces

2008-03-19 Thread Masoud Fatollahy
Hi Dave, Now everything is clear thank you very much, my last questions: is it possible to chnage the default context which is used in net-snmp for a mib node e.g mibII? if yes, how can it be done? is there any API to do this? or should i go in the code and change it in the hard way? Regards,

Re: overwrite standard mib2/interfaces

2008-03-19 Thread Dave Shield
On 19/03/2008, Masoud Fatollahy <[EMAIL PROTECTED]> wrote: > my last questions: > is it possible to chnage the default context which is used in net-snmp for a > mib node e.g mibII? if yes, how can it be done? is there any API to do this? > or should i go in the code and change it in the hard way?

RE: Sending trap from source code

2008-03-19 Thread Ron Rader
> From: Pranesh Kulkarni [mailto:[EMAIL PROTECTED] >After modifying the .c file, where should I integrate so that I can send > the trap ? I'd like to add a "me too" to Pranesh's request. In my case, I have generated our private MIB notification code templates, and filled them in with

Re: snmptrap on Win32 platform

2008-03-19 Thread JDVail
The issue with the sending host was with a firewall config that was being overridden by a GPO, so that the visible config I saw was not the actual running config. Now, I see the packet on the wire, but it is not being logged on my receiving unit. The man pages are a little hazy on the config f

Re: Net-SNMP (ASAP)

2008-03-19 Thread Umesh Kamath
Dave. I have small doubt on below conf. I have mentioned in below conf as " --with-libs="-lnm -lipv6" --disable-shared" . In your reply you have suggested to us to use like " --with-libs="-lnm" --disable-shared". Please let us know "--with-libs="-lnm" " is correct. ./configure --disable-debug

Re: Net-SNMP (ASAP)

2008-03-19 Thread Dave Shield
On 19/03/2008, Umesh Kamath <[EMAIL PROTECTED]> wrote: > > Dave. > > I have small doubt on below conf. I have mentioned in below conf as > "--with-libs="-lnm -lipv6" --disable-shared" . In your reply you have >suggested to us to use like " --with-libs="-lnm" --disable-shared". You gave the

net-snmp 5.4.1 built without error but not working (buildroot environment)

2008-03-19 Thread Karl Weber
Hi, I have built net-snmp 5.4.1 in an buildroot environment. The build in this environment completed without errors. However, it is not working. Starting snmpd -H directly (in ./agent) I get the message: Can't modify /home/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so.15's text section. Use GCC o

Net::SNMP set_request() error

2008-03-19 Thread Spencer Lu
I am using the following code in a Perl script: my $result = $snmpSession->set_request(-varbindlist => [ ($remoteStatusOid, INTEGER, 4), ($remoteInterfaceOid, INTEGER32, $neInterfaceIndex), ($remoteMacOid, OCTET_STRING, $currentMeterMacNoColons), ($remoteDekOid, OCTET_STR

How to use python 2.5 with netsnmp

2008-03-19 Thread Uttamchandani, Amit
Hey Everyone, I am currently using netsnmp with the default version of python that is shipped with debian etch (Python 2.4). However, I need to use python 2.5 specifically for certain packages. What is the proper way of setting up netsnmp with python 2.5. Here are some notes: 1. I installed

Re: Sending trap from source code

2008-03-19 Thread Pranesh Kulkarni
I recompiled the snmpd with --with-mib-modules="examples/notification" .. How to send the traps from the agent now ?? On Wed, Mar 19, 2008 at 6:52 PM, Ron Rader <[EMAIL PROTECTED]> wrote: > > From: Pranesh Kulkarni [mailto:[EMAIL PROTECTED] > >After modifying the .c file, where should I integ

Re: Sending trap from source code

2008-03-19 Thread Pranesh Kulkarni
Yeah I am able to get the traps from the agent for the "examples/notification" . Thanks Ron To get the traps from the my MIB , should I recompile the snmpd with my mib .. And where should I have source code to send the my traps. Pranesh On Thu, Mar 20, 2008 at 11:00 AM, Pranesh Kulkarni