"-I -interfaces" startup parameters for SNMPD.

2006-12-21 Thread Kurapati M-G19456
Dear list, I am using NET-SNMP-5.2.2. When I start the snmpd with the above start up parameters, I see that SNMPD still builds the interfaces data. But, it does not service any requests on interfaces MIB. How to avoid SNMPD not to build this interface database? Is there a configure option whi

Can not use 'extend' to extend the Agent in 5.4

2006-12-21 Thread Michael Tse
Hi. I am now trying to using 'extend' to extend the snmpd agent. But when adding extendfix test ps -ef to snmpd.conf I walked the nsExtendConfigTable and got nothing. Also I used snmpset to create new row and got the follewing error info. snmpset -c private -v 2c localhost nsExtendStatus.1 = 4

Re: a problem about net-snmp 5-4

2006-12-21 Thread Clement Hsu
Dear Dave: Thank you. The routine I starting agent is first running as root and then execute the command : /etc/init.d/snmpd start or /usr/local/sbin/snmpd After I testing these two way , I found something. When I start agent via /etc/init.d /snmpd start, the agent can start , but can not sent c

Re: snmp agent crashed when i used the tool snmpwalk running through out my private MIB(a table).

2006-12-21 Thread jiang jilin
Hi,Dave I'm really sorry,I changed the name of My table & files,so when you encounter the rsfwSysAntivirusTable_handler ,yeah,it equals rsfwTable_handler ,and the same as the files. Also,sorry for my poor english. forgive me please! Thanks for your help! Regards, Jiang On 12/22/06, jiang ji

Re: snmp agent crashed when i used the tool snmpwalk running through out my private MIB(a table).

