Re: Help with snmptrap

2007-07-27 Thread Mateus Interciso
On Fri, 27 Jul 2007 09:59:32 +0100, Dave Shield wrote: > On 26/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> Hello, I have this snmpd.conf configuration on one host >> >> trapsink 10.0.0.4 test >> trap2sink 10.0.0.4 test >> informsink 10.0.0.4 test > > Why do you want to send three co

Responding to GETNEXT...

2007-07-27 Thread Ken Adey
Hello, I have a pass-thru script that responds correctly for specific OIDs in my MIB (ie. using snmpget). What I don't know how to do, is how should my script respond to GETNEXT commands (ie. from snmpwalk) for OIDs that aren't data OIDs (eg. my root OID)? Thanks. Ken -

Re: Help with snmptrap

2007-07-27 Thread Mateus Interciso
On Fri, 27 Jul 2007 09:59:32 +0100, Dave Shield wrote: > On 26/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> Hello, I have this snmpd.conf configuration on one host >> >> trapsink 10.0.0.4 test >> trap2sink 10.0.0.4 test >> informsink 10.0.0.4 test > > Why do you want to send three co

Re: create_trap_session

2007-07-27 Thread Dave Shield
On 26/07/07, DI BACCO ANTONIO - technolabs <[EMAIL PROTECTED]> wrote: > Calling create_trap_session from an AgentX subagent would work? Not necessary. An AgentX subagent will send all notifications to the master agent, using the standard AgentX connection session. You don't need to create explic

Re: IPv6 with SNMPv3

2007-07-27 Thread Wes Hardaker
> "JK" == Justin Kleffman writes: JK> I was wondering what is the proper way to issue an snmpwalk on an JK> SNMPv3 only device for testing IPv6 capabilities. Currently I'm JK> trying the following: JK> snmpwalk -u user -a SHA -x AES -A pass -X pass -l authpriv -n "" udpv6:[FE80::204:75FF:0

Re: Notification.c -Example doesn't work

2007-07-27 Thread Dave Shield
On 24/07/07, Fabig Sebastian (STVC/ENG2) <[EMAIL PROTECTED]> wrote: > The example "notification.c" doesn't work. It seems so, that a new session > has to be > created, so that send_v2trap works.Otherwise read_objid and OID_Length doesn't > work, so that I get an error message, that no varbinding i

Problem with source restrictions in snmpd.conf

2007-07-27 Thread Eric Blau
Hello all, I'm having a problem with Net-SNMP 5.4.1.pre1 with source IP address restrictions using the "authcommunity" option. The man page shows the ability to specify a source address: authcommunity TYPES COMMUNITY [SOURCE [OID | -V VIEW [CONTEXT]]] Here's what my snmpd.conf config file loo

Re: How to include a shared library to SNMP?

2007-07-27 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 27/

Re: Clarification : getMibstat and var_ipRouteEntry

2007-07-27 Thread Dave Shield
On 23/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Please provide details on 'getMibstat' and 'var_ipRouteEntry' method. > 1. funationality wise what is does exactly. > 2. what are the parameters passed ? > 3. And the details related with return value of these functions ? Error > codes or

Re: A question bout API description.

2007-07-27 Thread Dave Shield
On 23/07/07, 高翔 <[EMAIL PROTECTED]> wrote: > > 1.About snmp_sess_init(), "May perform one time minimal library > initialization.", what is it mean? If you look at the file snmplib/snmp_api.c, the comment immedately before the routine '_init_snmp' says: * Primordial SNMP library initialization.

Re: configuring snmptrapd

2007-07-27 Thread Dave Shield
On 20/07/07, madhuri nadella <[EMAIL PROTECTED]> wrote: > I was trying to configure snmptrapd. Can you please let me know where > can i find how to configure snmptrapd file. See the man page 'snmptrapd.conf(5)' Dave - T

Re: compiling with private mib

2007-07-27 Thread Dave Shield
On 22/07/07, Gal Waldman <[EMAIL PROTECTED]> wrote: > Im compiling the agent with a private MIB. > > Iv added it via the configure_require macro and this part is OK. > > But since Im using my own data layer I need a way to compile the access code > into the agent which lead me to the problem – > >

