Re: Please i need support

2010-05-19 Thread Max
Check the Cisco site and the manuals that come with the device and see
if your device has an embedded SNMP agent, if it does you can then run
commands to get information from it.  Read up on the commands you can
use at

http://net-snmp.sf.net/

Good luck!

On Wed, May 19, 2010 at 11:17 PM, Mahmmoud Rashed
 wrote:
>
>
> Dear supporter,
> I have a Cisco access point WAP200, Which is connected to my computer
> through a cable.. Can i run a command to get the RSSI (Signal Stregth) per
> DBm between it and any client that is connected to the access point. thanks
> for your support.
>
>
> 
> Hotmail: Powerful Free email with security by Microsoft. Get it now.
> --
>
>
> ___
> 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-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


Please i need support

2010-05-19 Thread Mahmmoud Rashed



Dear supporter,
I have a Cisco access point WAP200, Which is
connected to my computer through a cable.. Can i run a command to get
the RSSI (Signal Stregth) per DBm between it and any client that is
connected to the access point. thanks for your support.

  
_
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969--

___
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: v3 informs - snmpd.conf

2010-05-19 Thread Joan Landry
I am now able to send v3 traps - but not able to send informs - I added
the -Ci to the trapsess line, where the engineid is the engineid of my
sending agent.

Do I need to specify in the engineid of the remote management station if
I am sending and inform? 
Thanks,
Joan
-Original Message-
From: Ron Rader [mailto:ron.ra...@cipheroptics.com] 
Sent: Wednesday, May 19, 2010 5:56 PM
To: Joan Landry
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: v3 informs - snmpd.conf

> From: Joan Landry [mailto:joan.lan...@overturenetworks.com]
> Am I missing something?

  Reviewing

http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap-v3.html

I notice "The difference is that SNMPv3 TRAPs use the engineID of the
local application sending the trap rather than the engineID of the
remote application. This means that you have to create users in your
remote user database with a bit more care and need to create one for
every engineID you wish to send traps from."

  Did you create a "v3user4" with the appropriate engineID on the trap
receiving side?

  Also try starting your agent with the "-d" flag for messages in
response to generated SNMP packets, might help isolate the problem.

  Ron



The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to the
message and deleting all copies. Thank you.

--

___
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: v3 informs - snmpd.conf

2010-05-19 Thread Joan Landry
Thanks - I had not configured the receiving station correctly.
Thanks - for the help!!!

-Original Message-
From: Ron Rader [mailto:ron.ra...@cipheroptics.com] 
Sent: Wednesday, May 19, 2010 5:56 PM
To: Joan Landry
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: v3 informs - snmpd.conf

> From: Joan Landry [mailto:joan.lan...@overturenetworks.com]
> Am I missing something?

  Reviewing

http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap-v3.html

I notice "The difference is that SNMPv3 TRAPs use the engineID of the
local application sending the trap rather than the engineID of the
remote application. This means that you have to create users in your
remote user database with a bit more care and need to create one for
every engineID you wish to send traps from."

  Did you create a "v3user4" with the appropriate engineID on the trap
receiving side?

  Also try starting your agent with the "-d" flag for messages in
response to generated SNMP packets, might help isolate the problem.

  Ron



The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to the
message and deleting all copies. Thank you.

--

___
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: v3 informs - snmpd.conf

2010-05-19 Thread Ron Rader
> From: Joan Landry [mailto:joan.lan...@overturenetworks.com]
> Am I missing something?

  Reviewing

http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap-v3.html

I notice "The difference is that SNMPv3 TRAPs use the engineID of the
local application sending the trap rather than the engineID of the
remote application. This means that you have to create users in your
remote user database with a bit more care and need to create one for
every engineID you wish to send traps from."

  Did you create a "v3user4" with the appropriate engineID on the trap
receiving side?

  Also try starting your agent with the "-d" flag for messages in
response to generated SNMP packets, might help isolate the problem.

  Ron



The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by replying to the message and deleting all copies. Thank you.

--

___
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: Howto setup netsnmp for proxying and failover

2010-05-19 Thread Boris Zweimueller

