Re: handler function for the whole mib tree

2008-01-16 Thread Devvrat Tripathi
On Jan 17, 2008 3:55 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > On 14/01/2008, Devvrat Tripathi <[EMAIL PROTECTED]> wrote: > > Is is possible to register a MIB tree with a particular handler function > > which gets called whenever any node in its subtree is accessed? The > > netsnmp_create_handl

How to change default snmp.conf path from "c:\usr\ect" to a relative path

2008-01-16 Thread Xia Zhongwu
Hi, guys, Currently, I build Net-SNMP on windows with default config, but not on "c:\usr" directory. I found that it always read snmp.conf from "c:\usr\ect\snmp.conf" when I start snmpd.exe. How to change default snmp.conf path from "c:\usr\ect" to a relative path of the running snmpd.exe? -

Re: SNMP on Windows

2008-01-16 Thread Nikolett C
I'm truly grateful, thank you. I wanted to hear these answers, wasn't sure about these things, but now I am. Dave Shield <[EMAIL PROTECTED]> írta: > On 10/01/2008, Nikolett C <[EMAIL PROTECTED]> wrote: > > I'd like to ask, whether there's a possibility to use the commands snmpget, > > snmpw

Re: net-snmp (amd64)

2008-01-16 Thread Tsurutani Naoki
Hi, alexus <[EMAIL PROTECTED]> wrote: > that is exactly what i did, i'd gladly let you in to my system or > perhaps i can attach a log file to show you step by step w/ output of > those commands and the end of it ends as i state in my very first > email, which is I am very sorry, I can reproduce

Re: net-snmp (amd64)

2008-01-16 Thread alexus
that is exactly what i did, i'd gladly let you in to my system or perhaps i can attach a log file to show you step by step w/ output of those commands and the end of it ends as i state in my very first email, which is gcc -shared .libs/snmp_client.o .libs/mib.o .libs/parse.o .libs/snmp_api.o .lib

RE: Setting multiple table rows in one set operation

2008-01-16 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of vsaavedra > Sent: Tuesday, January 15, 2008 9:48 AM > Is it possible to do a SET BULK, There is no such PDU, nor is such a thing conceivable, but that's not what you're asking for. > i.e., setting multiple table >

Do SNMP traps get logged permanentlly in a log file ?

2008-01-16 Thread Reza Salehi
Hi All, I am wonder if SNMP traps get logged automatically in a log file in local machine when they are generated. Regards, Reza - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.---

RE: Is there a simple/standard way to access other modules oids fromwithin a mib module?

2008-01-16 Thread Manfred Wassmann
On Mon, 14 Jan 2008, Mike Ayers wrote: >> I am writing a MIB module for some specific piece of hardware. Some of >> my code needs to return values that are already available from >> standard MIB modules. > > Then you should not need to return those values - the consuming > application can get the

Re: MIB in Java

2008-01-16 Thread Dave Shield
On 16/01/2008, Wesley Naves <[EMAIL PROTECTED]> wrote: >Using AgentX, can i use traps ? Yes. > can i send traps for my NMS ? Where i > found documentation about AgentX on net-snmp ? Start with the 'snmpd.conf(5)' man page. Dave --

Re: Setting multiple table rows in one set operation

2008-01-16 Thread Dave Shield
On 15/01/2008, vsaavedra <[EMAIL PROTECTED]> wrote: > Is it possible to do a SET BULK, i.e., setting multiple table rows in one > set operation? Yes. (Though this isn't "SET BULK" - it's simply "SET"). There's nothing in the SET processing that enforces any relationship between the varbind assign

C++ wrap for net-snmp

2008-01-16 Thread Marco Catunda
I didn't find any c++ wrapper for net-snmp. Does anyone intend to developer one? I will develop it but I would aprecciate if someone had already started... Thanks. -- Marco Catunda - This SF.net email is sponsored by: Micros

Re: Is there a way to limit the log file size of net SNMP ?

2008-01-16 Thread Dave Shield
On 15/01/2008, abhishek pundir <[EMAIL PROTECTED]> wrote: > Is there any way/option to limit the log file size of > the net SNMP? No. The agent just logs messages using the appropriate mechanisms (log to file, via syslog, etc). It doesn't have any way to monitor the size of these logs. If you n

Re: registering pdu failed: 263!

2008-01-16 Thread Dave Shield
On 15/01/2008, NetSnmp User <[EMAIL PROTECTED]> wrote: > My subagent was designed something like this: > I used mib2c compiler to generate c files [code snipped] OK - so how is this module then included within the subagent? How did you compile the subagent? Dave

Re: IpAddress types being rewritten as signed integer

2008-01-16 Thread Dave Shield
On 15/01/2008, Larry Low <[EMAIL PROTECTED]> wrote: > Anyone having problems where snmptrapd is receiving an trap with an > IpAddress field, rewriting it to a signed integer, and then reporting it as > "should be IpAddress"? I get other traps without this problem on the same > MIB (OSPF-TRAP-MIB)

