Re: if{In,Out}Octets update time

2009-02-05 Thread Dave Shield
2009/2/4 Alex Suykov : > reading interfaces.c/ifTable.c > doesn't help very much too. Seems like I'm looking in the wrong place. > > I use snmpd from net-snmp-5.4.2.1 as server Have a look at 'mibgroup/if-mib/ifTable/*.c In particular: ifTable_data_access.c:ifTa

Re:

2009-02-05 Thread Dave Shield
2009/2/5 malar vizhi : > What is the net-snmp command to get a single row value. The row (as a whole) doesn't have a value. Individual columns of the row have values. The command to get a single column value is snmpget {targetIP} {OID}.{index} where {OID} is the OID of the colum

snmp_alarm_register

2009-02-05 Thread Isaac Eliassi
Hi, I am using an old version, ucd-snmp-4.2.6. I register my function Querying_Function using snmp_alarm_register. The first period variable is QUERYING_PERIOD (10 sec) In case that Querying_Function duration is longer than QUERYING_PERIOD, what will happened? Best regards, Isaac Eliassi ---

Re: if{In,Out}Octets update time

2009-02-05 Thread Alex Suykov
Thu, Feb 05, 2009 at 08:31:54AM +, Dave Shield wrote: > Have a look at 'mibgroup/if-mib/ifTable/*.c > In particular: > >ifTable_data_access.c:ifTable_container_init() > cache->timeout = IFTABLE_CACHE_TIMEOUT; /* seconds */ Thanks, that's it. Setting cache->enabled = 0 has no ef

subagent does not receive get requests: snmpget returns Timeout: No Response

2009-02-05 Thread Alexander Bubnov
Hello! I use source code from http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent tutorial. I have run "snmpd -Le -f -Dagentx" under one consloe and "./subagent" compiled from that sources under other console. I have added to the subage code: ... debug_register_tokens("nstAgentSuba

Re: snmp_alarm_register

2009-02-05 Thread Alexander Bubnov
Hope this help below taken from net-snmp 5.4.2.1 source code: ... /* define signal if DNE */ #ifndef have_signal #ifdef have_sigset #define signal(a,b) sigset(a,b) #endif #endif ... signal(SIGALRM, alarm_handler); ... Then you can see manual of signal system call/function. 2009/2/5 Isaac El

ask help about engineBoots problem

2009-02-05 Thread XIANG Lei
hi, all, I am using net-snmp 5.2.4, I met an issue: When I restart snmpd and its agent, engineBoots can not increase by 1, why? I'd like to know how can i configure the snmpd, I can make engineBoots increase after each time restart. And if engineBoots doesn't increment

How can I remove get for for report??

2009-02-05 Thread Ragesh V
Hi Mike, Can you please help me in another issue? I am using net-snmp 5.4.1 and I can see whenever I give a set or get, in the network capture one get from snmpd to the machine which requested set/get. There is one report exchanged from that machine to snmpd for this and then only the set/get i

Re: How can I remove get for for report??

2009-02-05 Thread Dave Shield
2009/2/5 Ragesh V : > The issue is explained below with machine A and machine B. > > Machine A : snmpd running > Machine B : Requesting set or get. > > On the command below on machine B. > snmpget -v3 -u -n -mOID> > > The snmp network capture shows the below order for the single get > reques

FW: ask help about engineBoots problem

2009-02-05 Thread XIANG Lei
And I check the /var/net-snmp/snmpd.conf, the engineBoots in this file remained 1, never changed. And also I tried to add engineBoots 2 in my own snmpd.conf, and run snmpd with -D, I found that after engineBoots 2 was parsed from my snmpd.conf and increased by 1 to 3, the global variable engin

RE: How can I remove get for for report??

2009-02-05 Thread Ragesh V
Hi Deve, Thanks for a quick response. I did some more investigations and found things are close to what you said. On the scenario I mentioned (snmpget from Machine B to A), the packet captures are as below. 1. Get from B to A (I was wrong early) 2. Report from A to B 3. Get on OID which I gave

RE: How can I remove get for for report??

2009-02-05 Thread Mike Ayers
> From: Ragesh V [mailto:vrag...@hcl.in] > Sent: Thursday, February 05, 2009 4:08 AM > Hi Mike, Hi. For the record, you're talking with the whole list, not just me. >Can you please help me in another issue? I am using net-snmp 5.4.1 > and I can see whenever I give a set or get, in

Defining multiples OID's in a single handler module

2009-02-05 Thread Rodolfo Leffa
Hi, is there a way to define multiples OID's in a single module extending the agent?? I'd like to deal with all requests to a subtree of my mib in a single handler, but i don't know how to do it. Can I somehow defines a generic OID, like 1,3,6,1,4,1,32624,1,X,X,X,X,X, ?? Where 'X' could represe

Systems memory information wrong

2009-02-05 Thread victor Mendez
Hi I have two Sun V880 machines, both systems are identical (physically) memory disks, partitions etc. The version of NETSNMP that I have installed is 5.4.1.1. the problem is that the value readings that I get for the Memory usage do not match, one of the servers indicate memory used is 483% the

Multiple SNMP Applications

2009-02-05 Thread Michael Jeung
Hi folks, I'm trying to solve an SNMP problem. I have an application that needs to report statistics via SNMP. There's one snag: Each running copy of my application needs to report it's own statistics information. So, I may have three copies of this application running on the same machine. Eac

FW: ask help about engineBoots problem

2009-02-05 Thread XIANG Lei
there are two files: snmpd.conf, subagent.conf exist in /var/net-snmp. snmpd.conf is for master agent, snmpd, and I used the following line: init_agent("subagent"); init_snmp("subagent"); ... in my sub agent source, and thus the subagent.conf is genearated. but in snmpd.conf: ... engineBoots 1