2006-12-21 Thread jiang jilin
Thanks for your reply,Dave. Maybe,I should modify the rsfwTable_handler routine shown as follows, /** handles requests for the rsfwTable table */ int rsfwTable_handler(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, n

Re: snmptrap without dependency on libcrypto?

2006-12-21 Thread sam allen
Thanks, that put me on the right trail. Just to complete the story, for archive purposes, I did it all in user mode: ftp get openssl-0.9.7g-sol9-sparc-local.gz gunzip /usr/sbin/pkgadd -d openssl-0.9.7g-sol9-sparc-local -s tmp find the lib file under tmp, mv it to net-snmp-5.1usr/local/lib disco

Re: Proxy Multiple SNMP Requests

2006-12-21 Thread Dave Shield
On 21/12/06, Nuno Gonçalves <[EMAIL PROTECTED]> wrote: > Imagine that you have 1..N servers in a private network and you want to > extract with SNMP queries the InOctets From more than one machine. > But I want to get DATA from more machines and the OID is the same. Then you need some way to indi

AgentX subagent sends traps but does not GET/SET

2006-12-21 Thread David Arthur
Hello all, I have an application with an AgentX subagent that initializes and connects successfully to the master agent. I have a private MIB with several objects which I set as I wish from within the application, just before including them as varbinds in traps. I am getting the traps at the manag

Re: snmptrap without dependency on libcrypto?

2006-12-21 Thread Thomas Anders
sam allen wrote: > I'd like to use 5.1.2 snmptrap on Solaris 9, but it complains about a > missing libcrypto.so.0.9.7. > Is there a workaround? > > So it seems clear that no OpenSSL is installed. > I can't make the missing lib from the OpenSSL packages, because there is no > development > enviro

snmptrap without dependency on libcrypto?

2006-12-21 Thread sam allen
I'd like to use 5.1.2 snmptrap on Solaris 9, but it complains about a missing libcrypto.so.0.9.7. Is there a workaround? So it seems clear that no OpenSSL is installed. I can't make the missing lib from the OpenSSL packages, because there is no development environment on this machine (no cc, no

Re: Proxy Multiple SNMP Requests

2006-12-21 Thread Thomas Anders
Nuno Gonçalves wrote: > Then how can it be accomplished if you want to get SNMP data from several > machines behind the SNMP Proxy? http://www.freesnmp.com/net-snmp/faqs/#multidev +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) ---

Re: 5.4 traphandle not working. Working in 5.3.1...

2006-12-21 Thread Dave Shield
On 20/12/06, Daniel Lacey <[EMAIL PROTECTED]> wrote: > traphandle SNMPv2-SMI::enterprises.30303 /usr/bin/Mail -s traphandle_30303 > [EMAIL PROTECTED] > forward default localhost:1162 > > snmptrapd options: > -f -Le -p /var/run/snmptrapd.pid -d -Dread_config,snmptrapd -c > /usr/local/share/snmp

Re: problem regarding creating snmpv3 user

2006-12-21 Thread Dave Shield
On 21/12/06, bhushan <[EMAIL PROTECTED]> wrote: > is rwuser my_user in snmpd.conf we must specify ? > because i have already written com2sec local 0.0.0.0/0 my_user in > snmpd.conf . "com2sec" is used for *community*-based SNMP (i.e. v1/v2c). "rwuser" is used for SNMPv3 These are two completely

Re: snmp agent crashed when i used the tool snmpwalk running through out my private MIB(a table).

2006-12-21 Thread Dave Shield
On 21/12/06, jiang jilin <[EMAIL PROTECTED]> wrote: > I've found that agent crashed at function "myTable_handler ".Anynoe can help > me resolve the problem? Try running the agent under a debugger, or running the debugger on the core file from the crash. A backtrace should indicate where exactly

Re: Proxy Multiple SNMP Requests

2006-12-21 Thread Dave Shield
On 21/12/06, Nuno Gonçalves <[EMAIL PROTECTED]> wrote: > proxy -v 2c -c > proxy -v 2c -c > proxy -v 2c -c That much will work. But adding: > proxy -v 2c -c won't. If the agent receives a request for "oid1", then what should it do? Iit's been told to send such requests to ip3. But it'

Re: a problem about net-snmp 5-4

2006-12-21 Thread Dave Shield
On 21/12/06, Clement Hsu <[EMAIL PROTECTED]> wrote: > After performing the command, I got the result as following: > read_config: config path used for > snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp > (persistent path:/var/net-snmp) > read_config: Reading configu

Re: programmatic interface to do an SNMPGET operation?

2006-12-21 Thread Dave Shield
On 21/12/06, Kurapati M-G19456 <[EMAIL PROTECTED]> wrote: > Is there a programmatic interface available to do an SNMPGET from one of my > application? See 'netsnmp_query_get' (in snmplib/snmp_client.c) Or else the code for 'apps/snmpget.c', for doing this "from scratch". Dave --

RE: Proxy Multiple SNMP Requests

2006-12-21 Thread Nuno Gonçalves
Hi everybody, First of all thanks on your reply Dave, Hummm i see, Then how can it be accomplished if you want to get SNMP data from several machines behind the SNMP Proxy? Imagine that you have 1..N servers in a private network and you want to extract with SNMP queries the InOctets From more th

Re: problem regarding creating snmpv3 user

2006-12-21 Thread Thomas Anders
Simon Edwards wrote: > Unless you've compiled it yourself and added AES back in you'll find > that AES support is missing from the current builds of 5.4. > > You could try using DES instead, which will give you V3 with slightly > more vulnerable encryption. AES is missing in the initial *Windows

RE: problem regarding creating snmpv3 user

2006-12-21 Thread Simon Edwards
Unless you've compiled it yourself and added AES back in you'll find that AES support is missing from the current builds of 5.4. You could try using DES instead, which will give you V3 with slightly more vulnerable encryption. Regards, Simon From: [EMA

Proxy Multiple SNMP Requests

2006-12-21 Thread Nuno Gonçalves
Hi all, Is there a way to query SNMP requests to a NET-SNMP server which proxy requests to other machines? For instance: I do a snmpbulkwalk –v2c –c (host ip1 is a remote machine) snmpd.conf on machine has a proxy line like: proxy -v 2c -c this works for but how can we a

problem regarding creating snmpv3 user

2006-12-21 Thread bhushan
hello friends, I have netsnmp-5.4 version, i am creating snmp v3 user using net-snmp --create-snmpv3-user command, this command adds adding the following line to /var/net-snmp/snmpd.conf: createUser my_user MD5 "my_password" AES128 adding the following line to /usr/local/share/snmp/snmpd.conf:

Regarding agent extension

2006-12-21 Thread noopur tiwari
Hi All, i am interested in extending the net-snmp agnet for a MIB.this MIB is huge i need to implement only a table in this mibi have used the mib2c utility with mib2c.iterate.conf file and i now have the skeleton .c and .h code...i now want that whenever an snmpget command is issued then value

Re: snmpd port number

2006-12-21 Thread Thomas Anders
Kurapati M-G19456 wrote: > I am using net-snmp-5.2.2. when I start the SNMPD with "./snmpd -x 705 > -I -interfaces", I am seeing the following as the netstat output. > > netstat -apn|grep snmpd > tcp0 0 0.0.0.0:705 0.0.0.0:* > LISTEN 10231/snmpd > udp0

Re: programmatic interface to do an SNMPGET operation?

2006-12-21 Thread jiang jilin
yes,you can find the DEMO from net-snmp.org.and go to http://www.net-snmp.org/docs/FAQ.html first. Jiang On 12/21/06, Kurapati M-G19456 <[EMAIL PROTECTED]> wrote: All, Is there a programmatic interface available to do an SNMPGET from one of my application? Regards Mahesh

programmatic interface to do an SNMPGET operation?

2006-12-21 Thread Kurapati M-G19456
All, Is there a programmatic interface available to do an SNMPGET from one of my application? Regards Mahesh - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the

snmpd port number

2006-12-21 Thread Kurapati M-G19456
All, I am using net-snmp-5.2.2. when I start the SNMPD with "./snmpd -x 705 -I -interfaces", I am seeing the following as the netstat output. netstat -apn|grep snmpd tcp0 0 0.0.0.0:705 0.0.0.0:* LISTEN 10231/snmpd udp0 0 0.0.0.0:161 0.0.