Question about how to get snmp trap data

2005-11-25 Thread 麻 雪蛟
Dear all I am implementing a deamon which want to get snmp trap messages and save them to database, I've learned "snmptrapd" program, but I don't konw how to get the trap messages, current snmptrapd program doesn't have the interface to let me operate snmp trap message . could anyone tell

ActiveAlarmTable implementation in Net-SNMP

2005-11-25 Thread Pichi Reddy
Hi Gurus, I am using Net-SNMP 5.1.2 for SNMP agent and subagents. I need to provide support for alarmTable for all the notifications SNMP agent sends on behalf of our subagents to trap destinations. Can you pls tell me which part of the Net SNMP code needs to be modified to provide thi

Re: how to reset a counter

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 17:16 +0100, Montse Seisdedos wrote: > # /usr/sbin/snmpd -v > > UCD-snmp version: 4.2.5 That is a *very* old version. Can you perhaps try with one of the v5 releases. Dave --- This SF.net email is sponsored by: Splunk

Re: how to reset a counter

2005-11-25 Thread Montse Seisdedos
# /usr/sbin/snmpd -v UCD-snmp version: 4.2.5 RedHat 7.3 Thanks for your help - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Montse Seisdedos" <[EMAIL PROTECTED]> Cc: Sent: Friday, November 25, 2005 4:50 PM Subject: Re: how to reset a counter > On Fri, 2005-1

Re: how to reset a counter

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 16:43 +0100, Montse Seisdedos wrote: You don't. > i'm getting this value: > > interfaces.ifTable.ifEntry.ifInOctets.2 = Counter32: 4294967295 -> > , so the counter reachs its max value.. It should wrap automatically. > how can i reset it. I'm trying snmpset, b

how to reset a counter

2005-11-25 Thread Montse Seisdedos
Hello everybody:     i'm getting this value:   interfaces.ifTable.ifEntry.ifInOctets.2 = Counter32: 4294967295 -> , so the counter reachs its max value.. how can i reset it.  I'm trying snmpset, but this oid is a read-only one..   Thanks  

RE: send_enterprise_trap_vars and sender Enterprise OID

2005-11-25 Thread Gonin, Sebastien
Hello, if not a full answer, anyone having a clue on my questions below ? regards Sebastien -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gonin, Sebastien Sent: Thursday, November 17, 2005 5:19 PM To: net-snmp-users@lists.sourceforge.net Subject: sen

Re: 'Inter-Tables indexing' and perl

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 12:34 +0100, Turbo Fredriksson wrote: > Any other idea why I can't get rid of the 'b9stIndexTotals' column? H... If I recall correctly, this is implemented using a 'pass_persist' script - yes? Do you think you could hack together a dummy "standalone" version of this ex

Re: 'Inter-Tables indexing' and perl

2005-11-25 Thread Turbo Fredriksson
Quoting Turbo Fredriksson <[EMAIL PROTECTED]>: > Quoting Dave Shield <[EMAIL PROTECTED]>: > >> [ 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. >>

Stale interface info from snmpd (how to avoid caching?)

2005-11-25 Thread snmp
Hello, I upgraded from snmpd 5.1.2 (Debian Sarge) to snmpd 5.2.1.2 (Debian Etch). I noticed that now snmpd caches the interfaces descriptions, so if I have some interfaces that goes down and up again (like a ppp connection or some OpenVPN tunnels), I can find stale information from snmpwalk:

re: question about snmp trap receiver implementation

2005-11-25 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 Fri,

Re: Cant get CPU load on HOST-MIB.

2005-11-25 Thread Dave Shield
On Thu, 2005-11-24 at 10:32 +0100, Pierre GAREL wrote: > I have a little problem to get the CPU load with the HOST-MIB with net-snmp That particular object (hrProcessorLoad) is not implemented. See the FAQ entry: What about multi-processor systems? (Not a very obvious location for this informa

Cant get CPU load on HOST-MIB.

2005-11-25 Thread Pierre GAREL
Hi, I have a little problem to get the CPU load with the HOST-MIB with net-snmp 5.1.2 on CentOS4. I tried also on the FC4, same issue I got that: > snmpwalk -c public -v1 192.168.222.161 .1.3.6.1.2.1.25.3.3 HOST-RESOURCES-MIB::hrProcessorFrwID.768 = OID: SNMPv2-SMI::zeroDotZero I

Re: question about snmp trap receiver implementation

2005-11-25 Thread Dave Shield
On Fri, 2005-11-25 at 16:36 +0800, 麻雪蛟(Anders Ma) wrote: > Now I am developping a deamon that could receive snmp trap > message. I 've learned snmptrapd program, but I couldn't get raw trap > mesage clearly.. "snmptrapd" use function "snmp_read" do almost > everything(read packet, parse

netsnmp crash in netsnmp_table_array_ext_data_helper_handler

2005-11-25 Thread Gouri Singaraju
Hi, I am getting a crash in While running snmpgetnext -v 2c -t 240 -n "" -c public 192.168.4.246  ifIndex.256  ifNumber.0   Here is the backtrace #0  0x4061aa48 in strcmp () from /opt/Nevis/gcc-v3.2.2/lib/libc.so.6 #1  0x4054f483 in netsnmp_get_list_data (head=0x80bf060, name=0x80583

Re: snmp agent discovery via HP Web Jet Admin

2005-11-25 Thread Dave Shield
On Thu, 2005-11-24 at 14:45 +0100, taner memet ali wrote: > Thanks for your answer dave, > > The index is defined from 1. But if i try to set i get the same error. Let's be clear about this. You originally tried: > >> snmpset -cpsi -v1 192.168.2.101 prtcoverdescription.0 s "DE" > >> prtcove

question about snmp trap receiver implementation

2005-11-25 Thread Anders Ma
Title: question about snmp trap receiver implementation Dear all         Now I am developping a deamon that could receive snmp trap message. I 've learned snmptrapd program, but I couldn't get raw trap mesage clearly.."snmptrapd" use function "snmp_read" do almost every