> Hi Dave
> 
> thanks a lot for your fast answer!
> 
> - I don't know how you'd want to handle receiving different answers from
> - the parralel proxied agents, but the above should be a workable arrangement.
> Answers from different parallel proxies are simply compared. If they are 
> different this shows some missconfiguration/error. Then the device(s) are 
> restarted and reconfigured somethin like that.
> 
>  -  send the delegated request to multiple destinations
> 
> I already looked at the current proxy code and made some simple examples 
> sending the same request multiple times. 
> 
> I found that the easiest method would probably be, if 'doublicate 
> registrations' would be possible, so that proxy requests for the same oid 
> (but with different session info - e.g. other peername) get executed by the 
> proxy_handler. I have not been able to figure out how exactly this doublicate 
> entries are removed from the processing list in the agent_registry. Could you 
> give me a hint? Thanks a lot!
> 
> Boris


> 
> 
> Am 19.05.2010 um 09:37 schrieb Dave Shield:
> 
>> On 18 May 2010 22:38, Boris Zweimueller  wrote:
>>> For failover reasons, the hardwares device is doubled.
>>> Failure of one device should be handeled transparently.
>>> So ...  SNMP Requests should always go to both internal devices
>> 
>>> How can one request be forwarded to two agents?
>>> How can answers be collected and be sentback to the manager?
>> 
>> 
>> That's not a model of operation which the current agent supports.
>> The proxy module can forward incoming SNMP requests to a specified (single)
>> subagent,  but isn't designed to handle multiple redundant subagents
>> for the same request.   You'd have to implement this yourself.
>> 
>> I'd suggest you start with the existing proxy code, and extend it to:
>> -  send the delegated request to multiple destinations
>> -  accept the first response (as currently)
>> -  accept and discard all following responses
>> 
>> I don't know how you'd want to handle receiving different answers from
>> the parralel proxied agents, but the above should be a workable arrangement.
>> 
>> 
>> 
>> Dave
> 


--

___
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: v3 informs - snmpd.conf

2010-05-19 Thread Joan Landry
I have tried to get v3 traps to work - and unfortunately have had no
luck.

I have used a v2 trap2sink in the past and so I know the basic trap
mechanism works in my system. 

For v3 I have the following set up in snmpd.conf:
authtrapenable 1
group groupV2usm  usm v3user4 
view readview included .1  
view writeview included .1  
view notifyview included .1  
access groupV2usm ""  usm  noauth  exact readview writeview notifyview 
trapsess -e  ENGINEID -l noauth -u v3user4 10.11.12.171 
createUser v3user4 

where ENGINEID - is the value I read from 
   engineIDLen = snmpv3_get_engineID(engineID, SNMP_MAXBUF);

I am not seeing any error messages. 
I usesend_v2trap(var_list) in my code to send the traps.
But the receiving station never get them.

Am I missing something?
Thanks in advance for any insight you may have on this subject!!



-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On
Behalf Of Dave Shield
Sent: Wednesday, May 19, 2010 3:59 AM
To: Joan Landry
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: v3 informs - snmpd.conf

On 19 May 2010 01:04, Joan Landry 
wrote:
> I would like to know if there is a way to configure net-snmp via
> snmpd.conf to correctly send traps or informs

See the section of snmpd.conf(5) entitled "Notification Handling".
In particular, SNMPv3 notifications are configured using "trapsess".
You'll probably need to consult the relevant tutorial as well
(referenced in that man page section)

>   based on the
> snmpNotifyTable, snmpNotifyFilterProfileTable, snmpNotifyFilterTable,
> snmpTargetAddrTable, and the snmpTargetParamsTable

The config file directive will populate these tables appropriately.

Dave

--

___
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: AgentX bug?

2010-05-19 Thread X Z

Version 5.5 did have the fix for the problem I described.
Thank you very much. 
Xuan

> Date: Mon, 17 May 2010 22:11:43 +0100
> Subject: Re: AgentX bug?
> From: d.t.shi...@liverpool.ac.uk
> To: b...@live.com
> CC: net-snmp-users@lists.sourceforge.net
> 
> On 17 May 2010 20:48, X Z  wrote:
> >> Which version of the agent are you working with?
> >
> > 5.3.1.
> 
> It would definitely be worth trying with either 5.5 or 5.4.3.rc3
> If the problem still exists there, then it'll need further investigation.
> But that's probably the quickest way to check whether this is needed.
> 
> 
> 
> >> I've got a vague recollection of something similar being reported some
> >> time back, and being fixed in the most recent versions of the code.
> 
> > Do you recall what would be the patch for this fix? Is it the following:
> > 2008-08-17 21:08  dts12
> >* agent/mibgroup/agentx/protocol.c:
> >CHANGES: snmpd: PATCH: 2022936: Fix AgentX Counter64 decoding on
> >64-bit architectures
> 
> 
> That might well be the relevant entry, yes.
> But I can't honestly remember the exact details.
> A lot has happened in the last 18 months!
> 
> Dave
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2--

