RE: Question about netsnmp_call_handlers() function in snmp_agent.c

2005-12-07 Thread Yong Chen (yongche)
Hi Dave, I think I understand the big picture now, but still a few details: 1. where do you populate treecache for a SET request? Is it "netsnmp_add_varbind_to_cache"? And is it the place that you combine all varbinds having the same handler into one "requests" (looping through via requests->nex

Re: Ports 32768 & 32769

2005-12-07 Thread Thomas Anders
Kevin Conway wrote: Thanks. The "offending" directives were "trapsink 127.0.0.1 public" ones. However, I would not have expected these to listen on ports 32768(9) on all interfaces, ie "0.0.0.0:32768 LISTEN" when the directives contain 127.0.0.1. Is this bug? In general, net-snmp has no know

Re: Ports 32768 & 32769

2005-12-07 Thread Kevin Conway
Dave, Thanks. The "offending" directives were "trapsink 127.0.0.1 public" ones. However, I would not have expected these to listen on ports 32768(9) on all interfaces, ie "0.0.0.0:32768 LISTEN" when the directives contain 127.0.0.1. Is this bug? Kevin. Dave Shield wrote: On Fri, 2005-12-

Re: Problem with snmptrap

2005-12-07 Thread Thomas Anders
Andrei Pisau wrote: On Wed, 2005-11-30 at 11:08 -0800, Wes Hardaker wrote: It is definitely a new bug. It works in 5.1.x code, but not 5.2.x... I have tried and it works with 5.2.1, but not with 5.2.2. Just in case you haven't noticed, there's an official patch for 5.2.2 that fixes this:

Re: net-snmp mib modules throws errors in monta vista linux OS

2005-12-07 Thread Thomas Anders
Rajamohan Jabbala wrote: We have developed an net-snmp agent on redhat linux and now porting to Monta vista linux OS, Compiled fine but query on the system table getting these errors. And system values return null. You'd need to provide a *lot* more details if you expect us to help. E.g.: - w

Re: What am I going wrong with mib2c?

2005-12-07 Thread Thomas Anders
[EMAIL PROTECTED] wrote: Is there a MIB syntax verifier I can't find? Can snmptranslate be tricked into doing it? smilint from libsmi: http://www.ibr.cs.tu-bs.de/projects/libsmi/ +Thomas -- Thomas Anders (thomas.anders at blue-cable.de)

Re: SET request

2005-12-07 Thread Dave Shield
On Wed, 2005-12-07 at 07:02 -0800, manik chopra wrote: > Actually, the last time I posted this ... I forgot to change the > subject, so decided to post it again with the a new subject. Why bother? It just makes extra work for those of us who try to support this package in our spare time. At least

Re: SET request

2005-12-07 Thread manik chopra
Sorry Dave for this. Actually, the last time I posted this ... I forgot to change the subject, so decided to post it again with the a new subject. And as for the poorly worded ... again I am sorry .. As English is not my first language. Regards Manik Dave Shield <[EMAIL PROTECTED]> wrote: On W

Re: SET request

2005-12-07 Thread Dave Shield
On Wed, 2005-12-07 at 06:47 -0800, manik chopra wrote: > I have a question regarding SET request. Yes, you've already asked us that - only three minutes ago. If you post a question, it's a good idea to wait a little longer than that before deciding nobody is going to ask it and posting again! Th

SET request

2005-12-07 Thread manik chopra
Hi All,I have a question regarding SET request. Following is what I want to do: snmpset --v1 -c public localhost MY-MIB::myTableObject2 integer 99 The problem is:i want to set myTableObject2. but to do that i have to specify a value of an object which comes priror to this object

Re: Disk utilization on SLES9 Linux

2005-12-07 Thread Dave Shield
On Wed, 2005-12-07 at 15:35 +0100, [EMAIL PROTECTED] wrote: > > I'm actually wondering whether this agent *does* support > > this MIB. > > The HOST MIB is installed by default on suse Linux. > > /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt > > I hope, the HOST Mib is compiled in... Just because

Re: snmpd is working and show timeout error

2005-12-07 Thread manik chopra
Hi All, I have a question regarding SET request. Following is what I want to do: snmpset --v1 -c public localhost MY-MIB::myTableObject2 integer 99 The problem is: i want to set myTableObject2. but to do that i have to specify a value of an object which comes priror to this object i.e.MY-MIB:

Re: Disk utilization on SLES9 Linux

2005-12-07 Thread andre . heine
Hi Dave, Am 07.12.2005 um 09:37 Uhr haben Sie geschrieben: > On Tue, 2005-12-06 at 18:35 +0100 wrote: > > We use "OpManager" as NNM, these tools ask > > this OID for the disk utilization: > > > > .1.3.6.1.2.1.25.2.3.1.6 > > That's part of the Host Resources MIB, which is supported by the > Net-

Re: query on q-bridge mib's, dot1qVlanStaticTable entry

2005-12-07 Thread Dave Shield
On Wed, 2005-12-07 at 05:51 -0800, Rasanth A.K. wrote: > Using Q-BRIDGE-MIB, is it possible to create a new VLAN? > ... in dot1qVlanStaticTable, we are using dot1qVlanIndex > as external index. I would therefore tend to assume that creating a row in the 'dot1qVlanStaticTable' would automaticall

query on q-bridge mib's, dot1qVlanStaticTable entry

2005-12-07 Thread Rasanth A.K.
All, Using Q-BRIDGE-MIB, is it possible to create a new VLAN? In dot1qVlanCurrentTable, where dot1qVlanIndex object is defined, rows cannot be created. and in dot1qVlanStaticTable,  we are using dot1qVlanIndex as external index. So it appears that I cannot create a row in dot1qVlanStaticTable, unl

Re: snmpd is working and show timeout error

2005-12-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 Tue,

net-SNMP master agent does not receive the alarms sent by agent

2005-12-07 Thread Shadab Ahamed
Hi All, The net-SNMP master agent does not receive the alarms sent by agent. Actually agent is running with some other application. It (the agent) also prints a message "Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory)". The master agent is ru

Re: IP address setting

2005-12-07 Thread Mohamed Jahfar Sadiq M.R
Hi Manik, If you are linux user, then please go and check the following file : /etc/sysconfig/network-scripts/ifcfg-eth0 cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=dhcp (This specifies whether the IP address is DHCP or a static IP address) My machine is confi

Re: Disk utilization on SLES9 Linux

2005-12-07 Thread Dave Shield
On Tue, 2005-12-06 at 18:35 +0100, [EMAIL PROTECTED] wrote: > I need some help how to configure "disk utilization". > We use "OpManager" as NNM, these tools ask > this OID for the disk utilization: > > .1.3.6.1.2.1.25.2.3.1.6 That's part of the Host Resources MIB, which is supported by the Net-S

Re: IP address setting

2005-12-07 Thread Dave Shield
On Tue, 2005-12-06 at 14:43 -0800, manik chopra wrote: > I was wondering, how to determine if the configuration of > IP address and IP mask is set to "static" or "dynamic(dhcp)" ? I don't think that the traditional (RFC 1213) version of the ipAddrTable includes that information. The newer IF-MIB:

Re: Question about netsnmp_call_handlers() function in snmp_agent.c

2005-12-07 Thread Dave Shield
On Tue, 2005-12-06 at 16:58 -0800, Yong Chen (yongche) wrote: > I've a question regarding netsnmp_call_handlers(), > if I have a SET pdu as following: > >set a=1, b=2, c=3 > > Is netsnmp_call_handlers() called once for all 3 varbinds, > or it is called three times, each for one varbind? That

RE: Multiple sets in one pdu

2005-12-07 Thread Dave Shield
On Tue, 2005-12-06 at 17:30 -0800, Yong Chen (yongche) wrote: > how do I walk through the list in 5.x? > is that the forth input parameter: 'requests', has all incoming varbinds? > I just go through it via "request->next"? Yup. > Actually I'm doing SET for a table in UCD 4.x style, > then how do

parsing snmp received through syslog

2005-12-07 Thread Gertraud Unterreitmeier
Hello, I've to parse snmp traps which I do not receive directly from the trapreceiver but which have to run through the syslogd first. I know there is embedded perl support for the trapreceiver which allows access to the details of the trap already as a perl object. Is there some perl module whic