One table, two agents?

2006-05-10 Thread cnelson
Can I have two subagents each responsible for a diferent range of record in a table? RFC 1471 says that the RS232 interface underlying a PPP link should have an entry in ifTable but I've got an existing subagent that deals with my "real" network interfaces and I'd rather not clutter it with PPP co

MIBs for RS232 and PPP

2006-05-10 Thread cnelson
In case someone else cares, I'm in the process of implementing MIBs for RS232-like devices (RFC 1317) and PPP (several RFCs, not sure which I'll get to). I'm targeting Linux and New-SNMP and hope to release the implementation as an open source AgentX subagent. I've had some interest from the pppd

snmp_timeout() and agentxPollInterval?

2006-05-10 Thread Josef Moellers
Hi, I need to use the explicit snmp_select_info/select/snmp_read/snmp_timeout sequence in my agentx agent as I need to act upon requests sent through another fd. I'd like to also monitor the connection to the snmpd using the agentxPollInterval mechanism. When I use agent_check_and_process(),

tooBig problem in snmptable

2006-05-10 Thread Luiz Angelo Daros de Luca
Hello, I'm getting this error: # snmptable -c public -v 1 10.9.1.26 ifTable Error in packet. Reason: (tooBig) Response message would have been too large. Failed object: IF-MIB::ifSpecific But snmpwalk works ok, # snmpwalk -c public -v 1 10.9.1.26 ifTable IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB

net-snmp-users@lists.sourceforge.net

2006-05-10 Thread chen jacky
Hello everyone, :Can anyone help me with this problem. I've spent several days on it and it almost drive me mad. :I am using RedHat ES 4, and I've installed net-snmp 5.12. When I try to run a program, it got the following error message: [EMAIL PROTECTED] libexec]# ./check_snap_disk_snmp -

Maxfile Question

2006-05-10 Thread overkill
Greetings, I am getting an error when I try to compile net-snmp-5.1.2 on a Redhat ES 3.0 server. I modified the agent/mibgroup/ucd-snmp/file.c file from "#define MAXFILE 1000" to "define MAXFILE 200". When I do this it does not properly make and make install. I can only get this to compile

Table reading examples implemented in C/C++

2006-05-10 Thread Michael Siegel
Does anyone have any example applications that utilize GET_NEXT or GET_BULK and populate C/C++ datastructures?   I’m a bit confused as to the process of setting up varbinds and iterating through a table, I’m a SNMP n00b.   Thanks,   Mike Siegel Caritas Christi Network Engineering &

Re: Net-SNMP 5.3.0.1 on aix 5.2 5.3 and possibly 5.1

2006-05-10 Thread Johannes Schmidt-Fischer
Jayson, there has been a discussion about 32-bit and 64-bit kernels about 3 months ago in the net-snmp-coders list (even if it didn't concern AIX but instead IRIX I think the same problem applies here too). The thread's topic was "rfc: handle platform specifics at runtime vs. compile time?". You

AW: TRAPS + get requests

2006-05-10 Thread Pedot, Wolfgang
Hi,   I would suggest to call agent_check_and_process with parameter "0" to make it non-blocking and check your trap-conditions in the same loop. Thats the way I do it.   regards Wolfgang Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Nikanth KGesendet: Freitag, 28. April

Re: atol() won't work

2006-05-10 Thread William Rizzo
2006/4/28, Wes Hardaker <[EMAIL PROTECTED]>: > On Fri, 28 Apr 2006 16:09:47 +0200, "William Rizzo" <[EMAIL PROTECTED]> said:William> Yes...i want to get a value (RX/TX frames on a given port) William> and pass that as an integer...  any idea?...var->val.integer will be the value for the column.

get "segment fault" msg, please help me

2006-05-10 Thread casper
[EMAIL PROTECTED] create .c & .h files by using "mib2c -c iterate.conf XXX", and I use myTable_createEntry to add a row in the initialize_table_myTable function, this is the only thing I do in the template, of course some other tiny changes to make the code compile successfully,compile the suba

Re: snmpusm + changekey (DH Keys)

2006-05-10 Thread Wes Hardaker
> On Wed, 10 May 2006 16:54:18 +0530, <[EMAIL PROTECTED]> said: kanakamahesh> I changed DH keys with snmpusm and I tried snmpgets with kanakamahesh> new auth/priv keys. But I did not get any results for kanakamahesh> any MIB? Were the new snmpgets immediate before you stopped the agent? I kn

Sending traps

2006-05-10 Thread Wesley Naves de Faria
Hi coders,     I created a mib that check an service of my server and set the flag of the services as OK(0), Warning(1), Critical(2) NoResponse(3).   So, i need that when change the state of flag the snmp send a trap. I tried to use the monitor in snmpd.conf, but if i put lines ( flag == 0 

RE: snmpusm + changekey (DH Keys)

2006-05-10 Thread kanakamahesh.anasuri
Hi, I changed DH keys with snmpusm and I tried snmpgets with new auth/priv keys. But I did not get any results for any MIB? Anything configuration changes required from snmpd side, in order for new auth/priv keys to work? I tried options like reconfig snmpd, graceful snmpd shutdown and restart e

authNoPriv

2006-05-10 Thread kanakamahesh.anasuri
Hi,   Can we attach the level of authentication required for each USM user for snmpgets/sets while creating USM users itself.   I created USM user with both Authentication/Privacy keys.   But using -l authNoPriv in snmpgets with correct Authentication and Wrong Privacy keys are givin

problem on trap

2006-05-10 Thread 腾飞龙
Hi,all I am new to snmp.As we know,the agent sends a 'coldStart(0)' trap when it first starts up, and an enterprise-specific trap 'nsNotifyShutdown' (or 'ucdShutdown') when it  stops. in order to capture the  'coldStart(0)' trap and  'ucdShutdown' trap. I configured the snmptrapd.conf in /usr