Reg. DEBUGMSGTL messages of the sub-agent

2011-03-07 Thread ESWAR RAO
Hi, My code is running as a subagent(openhpi-subagent). When I am running the subagent , I can see only the messages of snmp_log(...). Please let me know if there is any means so that I can observe the DEBUGMSGTL messages of the subagent code. In my subagent code registration of debug token is d

Re: Reg. DEBUGMSGTL messages of the sub-agent

2011-03-07 Thread Alec Edgington
> My code is running as a subagent(openhpi-subagent). > When I am running the subagent , I can see only the messages of > snmp_log(...). > > Please let me know if there is any means so that I can observe the > DEBUGMSGTL messages of the subagent code. I think you get to see these messages if you s

Re: Regarding the installation path of perl lib

2011-03-07 Thread Leo Cacciari
Il giorno lun, 21/02/2011 alle 10.41 +0100, ri...@happyleptic.org ha scritto: > I'm configuring netsnmp-5.5 like this : > > ./configure --build x86_64-linux-gnu --prefix=/usr > --mandir=${prefix}/share/man --infodir=${prefix}/share/info CFLAGS="-g -O2" \ > --disable-scripts --with-persisten

Re: net-snmp error

2011-03-07 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 2 Ma

Re: Reg. DEBUGMSGTL messages of the sub-agent

2011-03-07 Thread ESWAR RAO
Hi Alec, Thanks for the response. But the openhpi-subagent code doesn't accept the -DALL flag. It's restricted to accept only certain flags. As I mentioned, in the subagent code registration of debug token is done programatically as mentioned below (openhpi-subagent). . debug_

Re: error for net-snmp

2011-03-07 Thread Dave Shield
On 3 March 2011 17:18, Vabhav wrote: > I am getting exactly same error as you have got in sync. with post by you > following is the error SS: > Cannot find module (IF-MIB): At line 0 in (none) > Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) [snip] That indicates that the l

Re: Can not get remote engineTime.

2011-03-07 Thread Dave Shield
On 4 March 2011 18:47, Zongjun wrote: > To list the complete information, > I have all the output from net-snmp-config below: [snip] > [user@localhost ~]$ net-snmp-config --snmpd-module-list > ... mibII/system_mib ucd-snmp/versioninfo ...snmpv3/snmpEngine [snip] OK- so the a

Re: Counter32 Rollover Question

2011-03-07 Thread Dave Shield
On 6 March 2011 07:50, TCPWave Customer Care wrote: > A Counter32 type represents a non-negative integer which monotonically > increases until it reaches a maximum value of 2^32-1 (4294967295 > decimal), when it wraps around and starts increasing again from zero. > > When my stats program reports

Snmpd and snmptrapd are lost

2011-03-07 Thread Authier, Christelle
Hi, In the project I am working on, during the execution, sometimes the snmp daemon or/and the snmptrap daemon. It not happened all the times. We work with Net-Snmp version 5.3.3.2 and RedHat Enterprise Linux (RHEL) 5.5 . Is it the first time you face this problem or there is a solution in a mo

snmp rw create user

2011-03-07 Thread Bazy
Hello folks, I have ~500 servers, all running snmp v2 with ro and rw groups configured. Problem is that I need to create local users via snmp rw on all these machines. I wanted to use ssh keys but it's not an option here. All machines have different root passwords. I've been googling around for an

C compiler cannot create executables