___
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: setting ifAdminStatus when interface cannot go up

2010-05-19 Thread Lewis Adam-VNQM87
Just to give some context to what I am doing: basically, we are looking
to use a cut-down version of the net-snmp agent code as one of many
tasks running on an embedded platform. The platform has a number of
interfaces, some of which (currently) cannot be controlled via SNMP.
What I was trying to work out was the appropriate way of handling a
(albeit not very sensible) request from an SNMP manager to set the
ifAdminStatus of one of the 'notPresent' interfaces.

Thanks again for your suggestions.

Adam.

--

___
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: Perl-module:make test failure

2010-05-19 Thread Bart Van Assche
Hello,

You can run the perl tests e.g. as follows on a Unix system (assuming you
are using a POSIX-compliant shell, all on one line):

LD_LIBRARY_PATH=$PWD/agent/helpers/.libs:$PWD/agent/.libs:$PWD/snmplib/.libs:
make -C perl test

Bart.

On Wed, May 19, 2010 at 7:19 PM, vineet gehlot
wrote:

> hi..
>
> plz tell me abt how to set LD_LIBRARY_PATH
>
> Regards,
> Vineet Gehlot
>
> --- On *Tue, 18/5/10, Bart Van Assche * wrote:
>
>
> From: Bart Van Assche 
> Subject: Re: Perl-module:make test failure
> To: "vineet gehlot" 
> Cc: net-snmp-users@lists.sourceforge.net, "Thomas Anders" <
> thomas.and...@blue-cable.de>
> Date: Tuesday, 18 May, 2010, 10:57 PM
>
>
> On Tue, May 18, 2010 at 11:15 PM, vineet gehlot <
> vineetgehlot9...@yahoo.com
> > wrote:
>
>>
>> hello everyone...
>> i m presently working with net-snmp-5.5
>> i insatlled it properly
>> but while i was trying to install a perl-module present in its extracted
>> folder i faced the afolowwing error..
>>
>>
>> PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
>> 1..90
>> Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for
>> module NetSNMP::default_store: libnetsnmp.so.20: cannot open shared object
>> file: No such file or directory at
>> /usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203.
>> at test.pl line 97
>> Compilation failed in require at test.pl line 97.
>> BEGIN failed--compilation aborted at test.pl line 97.
>> not ok 1
>> make[1]: *** [test_dynamic] Error 2
>> make[1]: Leaving directory
>> `/home/vin/Desktop/net-snmp-5.5/perl/default_store'
>> make: *** [subdirs-test] Error 2
>>
>
> You must either install Net-SNMP (make install) or set LD_LIBRARY_PATH
> properly before you run "make perltest".
>
> Bart.
>
>
>
--

___
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: setting ifAdminStatus when interface cannot go up

2010-05-19 Thread Ron Rader
> From: Lewis Adam-VNQM87 [mailto:vnq...@motorola.com]

> I had a rummage through the net-snmp support for the interface mib but
I
> couldn't see much in the way of exception handling or cross-checking
> with the value of ifOperStatus. Lots of "TODO" comments lurking in

  Might also figure out where net-snmp is deriving ifAdminStatus on your
OS and seeing if you can peg it outside of net-snmp.

  I dug around ifOperStatus some time back and ended up forcing things
with "if up" and "if down" commands.  It was kind of kludgey but worked
in a pinch.

  Ron



The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by replying to the message and deleting all copies. Thank you.

--

___
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: setting ifAdminStatus when interface cannot go up

2010-05-19 Thread Lewis Adam-VNQM87
Thanks Ron.

I had a rummage through the net-snmp support for the interface mib but I
couldn't see much in the way of exception handling or cross-checking
with the value of ifOperStatus. Lots of "TODO" comments lurking in
there. Maybe it's regarded as an implementation-specific design decision
but I had hoped there would be some official guidance somewhere.

Adam.

--

___
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: Perl-module:make test failure

2010-05-19 Thread vineet gehlot
yes i did followed the same steps as you mentioned...

1)./configure --with-perl-modules ...: done
2)make: done
3)make test: done
4)make perltest: error

..
PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
1..90
Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for 
module NetSNMP::default_store: libnetsnmp.so.20: cannot open shared object 
file: No such file or directory at 
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203.
 at test.pl line 97
Compilation failed in require at test.pl line 97.
BEGIN failed--compilation aborted at test.pl line 97.
not ok 1
make[2]: *** [test_dynamic] Error 2
make[2]: Leaving directory `/home/vin/Desktop/net-snmp-5.5/perl/default_store'
make[1]: *** [subdirs-test] Error 2
make[1]: Leaving directory `/home/vin/Desktop/net-snmp-5.5/perl'
make: *** [perltest] Error 1


Regards,
Vineet Gehlot


--- On Tue, 18/5/10, Thomas Anders  wrote:

From: Thomas Anders 
Subject: Re: Perl-module:make test failure
To: net-snmp-users@lists.sourceforge.net
Date: Tuesday, 18 May, 2010, 2:39 PM

vineet gehlot wrote: 
> i m presently working with net-snmp-5.5
> i insatlled it properly
> but while i was trying to install a perl-module present in its extracted
> folder i faced the afolowwing error..
> 
> PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
> 1..90
> Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so'
> for module NetSNMP::default_store: libnetsnmp.so.20: cannot open shared
> object file: No such file or directory at

What exact steps did you perform to build net-snmp with the Perl modules and 
run the tests?
The recommended way is:

./configure --with-perl-modules ...
make
make test
make perltest
make install (as root)


+Thomas

--

___
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-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: setting ifAdminStatus when interface cannot go up

2010-05-19 Thread Ron Rader
> From: Lewis Adam-VNQM87 [mailto:vnq...@motorola.com]

> As a matter of interest, can anyone tell me whether the question was
too
> dumb, not appropriate for this forum, so incredibly clever it's beyond
> the scope of this forum, ...

  Probably means that nobody has done exactly what you asked...

  If I were interested in forcing ifAdminStatus values, I'd first
unbundle the source tarball and grep -r AdminStatus *.

  Doing that on my (5.4.1) system, I see potential pay dirt in:

net-snmp/net-snmp-5.4.1/agent/mibgroup/if-mib/data_access

  R



The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by replying to the message and deleting all copies. Thank you.

--

___
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: Perl-module:make test failure

2010-05-19 Thread vineet gehlot
hi..

plz tell me abt how to set LD_LIBRARY_PATH 

Regards,
Vineet Gehlot

--- On Tue, 18/5/10, Bart Van Assche  wrote:

From: Bart Van Assche 
Subject: Re: Perl-module:make test failure
To: "vineet gehlot" 
Cc: net-snmp-users@lists.sourceforge.net, "Thomas Anders" 

Date: Tuesday, 18 May, 2010, 10:57 PM


On Tue, May 18, 2010 at 11:15 PM, vineet gehlot  
wrote:


hello everyone...

i m presently working with net-snmp-5.5

i insatlled it properly

but while i was trying to install a perl-module present in its extracted folder 
i faced the afolowwing error..





PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl

1..90

Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so'
for module NetSNMP::default_store: libnetsnmp.so.20: cannot open shared
object file: No such file or directory at
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203.

 at test.pl line 97

Compilation failed in require at test.pl line 97.

BEGIN failed--compilation aborted at test.pl line 97.

not ok 1

make[1]: *** [test_dynamic] Error 2

make[1]: Leaving directory `/home/vin/Desktop/net-snmp-5.5/perl/default_store'

