snmpcheck error

2009-01-14 Thread Ambika Tripathy
Hi By giving snmpcheck command it shows below error. How to resolve it? I am using net-snmp 5.4.2.1 and OS is ubuntu8.04 64 bit server version. $sudo snmpcheck Can't locate Tk.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8

RE: starting snmpd daemon

2009-01-02 Thread Ambika Tripathy
ubuntu OS. Br, Ambika -Original Message- From: Ambika Pr. Tripathy [mailto:trip...@nethawk.fi] Sent: Thursday, January 01, 2009 6:15 PM To: Mike Ayers; Ambika Tripathy; net-snmp-users@lists.sourceforge.net Subject: RE: starting snmpd daemon Hi, The location of snmpd is /usr/local/sbin

starting snmpd daemon

2008-12-26 Thread Ambika Tripathy
Hi Users, I am facing a peculiar problem when I try to start my snmpd using rc.d. The problem is when I try to extract OID values using snmpwalk for my enterprise OID it is always coming as 0. But when I execute the snmpd manually from command line the perfect values are coming. My SNMPD

adding MIB files during configuration

2008-12-25 Thread Ambika Tripathy
Hi Folks, How can I add some MIB files to default installation of net-snmp-5.4.2.1 during configuration? What will be the configuration flags for it or is there any other way to add those files. Br, Ambika

Can't locate session via package Net::SNMP

2008-12-09 Thread Ambika Tripathy
Hi Experts, I have net-snmp 5.4.2.1 version with my system. When I try to execute below perl script it is showing error as can't locate object method via package Net::SNMP (perhaps you forgot to load Net::SNMP?) use Net::SNMP; use RRDs; $database =

SNMPd exits problem

2008-12-04 Thread Ambika Tripathy
Hi Experts, I am facing problem in executing snmpd? It exits. When I gdb it I found below errors. (gdb) run -Lo -Le Starting program: /usr/local/sbin/snmpd -Lo -Le [Thread debugging using libthread_db enabled] Program exited normally. (gdb) Error opening specified

net-snmp with perl

2008-12-03 Thread Ambika Tripathy
Hi, what is the suitable flag at configuration time to include perl module? Please give a sample example. br, APT - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux

RE: net-snmp with perl

2008-12-03 Thread Ambika Tripathy
want to create a simple net-snmp package with all it dependencies. Who to do it? Br, Ambika -Original Message- From: Thomas Anders [mailto:[EMAIL PROTECTED] Sent: 2008-12-03 23:50 To: Ambika Tripathy Cc: net-snmp-users@lists.sourceforge.net Subject: Re: net-snmp with perl Ambika

RE: net-snmp with perl

2008-12-03 Thread Ambika Tripathy
] Sent: 2008-12-04 00:10 To: Ambika Tripathy Cc: net-snmp-users@lists.sourceforge.net Subject: Re: net-snmp with perl Ambika Tripathy wrote: checking for Perl cc... Can't locate Config.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr

how to add a new enterprise OID in the S

2008-12-01 Thread Ambika Tripathy
Hi, I got a new enterprise OID for our organization and I want to integrate it with net-snmp by extending it. (Initially I have used a free OID for testing purpose.) When I extent it and execute below command, it gives below result. Can any body help me to resolve this? [EMAIL

RE: How to send traps from snmpd daemon

2008-11-25 Thread Ambika Tripathy
Hi, Just follow the instructions from: http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd and little more tips: - Create one file named as TRAP-TEST-MIB.txt in /usr/local/share/snmp/mibs/ with below entries TRAP-TEST-MIB DEFINITIONS ::= BEGIN IMPORTS

RE: snmp query remote system

2008-11-23 Thread Ambika Tripathy
Hi Check with below option: Edit /etc/default/snmpd and change: SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' to SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -p /var/run/snmpd.pid ' I don't know why removing the smux stuff works, but it's necessary. Removing the

RE: netsnmp with perl 64 bit handling

2008-11-21 Thread Ambika Tripathy
-Original Message- From: Mike Ayers [mailto:[EMAIL PROTECTED] Sent: 2008-11-22 00:32 To: Ambika Tripathy; Roy M. Silvernail Cc: net-snmp-users@lists.sourceforge.net Subject: RE: netsnmp with perl 64 bit handling From: Ambika Tripathy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 9

RE: Timeout for snmpget

2008-11-20 Thread Ambika Tripathy
Hi, Is it possible to get the ifInOctets in 64 bit counter using net-snmp. It is creating problem for me when the number of bytes goes beyond 4 gb. Br, APT -Original Message- From: Mike Ayers [mailto:[EMAIL PROTECTED] Sent: 2008-11-17 11:59 To: Ambika Tripathy; net-snmp-users

64 bit counter

2008-11-20 Thread Ambika Tripathy
: 8463031 IF-MIB::ifOutOctets.2 = Counter32: 572128134 IF-MIB::ifOutOctets.3 = Counter32: 396 But when I executed a perl script to read the value is not showing 0. How can I over come this problem using perl scripts. Br, Ambika -Original Message- From: Ambika Tripathy [mailto:[EMAIL

netsnmp with perl 64 bit handling

2008-11-20 Thread Ambika Tripathy
Hi, I have one perl script which uses to get the ifInOctets and ifOutOctets. The return values are in longer than 32 bit value. like terabytes. How can the perl script handle that. It is not returning 0. But when i used snmpwalk -v 1 -c public localhost | grep Octet I am getting proper value like

RE: netsnmp with perl 64 bit handling

2008-11-20 Thread Ambika Tripathy
- From: Roy M. Silvernail [mailto:[EMAIL PROTECTED] Sent: 2008-11-21 03:02 To: Ambika Tripathy Cc: net-snmp-users@lists.sourceforge.net Subject: Re: netsnmp with perl 64 bit handling On Fri, Nov 21, 2008 at 01:39:40AM +0530, Ambika Tripathy wrote: Hi, I have one perl script which uses

RE: Timeout for snmpget

2008-11-17 Thread Ambika Tripathy
Hi Mike, Thanks for your help. The snmpd.conf was not in proper path and hence I faced the problem. After putting the snmpd.conf /usr/local/share/snmp it is working fine. Br, APT -Original Message- From: Mike Ayers [mailto:[EMAIL PROTECTED] Sent: 2008-11-17 11:59 To: Ambika Tripathy

Timeout for snmpget

2008-11-17 Thread Ambika Tripathy
Hi Experts, I am using net-snmp-5.0.11.2 version source to test http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module example. But when trying to execute the snmpget -v 1 -c public localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 it is showing Timeout: No Response from

Extending

2008-11-17 Thread Ambika Tripathy
Hi, I want to extend net-snmp for my application for which I want 2 OID should get the data from my application when queried through snmpget. For this I took the example present in the net-snmp nstAgentModuleObject and it works fine for getting and setting the static variable. When I

Timeout for snmpget

2008-11-16 Thread Ambika Tripathy
Hi Experts, I am using net-snmp-5.0.11.2 version source to test http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module example. But when trying to execute the snmpget -v 1 -c public localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 it is showing Timeout: No Response from

RE: Timeout for snmpget

2008-11-16 Thread Ambika Tripathy
specify port 161 for this and how? What else setting / configuration option should I check. Br, APT -Original Message- From: Mike Ayers [mailto:[EMAIL PROTECTED] Sent: 2008-11-17 02:08 To: Ambika Tripathy; net-snmp-users@lists.sourceforge.net Subject: RE: Timeout for snmpget From: Ambika