2011-03-07 Thread venkat easwar
Hi, Sorry, If I am posting a problem which got solved already; but my google searches did not help me to get the issue solved :( I am trying to compile net-snmp-5.4.3 in recent version of cygwin. I got gcc version of 4.5.0. I am getting the following error when I am trying to configure throu

Re: C compiler cannot create executables

2011-03-07 Thread Bart Van Assche
On Mon, Mar 7, 2011 at 12:03 PM, venkat easwar wrote: > Sorry, If I am posting a problem which got solved already; but my google > searches did not help me to get the issue solved :( > > I am trying to compile net-snmp-5.4.3 in recent version of cygwin. I got > gcc version of 4.5.0. I am gettin

Re: snmp rw create user

2011-03-07 Thread Dave Shield
On 7 March 2011 11:02, Bazy wrote: > I have ~500 servers, all running snmp v2 with ro and rw groups > configured. Problem is that I need to create local users via snmp rw > on all these machines. If you are talking about SNMP "users", this means using SNMPv3. Then you can use the 'snmpusm' comman

Re: C compiler cannot create executables

2011-03-07 Thread Dave Shield
On 7 March 2011 11:03, venkat easwar wrote: > I am trying to compile net-snmp-5.4.3 in recent version of cygwin. I got gcc > version of 4.5.0. > I am getting the following error when I am trying to configure through > checking for C compiler default output file name... > configure: error: C comp

Re: snmp rw create user

2011-03-07 Thread Bazy
On Mon, Mar 7, 2011 at 1:24 PM, Dave Shield wrote: > On 7 March 2011 11:02, Bazy wrote: >> I have ~500 servers, all running snmp v2 with ro and rw groups >> configured. Problem is that I need to create local users via snmp rw >> on all these machines. > > If you are talking about SNMP "users", th

Re: C compiler cannot create executables

2011-03-07 Thread venkat easwar
Hi, Thanks Dave and Bart. My eyes missed the load error. I installed ssl libraries and it started working. Yes, Dave's Idea also should work. Cheers VENKAT From: Dave Shield To: venkat easwar Cc: net-snmp-users@lists.sourceforge.net Sent: Mon, March 7, 20

Re: snmp rw create user

2011-03-07 Thread Dave Shield
On 7 March 2011 12:11, Bazy wrote: > I need to create local users, local linux users, or append to > /etc/passwd and /etc/shadow. There is no standard mechanism for doing that. You would have to develop your own private MIB. Dave -

Re: C compiler cannot create executables

2011-03-07 Thread Bart Van Assche
On Mon, Mar 7, 2011 at 1:32 PM, venkat easwar wrote: > My eyes missed the load error. I installed ssl libraries and it started > working. Yes, Dave's Idea also should work. > I was surprised to see both* --with-libs="-lws2_32 -lssl"* and *--without-openssl *in the same configure command ? Bart.

Perl SNMP getnext with callback within a loop

2011-03-07 Thread #! ./
Hi net-snmp-users, I need some help. I've been using G. S. Marzot's Perl SNMP module for data collection and so far it accomplishes the task for my requirements. Most recently, there's a need for me right to query multiple SNMP objects on a big number of hosts then store the results to a databas

Re: Can not get remote engineTime.

2011-03-07 Thread Zongjun
* Dave, Please find the output below. I have tried to use different ports other than 6161 (7161,9161,3456), and still got the "bind failed" error below. I was running at root. So permission is not a problem. And I was using a port that was not used at all. Not sure why the [init_smux] gave th

traphandles

2011-03-07 Thread Deas, Jim
I need some help with snmptrapd.conf I have loaded an MIB for the APC UPS systems and attempted to run a script on trap. I know the script works as 'default' will trigger it I have already used snmptranslate and confirmed that the the OID .1.3.6.1.4.1.318.0.48 = PowerNet-MIB::passwordChange I ha

cannot install 5.6.1 due to no C Compiler error but it shows installed in SUSE

2011-03-07 Thread Joshua D. Barnes
Hello, I tried following the instruction set forth for installing net-snmp(I'm very unfamiliar with Linux as this is our first one in our environment) version 5.6.1 in OpenSUSE 11.2 but it gets to a certain part where it looks for a C+ Compiler and says that it can't find one. According to Y

Re: v3 traps and plain text password

2011-03-07 Thread Prakash Masanagi
If I have two usmUser entries in the configuration file, then how to specify which user to use when sending traps to a particular destination. To do this, we need to specify the user name in "trapsess .." line in the configuration. Here we will end up giving plain text passwords for the user. Pra

Perl SNMP getnext with callback within a loop

2011-03-07 Thread #! ./
Hi net-snmp-users, I need some help. I've been using G. S. Marzot's Perl SNMP module for data collection and so far it accomplishes the task for my requirements. Most recently, there's a need for me right to query multiple SNMP objects on a big number of hosts then store the results to a databas

MIB with 2 tables, one index OK the other one is 'out of range'

2011-03-07 Thread Marc Franquesa
A few time a go I developed a SNMP subagent with its own MIB and until now it worked perfectly. Since some days ago there is a part of the tree that is not 'walkable'. After searching for a bug in my snmp agent, I found (or suspect) that the problem can be in the MIB intepretation. The import