make: *** [subdirs-test] Error 2


You must either install Net-SNMP (make install) or set LD_LIBRARY_PATH properly 
before you run "make perltest".

Bart.



--

___
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: setting ifAdminStatus when interface cannot go up

2010-05-19 Thread Lewis Adam-VNQM87
Hmmm, no replies.

As a matter of interest, can anyone tell me whether the question was too
dumb, not appropriate for this forum, so incredibly clever it's beyond
the scope of this forum, ...

Better still, if anyone knows where I could get an answer, it would be
much appreciated. 

Regards,
Adam.

--

___
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: syntax on custom port for trapd in the conf file?

2010-05-19 Thread Dave Shield
On 19 May 2010 16:44, Snmp Nmcsnmp  wrote:
> I need to be able to specify the custom port for trapd to listen on for all
> incoming traps. The port has to be specify in the config file and not from
> the command line, is it possible?

The syntax for the snmpTrapdAddr directive is exactly the same
as the syntax for the command line.   If you can specify the desired
listening port(s) on the command line, then you can use the same
value in the config file.

Dave

--

___
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


syntax on custom port for trapd in the conf file?

2010-05-19 Thread Snmp Nmcsnmp
Hi folks,
I need to be able to specify the custom port for trapd to listen on for all 
incoming traps. The port has to be specify in the config file and not from the 
command line, is it possible? thanks to Dave Shield for pointing out my mistake 
earlier with the snmpTrapdAddr format.
thanks,
Huy


  --