Re: handler function for the whole mib tree

2008-01-16 Thread Dave Shield
On 14/01/2008, Devvrat Tripathi <[EMAIL PROTECTED]> wrote: > Is is possible to register a MIB tree with a particular handler function > which gets called whenever any node in its subtree is accessed? The > netsnmp_create_handler_registration just creates a Node > handler whereas i wanted a MIB hand

Re: snmptrapd - traphandle doesn't invoke any program for enterprise-specific traps

2008-01-16 Thread Dave Shield
On 14/01/2008, Tomasz Blaszczyk <[EMAIL PROTECTED]> wrote: > traphandle .1.3.6.1.4.1.318.1* /home/open #communicationLost > traphandle .1.3.6.1.4.1.318.2* /home/open #upsOverload > traphandle .1.3.6.1.4.1.318.4* /home/open #upsDischarged > traphandle .1.3.6.1.4.1.318.5* /bin/ls #upsOnBattery > trap

RE: Trap

2008-01-16 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of DERIVRY Serge (EURIWARE) > Sent: Tuesday, January 15, 2008 7:13 AM > Unknown alert received from device xx of type Host_Device. Device > Time 0+22:02:42. > (Trap type 1.3.6.1.4.1.99.12.52.3.1.6.3) > Trap var bind data:

RE: Help in SNMP SET done in multiple transactions

2008-01-16 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nitin Naveen > I want to understand how to implement support for SNMP SET's > that are related but come in multiple SNMP SET PDU (i.e. > multiple transactions). I have two scalars that allow me to > know when the multi tran

RES: MIB in Java

2008-01-16 Thread Wesley Naves
Dave, Using AgentX, can i use traps ? can i send traps for my NMS ? Where i found documentation about AgentX on net-snmp ? Thank´s +++ Wesley Naves de Faria Analista de Suporte SCSA - Sun Certified System Administrator for Solaris 10 SCNA - Sun Cert

Re: MIB in Java

2008-01-16 Thread Dave Shield
On 16/01/2008, Wesley Naves <[EMAIL PROTECTED]> wrote: > Sorry, i didn´t complete my statement, i would like say that write java code > is more fast than C, because we have own libs, very experience in developer > java code. I know that performance C is very fast but the development team > is essen

Timeout issue

2008-01-16 Thread Nagendra Dhulgond
Hi All I am facing one strange problem. I wants to add one check for timeout, means If my application wont receive response from other application I need to resend request/Pdu once again. I seen snmp_timeout API but that wont help me because this API is expensive for my application as snmp_tim

RES: MIB in Java

2008-01-16 Thread Wesley Naves
>I would also question your statement: >> because [Java] is more fast than C. Sorry, i didn´t complete my statement, i would like say that write java code is more fast than C, because we have own libs, very experience in developer java code. I know that performance C is very fast but the devel

Re: MIB in Java

2008-01-16 Thread Dave Shield
On 16/01/2008, Wesley Naves <[EMAIL PROTECTED]> wrote: > I develope mibs in C ansi, i would like user java to developer new > mibs, because is more fast than C. Is it possible ? Although there is a Java wrapper associated with the Net-SNMP suite, this is aimed at client-side (i.e. manager)

MIB in Java

2008-01-16 Thread Wesley Naves
Hi folks, I develope mibs in C ansi, i would like user java to developer new mibs, because is more fast than C. Is it possible ? Are there some document ou site about it ? Thank´s +++ Wesley Naves de Faria Analista de Suporte SCSA - Sun Certifi

Re: where to set retries/timeout time, problem in set request

2008-01-16 Thread Dave Shield
On 16/01/2008, Awadhesh Kumar <[EMAIL PROTECTED]> wrote: > It is showing that two SET request has been sent to sub-agent(Might be I am > wrong). Seems that client is sending the request two times That makes sense. If the client sends the request twice, then the master agent will send the sub-req

Re: where to set retries/timeout time, problem in set request

2008-01-16 Thread Awadhesh Kumar
Hi, Thanks for the quick response. After setting agentXRetries 0 in snmpd.conffile I had given following command from command line snmpset -c gss localhost:161 .1.3.6.1.4.1.303.3.3.9.35.5.2.1.1.0 i 17 I had restarted the agent in debug mode it is showing following packet. It is showing that two

Re: where to set retries/timeout time, problem in set request

2008-01-16 Thread Dave Shield
On 16/01/2008, Awadhesh Kumar <[EMAIL PROTECTED]> wrote: > I have mib module object which has type READ/WRITE. If I do snmp set request > then it apply the information in the database and apply it also on device. > So it takes some time and then in result master agent send the same SET > request ag

where to set retries/timeout time, problem in set request

2008-01-16 Thread Awadhesh Kumar
Hi Dave, I am facing the same problem in SET request. I am using NetSnmp 5.4.1 for sub-agent development. I have mib module object which has type READ/WRITE. If I do snmp set request then it apply the information in the database and apply it also on device. So it takes some time and then in result