Can I set Math::BigInt value for OCTETSTR?

2009-02-09 Thread michael kapelko
I convert hexidecimal string value to real value using (because I have to set up 64-bit hex value) $hs = Math::BigInt->new("0x$hs"); Then I try to apply it: $vb = new SNMP::Varbind([$oidVLANStaticUntaggedPorts, $vlanID, $hs, 'OCTETSTR']); This seems to change nothing with no errors. Is this cor

Fwd: How to set Hex STRING in Perl?

2009-02-02 Thread michael kapelko
-- Forwarded message -- From: michael kapelko Date: 2009/2/2 Subject: Re: How to set Hex STRING in Perl? To: Dave Shield That does not work. I do: $hs = "0002"; $vb = new SNMP::Varbind([$oid, $oid, $hs, 'OCTETSTR']); $ses->s

How to set Hex STRING in Perl?

2009-02-02 Thread michael kapelko
`snmpset' command has 'x' as Hex STRING type designation, but Perl SNMP module only has 'OCTETSTR' type which is the same as 's' of `snmpset'. How do I set Hex STRING value in Perl? Thanks. -- This SF.net email is sponsore

Re: net-snmp links to unsubscribe/subscribe to/from mailing lists do not work

2008-08-10 Thread michael kapelko
yes, i can't access the page at all. i tried to use both my ISP IP 195.182.10.22 and http://toonel.net (Traffic compressor, i use it like proxy), neither has access for the page. please, unsubscribe me from this mailing list. thanks. ---

Re: net-snmp links to unsubscribe/subscribe to/from mailing lists do not work

2008-08-01 Thread michael kapelko
this link: http://lists.sourceforge.net/mailman/listinfo/net-snmp-users on the page: http://net-snmp.sourceforge.net/support/mailinglists.html - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Buil

net-snmp links to unsubscribe/subscribe to/from mailing lists do not work

2008-07-31 Thread michael kapelko
please fix it - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event a

Re: snmptrapd with attached perl script eats all memory

2008-06-02 Thread michael kapelko
> > > By saying 'this may be related' I mean memory usage descreasing, not increasing :) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012000

Re: snmptrapd with attached perl script eats all memory

2008-06-02 Thread michael kapelko
Tried net-snmp-svn-main_20080531_0310.tar.gz, but still the same. After working for an hour: # top -n 1 -p $(pidof snmptrapd) Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie Cpu(s): 5.8% us, 1.1% sy, 0.0% ni, 90.1% id, 2.7% wa, 0.2% hi, 0.1% si Mem: 1025512k total, 862276k used, 163236

Re: snmptrapd with attached perl script eats all memory

2008-06-01 Thread michael kapelko
It has been working for 10 hours: # top -n 1 -p $(pidof snmptrapd) Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie Cpu(s): 5.6% us, 1.2% sy, 0.0% ni, 90.0% id, 3.0% wa, 0.2% hi, 0.1% si Mem: 1025512k total, 789012k used, 236500k free, 19252k buffers Swap: 2048276k total, 174624k used,

Re: snmptrapd with attached perl script eats all memory

2008-06-01 Thread michael kapelko
I did it, nothing helps, it keeps on growing. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/_

Re: snmptrapd with attached perl script eats all memory

2008-05-31 Thread michael kapelko
I even deleted my custom catchTraps.pl, launched snmptrapd and it still eats memory! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse01207

Re: snmptrapd with attached perl script eats all memory

2008-05-31 Thread michael kapelko
I did comment the #ifdef, killed snmptrapd, 'make clean', 'configure', 'make', 'make install', launched snmptrapd, but snmptrapd still eats memory. After running about 5 minutes it's grown from below 1M to over 30M. 2008/6/1, Thomas Anders <[EMAI

Re: snmptrapd with attached perl script eats all memory

2008-05-30 Thread michael kapelko
Forgot to say, that it was compiled from sources with nothing more than --enable-perl-embed, but that is turned on by default. 2008/5/31, michael kapelko <[EMAIL PROTECTED]>: > I use net-snmp-5.4.1 on CentOS release 4.4 (Final) > > # uname -a > Linux zond2 2.6.9-42.ELsmp #1 SM

Re: snmptrapd with attached perl script eats all memory

2008-05-30 Thread michael kapelko
I use net-snmp-5.4.1 on CentOS release 4.4 (Final) # uname -a Linux zond2 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64 x86_64 x86_64 GNU/Linux And my perl script is: #!/usr/bin/perl # This module must be registered in the `snmptrapd.conf' this way: # perl do "/path/to/catchTraps

snmptrapd with attached perl script eats all memory

2008-05-29 Thread michael kapelko
I use SNMP::TrapReceiver perl module to catch traps and log them in a certain way. After launchingsnmptrad an hour ago the `top' shows that the daemon eats more than 250M of RAM (and constantly eating more). Can anyone tell me what might be the problem? ---

Re: perl snmp set does not work for certain OID

2008-05-04 Thread michael kapelko
I googled more for that certain OID and found out that if i set up Varbind as: ['1.3.6.1.4.1.43.10.22.1.1.6', "1.10", 3, 'INTEGER'] it works fine. Strange. 2008/5/4, michael kapelko <[EMAIL PROTECTED]>: > I do: > > my $var = new SNMP::Varbind(['1

perl snmp set does not work for certain OID

2008-05-04 Thread michael kapelko
I do: my $var = new SNMP::Varbind(['1.3.6.1.4.1.43.10.22.1.1.6.1.10', 0, 3]); my $var = new SNMP::Varbind(['1.3.6.1.4.1.43.10.22.1.1.6.1.10', '1.3.6.1.4.1.43.10.22.1.1.6.1.10', 3]); $session->set(var) or die "$session->{ErrorStr}"; (port MACs number for 3Com switch) And perl only complains: 'Bad

Is it possible to register perl function to receive SIGTERM?

2008-04-14 Thread michael kapelko
I use Net-SNMP::TrapReceiver Perl module to log snmp traps (parsing, rotating logs, etc). I want to be notified that snmptrapd is about to be terminated to close temporary log file and rotate it. Is it possible anyhow? Thanks.