___
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


using NetSNMP::agent with SNMP::MIB

2010-05-19 Thread Joao Ferreira gmail
Hello all,

in the past I've done agent extension by using C, mib2c, and compiling
in a MIB C module.

Now I'm facing the same task but this time in Perl. I will use
NetSNMP::agent to implement a sub-agent, registered on our private
enterprice OID/branch.

The speed at which I will be able to refresh all MIB data is quite
slow... so I'll need generic temporary 'in memory' storage for MIB
information. This temporary storage will be used to respond to GETs,
while some asynchronous process refreshes the 'in memory' values at
diferent frequency.

I'm considering adding in the SNMP module (SNMP::MIB hash) to help as a
temporary buffer for MIB values. It seems to be clean approach.(!?!)

Am I going right ? Am I to excpect any big issues when trying to
integrate the 2 modules... ? Or is this considered an incorrect
approach ?

Apreciate any feedback, apointers to documents, best practices..
Thank you
Joao



--

___
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: To many open files

2010-05-19 Thread Dave Shield
On 19 May 2010 11:00, Daniel Stålnacke  wrote:
> I'm using snmp to read status once every secound from a device and after
> about 10 min I get an error which say that I have to many open files. I have
> tried to find the error and close about anything I can find, but the problem
> remains.


I would suggest that you pull the overall initialisation
   (snmp_sess_init()  through to init_mib())
and the overall cleanup
   (snmp_close() through to shutdown_mib())

out of this function, and invoke them once at the start/end
of your application.   That's the most likely cause of the leaks
that you are seeing.

Dave

--

___
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: question on set_action and set_commit

2010-05-19 Thread Dave Shield
On 18 May 2010 18:56, Kathy McLeod  wrote:
> We are saving some of our "set" values in a database or possibly a flat
> file.  Based on the mib2c stubs generated for scalars, my initial
> interpretation was that the SET_ACTION should write the value(s) to the DB:
>
> case MODE_SET_ACTION:
>            /* XXX: perform the value change here */
>
> but "commit" also seems like a likely place, even tho the stub code does
> not indicate this:
>
> case MODE_SET_COMMIT:
>            /* XXX: delete temporary storage */
>
> In one case, the UNDO would have to reset values in the DB and in the other
> it would not, so my question is, which is the correct place?


Either would be fine.
There is no definitive  One Right Place  to handle this.

The main question arises over how to handle errors.

If you make the changes during the ACTION phase,
then you must be ready to reset the values during the UNDO phase
and be pretty darned sure you can do this successfully.

If you make the changes during the COMMIT phase,
then you must be pretty darned sure that you can assign the
new values successfully.


Only you can make the judgement over which is the more
reliable step in your particular scenario.

Dave

--

___
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


To many open files

2010-05-19 Thread Daniel Stålnacke
Hi,

I'm using snmp to read status once every secound from a device and after
about 10 min I get an error which say that I have to many open files. I have
tried to find the error and close about anything I can find, but the problem
remains.

Here is the code:
http://www8.cs.umu.se/~dv05dse/snmpCode.txt

and the error:
http://www8.cs.umu.se/~dv05dse/snmpError.txt

Can anyone see where the error might be and which file I'm not closing.
I call this function once every secound.
--

___
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: how to configure net-snmp agent version at run time?

2010-05-19 Thread Dave Shield
2010/5/19 chenwill :
> If a package is built with v3, it means net-snmp agent can handle request of
> snmp version v1, v2c and v3.
> how can I confiure it as v2c, just accepting v1 and v2c request at run time?

Don't configure any SNMPv3 access control settings.
It will then not accept any SNMPv3 requests.

Dave

--