Re: How to include a shared library to SNMP?

2007-07-27 Thread Dave Shield
On 20/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, I have a small project which I include to net-snmp sources and now I need > to > include one shared library which functions use my project in SNMP. > Do you know how to do it? Try configure ... --with-libs=-lmyLib to link agai

Re: NET-SNMP-AGENT.txt Bad parse

2007-07-27 Thread Dave Shield
On 20/07/07, Alexander Bunkenburg <[EMAIL PROTECTED]> wrote: > Whenever a ask for a valuie with snmpget, I get lots of warnings about > syntax errors in NET-SNMP-AGENT.txt and then errors in other MIBs whcih I > suppose are consequences. Hmmm strange. It looks suspiciously as if the MIB file h

Re: mib data retrieval

2007-07-27 Thread Dave Shield
On 20/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want to know what is the API a sub-agent has to use in order > to retrieve the value of an Object identified by an OID? There is no standard API for retrieving the actual value. This will depend on the system that you are trying to mon

Re: real time variable monitoring

2007-07-27 Thread Dave Shield
On 19/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is it possible to moitor a custom variable in REAL TIME with > the snmp agent? In general, no. The design model of an SNMP agent is primarily passive - responding to requests from an external management application, and retrieving (or upd

Re: help

2007-07-27 Thread Thomas Anders
haoran mo wrote: > When I have compiled snmpd,but I exec "make test", Why are there so many > failure? > > > 12:testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0...(no pid > file(s) found)FAIL If you run "agent/snmpd -H" from the build directory, what does it say? If it returns an error

help

2007-07-27 Thread haoran mo
When I have compiled snmpd,but I exec "make test", Why are there so many failure? 12:testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0...(no pid file(s) found)FAIL 13:testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0...(no pid file(s) found)FAIL 14:testing SNMPv3 get using MD5/DES o

Libraries' size and utilization

2007-07-27 Thread [EMAIL PROTECTED]
I compiled Net-SNMP v5.4.1.rc4 in Windowx XP with MinGW. This is the configuration I used: ./configure --prefix=C:/NetSNMP --with-mibdirs=C:/NetSNMP/share/snmp/mibs --with-mib-modules=agentx --disable-embedded-perl --without-perl-modules The compilation was successful but as a result I got very

Re: prErrFix not being set to 1 (Can't get procfix to restart httpd)

2007-07-27 Thread Dave Shield
On 26/07/07, Lists <[EMAIL PROTECTED]> wrote: > When I stop httpd and query the prTable, I see > prIndex.1 = 1 > prNames.1 = httpd > prCount.1 = 0 > prErrorFlag.1 = 1 > prErrMessage.1 = No httpd process running. > prErrFixCmd.1 = /etc/init.d/httpd restart > > BUT prErrFix.1 = 0 , which I though sho

Re: Help with snmptrap

2007-07-27 Thread Dave Shield
On 26/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: > Hello, I have this snmpd.conf configuration on one host > > trapsink 10.0.0.4 test > trap2sink 10.0.0.4 test > informsink 10.0.0.4 test Why do you want to send three copies of every notification to the same trap receiver? > Now, wh

subagent problem on target platform

2007-07-27 Thread Uday Sorte
Hello Members, Following is the description of my problem. Step 1. *-- I compiled the net-snmp 5.4 successfully and it is perfectly working fine. I am running the master agent and the subagent and everything seems to be working fine. Step 2. *-- But, when I copied the binary snmpd comp

Libraries' size and utilization

2007-07-27 Thread [EMAIL PROTECTED]
I compiled Net-SNMP v5.4.1.rc4 in Windowx XP with MinGW. This is the configuration I used: ./configure --prefix=C:/NetSNMP --with-mibdirs=C:/NetSNMP/share/snmp/mibs --with-mib-modules=agentx --disable-embedded-perl --without-perl-modules The compilation was successful but as a result I got very