___
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


how to configure net-snmp agent version at run time?

2010-05-19 Thread chenwill

hi,

 

If a package is built with v3, it means net-snmp agent can handle request of 
snmp version v1, v2c and v3.

how can I confiure it as v2c, just accepting v1 and v2c request at run time?

 
  
_
一张照片的自白――Windows Live照片的可爱视频介绍
http://windowslivesky.spaces.live.com/blog/cns!5892B6048E2498BD!889.entry--

___
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: v3 informs - snmpd.conf

2010-05-19 Thread Dave Shield
On 19 May 2010 01:04, Joan Landry  wrote:
> I would like to know if there is a way to configure net-snmp via
> snmpd.conf to correctly send traps or informs

See the section of snmpd.conf(5) entitled "Notification Handling".
In particular, SNMPv3 notifications are configured using "trapsess".
You'll probably need to consult the relevant tutorial as well
(referenced in that man page section)

>   based on the
> snmpNotifyTable, snmpNotifyFilterProfileTable, snmpNotifyFilterTable,
> snmpTargetAddrTable, and the snmpTargetParamsTable

The config file directive will populate these tables appropriately.

Dave

--

___
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: Howto setup netsnmp for proxying and failover

2010-05-19 Thread Dave Shield
On 18 May 2010 22:38, Boris Zweimueller  wrote:
> For failover reasons, the hardwares device is doubled.
> Failure of one device should be handeled transparently.
> So ...  SNMP Requests should always go to both internal devices

> How can one request be forwarded to two agents?
> How can answers be collected and be sentback to the manager?


That's not a model of operation which the current agent supports.
The proxy module can forward incoming SNMP requests to a specified (single)
subagent,  but isn't designed to handle multiple redundant subagents
for the same request.   You'd have to implement this yourself.

I'd suggest you start with the existing proxy code, and extend it to:
  -  send the delegated request to multiple destinations
  -  accept the first response (as currently)
  -  accept and discard all following responses

I don't know how you'd want to handle receiving different answers from
the parralel proxied agents, but the above should be a workable arrangement.



Dave

--

___
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: IPv6

2010-05-19 Thread Dave Shield
On 18 May 2010 22:09, Buchupalli, Sasidevi
 wrote:
> Does Net-SNMP support registering IPv6 managers.

What do you mean by "rregistering [a] manager" ?

There are two situations where the agent might specify a network address:

  -  acceptable sources for community-based requests
  (note that SNMPv3 access control is source-independent)

  -  notification destinations

Both of these can be configured via the snmpd.conf file, and this does
include support for IPv6 addresses.  See the snmpd.conf(5) man page
for details.


> If so, which MIB is used for that.


The (community,source) to security name mapping is not covered by any
MIB module - it's purely handled by the config settings.
   (There is a standard community MIB, but it doesn't take any account
of where the request comes from)

Notification destinations are handled by the Target MIB.



> For IPv4 registrations, we can use the SNMP-TARGET-MIB. But, I couldn’t find
> a standard MIB that can be used for registering IPv6 targets.

The SNMP-TARGET-MIB is not restricted to IPv4.
The target address is specified by the pair of objects
   (snmpTargetAddrTDomain, snmpTargetAddrTAddress)

These can handle both IPv4 addresses (using transportDomainUdpIpv4),
IPv6 addresses (using transportDomainUdpIpv6), as well as a series of
other alternatives.   See TRANSPORT-ADDRESS-MIB for a possible list.

Dave

--

___
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: sample snmptrapd.conf to support custom port?

2010-05-19 Thread Dave Shield
[ First - *please* don't mail me privately, without copying
 any responses to the mailing list.  I don't have the time
 or inclination to offer private, unpaid, SNMP consultancy.
 Keep discussions to the list, where others can both learn
 and offer advice.  Thanks.   ]


On 19 May 2010 04:40, Snmp Nmcsnmp  wrote:
> Hi Dave,
> Sorry to bug you again. I did that and I always get an error below:
>
> couldn't open locahost:5500 -- errno 2 ("No such file or directory")

That is correct.

Try reading the error message again - and look closely at what it
*actually* says, not what you think it says.
   (I'd missed this error first time round!)


> it seems like the copy_nword return null for some reason

No - copy_nword is correctly returning the address you specified.
But the trap receiver cannot open the requested port, because
it doesn't exist.

Dave

--

___
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